@supernova-studio/client 0.55.16 → 0.55.18
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 +343 -83
- package/dist/index.d.ts +343 -83
- package/dist/index.js +315 -231
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1304 -1220
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/collections/collection.ts +25 -0
- package/src/api/dto/collections/index.ts +1 -0
- package/src/api/dto/design-systems/design-system.ts +10 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-systems/members.ts +13 -0
- package/src/api/dto/design-systems/role.ts +11 -0
- package/src/api/dto/index.ts +1 -0
- package/src/api/endpoints/index.ts +1 -0
- package/src/api/endpoints/token-collections.ts +13 -0
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
23
|
+
import { z as z126 } from "zod";
|
|
24
24
|
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
-
import { z as
|
|
28
|
-
import { z as
|
|
27
|
+
import { z as z125 } from "zod";
|
|
28
|
+
import { z as z124 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
@@ -122,28 +122,25 @@ import { z as z109 } from "zod";
|
|
|
122
122
|
import { z as z110 } from "zod";
|
|
123
123
|
import { z as z111 } from "zod";
|
|
124
124
|
import { z as z112 } from "zod";
|
|
125
|
-
import { z as
|
|
125
|
+
import { z as z115 } from "zod";
|
|
126
126
|
import { z as z113 } from "zod";
|
|
127
127
|
import { z as z114 } from "zod";
|
|
128
128
|
import { z as z116 } from "zod";
|
|
129
|
-
import { z as z115 } from "zod";
|
|
130
|
-
import { z as z118 } from "zod";
|
|
131
|
-
import IPCIDR from "ip-cidr";
|
|
132
129
|
import { z as z117 } from "zod";
|
|
130
|
+
import { z as z118 } from "zod";
|
|
133
131
|
import { z as z119 } from "zod";
|
|
134
132
|
import { z as z120 } from "zod";
|
|
135
133
|
import { z as z121 } from "zod";
|
|
136
|
-
import { z as z130 } from "zod";
|
|
137
134
|
import { z as z122 } from "zod";
|
|
138
135
|
import { z as z123 } from "zod";
|
|
139
|
-
import { z as
|
|
140
|
-
import { z as
|
|
141
|
-
import { z as z126 } from "zod";
|
|
136
|
+
import { z as z133 } from "zod";
|
|
137
|
+
import { z as z132 } from "zod";
|
|
142
138
|
import { z as z127 } from "zod";
|
|
143
139
|
import { z as z128 } from "zod";
|
|
144
140
|
import { z as z129 } from "zod";
|
|
141
|
+
import { z as z130 } from "zod";
|
|
145
142
|
import { z as z131 } from "zod";
|
|
146
|
-
import { z as
|
|
143
|
+
import { z as z147 } from "zod";
|
|
147
144
|
import { z as z134 } from "zod";
|
|
148
145
|
import { z as z135 } from "zod";
|
|
149
146
|
import { z as z136 } from "zod";
|
|
@@ -151,18 +148,21 @@ import { z as z137 } from "zod";
|
|
|
151
148
|
import { z as z138 } from "zod";
|
|
152
149
|
import { z as z139 } from "zod";
|
|
153
150
|
import { z as z140 } from "zod";
|
|
154
|
-
import { z as
|
|
155
|
-
import { z as z149 } from "zod";
|
|
156
|
-
import { z as z144 } from "zod";
|
|
157
|
-
import { z as z145 } from "zod";
|
|
151
|
+
import { z as z141 } from "zod";
|
|
158
152
|
import { z as z146 } from "zod";
|
|
159
|
-
import { z as
|
|
153
|
+
import { z as z142 } from "zod";
|
|
154
|
+
import IPCIDR from "ip-cidr";
|
|
155
|
+
import { z as z145 } from "zod";
|
|
156
|
+
import { z as z143 } from "zod";
|
|
157
|
+
import { z as z144 } from "zod";
|
|
160
158
|
import { z as z148 } from "zod";
|
|
161
|
-
import { z as
|
|
162
|
-
import { z as
|
|
159
|
+
import { z as z155 } from "zod";
|
|
160
|
+
import { z as z149 } from "zod";
|
|
161
|
+
import { z as z150 } from "zod";
|
|
163
162
|
import { z as z151 } from "zod";
|
|
163
|
+
import { z as z152 } from "zod";
|
|
164
|
+
import { z as z153 } from "zod";
|
|
164
165
|
import { z as z154 } from "zod";
|
|
165
|
-
import { z as z155 } from "zod";
|
|
166
166
|
import { z as z156 } from "zod";
|
|
167
167
|
import { z as z159 } from "zod";
|
|
168
168
|
import { z as z157 } from "zod";
|
|
@@ -3573,488 +3573,287 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3573
3573
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3574
3574
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3575
3575
|
}
|
|
3576
|
-
var
|
|
3577
|
-
var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3578
|
-
var NpmRegistryBasicAuthConfig = z113.object({
|
|
3579
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3580
|
-
username: z113.string(),
|
|
3581
|
-
password: z113.string()
|
|
3582
|
-
});
|
|
3583
|
-
var NpmRegistryBearerAuthConfig = z113.object({
|
|
3584
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3585
|
-
accessToken: z113.string()
|
|
3586
|
-
});
|
|
3587
|
-
var NpmRegistryNoAuthConfig = z113.object({
|
|
3588
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.None)
|
|
3589
|
-
});
|
|
3590
|
-
var NpmRegistrCustomAuthConfig = z113.object({
|
|
3591
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3592
|
-
authHeaderName: z113.string(),
|
|
3593
|
-
authHeaderValue: z113.string()
|
|
3594
|
-
});
|
|
3595
|
-
var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
|
|
3596
|
-
NpmRegistryBasicAuthConfig,
|
|
3597
|
-
NpmRegistryBearerAuthConfig,
|
|
3598
|
-
NpmRegistryNoAuthConfig,
|
|
3599
|
-
NpmRegistrCustomAuthConfig
|
|
3600
|
-
]);
|
|
3601
|
-
var NpmRegistryConfigBase = z113.object({
|
|
3602
|
-
registryType: NpmRegistryType,
|
|
3603
|
-
enabledScopes: z113.array(z113.string()),
|
|
3604
|
-
customRegistryUrl: z113.string().optional(),
|
|
3605
|
-
bypassProxy: z113.boolean().default(false),
|
|
3606
|
-
npmProxyRegistryConfigId: z113.string().optional(),
|
|
3607
|
-
npmProxyVersion: z113.number().optional()
|
|
3608
|
-
});
|
|
3609
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3610
|
-
var SsoProvider = z114.object({
|
|
3611
|
-
providerId: z114.string(),
|
|
3612
|
-
defaultAutoInviteValue: z114.boolean(),
|
|
3613
|
-
autoInviteDomains: z114.record(z114.string(), z114.boolean()),
|
|
3614
|
-
skipDocsSupernovaLogin: z114.boolean(),
|
|
3615
|
-
areInvitesDisabled: z114.boolean(),
|
|
3616
|
-
isTestMode: z114.boolean(),
|
|
3617
|
-
emailDomains: z114.array(z114.string()),
|
|
3618
|
-
metadataXml: z114.string().nullish()
|
|
3619
|
-
});
|
|
3620
|
-
var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
3576
|
+
var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
3621
3577
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
3622
|
-
var
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
});
|
|
3627
|
-
var
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
isEnabled: z117.boolean(),
|
|
3633
|
-
name: z117.string(),
|
|
3634
|
-
range: z117.string().refine(isValidCIDR, {
|
|
3635
|
-
message: "Invalid IP CIDR"
|
|
3636
|
-
})
|
|
3637
|
-
});
|
|
3638
|
-
var WorkspaceIpSettings = z117.object({
|
|
3639
|
-
isEnabledForCloud: z117.boolean(),
|
|
3640
|
-
isEnabledForDocs: z117.boolean(),
|
|
3641
|
-
entries: z117.array(WorkspaceIpWhitelistEntry)
|
|
3642
|
-
});
|
|
3643
|
-
var WorkspaceProfile = z117.object({
|
|
3644
|
-
name: z117.string(),
|
|
3645
|
-
handle: z117.string(),
|
|
3646
|
-
color: z117.string(),
|
|
3647
|
-
avatar: nullishToOptional(z117.string()),
|
|
3648
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
3649
|
-
});
|
|
3650
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3651
|
-
avatar: true
|
|
3652
|
-
});
|
|
3653
|
-
var Workspace = z117.object({
|
|
3654
|
-
id: z117.string(),
|
|
3655
|
-
profile: WorkspaceProfile,
|
|
3656
|
-
subscription: Subscription,
|
|
3657
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3658
|
-
sso: nullishToOptional(SsoProvider),
|
|
3659
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3660
|
-
});
|
|
3661
|
-
var WorkspaceWithDesignSystems = z117.object({
|
|
3662
|
-
workspace: Workspace,
|
|
3663
|
-
designSystems: z117.array(DesignSystem)
|
|
3664
|
-
});
|
|
3665
|
-
var WorkspaceConfigurationUpdate = z118.object({
|
|
3666
|
-
id: z118.string(),
|
|
3667
|
-
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
3668
|
-
sso: SsoProvider.optional(),
|
|
3669
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
3670
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
3671
|
-
});
|
|
3672
|
-
var WorkspaceContext = z119.object({
|
|
3673
|
-
workspaceId: z119.string(),
|
|
3674
|
-
product: ProductCodeSchema,
|
|
3675
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3676
|
-
publicDesignSystem: z119.boolean().optional()
|
|
3677
|
-
});
|
|
3678
|
-
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
3679
|
-
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
3680
|
-
var HANDLE_MIN_LENGTH = 2;
|
|
3681
|
-
var HANDLE_MAX_LENGTH = 64;
|
|
3682
|
-
var CreateWorkspaceInput = z120.object({
|
|
3683
|
-
name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
3684
|
-
handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
3685
|
-
});
|
|
3686
|
-
var WorkspaceInvitation = z121.object({
|
|
3687
|
-
id: z121.string(),
|
|
3688
|
-
email: z121.string().email(),
|
|
3689
|
-
createdAt: z121.coerce.date(),
|
|
3690
|
-
resentAt: z121.coerce.date().nullish(),
|
|
3691
|
-
role: z121.nativeEnum(WorkspaceRole),
|
|
3692
|
-
workspaceId: z121.string(),
|
|
3693
|
-
invitedBy: z121.string()
|
|
3694
|
-
});
|
|
3695
|
-
var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
|
|
3696
|
-
var ExternalServiceType = z122.union([
|
|
3697
|
-
z122.literal("figma"),
|
|
3698
|
-
z122.literal("github"),
|
|
3699
|
-
z122.literal("azure"),
|
|
3700
|
-
z122.literal("gitlab"),
|
|
3701
|
-
z122.literal("bitbucket")
|
|
3578
|
+
var DesignSystemInvitation = z114.object({
|
|
3579
|
+
id: z114.string(),
|
|
3580
|
+
designSystemId: z114.string(),
|
|
3581
|
+
workspaceInvitationId: z114.string()
|
|
3582
|
+
});
|
|
3583
|
+
var DesignSystemRole = z115.enum([
|
|
3584
|
+
WorkspaceRole.Admin,
|
|
3585
|
+
WorkspaceRole.Contributor,
|
|
3586
|
+
WorkspaceRole.Creator,
|
|
3587
|
+
WorkspaceRole.Viewer
|
|
3702
3588
|
]);
|
|
3703
|
-
var
|
|
3704
|
-
id:
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
authType: IntegrationAuthType.optional(),
|
|
3709
|
-
customUrl: z122.string().optional()
|
|
3710
|
-
});
|
|
3711
|
-
var UserLinkedIntegrations = z122.object({
|
|
3712
|
-
figma: IntegrationUserInfo.optional(),
|
|
3713
|
-
github: IntegrationUserInfo.array().optional(),
|
|
3714
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
3715
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
3716
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
3717
|
-
});
|
|
3718
|
-
var UserAnalyticsCleanupSchedule = z123.object({
|
|
3719
|
-
userId: z123.string(),
|
|
3720
|
-
createdAt: z123.coerce.date(),
|
|
3721
|
-
deleteAt: z123.coerce.date()
|
|
3722
|
-
});
|
|
3723
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3724
|
-
createdAt: true
|
|
3725
|
-
});
|
|
3726
|
-
var UserIdentity = z124.object({
|
|
3727
|
-
id: z124.string(),
|
|
3728
|
-
userId: z124.string()
|
|
3729
|
-
});
|
|
3730
|
-
var UserMinified = z125.object({
|
|
3731
|
-
id: z125.string(),
|
|
3732
|
-
name: z125.string(),
|
|
3733
|
-
email: z125.string(),
|
|
3734
|
-
avatar: z125.string().optional()
|
|
3735
|
-
});
|
|
3736
|
-
var LiveblocksNotificationSettings = z126.object({
|
|
3737
|
-
sendCommentNotificationEmails: z126.boolean()
|
|
3738
|
-
});
|
|
3739
|
-
var UserNotificationSettings = z126.object({
|
|
3740
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3741
|
-
});
|
|
3742
|
-
var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3743
|
-
var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3744
|
-
var UserOnboarding = z127.object({
|
|
3745
|
-
companyName: z127.string().optional(),
|
|
3746
|
-
numberOfPeopleInOrg: z127.string().optional(),
|
|
3747
|
-
numberOfPeopleInDesignTeam: z127.string().optional(),
|
|
3748
|
-
department: UserOnboardingDepartment.optional(),
|
|
3749
|
-
jobTitle: z127.string().optional(),
|
|
3750
|
-
phase: z127.string().optional(),
|
|
3751
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3752
|
-
designSystemName: z127.string().optional(),
|
|
3753
|
-
defaultDestination: z127.string().optional(),
|
|
3754
|
-
figmaUrl: z127.string().optional(),
|
|
3755
|
-
isPageDraftOnboardingFinished: z127.boolean().optional(),
|
|
3756
|
-
isApprovalsOnboardingFinished: z127.boolean().optional()
|
|
3757
|
-
});
|
|
3758
|
-
var UserProfile = z127.object({
|
|
3759
|
-
name: z127.string(),
|
|
3760
|
-
avatar: z127.string().optional(),
|
|
3761
|
-
nickname: z127.string().optional(),
|
|
3762
|
-
onboarding: UserOnboarding.optional()
|
|
3763
|
-
});
|
|
3764
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3765
|
-
avatar: true
|
|
3766
|
-
});
|
|
3767
|
-
var UserTest = z128.object({
|
|
3768
|
-
id: z128.string(),
|
|
3769
|
-
email: z128.string()
|
|
3770
|
-
});
|
|
3771
|
-
var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
|
|
3772
|
-
var User = z129.object({
|
|
3773
|
-
id: z129.string(),
|
|
3774
|
-
email: z129.string(),
|
|
3775
|
-
emailVerified: z129.boolean(),
|
|
3776
|
-
createdAt: z129.coerce.date(),
|
|
3777
|
-
trialExpiresAt: z129.coerce.date().optional(),
|
|
3778
|
-
profile: UserProfile,
|
|
3779
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3780
|
-
loggedOutAt: z129.coerce.date().optional(),
|
|
3781
|
-
isProtected: z129.boolean(),
|
|
3782
|
-
source: UserSource.optional()
|
|
3783
|
-
});
|
|
3784
|
-
var WorkspaceMembership = z130.object({
|
|
3785
|
-
id: z130.string(),
|
|
3786
|
-
userId: z130.string(),
|
|
3787
|
-
workspaceId: z130.string(),
|
|
3788
|
-
workspaceRole: z130.nativeEnum(WorkspaceRole),
|
|
3789
|
-
notificationSettings: UserNotificationSettings
|
|
3790
|
-
});
|
|
3791
|
-
var UpdateMembershipRolesInput = z130.object({
|
|
3792
|
-
members: z130.array(
|
|
3793
|
-
z130.object({
|
|
3794
|
-
userId: z130.string(),
|
|
3795
|
-
role: z130.nativeEnum(WorkspaceRole)
|
|
3796
|
-
})
|
|
3797
|
-
)
|
|
3798
|
-
});
|
|
3799
|
-
var DesignSystemInvitation = z131.object({
|
|
3800
|
-
id: z131.string(),
|
|
3801
|
-
designSystemId: z131.string(),
|
|
3802
|
-
workspaceInvitationId: z131.string()
|
|
3589
|
+
var DesignSystemMembership = z115.object({
|
|
3590
|
+
id: z115.string(),
|
|
3591
|
+
userId: z115.string(),
|
|
3592
|
+
designSystemId: z115.string(),
|
|
3593
|
+
workspaceMembershipId: z115.string()
|
|
3803
3594
|
});
|
|
3804
|
-
var
|
|
3805
|
-
id: z132.string(),
|
|
3806
|
-
userId: z132.string(),
|
|
3807
|
-
designSystemId: z132.string(),
|
|
3808
|
-
workspaceMembershipId: z132.string()
|
|
3809
|
-
});
|
|
3810
|
-
var DesignSystemMembers = z132.object({
|
|
3595
|
+
var DesignSystemMembers = z115.object({
|
|
3811
3596
|
members: DesignSystemMembership.array(),
|
|
3812
3597
|
invitations: DesignSystemInvitation.array()
|
|
3813
3598
|
});
|
|
3814
|
-
var DesignSystemPendingMemberInvitation =
|
|
3815
|
-
inviteId:
|
|
3599
|
+
var DesignSystemPendingMemberInvitation = z115.object({
|
|
3600
|
+
inviteId: z115.string(),
|
|
3601
|
+
/**
|
|
3602
|
+
* Role that the user will have in the design system, undefined
|
|
3603
|
+
* if it should be inherited from the workspace
|
|
3604
|
+
*/
|
|
3605
|
+
designSystemRole: DesignSystemRole.optional()
|
|
3816
3606
|
});
|
|
3817
|
-
var DesignSystemUserInvitation =
|
|
3818
|
-
userId:
|
|
3607
|
+
var DesignSystemUserInvitation = z115.object({
|
|
3608
|
+
userId: z115.string(),
|
|
3609
|
+
/**
|
|
3610
|
+
* Role that the user will have in the design system, undefined
|
|
3611
|
+
* if it should be inherited from the workspace
|
|
3612
|
+
*/
|
|
3613
|
+
designSystemRole: DesignSystemRole.optional()
|
|
3819
3614
|
});
|
|
3820
|
-
var DesignSystemInvite =
|
|
3821
|
-
email:
|
|
3822
|
-
workspaceRole: WorkspaceRoleSchema
|
|
3615
|
+
var DesignSystemInvite = z115.object({
|
|
3616
|
+
email: z115.string(),
|
|
3617
|
+
workspaceRole: WorkspaceRoleSchema,
|
|
3618
|
+
/**
|
|
3619
|
+
* Role that the user will have in the design system, undefined
|
|
3620
|
+
* if it should be inherited from the workspace
|
|
3621
|
+
*/
|
|
3622
|
+
designSystemRole: DesignSystemRole.optional()
|
|
3823
3623
|
});
|
|
3824
|
-
var DesignSystemMembershipUpdates =
|
|
3624
|
+
var DesignSystemMembershipUpdates = z115.object({
|
|
3825
3625
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
3826
3626
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
3827
3627
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
3828
|
-
removeUserIds:
|
|
3829
|
-
deleteInvitationIds:
|
|
3830
|
-
});
|
|
3831
|
-
var ElementViewBaseColumnType =
|
|
3832
|
-
var ElementViewColumnType =
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3628
|
+
removeUserIds: z115.string().array().optional(),
|
|
3629
|
+
deleteInvitationIds: z115.string().array().optional()
|
|
3630
|
+
});
|
|
3631
|
+
var ElementViewBaseColumnType = z116.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3632
|
+
var ElementViewColumnType = z116.union([
|
|
3633
|
+
z116.literal("BaseProperty"),
|
|
3634
|
+
z116.literal("PropertyDefinition"),
|
|
3635
|
+
z116.literal("Theme")
|
|
3836
3636
|
]);
|
|
3837
|
-
var ElementViewColumnSharedAttributes =
|
|
3838
|
-
id:
|
|
3839
|
-
persistentId:
|
|
3840
|
-
elementDataViewId:
|
|
3841
|
-
sortPosition:
|
|
3842
|
-
width:
|
|
3637
|
+
var ElementViewColumnSharedAttributes = z116.object({
|
|
3638
|
+
id: z116.string(),
|
|
3639
|
+
persistentId: z116.string(),
|
|
3640
|
+
elementDataViewId: z116.string(),
|
|
3641
|
+
sortPosition: z116.number(),
|
|
3642
|
+
width: z116.number()
|
|
3843
3643
|
});
|
|
3844
3644
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3845
|
-
type:
|
|
3645
|
+
type: z116.literal("BaseProperty"),
|
|
3846
3646
|
basePropertyType: ElementViewBaseColumnType
|
|
3847
3647
|
});
|
|
3848
3648
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3849
|
-
type:
|
|
3850
|
-
propertyDefinitionId:
|
|
3649
|
+
type: z116.literal("PropertyDefinition"),
|
|
3650
|
+
propertyDefinitionId: z116.string()
|
|
3851
3651
|
});
|
|
3852
3652
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3853
|
-
type:
|
|
3854
|
-
themeId:
|
|
3653
|
+
type: z116.literal("Theme"),
|
|
3654
|
+
themeId: z116.string()
|
|
3855
3655
|
});
|
|
3856
|
-
var ElementViewColumn =
|
|
3656
|
+
var ElementViewColumn = z116.discriminatedUnion("type", [
|
|
3857
3657
|
ElementViewBasePropertyColumn,
|
|
3858
3658
|
ElementViewPropertyDefinitionColumn,
|
|
3859
3659
|
ElementViewThemeColumn
|
|
3860
3660
|
]);
|
|
3861
|
-
var ElementView =
|
|
3862
|
-
id:
|
|
3863
|
-
persistentId:
|
|
3864
|
-
designSystemVersionId:
|
|
3865
|
-
name:
|
|
3866
|
-
description:
|
|
3661
|
+
var ElementView = z117.object({
|
|
3662
|
+
id: z117.string(),
|
|
3663
|
+
persistentId: z117.string(),
|
|
3664
|
+
designSystemVersionId: z117.string(),
|
|
3665
|
+
name: z117.string(),
|
|
3666
|
+
description: z117.string(),
|
|
3867
3667
|
targetElementType: ElementPropertyTargetType,
|
|
3868
|
-
isDefault:
|
|
3869
|
-
});
|
|
3870
|
-
var Brand = z135.object({
|
|
3871
|
-
id: z135.string(),
|
|
3872
|
-
designSystemVersionId: z135.string(),
|
|
3873
|
-
persistentId: z135.string(),
|
|
3874
|
-
name: z135.string(),
|
|
3875
|
-
description: z135.string()
|
|
3876
|
-
});
|
|
3877
|
-
var DesignSystemAccessMode = z136.enum(["Open", "InviteOnly"]);
|
|
3878
|
-
var DesignSystemSwitcher = z136.object({
|
|
3879
|
-
isEnabled: z136.boolean(),
|
|
3880
|
-
designSystemIds: z136.array(z136.string())
|
|
3668
|
+
isDefault: z117.boolean()
|
|
3881
3669
|
});
|
|
3882
|
-
var
|
|
3883
|
-
id:
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3670
|
+
var Brand = z118.object({
|
|
3671
|
+
id: z118.string(),
|
|
3672
|
+
designSystemVersionId: z118.string(),
|
|
3673
|
+
persistentId: z118.string(),
|
|
3674
|
+
name: z118.string(),
|
|
3675
|
+
description: z118.string()
|
|
3676
|
+
});
|
|
3677
|
+
var DesignSystemAccessMode = z119.enum(["Open", "InviteOnly"]);
|
|
3678
|
+
var DesignSystemSwitcher = z119.object({
|
|
3679
|
+
isEnabled: z119.boolean(),
|
|
3680
|
+
designSystemIds: z119.array(z119.string())
|
|
3681
|
+
});
|
|
3682
|
+
var DesignSystem = z119.object({
|
|
3683
|
+
id: z119.string(),
|
|
3684
|
+
workspaceId: z119.string(),
|
|
3685
|
+
name: z119.string(),
|
|
3686
|
+
description: z119.string(),
|
|
3687
|
+
docExporterId: nullishToOptional(z119.string()),
|
|
3688
|
+
docSlug: z119.string(),
|
|
3689
|
+
docUserSlug: nullishToOptional(z119.string()),
|
|
3690
|
+
docSlugDeprecated: z119.string(),
|
|
3691
|
+
isMultibrand: z119.boolean(),
|
|
3692
|
+
docViewUrl: nullishToOptional(z119.string()),
|
|
3693
|
+
basePrefixes: z119.array(z119.string()),
|
|
3895
3694
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3896
|
-
isApprovalFeatureEnabled:
|
|
3897
|
-
approvalRequiredForPublishing:
|
|
3695
|
+
isApprovalFeatureEnabled: z119.boolean(),
|
|
3696
|
+
approvalRequiredForPublishing: z119.boolean(),
|
|
3898
3697
|
accessMode: DesignSystemAccessMode,
|
|
3899
|
-
membersGenerated:
|
|
3900
|
-
createdAt:
|
|
3901
|
-
updatedAt:
|
|
3698
|
+
membersGenerated: z119.boolean(),
|
|
3699
|
+
createdAt: z119.coerce.date(),
|
|
3700
|
+
updatedAt: z119.coerce.date()
|
|
3902
3701
|
});
|
|
3903
|
-
var ExporterPropertyImageValue =
|
|
3702
|
+
var ExporterPropertyImageValue = z120.object({
|
|
3904
3703
|
asset: PageBlockAsset.optional(),
|
|
3905
|
-
assetId:
|
|
3906
|
-
assetUrl:
|
|
3907
|
-
});
|
|
3908
|
-
var ExporterPropertyValue =
|
|
3909
|
-
key:
|
|
3910
|
-
value:
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3704
|
+
assetId: z120.string().optional(),
|
|
3705
|
+
assetUrl: z120.string().optional()
|
|
3706
|
+
});
|
|
3707
|
+
var ExporterPropertyValue = z120.object({
|
|
3708
|
+
key: z120.string(),
|
|
3709
|
+
value: z120.union([
|
|
3710
|
+
z120.number(),
|
|
3711
|
+
z120.string(),
|
|
3712
|
+
z120.boolean(),
|
|
3914
3713
|
ExporterPropertyImageValue,
|
|
3915
3714
|
ColorTokenData,
|
|
3916
3715
|
TypographyTokenData
|
|
3917
3716
|
])
|
|
3918
3717
|
});
|
|
3919
|
-
var ExporterPropertyValuesCollection =
|
|
3920
|
-
id:
|
|
3921
|
-
designSystemId:
|
|
3922
|
-
exporterId:
|
|
3923
|
-
values:
|
|
3924
|
-
});
|
|
3925
|
-
var PublishedDocPage =
|
|
3926
|
-
id:
|
|
3927
|
-
publishedDocId:
|
|
3928
|
-
pageShortPersistentId:
|
|
3929
|
-
pathV1:
|
|
3930
|
-
pathV2:
|
|
3931
|
-
storagePath:
|
|
3932
|
-
locale:
|
|
3933
|
-
isPrivate:
|
|
3934
|
-
isHidden:
|
|
3935
|
-
createdAt:
|
|
3936
|
-
updatedAt:
|
|
3718
|
+
var ExporterPropertyValuesCollection = z120.object({
|
|
3719
|
+
id: z120.string(),
|
|
3720
|
+
designSystemId: z120.string(),
|
|
3721
|
+
exporterId: z120.string(),
|
|
3722
|
+
values: z120.array(ExporterPropertyValue)
|
|
3723
|
+
});
|
|
3724
|
+
var PublishedDocPage = z121.object({
|
|
3725
|
+
id: z121.string(),
|
|
3726
|
+
publishedDocId: z121.string(),
|
|
3727
|
+
pageShortPersistentId: z121.string(),
|
|
3728
|
+
pathV1: z121.string(),
|
|
3729
|
+
pathV2: z121.string(),
|
|
3730
|
+
storagePath: z121.string(),
|
|
3731
|
+
locale: z121.string().optional(),
|
|
3732
|
+
isPrivate: z121.boolean(),
|
|
3733
|
+
isHidden: z121.boolean(),
|
|
3734
|
+
createdAt: z121.coerce.date(),
|
|
3735
|
+
updatedAt: z121.coerce.date()
|
|
3937
3736
|
});
|
|
3938
3737
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3939
|
-
var PublishedDocEnvironment =
|
|
3940
|
-
var PublishedDocsChecksums =
|
|
3941
|
-
var PublishedDocRoutingVersion =
|
|
3942
|
-
var PublishedDoc =
|
|
3943
|
-
id:
|
|
3944
|
-
designSystemVersionId:
|
|
3945
|
-
createdAt:
|
|
3946
|
-
updatedAt:
|
|
3947
|
-
lastPublishedAt:
|
|
3948
|
-
isDefault:
|
|
3949
|
-
isPublic:
|
|
3738
|
+
var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
|
|
3739
|
+
var PublishedDocsChecksums = z122.record(z122.string());
|
|
3740
|
+
var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
|
|
3741
|
+
var PublishedDoc = z122.object({
|
|
3742
|
+
id: z122.string(),
|
|
3743
|
+
designSystemVersionId: z122.string(),
|
|
3744
|
+
createdAt: z122.coerce.date(),
|
|
3745
|
+
updatedAt: z122.coerce.date(),
|
|
3746
|
+
lastPublishedAt: z122.coerce.date(),
|
|
3747
|
+
isDefault: z122.boolean(),
|
|
3748
|
+
isPublic: z122.boolean(),
|
|
3950
3749
|
environment: PublishedDocEnvironment,
|
|
3951
3750
|
checksums: PublishedDocsChecksums,
|
|
3952
|
-
storagePath:
|
|
3953
|
-
wasMigrated:
|
|
3751
|
+
storagePath: z122.string(),
|
|
3752
|
+
wasMigrated: z122.boolean(),
|
|
3954
3753
|
routingVersion: PublishedDocRoutingVersion,
|
|
3955
|
-
usesLocalizations:
|
|
3956
|
-
wasPublishedWithLocalizations:
|
|
3957
|
-
tokenCount:
|
|
3958
|
-
assetCount:
|
|
3959
|
-
});
|
|
3960
|
-
var DesignSystemVersion =
|
|
3961
|
-
id:
|
|
3962
|
-
version:
|
|
3963
|
-
createdAt:
|
|
3964
|
-
designSystemId:
|
|
3965
|
-
name:
|
|
3966
|
-
comment:
|
|
3967
|
-
isReadonly:
|
|
3968
|
-
changeLog:
|
|
3969
|
-
parentId:
|
|
3970
|
-
isDraftsFeatureAdopted:
|
|
3971
|
-
});
|
|
3972
|
-
var VersionCreationJobStatus =
|
|
3973
|
-
var VersionCreationJob =
|
|
3974
|
-
id:
|
|
3975
|
-
version:
|
|
3976
|
-
designSystemId:
|
|
3977
|
-
designSystemVersionId: nullishToOptional(
|
|
3754
|
+
usesLocalizations: z122.boolean(),
|
|
3755
|
+
wasPublishedWithLocalizations: z122.boolean(),
|
|
3756
|
+
tokenCount: z122.number(),
|
|
3757
|
+
assetCount: z122.number()
|
|
3758
|
+
});
|
|
3759
|
+
var DesignSystemVersion = z123.object({
|
|
3760
|
+
id: z123.string(),
|
|
3761
|
+
version: z123.string(),
|
|
3762
|
+
createdAt: z123.coerce.date(),
|
|
3763
|
+
designSystemId: z123.string(),
|
|
3764
|
+
name: z123.string(),
|
|
3765
|
+
comment: z123.string(),
|
|
3766
|
+
isReadonly: z123.boolean(),
|
|
3767
|
+
changeLog: z123.string(),
|
|
3768
|
+
parentId: z123.string().optional(),
|
|
3769
|
+
isDraftsFeatureAdopted: z123.boolean()
|
|
3770
|
+
});
|
|
3771
|
+
var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
|
|
3772
|
+
var VersionCreationJob = z123.object({
|
|
3773
|
+
id: z123.string(),
|
|
3774
|
+
version: z123.string(),
|
|
3775
|
+
designSystemId: z123.string(),
|
|
3776
|
+
designSystemVersionId: nullishToOptional(z123.string()),
|
|
3978
3777
|
status: VersionCreationJobStatus,
|
|
3979
|
-
errorMessage: nullishToOptional(
|
|
3778
|
+
errorMessage: nullishToOptional(z123.string())
|
|
3980
3779
|
});
|
|
3981
3780
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3982
3781
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3983
|
-
var ExportJobDocumentationChanges =
|
|
3984
|
-
pagePersistentIds:
|
|
3985
|
-
groupPersistentIds:
|
|
3782
|
+
var ExportJobDocumentationChanges = z124.object({
|
|
3783
|
+
pagePersistentIds: z124.string().array(),
|
|
3784
|
+
groupPersistentIds: z124.string().array()
|
|
3986
3785
|
});
|
|
3987
|
-
var ExporterDestinationDocs =
|
|
3786
|
+
var ExporterDestinationDocs = z124.object({
|
|
3988
3787
|
environment: PublishedDocEnvironment,
|
|
3989
3788
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3990
3789
|
});
|
|
3991
|
-
var ExporterDestinationS3 =
|
|
3992
|
-
var ExporterDestinationGithub =
|
|
3993
|
-
credentialId:
|
|
3790
|
+
var ExporterDestinationS3 = z124.object({});
|
|
3791
|
+
var ExporterDestinationGithub = z124.object({
|
|
3792
|
+
credentialId: z124.string().optional(),
|
|
3994
3793
|
// Repository
|
|
3995
|
-
url:
|
|
3794
|
+
url: z124.string(),
|
|
3996
3795
|
// Location
|
|
3997
|
-
branch:
|
|
3998
|
-
relativePath: nullishToOptional(
|
|
3796
|
+
branch: z124.string(),
|
|
3797
|
+
relativePath: nullishToOptional(z124.string()),
|
|
3999
3798
|
// Commit metadata
|
|
4000
|
-
commitAuthorName: nullishToOptional(
|
|
4001
|
-
commitAuthorEmail: nullishToOptional(
|
|
3799
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3800
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4002
3801
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4003
|
-
connectionId: nullishToOptional(
|
|
4004
|
-
userId: nullishToOptional(
|
|
3802
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3803
|
+
userId: nullishToOptional(z124.number())
|
|
4005
3804
|
});
|
|
4006
|
-
var ExporterDestinationAzure =
|
|
4007
|
-
credentialId:
|
|
3805
|
+
var ExporterDestinationAzure = z124.object({
|
|
3806
|
+
credentialId: z124.string().optional(),
|
|
4008
3807
|
// Repository
|
|
4009
|
-
organizationId:
|
|
4010
|
-
projectId:
|
|
4011
|
-
repositoryId:
|
|
3808
|
+
organizationId: z124.string(),
|
|
3809
|
+
projectId: z124.string(),
|
|
3810
|
+
repositoryId: z124.string(),
|
|
4012
3811
|
// Commit metadata
|
|
4013
|
-
commitAuthorName: nullishToOptional(
|
|
4014
|
-
commitAuthorEmail: nullishToOptional(
|
|
3812
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3813
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4015
3814
|
// Location
|
|
4016
|
-
branch:
|
|
4017
|
-
relativePath: nullishToOptional(
|
|
3815
|
+
branch: z124.string(),
|
|
3816
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4018
3817
|
// Maybe not needed
|
|
4019
|
-
url: nullishToOptional(
|
|
3818
|
+
url: nullishToOptional(z124.string()),
|
|
4020
3819
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4021
|
-
connectionId: nullishToOptional(
|
|
4022
|
-
userId: nullishToOptional(
|
|
3820
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3821
|
+
userId: nullishToOptional(z124.number())
|
|
4023
3822
|
});
|
|
4024
|
-
var ExporterDestinationGitlab =
|
|
4025
|
-
credentialId:
|
|
3823
|
+
var ExporterDestinationGitlab = z124.object({
|
|
3824
|
+
credentialId: z124.string().optional(),
|
|
4026
3825
|
// Repository
|
|
4027
|
-
projectId:
|
|
3826
|
+
projectId: z124.string(),
|
|
4028
3827
|
// Commit metadata
|
|
4029
|
-
commitAuthorName: nullishToOptional(
|
|
4030
|
-
commitAuthorEmail: nullishToOptional(
|
|
3828
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3829
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4031
3830
|
// Location
|
|
4032
|
-
branch:
|
|
4033
|
-
relativePath: nullishToOptional(
|
|
3831
|
+
branch: z124.string(),
|
|
3832
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4034
3833
|
// Maybe not needed
|
|
4035
|
-
url: nullishToOptional(
|
|
3834
|
+
url: nullishToOptional(z124.string()),
|
|
4036
3835
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4037
|
-
connectionId: nullishToOptional(
|
|
4038
|
-
userId: nullishToOptional(
|
|
3836
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3837
|
+
userId: nullishToOptional(z124.number())
|
|
4039
3838
|
});
|
|
4040
|
-
var ExporterDestinationBitbucket =
|
|
4041
|
-
credentialId:
|
|
3839
|
+
var ExporterDestinationBitbucket = z124.object({
|
|
3840
|
+
credentialId: z124.string().optional(),
|
|
4042
3841
|
// Repository
|
|
4043
|
-
workspaceSlug:
|
|
4044
|
-
projectKey:
|
|
4045
|
-
repoSlug:
|
|
3842
|
+
workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3843
|
+
projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3844
|
+
repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4046
3845
|
// Commit metadata
|
|
4047
|
-
commitAuthorName: nullishToOptional(
|
|
4048
|
-
commitAuthorEmail: nullishToOptional(
|
|
3846
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3847
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4049
3848
|
// Location
|
|
4050
|
-
branch:
|
|
4051
|
-
relativePath: nullishToOptional(
|
|
3849
|
+
branch: z124.string(),
|
|
3850
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4052
3851
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4053
|
-
connectionId: nullishToOptional(
|
|
4054
|
-
userId: nullishToOptional(
|
|
3852
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3853
|
+
userId: nullishToOptional(z124.number())
|
|
4055
3854
|
});
|
|
4056
|
-
var ExportDestinationsMap =
|
|
4057
|
-
webhookUrl:
|
|
3855
|
+
var ExportDestinationsMap = z124.object({
|
|
3856
|
+
webhookUrl: z124.string().optional(),
|
|
4058
3857
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4059
3858
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4060
3859
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4062,93 +3861,93 @@ var ExportDestinationsMap = z141.object({
|
|
|
4062
3861
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4063
3862
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4064
3863
|
});
|
|
4065
|
-
var PipelineEventType =
|
|
4066
|
-
var PipelineDestinationGitType =
|
|
4067
|
-
var PipelineDestinationExtraType =
|
|
4068
|
-
var PipelineDestinationType =
|
|
4069
|
-
var Pipeline =
|
|
4070
|
-
id:
|
|
4071
|
-
name:
|
|
3864
|
+
var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3865
|
+
var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3866
|
+
var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3867
|
+
var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3868
|
+
var Pipeline = z125.object({
|
|
3869
|
+
id: z125.string(),
|
|
3870
|
+
name: z125.string(),
|
|
4072
3871
|
eventType: PipelineEventType,
|
|
4073
|
-
isEnabled:
|
|
4074
|
-
workspaceId:
|
|
4075
|
-
designSystemId:
|
|
4076
|
-
exporterId:
|
|
4077
|
-
brandPersistentId:
|
|
4078
|
-
themePersistentId:
|
|
4079
|
-
themePersistentIds:
|
|
3872
|
+
isEnabled: z125.boolean(),
|
|
3873
|
+
workspaceId: z125.string(),
|
|
3874
|
+
designSystemId: z125.string(),
|
|
3875
|
+
exporterId: z125.string(),
|
|
3876
|
+
brandPersistentId: z125.string().optional(),
|
|
3877
|
+
themePersistentId: z125.string().optional(),
|
|
3878
|
+
themePersistentIds: z125.string().array().optional(),
|
|
4080
3879
|
// Destinations
|
|
4081
3880
|
...ExportDestinationsMap.shape
|
|
4082
3881
|
});
|
|
4083
|
-
var ExportJobDump =
|
|
4084
|
-
id:
|
|
4085
|
-
createdAt:
|
|
4086
|
-
finishedAt:
|
|
4087
|
-
exportArtefacts:
|
|
3882
|
+
var ExportJobDump = z126.object({
|
|
3883
|
+
id: z126.string(),
|
|
3884
|
+
createdAt: z126.coerce.date(),
|
|
3885
|
+
finishedAt: z126.coerce.date(),
|
|
3886
|
+
exportArtefacts: z126.string()
|
|
4088
3887
|
});
|
|
4089
|
-
var CodeIntegrationDump =
|
|
3888
|
+
var CodeIntegrationDump = z126.object({
|
|
4090
3889
|
exporters: Exporter.array(),
|
|
4091
3890
|
pipelines: Pipeline.array(),
|
|
4092
3891
|
exportJobs: ExportJobDump.array()
|
|
4093
3892
|
});
|
|
4094
3893
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4095
|
-
designSystemVersionId:
|
|
4096
|
-
liveblocksId:
|
|
4097
|
-
});
|
|
4098
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4099
|
-
routingVersion:
|
|
4100
|
-
isDraftFeatureAdopted:
|
|
4101
|
-
isApprovalFeatureEnabled:
|
|
4102
|
-
approvalRequiredForPublishing:
|
|
4103
|
-
});
|
|
4104
|
-
var DesignSystemVersionRoomInitialState =
|
|
4105
|
-
pages:
|
|
4106
|
-
groups:
|
|
4107
|
-
pageSnapshots:
|
|
4108
|
-
groupSnapshots:
|
|
4109
|
-
pageApprovals:
|
|
3894
|
+
designSystemVersionId: z127.string(),
|
|
3895
|
+
liveblocksId: z127.string()
|
|
3896
|
+
});
|
|
3897
|
+
var DesignSystemVersionRoomInternalSettings = z127.object({
|
|
3898
|
+
routingVersion: z127.string(),
|
|
3899
|
+
isDraftFeatureAdopted: z127.boolean(),
|
|
3900
|
+
isApprovalFeatureEnabled: z127.boolean(),
|
|
3901
|
+
approvalRequiredForPublishing: z127.boolean()
|
|
3902
|
+
});
|
|
3903
|
+
var DesignSystemVersionRoomInitialState = z127.object({
|
|
3904
|
+
pages: z127.array(DocumentationPageV2),
|
|
3905
|
+
groups: z127.array(ElementGroup),
|
|
3906
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
3907
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
3908
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
4110
3909
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4111
3910
|
});
|
|
4112
|
-
var DesignSystemVersionRoomUpdate =
|
|
4113
|
-
pages:
|
|
4114
|
-
groups:
|
|
4115
|
-
pageIdsToDelete:
|
|
4116
|
-
groupIdsToDelete:
|
|
4117
|
-
pageSnapshots:
|
|
4118
|
-
groupSnapshots:
|
|
4119
|
-
pageSnapshotIdsToDelete:
|
|
4120
|
-
groupSnapshotIdsToDelete:
|
|
4121
|
-
pageHashesToUpdate:
|
|
4122
|
-
pageApprovals:
|
|
4123
|
-
pageApprovalIdsToDelete:
|
|
3911
|
+
var DesignSystemVersionRoomUpdate = z127.object({
|
|
3912
|
+
pages: z127.array(DocumentationPageV2),
|
|
3913
|
+
groups: z127.array(ElementGroup),
|
|
3914
|
+
pageIdsToDelete: z127.array(z127.string()),
|
|
3915
|
+
groupIdsToDelete: z127.array(z127.string()),
|
|
3916
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
3917
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
3918
|
+
pageSnapshotIdsToDelete: z127.array(z127.string()),
|
|
3919
|
+
groupSnapshotIdsToDelete: z127.array(z127.string()),
|
|
3920
|
+
pageHashesToUpdate: z127.record(z127.string(), z127.string()),
|
|
3921
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
3922
|
+
pageApprovalIdsToDelete: z127.array(z127.string())
|
|
4124
3923
|
});
|
|
4125
3924
|
var DocumentationPageRoom = Entity.extend({
|
|
4126
|
-
designSystemVersionId:
|
|
4127
|
-
documentationPageId:
|
|
4128
|
-
liveblocksId:
|
|
4129
|
-
isDirty:
|
|
3925
|
+
designSystemVersionId: z128.string(),
|
|
3926
|
+
documentationPageId: z128.string(),
|
|
3927
|
+
liveblocksId: z128.string(),
|
|
3928
|
+
isDirty: z128.boolean()
|
|
4130
3929
|
});
|
|
4131
|
-
var DocumentationPageRoomState =
|
|
4132
|
-
pageItems:
|
|
3930
|
+
var DocumentationPageRoomState = z128.object({
|
|
3931
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4133
3932
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4134
3933
|
});
|
|
4135
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3934
|
+
var DocumentationPageRoomRoomUpdate = z128.object({
|
|
4136
3935
|
page: DocumentationPageV2,
|
|
4137
3936
|
pageParent: ElementGroup
|
|
4138
3937
|
});
|
|
4139
3938
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4140
|
-
pageItems:
|
|
4141
|
-
blockDefinitions:
|
|
3939
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3940
|
+
blockDefinitions: z128.array(PageBlockDefinition)
|
|
4142
3941
|
});
|
|
4143
|
-
var RestoredDocumentationPage =
|
|
3942
|
+
var RestoredDocumentationPage = z128.object({
|
|
4144
3943
|
page: DocumentationPageV2,
|
|
4145
3944
|
pageParent: ElementGroup,
|
|
4146
3945
|
pageContent: DocumentationPageContentData,
|
|
4147
|
-
contentHash:
|
|
4148
|
-
snapshotId:
|
|
4149
|
-
roomId:
|
|
3946
|
+
contentHash: z128.string(),
|
|
3947
|
+
snapshotId: z128.string(),
|
|
3948
|
+
roomId: z128.string().optional()
|
|
4150
3949
|
});
|
|
4151
|
-
var RestoredDocumentationGroup =
|
|
3950
|
+
var RestoredDocumentationGroup = z128.object({
|
|
4152
3951
|
group: ElementGroup,
|
|
4153
3952
|
parent: ElementGroup
|
|
4154
3953
|
});
|
|
@@ -4158,28 +3957,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
4158
3957
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4159
3958
|
return RoomTypeEnum2;
|
|
4160
3959
|
})(RoomTypeEnum || {});
|
|
4161
|
-
var RoomTypeSchema =
|
|
3960
|
+
var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
|
|
4162
3961
|
var RoomType = RoomTypeSchema.enum;
|
|
4163
3962
|
var WorkspaceRoom = Entity.extend({
|
|
4164
|
-
workspaceId:
|
|
4165
|
-
liveblocksId:
|
|
3963
|
+
workspaceId: z130.string(),
|
|
3964
|
+
liveblocksId: z130.string()
|
|
4166
3965
|
});
|
|
4167
|
-
var PublishedDocsDump =
|
|
3966
|
+
var PublishedDocsDump = z131.object({
|
|
4168
3967
|
documentation: PublishedDoc,
|
|
4169
3968
|
pages: PublishedDocPage.array()
|
|
4170
3969
|
});
|
|
4171
|
-
var DocumentationThreadDump =
|
|
3970
|
+
var DocumentationThreadDump = z132.object({
|
|
4172
3971
|
thread: DocumentationCommentThread,
|
|
4173
3972
|
comments: DocumentationComment.array()
|
|
4174
3973
|
});
|
|
4175
|
-
var DocumentationPageRoomDump =
|
|
3974
|
+
var DocumentationPageRoomDump = z132.object({
|
|
4176
3975
|
room: DocumentationPageRoom,
|
|
4177
3976
|
threads: DocumentationThreadDump.array()
|
|
4178
3977
|
});
|
|
4179
|
-
var DesignSystemVersionMultiplayerDump =
|
|
3978
|
+
var DesignSystemVersionMultiplayerDump = z132.object({
|
|
4180
3979
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4181
3980
|
});
|
|
4182
|
-
var DesignSystemVersionDump =
|
|
3981
|
+
var DesignSystemVersionDump = z132.object({
|
|
4183
3982
|
version: DesignSystemVersion,
|
|
4184
3983
|
brands: Brand.array(),
|
|
4185
3984
|
elements: DesignElement.array(),
|
|
@@ -4192,50 +3991,139 @@ var DesignSystemVersionDump = z149.object({
|
|
|
4192
3991
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
4193
3992
|
assetReferences: AssetReference.array()
|
|
4194
3993
|
});
|
|
4195
|
-
var DesignSystemDump =
|
|
3994
|
+
var DesignSystemDump = z133.object({
|
|
4196
3995
|
designSystem: DesignSystem,
|
|
4197
3996
|
dataSources: DataSource.array(),
|
|
4198
3997
|
versions: DesignSystemVersionDump.array(),
|
|
4199
3998
|
customDomain: CustomDomain.optional(),
|
|
4200
3999
|
files: Asset.array()
|
|
4201
4000
|
});
|
|
4202
|
-
var
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
var
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4001
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
4002
|
+
var ExternalServiceType = z134.union([
|
|
4003
|
+
z134.literal("figma"),
|
|
4004
|
+
z134.literal("github"),
|
|
4005
|
+
z134.literal("azure"),
|
|
4006
|
+
z134.literal("gitlab"),
|
|
4007
|
+
z134.literal("bitbucket")
|
|
4008
|
+
]);
|
|
4009
|
+
var IntegrationUserInfo = z134.object({
|
|
4010
|
+
id: z134.string(),
|
|
4011
|
+
handle: z134.string().optional(),
|
|
4012
|
+
avatarUrl: z134.string().optional(),
|
|
4013
|
+
email: z134.string().optional(),
|
|
4014
|
+
authType: IntegrationAuthType.optional(),
|
|
4015
|
+
customUrl: z134.string().optional()
|
|
4016
|
+
});
|
|
4017
|
+
var UserLinkedIntegrations = z134.object({
|
|
4018
|
+
figma: IntegrationUserInfo.optional(),
|
|
4019
|
+
github: IntegrationUserInfo.array().optional(),
|
|
4020
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
4021
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
4022
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
4023
|
+
});
|
|
4024
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4025
|
+
userId: z135.string(),
|
|
4026
|
+
createdAt: z135.coerce.date(),
|
|
4027
|
+
deleteAt: z135.coerce.date()
|
|
4028
|
+
});
|
|
4029
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4030
|
+
createdAt: true
|
|
4031
|
+
});
|
|
4032
|
+
var UserIdentity = z136.object({
|
|
4033
|
+
id: z136.string(),
|
|
4034
|
+
userId: z136.string()
|
|
4035
|
+
});
|
|
4036
|
+
var UserMinified = z137.object({
|
|
4037
|
+
id: z137.string(),
|
|
4038
|
+
name: z137.string(),
|
|
4039
|
+
email: z137.string(),
|
|
4040
|
+
avatar: z137.string().optional()
|
|
4041
|
+
});
|
|
4042
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
4043
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4044
|
+
});
|
|
4045
|
+
var UserNotificationSettings = z138.object({
|
|
4046
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4047
|
+
});
|
|
4048
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4049
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4050
|
+
var UserOnboarding = z139.object({
|
|
4051
|
+
companyName: z139.string().optional(),
|
|
4052
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4053
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4054
|
+
department: UserOnboardingDepartment.optional(),
|
|
4055
|
+
jobTitle: z139.string().optional(),
|
|
4056
|
+
phase: z139.string().optional(),
|
|
4057
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4058
|
+
designSystemName: z139.string().optional(),
|
|
4059
|
+
defaultDestination: z139.string().optional(),
|
|
4060
|
+
figmaUrl: z139.string().optional(),
|
|
4061
|
+
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4062
|
+
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4063
|
+
});
|
|
4064
|
+
var UserProfile = z139.object({
|
|
4065
|
+
name: z139.string(),
|
|
4066
|
+
avatar: z139.string().optional(),
|
|
4067
|
+
nickname: z139.string().optional(),
|
|
4068
|
+
onboarding: UserOnboarding.optional()
|
|
4069
|
+
});
|
|
4070
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4071
|
+
avatar: true
|
|
4072
|
+
});
|
|
4073
|
+
var UserTest = z140.object({
|
|
4074
|
+
id: z140.string(),
|
|
4075
|
+
email: z140.string()
|
|
4076
|
+
});
|
|
4077
|
+
var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
|
|
4078
|
+
var User = z141.object({
|
|
4079
|
+
id: z141.string(),
|
|
4080
|
+
email: z141.string(),
|
|
4081
|
+
emailVerified: z141.boolean(),
|
|
4082
|
+
createdAt: z141.coerce.date(),
|
|
4083
|
+
trialExpiresAt: z141.coerce.date().optional(),
|
|
4084
|
+
profile: UserProfile,
|
|
4085
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4086
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4087
|
+
isProtected: z141.boolean(),
|
|
4088
|
+
source: UserSource.optional()
|
|
4089
|
+
});
|
|
4090
|
+
var IntegrationDesignSystem = z142.object({
|
|
4091
|
+
designSystemId: z142.string(),
|
|
4092
|
+
brandId: z142.string(),
|
|
4093
|
+
title: z142.string().optional(),
|
|
4094
|
+
userId: z142.string().optional(),
|
|
4095
|
+
date: z142.coerce.date().optional()
|
|
4096
|
+
});
|
|
4097
|
+
var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4098
|
+
var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
|
|
4099
|
+
var IntegrationCredentialsProfile = z142.object({
|
|
4100
|
+
id: nullishToOptional(z142.string()),
|
|
4101
|
+
email: nullishToOptional(z142.string()),
|
|
4102
|
+
handle: nullishToOptional(z142.string()),
|
|
4103
|
+
type: nullishToOptional(z142.string()),
|
|
4104
|
+
avatarUrl: nullishToOptional(z142.string()),
|
|
4105
|
+
organization: nullishToOptional(z142.string()),
|
|
4106
|
+
collection: nullishToOptional(z142.string())
|
|
4107
|
+
});
|
|
4108
|
+
var IntegrationCredentials = z142.object({
|
|
4109
|
+
id: z142.string(),
|
|
4222
4110
|
type: IntegrationCredentialsType,
|
|
4223
|
-
integrationId:
|
|
4224
|
-
accessToken:
|
|
4225
|
-
userId:
|
|
4226
|
-
createdAt:
|
|
4227
|
-
refreshToken:
|
|
4228
|
-
tokenName:
|
|
4229
|
-
expiresAt:
|
|
4230
|
-
refreshedAt:
|
|
4231
|
-
username:
|
|
4232
|
-
appInstallationId:
|
|
4111
|
+
integrationId: z142.string(),
|
|
4112
|
+
accessToken: z142.string(),
|
|
4113
|
+
userId: z142.string(),
|
|
4114
|
+
createdAt: z142.coerce.date(),
|
|
4115
|
+
refreshToken: z142.string().optional(),
|
|
4116
|
+
tokenName: z142.string().optional(),
|
|
4117
|
+
expiresAt: z142.coerce.date().optional(),
|
|
4118
|
+
refreshedAt: z142.coerce.date().optional(),
|
|
4119
|
+
username: z142.string().optional(),
|
|
4120
|
+
appInstallationId: z142.string().optional(),
|
|
4233
4121
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4234
|
-
customUrl:
|
|
4122
|
+
customUrl: z142.string().optional(),
|
|
4235
4123
|
state: IntegrationCredentialsState,
|
|
4236
4124
|
user: UserMinified.optional()
|
|
4237
4125
|
});
|
|
4238
|
-
var ExtendedIntegrationType =
|
|
4126
|
+
var ExtendedIntegrationType = z142.enum([
|
|
4239
4127
|
"Figma",
|
|
4240
4128
|
"Github",
|
|
4241
4129
|
"Gitlab",
|
|
@@ -4246,26 +4134,26 @@ var ExtendedIntegrationType = z151.enum([
|
|
|
4246
4134
|
]);
|
|
4247
4135
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4248
4136
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4249
|
-
var Integration =
|
|
4250
|
-
id:
|
|
4251
|
-
workspaceId:
|
|
4137
|
+
var Integration = z142.object({
|
|
4138
|
+
id: z142.string(),
|
|
4139
|
+
workspaceId: z142.string(),
|
|
4252
4140
|
type: IntegrationType,
|
|
4253
|
-
createdAt:
|
|
4254
|
-
integrationCredentials:
|
|
4255
|
-
});
|
|
4256
|
-
var IntegrationToken =
|
|
4257
|
-
access_token:
|
|
4258
|
-
refresh_token:
|
|
4259
|
-
expires_in:
|
|
4260
|
-
token_type:
|
|
4261
|
-
token_name:
|
|
4262
|
-
token_azure_organization_name:
|
|
4141
|
+
createdAt: z142.coerce.date(),
|
|
4142
|
+
integrationCredentials: z142.array(IntegrationCredentials).optional()
|
|
4143
|
+
});
|
|
4144
|
+
var IntegrationToken = z142.object({
|
|
4145
|
+
access_token: z142.string(),
|
|
4146
|
+
refresh_token: z142.string().optional(),
|
|
4147
|
+
expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
|
|
4148
|
+
token_type: z142.string().optional(),
|
|
4149
|
+
token_name: z142.string().optional(),
|
|
4150
|
+
token_azure_organization_name: z142.string().optional(),
|
|
4263
4151
|
// Azure Cloud PAT only
|
|
4264
|
-
token_azure_collection_name:
|
|
4152
|
+
token_azure_collection_name: z142.string().optional(),
|
|
4265
4153
|
// Azure Server PAT only
|
|
4266
|
-
token_bitbucket_username:
|
|
4154
|
+
token_bitbucket_username: z142.string().optional(),
|
|
4267
4155
|
// Bitbucket only
|
|
4268
|
-
custom_url:
|
|
4156
|
+
custom_url: z142.string().optional().transform((value) => {
|
|
4269
4157
|
if (!value?.trim())
|
|
4270
4158
|
return void 0;
|
|
4271
4159
|
return formatCustomUrl(value);
|
|
@@ -4301,38 +4189,170 @@ function formatCustomUrl(url) {
|
|
|
4301
4189
|
}
|
|
4302
4190
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4303
4191
|
}
|
|
4304
|
-
var
|
|
4192
|
+
var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4193
|
+
var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4194
|
+
var NpmRegistryBasicAuthConfig = z143.object({
|
|
4195
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4196
|
+
username: z143.string(),
|
|
4197
|
+
password: z143.string()
|
|
4198
|
+
});
|
|
4199
|
+
var NpmRegistryBearerAuthConfig = z143.object({
|
|
4200
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4201
|
+
accessToken: z143.string()
|
|
4202
|
+
});
|
|
4203
|
+
var NpmRegistryNoAuthConfig = z143.object({
|
|
4204
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.None)
|
|
4205
|
+
});
|
|
4206
|
+
var NpmRegistrCustomAuthConfig = z143.object({
|
|
4207
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4208
|
+
authHeaderName: z143.string(),
|
|
4209
|
+
authHeaderValue: z143.string()
|
|
4210
|
+
});
|
|
4211
|
+
var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
|
|
4212
|
+
NpmRegistryBasicAuthConfig,
|
|
4213
|
+
NpmRegistryBearerAuthConfig,
|
|
4214
|
+
NpmRegistryNoAuthConfig,
|
|
4215
|
+
NpmRegistrCustomAuthConfig
|
|
4216
|
+
]);
|
|
4217
|
+
var NpmRegistryConfigBase = z143.object({
|
|
4218
|
+
registryType: NpmRegistryType,
|
|
4219
|
+
enabledScopes: z143.array(z143.string()),
|
|
4220
|
+
customRegistryUrl: z143.string().optional(),
|
|
4221
|
+
bypassProxy: z143.boolean().default(false),
|
|
4222
|
+
npmProxyRegistryConfigId: z143.string().optional(),
|
|
4223
|
+
npmProxyVersion: z143.number().optional()
|
|
4224
|
+
});
|
|
4225
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4226
|
+
var SsoProvider = z144.object({
|
|
4227
|
+
providerId: z144.string(),
|
|
4228
|
+
defaultAutoInviteValue: z144.boolean(),
|
|
4229
|
+
autoInviteDomains: z144.record(z144.string(), z144.boolean()),
|
|
4230
|
+
skipDocsSupernovaLogin: z144.boolean(),
|
|
4231
|
+
areInvitesDisabled: z144.boolean(),
|
|
4232
|
+
isTestMode: z144.boolean(),
|
|
4233
|
+
emailDomains: z144.array(z144.string()),
|
|
4234
|
+
metadataXml: z144.string().nullish()
|
|
4235
|
+
});
|
|
4236
|
+
var isValidCIDR = (value) => {
|
|
4237
|
+
return IPCIDR.isValidAddress(value);
|
|
4238
|
+
};
|
|
4239
|
+
var WorkspaceIpWhitelistEntry = z145.object({
|
|
4240
|
+
isEnabled: z145.boolean(),
|
|
4241
|
+
name: z145.string(),
|
|
4242
|
+
range: z145.string().refine(isValidCIDR, {
|
|
4243
|
+
message: "Invalid IP CIDR"
|
|
4244
|
+
})
|
|
4245
|
+
});
|
|
4246
|
+
var WorkspaceIpSettings = z145.object({
|
|
4247
|
+
isEnabledForCloud: z145.boolean(),
|
|
4248
|
+
isEnabledForDocs: z145.boolean(),
|
|
4249
|
+
entries: z145.array(WorkspaceIpWhitelistEntry)
|
|
4250
|
+
});
|
|
4251
|
+
var WorkspaceProfile = z145.object({
|
|
4252
|
+
name: z145.string(),
|
|
4253
|
+
handle: z145.string(),
|
|
4254
|
+
color: z145.string(),
|
|
4255
|
+
avatar: nullishToOptional(z145.string()),
|
|
4256
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
4257
|
+
});
|
|
4258
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4259
|
+
avatar: true
|
|
4260
|
+
});
|
|
4261
|
+
var Workspace = z145.object({
|
|
4262
|
+
id: z145.string(),
|
|
4263
|
+
profile: WorkspaceProfile,
|
|
4264
|
+
subscription: Subscription,
|
|
4265
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4266
|
+
sso: nullishToOptional(SsoProvider),
|
|
4267
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4268
|
+
});
|
|
4269
|
+
var WorkspaceWithDesignSystems = z145.object({
|
|
4270
|
+
workspace: Workspace,
|
|
4271
|
+
designSystems: z145.array(DesignSystem)
|
|
4272
|
+
});
|
|
4273
|
+
var WorkspaceDump = z146.object({
|
|
4305
4274
|
workspace: Workspace,
|
|
4306
4275
|
designSystems: DesignSystemDump.array(),
|
|
4307
4276
|
codeIntegration: CodeIntegrationDump,
|
|
4308
4277
|
integrations: Integration.array()
|
|
4309
4278
|
});
|
|
4310
|
-
var UserDump =
|
|
4279
|
+
var UserDump = z147.object({
|
|
4311
4280
|
user: User,
|
|
4312
4281
|
workspaces: WorkspaceDump.array()
|
|
4313
4282
|
});
|
|
4314
|
-
var NpmProxyToken =
|
|
4315
|
-
access:
|
|
4316
|
-
expiresAt:
|
|
4283
|
+
var NpmProxyToken = z148.object({
|
|
4284
|
+
access: z148.string(),
|
|
4285
|
+
expiresAt: z148.number()
|
|
4317
4286
|
});
|
|
4318
|
-
var SessionData =
|
|
4319
|
-
returnToUrl:
|
|
4287
|
+
var SessionData = z148.object({
|
|
4288
|
+
returnToUrl: z148.string().optional(),
|
|
4320
4289
|
npmProxyToken: NpmProxyToken.optional()
|
|
4321
4290
|
});
|
|
4322
|
-
var Session =
|
|
4323
|
-
id:
|
|
4324
|
-
expiresAt:
|
|
4325
|
-
userId:
|
|
4291
|
+
var Session = z148.object({
|
|
4292
|
+
id: z148.string(),
|
|
4293
|
+
expiresAt: z148.coerce.date(),
|
|
4294
|
+
userId: z148.string().nullable(),
|
|
4326
4295
|
data: SessionData
|
|
4327
4296
|
});
|
|
4328
|
-
var AuthTokens =
|
|
4329
|
-
access:
|
|
4330
|
-
refresh:
|
|
4297
|
+
var AuthTokens = z148.object({
|
|
4298
|
+
access: z148.string(),
|
|
4299
|
+
refresh: z148.string()
|
|
4331
4300
|
});
|
|
4332
|
-
var UserSession =
|
|
4301
|
+
var UserSession = z148.object({
|
|
4333
4302
|
session: Session,
|
|
4334
4303
|
user: User.nullable()
|
|
4335
4304
|
});
|
|
4305
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
4306
|
+
var UserInvite = z149.object({
|
|
4307
|
+
email: z149.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4308
|
+
role: WorkspaceRoleSchema
|
|
4309
|
+
});
|
|
4310
|
+
var UserInvites = z149.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4311
|
+
var WorkspaceConfigurationUpdate = z150.object({
|
|
4312
|
+
id: z150.string(),
|
|
4313
|
+
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4314
|
+
sso: SsoProvider.optional(),
|
|
4315
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4316
|
+
profile: WorkspaceProfileUpdate.optional()
|
|
4317
|
+
});
|
|
4318
|
+
var WorkspaceContext = z151.object({
|
|
4319
|
+
workspaceId: z151.string(),
|
|
4320
|
+
product: ProductCodeSchema,
|
|
4321
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4322
|
+
publicDesignSystem: z151.boolean().optional()
|
|
4323
|
+
});
|
|
4324
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4325
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4326
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
4327
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
4328
|
+
var CreateWorkspaceInput = z152.object({
|
|
4329
|
+
name: z152.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4330
|
+
handle: z152.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4331
|
+
});
|
|
4332
|
+
var WorkspaceInvitation = z153.object({
|
|
4333
|
+
id: z153.string(),
|
|
4334
|
+
email: z153.string().email(),
|
|
4335
|
+
createdAt: z153.coerce.date(),
|
|
4336
|
+
resentAt: z153.coerce.date().nullish(),
|
|
4337
|
+
role: z153.nativeEnum(WorkspaceRole),
|
|
4338
|
+
workspaceId: z153.string(),
|
|
4339
|
+
invitedBy: z153.string()
|
|
4340
|
+
});
|
|
4341
|
+
var WorkspaceMembership = z154.object({
|
|
4342
|
+
id: z154.string(),
|
|
4343
|
+
userId: z154.string(),
|
|
4344
|
+
workspaceId: z154.string(),
|
|
4345
|
+
workspaceRole: z154.nativeEnum(WorkspaceRole),
|
|
4346
|
+
notificationSettings: UserNotificationSettings
|
|
4347
|
+
});
|
|
4348
|
+
var UpdateMembershipRolesInput = z154.object({
|
|
4349
|
+
members: z154.array(
|
|
4350
|
+
z154.object({
|
|
4351
|
+
userId: z154.string(),
|
|
4352
|
+
role: z154.nativeEnum(WorkspaceRole)
|
|
4353
|
+
})
|
|
4354
|
+
)
|
|
4355
|
+
});
|
|
4336
4356
|
var DesignSystemInviteEmailRecipient = z155.object({
|
|
4337
4357
|
email: z155.string(),
|
|
4338
4358
|
role: WorkspaceRoleSchema
|
|
@@ -5011,7 +5031,7 @@ var DTOPagination = z174.object({
|
|
|
5011
5031
|
});
|
|
5012
5032
|
|
|
5013
5033
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5014
|
-
import { z as
|
|
5034
|
+
import { z as z200 } from "zod";
|
|
5015
5035
|
|
|
5016
5036
|
// src/api/dto/design-systems/brand.ts
|
|
5017
5037
|
import { z as z175 } from "zod";
|
|
@@ -5126,23 +5146,44 @@ var DTODataSourceCreationResponse = z176.object({
|
|
|
5126
5146
|
});
|
|
5127
5147
|
|
|
5128
5148
|
// src/api/dto/design-systems/design-system.ts
|
|
5129
|
-
import { z as
|
|
5149
|
+
import { z as z179 } from "zod";
|
|
5130
5150
|
|
|
5131
5151
|
// src/api/dto/design-systems/members.ts
|
|
5152
|
+
import { z as z178 } from "zod";
|
|
5153
|
+
|
|
5154
|
+
// src/api/dto/design-systems/role.ts
|
|
5132
5155
|
import { z as z177 } from "zod";
|
|
5133
|
-
var
|
|
5134
|
-
|
|
5156
|
+
var DTODesignSystemRole = z177.enum([
|
|
5157
|
+
WorkspaceRole.Admin,
|
|
5158
|
+
WorkspaceRole.Contributor,
|
|
5159
|
+
WorkspaceRole.Creator,
|
|
5160
|
+
WorkspaceRole.Viewer
|
|
5161
|
+
]);
|
|
5162
|
+
|
|
5163
|
+
// src/api/dto/design-systems/members.ts
|
|
5164
|
+
var DTODesignSystemMember = z178.object({
|
|
5165
|
+
userId: z178.string(),
|
|
5166
|
+
/**
|
|
5167
|
+
* Role that the member has in the design system,
|
|
5168
|
+
* undefined if set to inherit from workspace
|
|
5169
|
+
*/
|
|
5170
|
+
designSystemRole: DTODesignSystemRole.optional()
|
|
5135
5171
|
});
|
|
5136
|
-
var DTODesignSystemInvitation =
|
|
5137
|
-
id:
|
|
5138
|
-
workspaceInvitationId:
|
|
5172
|
+
var DTODesignSystemInvitation = z178.object({
|
|
5173
|
+
id: z178.string(),
|
|
5174
|
+
workspaceInvitationId: z178.string(),
|
|
5175
|
+
/**
|
|
5176
|
+
* Role that the invitation has in the design system,
|
|
5177
|
+
* undefined if set to inherit from workspace
|
|
5178
|
+
*/
|
|
5179
|
+
designSystemRole: DTODesignSystemRole.optional()
|
|
5139
5180
|
});
|
|
5140
|
-
var DTODesignSystemMemberListResponse =
|
|
5181
|
+
var DTODesignSystemMemberListResponse = z178.object({
|
|
5141
5182
|
members: DTODesignSystemMember.array(),
|
|
5142
5183
|
invitations: DTODesignSystemInvitation.array()
|
|
5143
5184
|
});
|
|
5144
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5145
|
-
ok:
|
|
5185
|
+
var DTODesignSystemMembersUpdateResponse = z178.object({
|
|
5186
|
+
ok: z178.literal(true)
|
|
5146
5187
|
});
|
|
5147
5188
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5148
5189
|
|
|
@@ -5153,26 +5194,34 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5153
5194
|
docExporterId: true
|
|
5154
5195
|
}).extend({
|
|
5155
5196
|
meta: ObjectMeta,
|
|
5156
|
-
docExporterId:
|
|
5157
|
-
sources:
|
|
5197
|
+
docExporterId: z179.string(),
|
|
5198
|
+
sources: z179.array(z179.any()),
|
|
5158
5199
|
/**
|
|
5159
5200
|
* Whether or not user who is requesting the design system
|
|
5160
5201
|
* has access to the design system's contents.
|
|
5161
5202
|
*/
|
|
5162
|
-
isAvailableToUser:
|
|
5163
|
-
|
|
5203
|
+
isAvailableToUser: z179.boolean(),
|
|
5204
|
+
/**
|
|
5205
|
+
* @deprecated
|
|
5206
|
+
*/
|
|
5207
|
+
role: WorkspaceRoleSchema.optional(),
|
|
5208
|
+
/**
|
|
5209
|
+
* User's role within the design system that can come either from
|
|
5210
|
+
* the design system or workspace.
|
|
5211
|
+
*/
|
|
5212
|
+
effectiveRole: DTODesignSystemRole.optional()
|
|
5164
5213
|
});
|
|
5165
|
-
var DTODesignSystemResponse =
|
|
5214
|
+
var DTODesignSystemResponse = z179.object({
|
|
5166
5215
|
designSystem: DTODesignSystem
|
|
5167
5216
|
});
|
|
5168
|
-
var DTODesignSystemsListResponse =
|
|
5217
|
+
var DTODesignSystemsListResponse = z179.object({
|
|
5169
5218
|
designSystems: DTODesignSystem.array()
|
|
5170
5219
|
});
|
|
5171
|
-
var DTODesignSystemCreateInput =
|
|
5172
|
-
workspaceId:
|
|
5220
|
+
var DTODesignSystemCreateInput = z179.object({
|
|
5221
|
+
workspaceId: z179.string(),
|
|
5173
5222
|
meta: ObjectMeta.optional(),
|
|
5174
|
-
name:
|
|
5175
|
-
description:
|
|
5223
|
+
name: z179.string().min(2).max(64).optional(),
|
|
5224
|
+
description: z179.string().max(1024).optional(),
|
|
5176
5225
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5177
5226
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5178
5227
|
usersToInvite: true,
|
|
@@ -5182,37 +5231,37 @@ var DTODesignSystemCreateInput = z178.object({
|
|
|
5182
5231
|
});
|
|
5183
5232
|
|
|
5184
5233
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5185
|
-
import { z as
|
|
5186
|
-
var DTODiffCountBase =
|
|
5187
|
-
created:
|
|
5188
|
-
updated:
|
|
5189
|
-
deleted:
|
|
5234
|
+
import { z as z180 } from "zod";
|
|
5235
|
+
var DTODiffCountBase = z180.object({
|
|
5236
|
+
created: z180.number(),
|
|
5237
|
+
updated: z180.number(),
|
|
5238
|
+
deleted: z180.number()
|
|
5190
5239
|
});
|
|
5191
|
-
var DTODesignElementsDataDiffResponse =
|
|
5240
|
+
var DTODesignElementsDataDiffResponse = z180.object({
|
|
5192
5241
|
tokens: DTODiffCountBase,
|
|
5193
5242
|
assets: DTODiffCountBase
|
|
5194
5243
|
});
|
|
5195
5244
|
|
|
5196
5245
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5197
|
-
import { z as
|
|
5198
|
-
var DTOExporterProperty =
|
|
5199
|
-
var DTOExporterPropertyListResponse =
|
|
5246
|
+
import { z as z181 } from "zod";
|
|
5247
|
+
var DTOExporterProperty = z181.any({});
|
|
5248
|
+
var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
|
|
5200
5249
|
|
|
5201
5250
|
// src/api/dto/design-systems/version.ts
|
|
5202
|
-
import { z as
|
|
5251
|
+
import { z as z192 } from "zod";
|
|
5203
5252
|
|
|
5204
5253
|
// src/api/payloads/design-systems/brand.ts
|
|
5205
|
-
import { z as
|
|
5206
|
-
var DTOCreateBrandInput =
|
|
5207
|
-
persistentId:
|
|
5208
|
-
meta:
|
|
5209
|
-
name:
|
|
5210
|
-
description:
|
|
5254
|
+
import { z as z182 } from "zod";
|
|
5255
|
+
var DTOCreateBrandInput = z182.object({
|
|
5256
|
+
persistentId: z182.string().uuid(),
|
|
5257
|
+
meta: z182.object({
|
|
5258
|
+
name: z182.string(),
|
|
5259
|
+
description: z182.string()
|
|
5211
5260
|
})
|
|
5212
5261
|
});
|
|
5213
5262
|
|
|
5214
5263
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5215
|
-
import { z as
|
|
5264
|
+
import { z as z183 } from "zod";
|
|
5216
5265
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5217
5266
|
id: true,
|
|
5218
5267
|
workspaceId: true,
|
|
@@ -5224,40 +5273,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5224
5273
|
}).extend({
|
|
5225
5274
|
meta: ObjectMeta.partial().optional()
|
|
5226
5275
|
});
|
|
5227
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5276
|
+
var DTODesignSystemUpdateAccessModeInput = z183.object({
|
|
5228
5277
|
accessMode: DesignSystemAccessMode,
|
|
5229
|
-
retain:
|
|
5230
|
-
userIds:
|
|
5231
|
-
inviteIds:
|
|
5278
|
+
retain: z183.object({
|
|
5279
|
+
userIds: z183.string().array(),
|
|
5280
|
+
inviteIds: z183.string().array()
|
|
5232
5281
|
}).optional()
|
|
5233
5282
|
});
|
|
5234
5283
|
|
|
5235
5284
|
// src/api/payloads/design-systems/version.ts
|
|
5236
|
-
import { z as
|
|
5237
|
-
var ObjectMeta2 =
|
|
5238
|
-
name:
|
|
5239
|
-
description:
|
|
5285
|
+
import { z as z184 } from "zod";
|
|
5286
|
+
var ObjectMeta2 = z184.object({
|
|
5287
|
+
name: z184.string().max(150).optional(),
|
|
5288
|
+
description: z184.string().max(2e3).optional()
|
|
5240
5289
|
});
|
|
5241
5290
|
function validateDesignSystemVersion(version) {
|
|
5242
5291
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5243
5292
|
return urlCompliantRegex.test(version);
|
|
5244
5293
|
}
|
|
5245
|
-
var DTOCreateVersionInput =
|
|
5294
|
+
var DTOCreateVersionInput = z184.object({
|
|
5246
5295
|
meta: ObjectMeta2,
|
|
5247
|
-
version:
|
|
5296
|
+
version: z184.string().refine(validateDesignSystemVersion, {
|
|
5248
5297
|
message: "Invalid semantic versioning format"
|
|
5249
5298
|
}),
|
|
5250
|
-
changeLog:
|
|
5299
|
+
changeLog: z184.string().optional()
|
|
5251
5300
|
});
|
|
5252
|
-
var DTOUpdateVersionInput =
|
|
5301
|
+
var DTOUpdateVersionInput = z184.object({
|
|
5253
5302
|
meta: ObjectMeta2,
|
|
5254
|
-
version:
|
|
5303
|
+
version: z184.string(),
|
|
5255
5304
|
// required for PUT, but not editable
|
|
5256
|
-
changeLog:
|
|
5305
|
+
changeLog: z184.string()
|
|
5257
5306
|
});
|
|
5258
5307
|
|
|
5259
5308
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5260
|
-
import { z as
|
|
5309
|
+
import { z as z185 } from "zod";
|
|
5261
5310
|
|
|
5262
5311
|
// src/api/dto/documentation/block-definition.ts
|
|
5263
5312
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5269,60 +5318,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5269
5318
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5270
5319
|
|
|
5271
5320
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5272
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5273
|
-
definitions:
|
|
5321
|
+
var DTOGetBlockDefinitionsOutput = z185.object({
|
|
5322
|
+
definitions: z185.array(DTOPageBlockDefinition)
|
|
5274
5323
|
});
|
|
5275
5324
|
|
|
5276
5325
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5277
|
-
import { z as
|
|
5278
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5279
|
-
environment:
|
|
5326
|
+
import { z as z186 } from "zod";
|
|
5327
|
+
var DTODocumentationPublishTypeQueryParams = z186.object({
|
|
5328
|
+
environment: z186.enum(["Live", "Preview"])
|
|
5280
5329
|
});
|
|
5281
5330
|
|
|
5282
5331
|
// src/api/payloads/export/pipeline.ts
|
|
5283
|
-
import { z as
|
|
5284
|
-
var DTOPipelineCreateBody =
|
|
5285
|
-
name:
|
|
5286
|
-
exporterId:
|
|
5287
|
-
designSystemId:
|
|
5288
|
-
isEnabled:
|
|
5332
|
+
import { z as z187 } from "zod";
|
|
5333
|
+
var DTOPipelineCreateBody = z187.object({
|
|
5334
|
+
name: z187.string(),
|
|
5335
|
+
exporterId: z187.string(),
|
|
5336
|
+
designSystemId: z187.string(),
|
|
5337
|
+
isEnabled: z187.boolean(),
|
|
5289
5338
|
eventType: PipelineEventType,
|
|
5290
|
-
brandPersistentId:
|
|
5291
|
-
themePersistentId:
|
|
5292
|
-
themePersistentIds:
|
|
5339
|
+
brandPersistentId: z187.string().optional(),
|
|
5340
|
+
themePersistentId: z187.string().optional(),
|
|
5341
|
+
themePersistentIds: z187.string().array().optional(),
|
|
5293
5342
|
destination: PipelineDestinationType.optional(),
|
|
5294
5343
|
gitQuery: GitObjectsQuery,
|
|
5295
|
-
destinations:
|
|
5344
|
+
destinations: z187.object({
|
|
5296
5345
|
s3: ExporterDestinationS3.nullish(),
|
|
5297
5346
|
azure: ExporterDestinationAzure.nullish(),
|
|
5298
5347
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5299
5348
|
github: ExporterDestinationGithub.nullish(),
|
|
5300
5349
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5301
5350
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5302
|
-
webhookUrl:
|
|
5351
|
+
webhookUrl: z187.string().nullish()
|
|
5303
5352
|
})
|
|
5304
5353
|
});
|
|
5305
5354
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5306
|
-
id:
|
|
5355
|
+
id: z187.string()
|
|
5307
5356
|
});
|
|
5308
|
-
var DTOPipelineTriggerBody =
|
|
5309
|
-
designSystemVersionId:
|
|
5357
|
+
var DTOPipelineTriggerBody = z187.object({
|
|
5358
|
+
designSystemVersionId: z187.string()
|
|
5310
5359
|
});
|
|
5311
5360
|
|
|
5312
5361
|
// src/api/payloads/liveblocks/auth.ts
|
|
5313
|
-
import { z as
|
|
5314
|
-
var DTOLiveblocksAuthRequest =
|
|
5315
|
-
room:
|
|
5362
|
+
import { z as z188 } from "zod";
|
|
5363
|
+
var DTOLiveblocksAuthRequest = z188.object({
|
|
5364
|
+
room: z188.string().optional()
|
|
5316
5365
|
});
|
|
5317
5366
|
|
|
5318
5367
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5319
|
-
import { z as
|
|
5320
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5368
|
+
import { z as z189 } from "zod";
|
|
5369
|
+
var DTOUpdateUserNotificationSettingsPayload = z189.object({
|
|
5321
5370
|
notificationSettings: UserNotificationSettings
|
|
5322
5371
|
});
|
|
5323
|
-
var DTOUserNotificationSettingsResponse =
|
|
5324
|
-
userId:
|
|
5325
|
-
workspaceId:
|
|
5372
|
+
var DTOUserNotificationSettingsResponse = z189.object({
|
|
5373
|
+
userId: z189.string(),
|
|
5374
|
+
workspaceId: z189.string(),
|
|
5326
5375
|
notificationSettings: UserNotificationSettings
|
|
5327
5376
|
});
|
|
5328
5377
|
|
|
@@ -5330,7 +5379,7 @@ var DTOUserNotificationSettingsResponse = z188.object({
|
|
|
5330
5379
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5331
5380
|
|
|
5332
5381
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5333
|
-
import { z as
|
|
5382
|
+
import { z as z190 } from "zod";
|
|
5334
5383
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5335
5384
|
function validateSsoPayload(ssoPayload) {
|
|
5336
5385
|
const keys = [];
|
|
@@ -5353,21 +5402,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5353
5402
|
keys
|
|
5354
5403
|
};
|
|
5355
5404
|
}
|
|
5356
|
-
var NpmRegistryInput =
|
|
5357
|
-
enabledScopes:
|
|
5358
|
-
customRegistryUrl:
|
|
5359
|
-
bypassProxy:
|
|
5360
|
-
npmProxyRegistryConfigId:
|
|
5361
|
-
npmProxyVersion:
|
|
5362
|
-
registryType:
|
|
5363
|
-
authType:
|
|
5364
|
-
authHeaderName:
|
|
5365
|
-
authHeaderValue:
|
|
5366
|
-
accessToken:
|
|
5367
|
-
username:
|
|
5368
|
-
password:
|
|
5369
|
-
});
|
|
5370
|
-
var WorkspaceConfigurationPayload =
|
|
5405
|
+
var NpmRegistryInput = z190.object({
|
|
5406
|
+
enabledScopes: z190.array(z190.string()),
|
|
5407
|
+
customRegistryUrl: z190.string().optional(),
|
|
5408
|
+
bypassProxy: z190.boolean().optional(),
|
|
5409
|
+
npmProxyRegistryConfigId: z190.string().optional(),
|
|
5410
|
+
npmProxyVersion: z190.number().optional(),
|
|
5411
|
+
registryType: z190.string(),
|
|
5412
|
+
authType: z190.string(),
|
|
5413
|
+
authHeaderName: z190.string(),
|
|
5414
|
+
authHeaderValue: z190.string(),
|
|
5415
|
+
accessToken: z190.string(),
|
|
5416
|
+
username: z190.string(),
|
|
5417
|
+
password: z190.string()
|
|
5418
|
+
});
|
|
5419
|
+
var WorkspaceConfigurationPayload = z190.object({
|
|
5371
5420
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5372
5421
|
sso: SsoProvider.partial().optional(),
|
|
5373
5422
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5375,211 +5424,211 @@ var WorkspaceConfigurationPayload = z189.object({
|
|
|
5375
5424
|
});
|
|
5376
5425
|
|
|
5377
5426
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5378
|
-
import { z as
|
|
5379
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5427
|
+
import { z as z191 } from "zod";
|
|
5428
|
+
var DTOWorkspaceIntegrationOauthInput = z191.object({
|
|
5380
5429
|
type: IntegrationType
|
|
5381
5430
|
});
|
|
5382
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5383
|
-
userId:
|
|
5431
|
+
var DTOWorkspaceIntegrationPATInput = z191.object({
|
|
5432
|
+
userId: z191.string(),
|
|
5384
5433
|
type: IntegrationType,
|
|
5385
5434
|
token: IntegrationToken
|
|
5386
5435
|
});
|
|
5387
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5388
|
-
organization:
|
|
5436
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z191.object({
|
|
5437
|
+
organization: z191.string().optional(),
|
|
5389
5438
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5390
|
-
project:
|
|
5439
|
+
project: z191.string().optional(),
|
|
5391
5440
|
// Only for Bitbucket and Azure
|
|
5392
|
-
repository:
|
|
5441
|
+
repository: z191.string().optional(),
|
|
5393
5442
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5394
|
-
branch:
|
|
5443
|
+
branch: z191.string().optional(),
|
|
5395
5444
|
// For all providers, useful for PR creations.
|
|
5396
|
-
user:
|
|
5445
|
+
user: z191.string().optional()
|
|
5397
5446
|
// Only for Gitlab User Repositories
|
|
5398
5447
|
});
|
|
5399
5448
|
|
|
5400
5449
|
// src/api/dto/design-systems/version.ts
|
|
5401
|
-
var DTODesignSystemVersion =
|
|
5402
|
-
id:
|
|
5403
|
-
createdAt:
|
|
5450
|
+
var DTODesignSystemVersion = z192.object({
|
|
5451
|
+
id: z192.string(),
|
|
5452
|
+
createdAt: z192.coerce.date(),
|
|
5404
5453
|
meta: ObjectMeta,
|
|
5405
|
-
version:
|
|
5406
|
-
isReadonly:
|
|
5407
|
-
changeLog:
|
|
5408
|
-
designSystemId:
|
|
5454
|
+
version: z192.string(),
|
|
5455
|
+
isReadonly: z192.boolean(),
|
|
5456
|
+
changeLog: z192.string(),
|
|
5457
|
+
designSystemId: z192.string()
|
|
5409
5458
|
});
|
|
5410
|
-
var DTODesignSystemVersionsListResponse =
|
|
5411
|
-
designSystemVersions:
|
|
5459
|
+
var DTODesignSystemVersionsListResponse = z192.object({
|
|
5460
|
+
designSystemVersions: z192.array(DTODesignSystemVersion)
|
|
5412
5461
|
});
|
|
5413
|
-
var DTODesignSystemVersionGetResponse =
|
|
5462
|
+
var DTODesignSystemVersionGetResponse = z192.object({
|
|
5414
5463
|
designSystemVersion: DTODesignSystemVersion
|
|
5415
5464
|
});
|
|
5416
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5465
|
+
var DTODesignSystemVersionCreationResponse = z192.object({
|
|
5417
5466
|
meta: ObjectMeta,
|
|
5418
|
-
version:
|
|
5419
|
-
changeLog:
|
|
5420
|
-
isReadOnly:
|
|
5421
|
-
designSystemId:
|
|
5422
|
-
jobId:
|
|
5423
|
-
});
|
|
5424
|
-
var VersionSQSPayload =
|
|
5425
|
-
jobId:
|
|
5426
|
-
designSystemId:
|
|
5467
|
+
version: z192.string(),
|
|
5468
|
+
changeLog: z192.string(),
|
|
5469
|
+
isReadOnly: z192.boolean(),
|
|
5470
|
+
designSystemId: z192.string(),
|
|
5471
|
+
jobId: z192.string()
|
|
5472
|
+
});
|
|
5473
|
+
var VersionSQSPayload = z192.object({
|
|
5474
|
+
jobId: z192.string(),
|
|
5475
|
+
designSystemId: z192.string(),
|
|
5427
5476
|
input: DTOCreateVersionInput
|
|
5428
5477
|
});
|
|
5429
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5430
|
-
jobs:
|
|
5478
|
+
var DTODesignSystemVersionJobsResponse = z192.object({
|
|
5479
|
+
jobs: z192.array(VersionCreationJob)
|
|
5431
5480
|
});
|
|
5432
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5481
|
+
var DTODesignSystemVersionJobStatusResponse = z192.object({
|
|
5433
5482
|
job: VersionCreationJob
|
|
5434
5483
|
});
|
|
5435
5484
|
|
|
5436
5485
|
// src/api/dto/design-systems/view.ts
|
|
5437
|
-
import { z as
|
|
5438
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5439
|
-
id:
|
|
5440
|
-
persistentId:
|
|
5441
|
-
width:
|
|
5486
|
+
import { z as z193 } from "zod";
|
|
5487
|
+
var DTOElementViewColumnSharedAttributes = z193.object({
|
|
5488
|
+
id: z193.string(),
|
|
5489
|
+
persistentId: z193.string(),
|
|
5490
|
+
width: z193.number()
|
|
5442
5491
|
});
|
|
5443
5492
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5444
|
-
type:
|
|
5493
|
+
type: z193.literal("BaseProperty"),
|
|
5445
5494
|
basePropertyType: ElementViewBaseColumnType
|
|
5446
5495
|
});
|
|
5447
5496
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5448
|
-
type:
|
|
5449
|
-
propertyDefinitionId:
|
|
5497
|
+
type: z193.literal("PropertyDefinition"),
|
|
5498
|
+
propertyDefinitionId: z193.string()
|
|
5450
5499
|
});
|
|
5451
5500
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5452
|
-
type:
|
|
5453
|
-
themeId:
|
|
5501
|
+
type: z193.literal("Theme"),
|
|
5502
|
+
themeId: z193.string()
|
|
5454
5503
|
});
|
|
5455
|
-
var DTOElementViewColumn =
|
|
5504
|
+
var DTOElementViewColumn = z193.discriminatedUnion("type", [
|
|
5456
5505
|
DTOElementViewBasePropertyColumn,
|
|
5457
5506
|
DTOElementViewPropertyDefinitionColumn,
|
|
5458
5507
|
DTOElementViewThemeColumn
|
|
5459
5508
|
]);
|
|
5460
|
-
var DTOElementView =
|
|
5509
|
+
var DTOElementView = z193.object({
|
|
5461
5510
|
meta: ObjectMeta,
|
|
5462
|
-
persistentId:
|
|
5511
|
+
persistentId: z193.string(),
|
|
5463
5512
|
targetElementType: ElementPropertyTargetType,
|
|
5464
|
-
id:
|
|
5465
|
-
isDefault:
|
|
5466
|
-
columns:
|
|
5513
|
+
id: z193.string(),
|
|
5514
|
+
isDefault: z193.boolean(),
|
|
5515
|
+
columns: z193.array(DTOElementViewColumn)
|
|
5467
5516
|
});
|
|
5468
|
-
var DTOElementViewsListResponse =
|
|
5469
|
-
elementDataViews:
|
|
5517
|
+
var DTOElementViewsListResponse = z193.object({
|
|
5518
|
+
elementDataViews: z193.array(DTOElementView)
|
|
5470
5519
|
});
|
|
5471
5520
|
|
|
5472
5521
|
// src/api/dto/workspaces/git.ts
|
|
5473
|
-
import { z as
|
|
5474
|
-
var DTOGitOrganization =
|
|
5475
|
-
id:
|
|
5476
|
-
name:
|
|
5477
|
-
url:
|
|
5478
|
-
slug:
|
|
5522
|
+
import { z as z194 } from "zod";
|
|
5523
|
+
var DTOGitOrganization = z194.object({
|
|
5524
|
+
id: z194.string(),
|
|
5525
|
+
name: z194.string(),
|
|
5526
|
+
url: z194.string(),
|
|
5527
|
+
slug: z194.string()
|
|
5479
5528
|
});
|
|
5480
|
-
var DTOGitProject =
|
|
5481
|
-
id:
|
|
5482
|
-
name:
|
|
5483
|
-
url:
|
|
5484
|
-
slug:
|
|
5529
|
+
var DTOGitProject = z194.object({
|
|
5530
|
+
id: z194.string(),
|
|
5531
|
+
name: z194.string(),
|
|
5532
|
+
url: z194.string(),
|
|
5533
|
+
slug: z194.string()
|
|
5485
5534
|
});
|
|
5486
|
-
var DTOGitRepository =
|
|
5487
|
-
id:
|
|
5488
|
-
name:
|
|
5489
|
-
url:
|
|
5490
|
-
slug:
|
|
5491
|
-
defaultBranch:
|
|
5535
|
+
var DTOGitRepository = z194.object({
|
|
5536
|
+
id: z194.string(),
|
|
5537
|
+
name: z194.string(),
|
|
5538
|
+
url: z194.string(),
|
|
5539
|
+
slug: z194.string(),
|
|
5540
|
+
defaultBranch: z194.string().optional()
|
|
5492
5541
|
});
|
|
5493
|
-
var DTOGitBranch =
|
|
5494
|
-
name:
|
|
5495
|
-
lastCommitId:
|
|
5542
|
+
var DTOGitBranch = z194.object({
|
|
5543
|
+
name: z194.string(),
|
|
5544
|
+
lastCommitId: z194.string()
|
|
5496
5545
|
});
|
|
5497
5546
|
|
|
5498
5547
|
// src/api/dto/workspaces/integrations.ts
|
|
5499
|
-
import { z as
|
|
5548
|
+
import { z as z195 } from "zod";
|
|
5500
5549
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5501
5550
|
accessToken: true,
|
|
5502
5551
|
refreshToken: true
|
|
5503
5552
|
});
|
|
5504
|
-
var DTOIntegration =
|
|
5505
|
-
id:
|
|
5506
|
-
workspaceId:
|
|
5553
|
+
var DTOIntegration = z195.object({
|
|
5554
|
+
id: z195.string(),
|
|
5555
|
+
workspaceId: z195.string(),
|
|
5507
5556
|
type: ExtendedIntegrationType,
|
|
5508
|
-
createdAt:
|
|
5509
|
-
integrationCredentials:
|
|
5510
|
-
integrationDesignSystems:
|
|
5557
|
+
createdAt: z195.coerce.date(),
|
|
5558
|
+
integrationCredentials: z195.array(DTOIntegrationCredentials).optional(),
|
|
5559
|
+
integrationDesignSystems: z195.array(IntegrationDesignSystem).optional()
|
|
5511
5560
|
});
|
|
5512
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5513
|
-
url:
|
|
5561
|
+
var DTOIntegrationOAuthGetResponse = z195.object({
|
|
5562
|
+
url: z195.string()
|
|
5514
5563
|
});
|
|
5515
|
-
var DTOIntegrationPostResponse =
|
|
5564
|
+
var DTOIntegrationPostResponse = z195.object({
|
|
5516
5565
|
integration: DTOIntegration
|
|
5517
5566
|
});
|
|
5518
|
-
var DTOIntegrationsGetListResponse =
|
|
5567
|
+
var DTOIntegrationsGetListResponse = z195.object({
|
|
5519
5568
|
integrations: DTOIntegration.array()
|
|
5520
5569
|
});
|
|
5521
5570
|
|
|
5522
5571
|
// src/api/dto/workspaces/invitations.ts
|
|
5523
|
-
import { z as
|
|
5524
|
-
var DTOWorkspaceInvitationInput =
|
|
5525
|
-
email:
|
|
5572
|
+
import { z as z196 } from "zod";
|
|
5573
|
+
var DTOWorkspaceInvitationInput = z196.object({
|
|
5574
|
+
email: z196.string().email(),
|
|
5526
5575
|
role: WorkspaceRoleSchema
|
|
5527
5576
|
});
|
|
5528
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5577
|
+
var DTOWorkspaceInvitationsListInput = z196.object({
|
|
5529
5578
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5530
|
-
designSystemId:
|
|
5579
|
+
designSystemId: z196.string().optional()
|
|
5531
5580
|
});
|
|
5532
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5581
|
+
var DTOWorkspaceInvitationsResponse = z196.object({
|
|
5533
5582
|
invitations: WorkspaceInvitation.array()
|
|
5534
5583
|
});
|
|
5535
5584
|
|
|
5536
5585
|
// src/api/dto/workspaces/membership.ts
|
|
5537
|
-
import { z as
|
|
5586
|
+
import { z as z199 } from "zod";
|
|
5538
5587
|
|
|
5539
5588
|
// src/api/dto/workspaces/workspace.ts
|
|
5540
|
-
import { z as
|
|
5589
|
+
import { z as z198 } from "zod";
|
|
5541
5590
|
|
|
5542
5591
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5543
|
-
import { z as
|
|
5592
|
+
import { z as z197 } from "zod";
|
|
5544
5593
|
var DTONpmRegistryConfigConstants = {
|
|
5545
5594
|
passwordPlaceholder: "redacted"
|
|
5546
5595
|
};
|
|
5547
|
-
var DTONpmRegistryConfig =
|
|
5596
|
+
var DTONpmRegistryConfig = z197.object({
|
|
5548
5597
|
// Registry basic configuration
|
|
5549
5598
|
registryType: NpmRegistryType,
|
|
5550
|
-
registryUrl:
|
|
5551
|
-
customRegistryUrl:
|
|
5599
|
+
registryUrl: z197.string(),
|
|
5600
|
+
customRegistryUrl: z197.string().optional(),
|
|
5552
5601
|
// URL of Supernova NPM packages proxy
|
|
5553
|
-
proxyUrl:
|
|
5602
|
+
proxyUrl: z197.string(),
|
|
5554
5603
|
// Auth configuration
|
|
5555
5604
|
authType: NpmRegistryAuthType,
|
|
5556
|
-
accessToken:
|
|
5557
|
-
username:
|
|
5558
|
-
password:
|
|
5605
|
+
accessToken: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5606
|
+
username: z197.string().optional(),
|
|
5607
|
+
password: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5559
5608
|
// NPM package scopes for whih the proxy should be enabled
|
|
5560
|
-
enabledScopes:
|
|
5609
|
+
enabledScopes: z197.array(z197.string()),
|
|
5561
5610
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5562
5611
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5563
|
-
bypassProxy:
|
|
5612
|
+
bypassProxy: z197.boolean()
|
|
5564
5613
|
});
|
|
5565
5614
|
|
|
5566
5615
|
// src/api/dto/workspaces/workspace.ts
|
|
5567
|
-
var DTOWorkspace =
|
|
5568
|
-
id:
|
|
5616
|
+
var DTOWorkspace = z198.object({
|
|
5617
|
+
id: z198.string(),
|
|
5569
5618
|
profile: WorkspaceProfile,
|
|
5570
5619
|
subscription: Subscription,
|
|
5571
5620
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5572
5621
|
});
|
|
5573
|
-
var DTOWorkspaceCreateInput =
|
|
5574
|
-
name:
|
|
5622
|
+
var DTOWorkspaceCreateInput = z198.object({
|
|
5623
|
+
name: z198.string()
|
|
5575
5624
|
});
|
|
5576
|
-
var DTOWorkspaceResponse =
|
|
5625
|
+
var DTOWorkspaceResponse = z198.object({
|
|
5577
5626
|
workspace: DTOWorkspace
|
|
5578
5627
|
});
|
|
5579
5628
|
|
|
5580
5629
|
// src/api/dto/workspaces/membership.ts
|
|
5581
|
-
var DTOWorkspaceRole =
|
|
5582
|
-
var DTOUserWorkspaceMembership =
|
|
5630
|
+
var DTOWorkspaceRole = z199.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5631
|
+
var DTOUserWorkspaceMembership = z199.object({
|
|
5583
5632
|
// Workspace the user is a member of
|
|
5584
5633
|
workspace: DTOWorkspace,
|
|
5585
5634
|
// Assigned role the user has in the workspace
|
|
@@ -5589,38 +5638,56 @@ var DTOUserWorkspaceMembership = z198.object({
|
|
|
5589
5638
|
// when a workspace's subscription is downgraded to free tier
|
|
5590
5639
|
effectiveRole: DTOWorkspaceRole
|
|
5591
5640
|
});
|
|
5592
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5593
|
-
membership:
|
|
5641
|
+
var DTOUserWorkspaceMembershipsResponse = z199.object({
|
|
5642
|
+
membership: z199.array(DTOUserWorkspaceMembership)
|
|
5594
5643
|
});
|
|
5595
5644
|
|
|
5596
5645
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5597
|
-
var DTOAppBootstrapDataQuery =
|
|
5598
|
-
preferredWorkspaceId:
|
|
5599
|
-
preferredDesignSystemId:
|
|
5600
|
-
preferredVersionId:
|
|
5601
|
-
preferredBrandId:
|
|
5646
|
+
var DTOAppBootstrapDataQuery = z200.object({
|
|
5647
|
+
preferredWorkspaceId: z200.string().optional(),
|
|
5648
|
+
preferredDesignSystemId: z200.string().optional(),
|
|
5649
|
+
preferredVersionId: z200.string().optional(),
|
|
5650
|
+
preferredBrandId: z200.string().optional()
|
|
5602
5651
|
});
|
|
5603
|
-
var DTOAppBootstrapDataResponse =
|
|
5652
|
+
var DTOAppBootstrapDataResponse = z200.object({
|
|
5604
5653
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5605
5654
|
designSystem: DTODesignSystem.optional(),
|
|
5606
5655
|
version: DTODesignSystemVersion.optional(),
|
|
5607
5656
|
brand: DTOBrand.optional()
|
|
5608
5657
|
});
|
|
5609
5658
|
|
|
5659
|
+
// src/api/dto/collections/collection.ts
|
|
5660
|
+
import { z as z201 } from "zod";
|
|
5661
|
+
var DTOTokenCollection = z201.object({
|
|
5662
|
+
id: z201.string(),
|
|
5663
|
+
persistentId: z201.string(),
|
|
5664
|
+
designSystemVersionId: z201.string(),
|
|
5665
|
+
meta: ObjectMeta,
|
|
5666
|
+
createdAt: z201.coerce.date(),
|
|
5667
|
+
updatedAt: z201.coerce.date(),
|
|
5668
|
+
origin: z201.object({
|
|
5669
|
+
id: z201.string(),
|
|
5670
|
+
sourceId: z201.string()
|
|
5671
|
+
})
|
|
5672
|
+
});
|
|
5673
|
+
var DTOTokenCollectionsListReponse = z201.object({
|
|
5674
|
+
collections: DTOTokenCollection.array()
|
|
5675
|
+
});
|
|
5676
|
+
|
|
5610
5677
|
// src/api/dto/documentation/anchor.ts
|
|
5611
|
-
import { z as
|
|
5678
|
+
import { z as z202 } from "zod";
|
|
5612
5679
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5613
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5614
|
-
anchors:
|
|
5680
|
+
var DTOGetDocumentationPageAnchorsResponse = z202.object({
|
|
5681
|
+
anchors: z202.array(DTODocumentationPageAnchor)
|
|
5615
5682
|
});
|
|
5616
5683
|
|
|
5617
5684
|
// src/api/dto/documentation/approvals.ts
|
|
5618
|
-
import { z as
|
|
5685
|
+
import { z as z203 } from "zod";
|
|
5619
5686
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5620
|
-
var DTODocumentationGroupApprovalState =
|
|
5621
|
-
persistentId:
|
|
5622
|
-
groupId:
|
|
5623
|
-
designSystemVersionId:
|
|
5687
|
+
var DTODocumentationGroupApprovalState = z203.object({
|
|
5688
|
+
persistentId: z203.string(),
|
|
5689
|
+
groupId: z203.string(),
|
|
5690
|
+
designSystemVersionId: z203.string(),
|
|
5624
5691
|
approvalState: DocumentationPageApprovalState
|
|
5625
5692
|
});
|
|
5626
5693
|
|
|
@@ -5628,68 +5695,68 @@ var DTODocumentationGroupApprovalState = z201.object({
|
|
|
5628
5695
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5629
5696
|
|
|
5630
5697
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5631
|
-
import { z as
|
|
5698
|
+
import { z as z208 } from "zod";
|
|
5632
5699
|
|
|
5633
5700
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5634
|
-
import { z as
|
|
5701
|
+
import { z as z207 } from "zod";
|
|
5635
5702
|
|
|
5636
5703
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5637
|
-
import { z as
|
|
5704
|
+
import { z as z205 } from "zod";
|
|
5638
5705
|
|
|
5639
5706
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5640
|
-
import { z as
|
|
5707
|
+
import { z as z204 } from "zod";
|
|
5641
5708
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5642
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5643
|
-
showSidebar:
|
|
5644
|
-
isPrivate:
|
|
5645
|
-
isHidden:
|
|
5709
|
+
var DTODocumentationItemConfigurationV2 = z204.object({
|
|
5710
|
+
showSidebar: z204.boolean(),
|
|
5711
|
+
isPrivate: z204.boolean(),
|
|
5712
|
+
isHidden: z204.boolean(),
|
|
5646
5713
|
header: DTODocumentationItemHeaderV2
|
|
5647
5714
|
});
|
|
5648
5715
|
|
|
5649
5716
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5650
|
-
var DTODocumentationDraftChangeType =
|
|
5651
|
-
var DTODocumentationDraftStateCreated =
|
|
5652
|
-
changeType:
|
|
5653
|
-
});
|
|
5654
|
-
var DTODocumentationDraftStateUpdated =
|
|
5655
|
-
changeType:
|
|
5656
|
-
changes:
|
|
5657
|
-
previousTitle:
|
|
5717
|
+
var DTODocumentationDraftChangeType = z205.enum(["Created", "Updated", "Deleted"]);
|
|
5718
|
+
var DTODocumentationDraftStateCreated = z205.object({
|
|
5719
|
+
changeType: z205.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5720
|
+
});
|
|
5721
|
+
var DTODocumentationDraftStateUpdated = z205.object({
|
|
5722
|
+
changeType: z205.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5723
|
+
changes: z205.object({
|
|
5724
|
+
previousTitle: z205.string().optional(),
|
|
5658
5725
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5659
|
-
previousContentHash:
|
|
5726
|
+
previousContentHash: z205.string().optional()
|
|
5660
5727
|
})
|
|
5661
5728
|
});
|
|
5662
|
-
var DTODocumentationDraftStateDeleted =
|
|
5663
|
-
changeType:
|
|
5664
|
-
deletedAt:
|
|
5665
|
-
deletedByUserId:
|
|
5729
|
+
var DTODocumentationDraftStateDeleted = z205.object({
|
|
5730
|
+
changeType: z205.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5731
|
+
deletedAt: z205.coerce.date(),
|
|
5732
|
+
deletedByUserId: z205.string()
|
|
5666
5733
|
});
|
|
5667
|
-
var DTODocumentationDraftState =
|
|
5734
|
+
var DTODocumentationDraftState = z205.discriminatedUnion("changeType", [
|
|
5668
5735
|
DTODocumentationDraftStateCreated,
|
|
5669
5736
|
DTODocumentationDraftStateUpdated,
|
|
5670
5737
|
DTODocumentationDraftStateDeleted
|
|
5671
5738
|
]);
|
|
5672
5739
|
|
|
5673
5740
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5674
|
-
import { z as
|
|
5675
|
-
var DTODocumentationPublishMetadata =
|
|
5676
|
-
lastPublishedByUserId:
|
|
5677
|
-
lastPublishedAt:
|
|
5741
|
+
import { z as z206 } from "zod";
|
|
5742
|
+
var DTODocumentationPublishMetadata = z206.object({
|
|
5743
|
+
lastPublishedByUserId: z206.string(),
|
|
5744
|
+
lastPublishedAt: z206.coerce.date()
|
|
5678
5745
|
});
|
|
5679
5746
|
|
|
5680
5747
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5681
|
-
var DTODocumentationPageV2 =
|
|
5682
|
-
id:
|
|
5683
|
-
persistentId:
|
|
5684
|
-
designSystemVersionId:
|
|
5685
|
-
title:
|
|
5748
|
+
var DTODocumentationPageV2 = z207.object({
|
|
5749
|
+
id: z207.string(),
|
|
5750
|
+
persistentId: z207.string(),
|
|
5751
|
+
designSystemVersionId: z207.string(),
|
|
5752
|
+
title: z207.string(),
|
|
5686
5753
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5687
|
-
shortPersistentId:
|
|
5688
|
-
slug:
|
|
5689
|
-
userSlug:
|
|
5690
|
-
createdAt:
|
|
5691
|
-
updatedAt:
|
|
5692
|
-
path:
|
|
5754
|
+
shortPersistentId: z207.string(),
|
|
5755
|
+
slug: z207.string().optional(),
|
|
5756
|
+
userSlug: z207.string().optional(),
|
|
5757
|
+
createdAt: z207.coerce.date(),
|
|
5758
|
+
updatedAt: z207.coerce.date(),
|
|
5759
|
+
path: z207.string(),
|
|
5693
5760
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5694
5761
|
draftState: DTODocumentationDraftState.optional(),
|
|
5695
5762
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5697,197 +5764,197 @@ var DTODocumentationPageV2 = z205.object({
|
|
|
5697
5764
|
/** Defines the approval state of the documentation page */
|
|
5698
5765
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5699
5766
|
// Backward compatibility
|
|
5700
|
-
type:
|
|
5767
|
+
type: z207.literal("Page")
|
|
5701
5768
|
});
|
|
5702
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5769
|
+
var DTOCreateDocumentationPageInputV2 = z207.object({
|
|
5703
5770
|
// Identifier
|
|
5704
|
-
persistentId:
|
|
5771
|
+
persistentId: z207.string().uuid(),
|
|
5705
5772
|
// Page properties
|
|
5706
|
-
title:
|
|
5773
|
+
title: z207.string(),
|
|
5707
5774
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5708
5775
|
// Page placement properties
|
|
5709
|
-
parentPersistentId:
|
|
5710
|
-
afterPersistentId:
|
|
5776
|
+
parentPersistentId: z207.string().uuid(),
|
|
5777
|
+
afterPersistentId: z207.string().uuid().nullish()
|
|
5711
5778
|
});
|
|
5712
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5779
|
+
var DTOUpdateDocumentationPageInputV2 = z207.object({
|
|
5713
5780
|
// Identifier of the group to update
|
|
5714
|
-
id:
|
|
5781
|
+
id: z207.string(),
|
|
5715
5782
|
// Page properties
|
|
5716
|
-
title:
|
|
5783
|
+
title: z207.string().optional(),
|
|
5717
5784
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5718
5785
|
});
|
|
5719
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5786
|
+
var DTOMoveDocumentationPageInputV2 = z207.object({
|
|
5720
5787
|
// Identifier of the group to update
|
|
5721
|
-
id:
|
|
5788
|
+
id: z207.string(),
|
|
5722
5789
|
// Page placement properties
|
|
5723
|
-
parentPersistentId:
|
|
5724
|
-
afterPersistentId:
|
|
5790
|
+
parentPersistentId: z207.string().uuid(),
|
|
5791
|
+
afterPersistentId: z207.string().uuid().nullish()
|
|
5725
5792
|
});
|
|
5726
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5793
|
+
var DTODuplicateDocumentationPageInputV2 = z207.object({
|
|
5727
5794
|
// Identifier of the page to duplicate from
|
|
5728
|
-
id:
|
|
5795
|
+
id: z207.string(),
|
|
5729
5796
|
// New page persistent id
|
|
5730
|
-
persistentId:
|
|
5797
|
+
persistentId: z207.string().uuid(),
|
|
5731
5798
|
// Page placement properties
|
|
5732
|
-
parentPersistentId:
|
|
5733
|
-
afterPersistentId:
|
|
5799
|
+
parentPersistentId: z207.string().uuid(),
|
|
5800
|
+
afterPersistentId: z207.string().uuid().nullish()
|
|
5734
5801
|
});
|
|
5735
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5802
|
+
var DTODeleteDocumentationPageInputV2 = z207.object({
|
|
5736
5803
|
// Identifier
|
|
5737
|
-
id:
|
|
5804
|
+
id: z207.string()
|
|
5738
5805
|
});
|
|
5739
|
-
var DTORestoreDocumentationPageInput =
|
|
5740
|
-
persistentId:
|
|
5741
|
-
snapshotId:
|
|
5806
|
+
var DTORestoreDocumentationPageInput = z207.object({
|
|
5807
|
+
persistentId: z207.string(),
|
|
5808
|
+
snapshotId: z207.string().optional()
|
|
5742
5809
|
});
|
|
5743
|
-
var DTORestoreDocumentationGroupInput =
|
|
5744
|
-
persistentId:
|
|
5745
|
-
snapshotId:
|
|
5810
|
+
var DTORestoreDocumentationGroupInput = z207.object({
|
|
5811
|
+
persistentId: z207.string(),
|
|
5812
|
+
snapshotId: z207.string().optional()
|
|
5746
5813
|
});
|
|
5747
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5748
|
-
persistentId:
|
|
5814
|
+
var DTODocumentationPageApprovalStateChangeInput = z207.object({
|
|
5815
|
+
persistentId: z207.string(),
|
|
5749
5816
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5750
5817
|
});
|
|
5751
5818
|
|
|
5752
5819
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5753
|
-
var DTODocumentationPageSnapshot =
|
|
5754
|
-
id:
|
|
5755
|
-
designSystemVersionId:
|
|
5756
|
-
createdAt:
|
|
5757
|
-
updatedAt:
|
|
5820
|
+
var DTODocumentationPageSnapshot = z208.object({
|
|
5821
|
+
id: z208.string(),
|
|
5822
|
+
designSystemVersionId: z208.string(),
|
|
5823
|
+
createdAt: z208.string(),
|
|
5824
|
+
updatedAt: z208.string(),
|
|
5758
5825
|
documentationPage: DTODocumentationPageV2,
|
|
5759
|
-
pageContentHash:
|
|
5826
|
+
pageContentHash: z208.string(),
|
|
5760
5827
|
reason: DesignElementSnapshotReason
|
|
5761
5828
|
});
|
|
5762
5829
|
|
|
5763
5830
|
// src/api/dto/documentation/link-preview.ts
|
|
5764
|
-
import { z as
|
|
5765
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5831
|
+
import { z as z209 } from "zod";
|
|
5832
|
+
var DTODocumentationLinkPreviewResponse = z209.object({
|
|
5766
5833
|
linkPreview: DocumentationLinkPreview
|
|
5767
5834
|
});
|
|
5768
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5769
|
-
url:
|
|
5770
|
-
documentationItemPersistentId:
|
|
5835
|
+
var DTODocumentationLinkPreviewRequest = z209.object({
|
|
5836
|
+
url: z209.string().optional(),
|
|
5837
|
+
documentationItemPersistentId: z209.string().optional()
|
|
5771
5838
|
});
|
|
5772
5839
|
|
|
5773
5840
|
// src/api/dto/documentation/publish.ts
|
|
5774
|
-
import { z as
|
|
5841
|
+
import { z as z213 } from "zod";
|
|
5775
5842
|
|
|
5776
5843
|
// src/api/dto/export/exporter.ts
|
|
5777
|
-
import { z as
|
|
5778
|
-
var DTOExporterType =
|
|
5779
|
-
var DTOExporterSource =
|
|
5780
|
-
var DTOExporterMembershipRole =
|
|
5781
|
-
var DTOExporter =
|
|
5782
|
-
id:
|
|
5783
|
-
name:
|
|
5784
|
-
isPrivate:
|
|
5844
|
+
import { z as z210 } from "zod";
|
|
5845
|
+
var DTOExporterType = z210.enum(["documentation", "code"]);
|
|
5846
|
+
var DTOExporterSource = z210.enum(["git", "upload"]);
|
|
5847
|
+
var DTOExporterMembershipRole = z210.enum(["Owner", "OwnerArchived", "User"]);
|
|
5848
|
+
var DTOExporter = z210.object({
|
|
5849
|
+
id: z210.string(),
|
|
5850
|
+
name: z210.string(),
|
|
5851
|
+
isPrivate: z210.boolean(),
|
|
5785
5852
|
exporterType: DTOExporterType,
|
|
5786
|
-
isDefaultDocumentationExporter:
|
|
5787
|
-
iconURL:
|
|
5853
|
+
isDefaultDocumentationExporter: z210.boolean(),
|
|
5854
|
+
iconURL: z210.string().optional(),
|
|
5788
5855
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5789
5856
|
customBlocks: PulsarCustomBlock.array(),
|
|
5790
|
-
blockVariants:
|
|
5791
|
-
usesBrands:
|
|
5792
|
-
usesThemes:
|
|
5857
|
+
blockVariants: z210.record(z210.string(), PulsarContributionVariant.array()),
|
|
5858
|
+
usesBrands: z210.boolean(),
|
|
5859
|
+
usesThemes: z210.boolean(),
|
|
5793
5860
|
source: DTOExporterSource,
|
|
5794
|
-
gitUrl:
|
|
5795
|
-
gitBranch:
|
|
5796
|
-
gitDirectory:
|
|
5861
|
+
gitUrl: z210.string().optional(),
|
|
5862
|
+
gitBranch: z210.string().optional(),
|
|
5863
|
+
gitDirectory: z210.string().optional()
|
|
5797
5864
|
});
|
|
5798
|
-
var DTOExporterMembership =
|
|
5799
|
-
workspaceId:
|
|
5800
|
-
exporterId:
|
|
5865
|
+
var DTOExporterMembership = z210.object({
|
|
5866
|
+
workspaceId: z210.string(),
|
|
5867
|
+
exporterId: z210.string(),
|
|
5801
5868
|
role: DTOExporterMembershipRole
|
|
5802
5869
|
});
|
|
5803
|
-
var DTOExporterCreateOutput =
|
|
5870
|
+
var DTOExporterCreateOutput = z210.object({
|
|
5804
5871
|
exporter: DTOExporter,
|
|
5805
5872
|
membership: DTOExporterMembership
|
|
5806
5873
|
});
|
|
5807
|
-
var DTOExporterGitProviderEnum =
|
|
5808
|
-
var DTOExporterCreateInput =
|
|
5809
|
-
url:
|
|
5874
|
+
var DTOExporterGitProviderEnum = z210.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5875
|
+
var DTOExporterCreateInput = z210.object({
|
|
5876
|
+
url: z210.string(),
|
|
5810
5877
|
provider: DTOExporterGitProviderEnum
|
|
5811
5878
|
});
|
|
5812
|
-
var DTOExporterUpdateInput =
|
|
5813
|
-
url:
|
|
5879
|
+
var DTOExporterUpdateInput = z210.object({
|
|
5880
|
+
url: z210.string().optional()
|
|
5814
5881
|
});
|
|
5815
5882
|
|
|
5816
5883
|
// src/api/dto/export/filter.ts
|
|
5817
5884
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5818
5885
|
|
|
5819
5886
|
// src/api/dto/export/job.ts
|
|
5820
|
-
import { z as
|
|
5821
|
-
var DTOExportJobCreatedBy =
|
|
5822
|
-
userId:
|
|
5823
|
-
userName:
|
|
5887
|
+
import { z as z211 } from "zod";
|
|
5888
|
+
var DTOExportJobCreatedBy = z211.object({
|
|
5889
|
+
userId: z211.string(),
|
|
5890
|
+
userName: z211.string()
|
|
5824
5891
|
});
|
|
5825
|
-
var DTOExportJobDesignSystemPreview =
|
|
5826
|
-
id:
|
|
5892
|
+
var DTOExportJobDesignSystemPreview = z211.object({
|
|
5893
|
+
id: z211.string(),
|
|
5827
5894
|
meta: ObjectMeta
|
|
5828
5895
|
});
|
|
5829
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5830
|
-
id:
|
|
5896
|
+
var DTOExportJobDesignSystemVersionPreview = z211.object({
|
|
5897
|
+
id: z211.string(),
|
|
5831
5898
|
meta: ObjectMeta,
|
|
5832
|
-
version:
|
|
5833
|
-
isReadonly:
|
|
5899
|
+
version: z211.string(),
|
|
5900
|
+
isReadonly: z211.boolean()
|
|
5834
5901
|
});
|
|
5835
|
-
var DTOExportJobDestinations =
|
|
5902
|
+
var DTOExportJobDestinations = z211.object({
|
|
5836
5903
|
s3: ExporterDestinationS3.optional(),
|
|
5837
5904
|
azure: ExporterDestinationAzure.optional(),
|
|
5838
5905
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5839
5906
|
github: ExporterDestinationGithub.optional(),
|
|
5840
5907
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5841
5908
|
documentation: ExporterDestinationDocs.optional(),
|
|
5842
|
-
webhookUrl:
|
|
5909
|
+
webhookUrl: z211.string().optional()
|
|
5843
5910
|
});
|
|
5844
5911
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5845
5912
|
sndocs: true
|
|
5846
5913
|
}).extend({
|
|
5847
5914
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5848
5915
|
});
|
|
5849
|
-
var DTOExportJob =
|
|
5850
|
-
id:
|
|
5851
|
-
createdAt:
|
|
5852
|
-
finishedAt:
|
|
5853
|
-
index:
|
|
5916
|
+
var DTOExportJob = z211.object({
|
|
5917
|
+
id: z211.string(),
|
|
5918
|
+
createdAt: z211.coerce.date(),
|
|
5919
|
+
finishedAt: z211.coerce.date().optional(),
|
|
5920
|
+
index: z211.number().optional(),
|
|
5854
5921
|
status: ExportJobStatus,
|
|
5855
|
-
estimatedExecutionTime:
|
|
5922
|
+
estimatedExecutionTime: z211.number().optional(),
|
|
5856
5923
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5857
5924
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5858
5925
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5859
5926
|
destinations: DTOExportJobDestinations,
|
|
5860
|
-
exporterId:
|
|
5861
|
-
scheduleId:
|
|
5927
|
+
exporterId: z211.string(),
|
|
5928
|
+
scheduleId: z211.string().optional(),
|
|
5862
5929
|
result: DTOExportJobResult.optional(),
|
|
5863
|
-
brandPersistentId:
|
|
5864
|
-
themePersistentId:
|
|
5865
|
-
themePersistentIds:
|
|
5930
|
+
brandPersistentId: z211.string().optional(),
|
|
5931
|
+
themePersistentId: z211.string().optional(),
|
|
5932
|
+
themePersistentIds: z211.string().array().optional()
|
|
5866
5933
|
});
|
|
5867
|
-
var DTOExportJobResponse =
|
|
5934
|
+
var DTOExportJobResponse = z211.object({
|
|
5868
5935
|
job: DTOExportJob
|
|
5869
5936
|
});
|
|
5870
5937
|
|
|
5871
5938
|
// src/api/dto/export/pipeline.ts
|
|
5872
|
-
import { z as
|
|
5873
|
-
var DTOPipeline =
|
|
5874
|
-
id:
|
|
5875
|
-
name:
|
|
5939
|
+
import { z as z212 } from "zod";
|
|
5940
|
+
var DTOPipeline = z212.object({
|
|
5941
|
+
id: z212.string(),
|
|
5942
|
+
name: z212.string(),
|
|
5876
5943
|
eventType: PipelineEventType,
|
|
5877
|
-
isEnabled:
|
|
5878
|
-
workspaceId:
|
|
5879
|
-
designSystemId:
|
|
5880
|
-
exporterId:
|
|
5881
|
-
brandPersistentId:
|
|
5882
|
-
themePersistentId:
|
|
5883
|
-
themePersistentIds:
|
|
5944
|
+
isEnabled: z212.boolean(),
|
|
5945
|
+
workspaceId: z212.string(),
|
|
5946
|
+
designSystemId: z212.string(),
|
|
5947
|
+
exporterId: z212.string(),
|
|
5948
|
+
brandPersistentId: z212.string().optional(),
|
|
5949
|
+
themePersistentId: z212.string().optional(),
|
|
5950
|
+
themePersistentIds: z212.string().array().optional(),
|
|
5884
5951
|
...ExportDestinationsMap.shape,
|
|
5885
5952
|
latestJobs: DTOExportJob.array()
|
|
5886
5953
|
});
|
|
5887
5954
|
|
|
5888
5955
|
// src/api/dto/documentation/publish.ts
|
|
5889
5956
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5890
|
-
var DTOPublishDocumentationRequest =
|
|
5957
|
+
var DTOPublishDocumentationRequest = z213.object({
|
|
5891
5958
|
environment: PublishedDocEnvironment,
|
|
5892
5959
|
/**
|
|
5893
5960
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5895,42 +5962,42 @@ var DTOPublishDocumentationRequest = z211.object({
|
|
|
5895
5962
|
*/
|
|
5896
5963
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5897
5964
|
});
|
|
5898
|
-
var DTOPublishDocumentationResponse =
|
|
5965
|
+
var DTOPublishDocumentationResponse = z213.object({
|
|
5899
5966
|
job: DTOExportJob
|
|
5900
5967
|
});
|
|
5901
5968
|
|
|
5902
5969
|
// src/api/dto/elements/components/figma-component.ts
|
|
5903
|
-
import { z as
|
|
5970
|
+
import { z as z214 } from "zod";
|
|
5904
5971
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5905
|
-
var DTOFigmaComponentPropertyMap =
|
|
5906
|
-
var DTOFigmaComponent =
|
|
5907
|
-
id:
|
|
5908
|
-
persistentId:
|
|
5909
|
-
designSystemVersionId:
|
|
5910
|
-
brandId:
|
|
5911
|
-
thumbnailUrl:
|
|
5912
|
-
svgUrl:
|
|
5913
|
-
exportProperties:
|
|
5914
|
-
isAsset:
|
|
5972
|
+
var DTOFigmaComponentPropertyMap = z214.record(DTOFigmaComponentProperty);
|
|
5973
|
+
var DTOFigmaComponent = z214.object({
|
|
5974
|
+
id: z214.string(),
|
|
5975
|
+
persistentId: z214.string(),
|
|
5976
|
+
designSystemVersionId: z214.string(),
|
|
5977
|
+
brandId: z214.string(),
|
|
5978
|
+
thumbnailUrl: z214.string().optional(),
|
|
5979
|
+
svgUrl: z214.string().optional(),
|
|
5980
|
+
exportProperties: z214.object({
|
|
5981
|
+
isAsset: z214.boolean()
|
|
5915
5982
|
}),
|
|
5916
|
-
createdAt:
|
|
5917
|
-
updatedAt:
|
|
5983
|
+
createdAt: z214.coerce.date(),
|
|
5984
|
+
updatedAt: z214.coerce.date(),
|
|
5918
5985
|
meta: ObjectMeta,
|
|
5919
5986
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5920
|
-
parentComponentPersistentId:
|
|
5921
|
-
childrenPersistentIds:
|
|
5987
|
+
parentComponentPersistentId: z214.string().optional(),
|
|
5988
|
+
childrenPersistentIds: z214.string().array().optional(),
|
|
5922
5989
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5923
|
-
variantPropertyValues:
|
|
5990
|
+
variantPropertyValues: z214.record(z214.string()).optional()
|
|
5924
5991
|
});
|
|
5925
|
-
var DTOFigmaComponentListResponse =
|
|
5992
|
+
var DTOFigmaComponentListResponse = z214.object({
|
|
5926
5993
|
components: DTOFigmaComponent.array()
|
|
5927
5994
|
});
|
|
5928
5995
|
|
|
5929
5996
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5930
|
-
import { z as
|
|
5997
|
+
import { z as z216 } from "zod";
|
|
5931
5998
|
|
|
5932
5999
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5933
|
-
import { z as
|
|
6000
|
+
import { z as z215 } from "zod";
|
|
5934
6001
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5935
6002
|
sortOrder: true,
|
|
5936
6003
|
parentPersistentId: true,
|
|
@@ -5940,13 +6007,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5940
6007
|
data: true,
|
|
5941
6008
|
shortPersistentId: true
|
|
5942
6009
|
}).extend({
|
|
5943
|
-
title:
|
|
5944
|
-
isRoot:
|
|
5945
|
-
childrenIds:
|
|
6010
|
+
title: z215.string(),
|
|
6011
|
+
isRoot: z215.boolean(),
|
|
6012
|
+
childrenIds: z215.array(z215.string()),
|
|
5946
6013
|
groupBehavior: DocumentationGroupBehavior,
|
|
5947
|
-
shortPersistentId:
|
|
6014
|
+
shortPersistentId: z215.string(),
|
|
5948
6015
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5949
|
-
type:
|
|
6016
|
+
type: z215.literal("Group"),
|
|
5950
6017
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5951
6018
|
draftState: DTODocumentationDraftState.optional(),
|
|
5952
6019
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5954,127 +6021,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5954
6021
|
//** An approval state for frontend to utilize. */
|
|
5955
6022
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5956
6023
|
});
|
|
5957
|
-
var DTOCreateDocumentationGroupInput =
|
|
6024
|
+
var DTOCreateDocumentationGroupInput = z215.object({
|
|
5958
6025
|
// Identifier
|
|
5959
|
-
persistentId:
|
|
6026
|
+
persistentId: z215.string().uuid(),
|
|
5960
6027
|
// Group properties
|
|
5961
|
-
title:
|
|
6028
|
+
title: z215.string(),
|
|
5962
6029
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5963
6030
|
// Group placement properties
|
|
5964
|
-
afterPersistentId:
|
|
5965
|
-
parentPersistentId:
|
|
6031
|
+
afterPersistentId: z215.string().uuid().nullish(),
|
|
6032
|
+
parentPersistentId: z215.string().uuid()
|
|
5966
6033
|
});
|
|
5967
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6034
|
+
var DTOUpdateDocumentationGroupInput = z215.object({
|
|
5968
6035
|
// Identifier of the group to update
|
|
5969
|
-
id:
|
|
6036
|
+
id: z215.string(),
|
|
5970
6037
|
// Group properties
|
|
5971
|
-
title:
|
|
6038
|
+
title: z215.string().optional(),
|
|
5972
6039
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5973
6040
|
});
|
|
5974
|
-
var DTOMoveDocumentationGroupInput =
|
|
6041
|
+
var DTOMoveDocumentationGroupInput = z215.object({
|
|
5975
6042
|
// Identifier of the group to update
|
|
5976
|
-
id:
|
|
6043
|
+
id: z215.string(),
|
|
5977
6044
|
// Group placement properties
|
|
5978
|
-
parentPersistentId:
|
|
5979
|
-
afterPersistentId:
|
|
6045
|
+
parentPersistentId: z215.string().uuid(),
|
|
6046
|
+
afterPersistentId: z215.string().uuid().nullish()
|
|
5980
6047
|
});
|
|
5981
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6048
|
+
var DTODuplicateDocumentationGroupInput = z215.object({
|
|
5982
6049
|
// Identifier of the group to duplicate from
|
|
5983
|
-
id:
|
|
6050
|
+
id: z215.string(),
|
|
5984
6051
|
// New group persistent id
|
|
5985
|
-
persistentId:
|
|
6052
|
+
persistentId: z215.string().uuid(),
|
|
5986
6053
|
// Group placement properties
|
|
5987
|
-
afterPersistentId:
|
|
5988
|
-
parentPersistentId:
|
|
6054
|
+
afterPersistentId: z215.string().uuid().nullish(),
|
|
6055
|
+
parentPersistentId: z215.string().uuid()
|
|
5989
6056
|
});
|
|
5990
|
-
var DTOCreateDocumentationTabInput =
|
|
6057
|
+
var DTOCreateDocumentationTabInput = z215.object({
|
|
5991
6058
|
// New group persistent id
|
|
5992
|
-
persistentId:
|
|
6059
|
+
persistentId: z215.string().uuid(),
|
|
5993
6060
|
// If this is page, we will attempt to convert it to tab
|
|
5994
6061
|
// If this is tab group, we will add a new tab to it
|
|
5995
|
-
fromItemPersistentId:
|
|
5996
|
-
tabName:
|
|
6062
|
+
fromItemPersistentId: z215.string(),
|
|
6063
|
+
tabName: z215.string()
|
|
5997
6064
|
});
|
|
5998
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6065
|
+
var DTODeleteDocumentationTabGroupInput = z215.object({
|
|
5999
6066
|
// Deleted group id
|
|
6000
|
-
id:
|
|
6067
|
+
id: z215.string()
|
|
6001
6068
|
});
|
|
6002
|
-
var DTODeleteDocumentationGroupInput =
|
|
6069
|
+
var DTODeleteDocumentationGroupInput = z215.object({
|
|
6003
6070
|
// Identifier
|
|
6004
|
-
id:
|
|
6071
|
+
id: z215.string(),
|
|
6005
6072
|
// Deletion options
|
|
6006
|
-
deleteSubtree:
|
|
6073
|
+
deleteSubtree: z215.boolean().default(false)
|
|
6007
6074
|
});
|
|
6008
6075
|
|
|
6009
6076
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6010
|
-
var SuccessPayload =
|
|
6011
|
-
success:
|
|
6077
|
+
var SuccessPayload = z216.object({
|
|
6078
|
+
success: z216.literal(true)
|
|
6012
6079
|
});
|
|
6013
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6014
|
-
type:
|
|
6080
|
+
var DTODocumentationGroupCreateActionOutputV2 = z216.object({
|
|
6081
|
+
type: z216.literal("DocumentationGroupCreate"),
|
|
6015
6082
|
output: SuccessPayload
|
|
6016
6083
|
});
|
|
6017
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6018
|
-
type:
|
|
6084
|
+
var DTODocumentationTabCreateActionOutputV2 = z216.object({
|
|
6085
|
+
type: z216.literal("DocumentationTabCreate"),
|
|
6019
6086
|
output: SuccessPayload
|
|
6020
6087
|
});
|
|
6021
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6022
|
-
type:
|
|
6088
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z216.object({
|
|
6089
|
+
type: z216.literal("DocumentationGroupUpdate"),
|
|
6023
6090
|
output: SuccessPayload
|
|
6024
6091
|
});
|
|
6025
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6026
|
-
type:
|
|
6092
|
+
var DTODocumentationGroupMoveActionOutputV2 = z216.object({
|
|
6093
|
+
type: z216.literal("DocumentationGroupMove"),
|
|
6027
6094
|
output: SuccessPayload
|
|
6028
6095
|
});
|
|
6029
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6030
|
-
type:
|
|
6096
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z216.object({
|
|
6097
|
+
type: z216.literal("DocumentationGroupDuplicate"),
|
|
6031
6098
|
output: SuccessPayload
|
|
6032
6099
|
});
|
|
6033
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6034
|
-
type:
|
|
6100
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z216.object({
|
|
6101
|
+
type: z216.literal("DocumentationGroupDelete"),
|
|
6035
6102
|
output: SuccessPayload
|
|
6036
6103
|
});
|
|
6037
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6038
|
-
type:
|
|
6104
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z216.object({
|
|
6105
|
+
type: z216.literal("DocumentationTabGroupDelete"),
|
|
6039
6106
|
output: SuccessPayload
|
|
6040
6107
|
});
|
|
6041
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6042
|
-
type:
|
|
6108
|
+
var DTODocumentationGroupCreateActionInputV2 = z216.object({
|
|
6109
|
+
type: z216.literal("DocumentationGroupCreate"),
|
|
6043
6110
|
input: DTOCreateDocumentationGroupInput
|
|
6044
6111
|
});
|
|
6045
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6046
|
-
type:
|
|
6112
|
+
var DTODocumentationTabCreateActionInputV2 = z216.object({
|
|
6113
|
+
type: z216.literal("DocumentationTabCreate"),
|
|
6047
6114
|
input: DTOCreateDocumentationTabInput
|
|
6048
6115
|
});
|
|
6049
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6050
|
-
type:
|
|
6116
|
+
var DTODocumentationGroupUpdateActionInputV2 = z216.object({
|
|
6117
|
+
type: z216.literal("DocumentationGroupUpdate"),
|
|
6051
6118
|
input: DTOUpdateDocumentationGroupInput
|
|
6052
6119
|
});
|
|
6053
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6054
|
-
type:
|
|
6120
|
+
var DTODocumentationGroupMoveActionInputV2 = z216.object({
|
|
6121
|
+
type: z216.literal("DocumentationGroupMove"),
|
|
6055
6122
|
input: DTOMoveDocumentationGroupInput
|
|
6056
6123
|
});
|
|
6057
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6058
|
-
type:
|
|
6124
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z216.object({
|
|
6125
|
+
type: z216.literal("DocumentationGroupDuplicate"),
|
|
6059
6126
|
input: DTODuplicateDocumentationGroupInput
|
|
6060
6127
|
});
|
|
6061
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6062
|
-
type:
|
|
6128
|
+
var DTODocumentationGroupDeleteActionInputV2 = z216.object({
|
|
6129
|
+
type: z216.literal("DocumentationGroupDelete"),
|
|
6063
6130
|
input: DTODeleteDocumentationGroupInput
|
|
6064
6131
|
});
|
|
6065
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6066
|
-
type:
|
|
6132
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z216.object({
|
|
6133
|
+
type: z216.literal("DocumentationTabGroupDelete"),
|
|
6067
6134
|
input: DTODeleteDocumentationTabGroupInput
|
|
6068
6135
|
});
|
|
6069
6136
|
|
|
6070
6137
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6071
|
-
import { z as
|
|
6138
|
+
import { z as z218 } from "zod";
|
|
6072
6139
|
|
|
6073
6140
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6074
|
-
import { z as
|
|
6075
|
-
var DocumentationColorV1 =
|
|
6076
|
-
aliasTo:
|
|
6077
|
-
value:
|
|
6141
|
+
import { z as z217 } from "zod";
|
|
6142
|
+
var DocumentationColorV1 = z217.object({
|
|
6143
|
+
aliasTo: z217.string().optional(),
|
|
6144
|
+
value: z217.string().optional()
|
|
6078
6145
|
});
|
|
6079
6146
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6080
6147
|
foregroundColor: true,
|
|
@@ -6083,10 +6150,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6083
6150
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6084
6151
|
backgroundColor: DocumentationColorV1.optional()
|
|
6085
6152
|
});
|
|
6086
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6087
|
-
showSidebar:
|
|
6088
|
-
isPrivate:
|
|
6089
|
-
isHidden:
|
|
6153
|
+
var DTODocumentationItemConfigurationV1 = z217.object({
|
|
6154
|
+
showSidebar: z217.boolean(),
|
|
6155
|
+
isPrivate: z217.boolean(),
|
|
6156
|
+
isHidden: z217.boolean(),
|
|
6090
6157
|
header: DTODocumentationItemHeaderV1
|
|
6091
6158
|
});
|
|
6092
6159
|
|
|
@@ -6100,27 +6167,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6100
6167
|
data: true,
|
|
6101
6168
|
shortPersistentId: true
|
|
6102
6169
|
}).extend({
|
|
6103
|
-
title:
|
|
6104
|
-
isRoot:
|
|
6105
|
-
childrenIds:
|
|
6170
|
+
title: z218.string(),
|
|
6171
|
+
isRoot: z218.boolean(),
|
|
6172
|
+
childrenIds: z218.array(z218.string()),
|
|
6106
6173
|
groupBehavior: DocumentationGroupBehavior,
|
|
6107
|
-
shortPersistentId:
|
|
6108
|
-
type:
|
|
6174
|
+
shortPersistentId: z218.string(),
|
|
6175
|
+
type: z218.literal("Group")
|
|
6109
6176
|
});
|
|
6110
6177
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6111
6178
|
configuration: DTODocumentationItemConfigurationV1
|
|
6112
6179
|
});
|
|
6113
6180
|
|
|
6114
6181
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6115
|
-
import { z as
|
|
6116
|
-
var DTODocumentationHierarchyV2 =
|
|
6117
|
-
pages:
|
|
6182
|
+
import { z as z219 } from "zod";
|
|
6183
|
+
var DTODocumentationHierarchyV2 = z219.object({
|
|
6184
|
+
pages: z219.array(
|
|
6118
6185
|
DTODocumentationPageV2.extend({
|
|
6119
6186
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6120
6187
|
draftState: DTODocumentationDraftState.optional()
|
|
6121
6188
|
})
|
|
6122
6189
|
),
|
|
6123
|
-
groups:
|
|
6190
|
+
groups: z219.array(
|
|
6124
6191
|
DTODocumentationGroupV2.extend({
|
|
6125
6192
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6126
6193
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6129,84 +6196,84 @@ var DTODocumentationHierarchyV2 = z217.object({
|
|
|
6129
6196
|
});
|
|
6130
6197
|
|
|
6131
6198
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6132
|
-
import { z as
|
|
6133
|
-
var SuccessPayload2 =
|
|
6134
|
-
success:
|
|
6199
|
+
import { z as z220 } from "zod";
|
|
6200
|
+
var SuccessPayload2 = z220.object({
|
|
6201
|
+
success: z220.literal(true)
|
|
6135
6202
|
});
|
|
6136
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6137
|
-
type:
|
|
6203
|
+
var DTODocumentationPageCreateActionOutputV2 = z220.object({
|
|
6204
|
+
type: z220.literal("DocumentationPageCreate"),
|
|
6138
6205
|
output: SuccessPayload2
|
|
6139
6206
|
});
|
|
6140
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6141
|
-
type:
|
|
6207
|
+
var DTODocumentationPageUpdateActionOutputV2 = z220.object({
|
|
6208
|
+
type: z220.literal("DocumentationPageUpdate"),
|
|
6142
6209
|
output: SuccessPayload2
|
|
6143
6210
|
});
|
|
6144
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6145
|
-
type:
|
|
6211
|
+
var DTODocumentationPageMoveActionOutputV2 = z220.object({
|
|
6212
|
+
type: z220.literal("DocumentationPageMove"),
|
|
6146
6213
|
output: SuccessPayload2
|
|
6147
6214
|
});
|
|
6148
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6149
|
-
type:
|
|
6215
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z220.object({
|
|
6216
|
+
type: z220.literal("DocumentationPageDuplicate"),
|
|
6150
6217
|
output: SuccessPayload2
|
|
6151
6218
|
});
|
|
6152
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6153
|
-
type:
|
|
6219
|
+
var DTODocumentationPageDeleteActionOutputV2 = z220.object({
|
|
6220
|
+
type: z220.literal("DocumentationPageDelete"),
|
|
6154
6221
|
output: SuccessPayload2
|
|
6155
6222
|
});
|
|
6156
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6157
|
-
type:
|
|
6223
|
+
var DTODocumentationPageRestoreActionOutput = z220.object({
|
|
6224
|
+
type: z220.literal("DocumentationPageRestore"),
|
|
6158
6225
|
output: SuccessPayload2
|
|
6159
6226
|
});
|
|
6160
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6161
|
-
type:
|
|
6227
|
+
var DTODocumentationGroupRestoreActionOutput = z220.object({
|
|
6228
|
+
type: z220.literal("DocumentationGroupRestore"),
|
|
6162
6229
|
output: SuccessPayload2
|
|
6163
6230
|
});
|
|
6164
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6165
|
-
type:
|
|
6231
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z220.object({
|
|
6232
|
+
type: z220.literal("DocumentationPageApprovalStateChange"),
|
|
6166
6233
|
output: SuccessPayload2
|
|
6167
6234
|
});
|
|
6168
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6169
|
-
type:
|
|
6235
|
+
var DTODocumentationPageCreateActionInputV2 = z220.object({
|
|
6236
|
+
type: z220.literal("DocumentationPageCreate"),
|
|
6170
6237
|
input: DTOCreateDocumentationPageInputV2
|
|
6171
6238
|
});
|
|
6172
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6173
|
-
type:
|
|
6239
|
+
var DTODocumentationPageUpdateActionInputV2 = z220.object({
|
|
6240
|
+
type: z220.literal("DocumentationPageUpdate"),
|
|
6174
6241
|
input: DTOUpdateDocumentationPageInputV2
|
|
6175
6242
|
});
|
|
6176
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6177
|
-
type:
|
|
6243
|
+
var DTODocumentationPageMoveActionInputV2 = z220.object({
|
|
6244
|
+
type: z220.literal("DocumentationPageMove"),
|
|
6178
6245
|
input: DTOMoveDocumentationPageInputV2
|
|
6179
6246
|
});
|
|
6180
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6181
|
-
type:
|
|
6247
|
+
var DTODocumentationPageDuplicateActionInputV2 = z220.object({
|
|
6248
|
+
type: z220.literal("DocumentationPageDuplicate"),
|
|
6182
6249
|
input: DTODuplicateDocumentationPageInputV2
|
|
6183
6250
|
});
|
|
6184
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6185
|
-
type:
|
|
6251
|
+
var DTODocumentationPageDeleteActionInputV2 = z220.object({
|
|
6252
|
+
type: z220.literal("DocumentationPageDelete"),
|
|
6186
6253
|
input: DTODeleteDocumentationPageInputV2
|
|
6187
6254
|
});
|
|
6188
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6189
|
-
type:
|
|
6255
|
+
var DTODocumentationPageRestoreActionInput = z220.object({
|
|
6256
|
+
type: z220.literal("DocumentationPageRestore"),
|
|
6190
6257
|
input: DTORestoreDocumentationPageInput
|
|
6191
6258
|
});
|
|
6192
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6193
|
-
type:
|
|
6259
|
+
var DTODocumentationGroupRestoreActionInput = z220.object({
|
|
6260
|
+
type: z220.literal("DocumentationGroupRestore"),
|
|
6194
6261
|
input: DTORestoreDocumentationGroupInput
|
|
6195
6262
|
});
|
|
6196
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6197
|
-
type:
|
|
6263
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z220.object({
|
|
6264
|
+
type: z220.literal("DocumentationPageApprovalStateChange"),
|
|
6198
6265
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6199
6266
|
});
|
|
6200
6267
|
|
|
6201
6268
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6202
|
-
import { z as
|
|
6269
|
+
import { z as z221 } from "zod";
|
|
6203
6270
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6204
|
-
var DTODocumentationPageContentGetResponse =
|
|
6271
|
+
var DTODocumentationPageContentGetResponse = z221.object({
|
|
6205
6272
|
pageContent: DTODocumentationPageContent
|
|
6206
6273
|
});
|
|
6207
6274
|
|
|
6208
6275
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6209
|
-
import { z as
|
|
6276
|
+
import { z as z222 } from "zod";
|
|
6210
6277
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6211
6278
|
data: true,
|
|
6212
6279
|
meta: true,
|
|
@@ -6214,32 +6281,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6214
6281
|
sortOrder: true
|
|
6215
6282
|
}).extend({
|
|
6216
6283
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6217
|
-
blocks:
|
|
6218
|
-
title:
|
|
6219
|
-
path:
|
|
6284
|
+
blocks: z222.array(PageBlockV1),
|
|
6285
|
+
title: z222.string(),
|
|
6286
|
+
path: z222.string()
|
|
6220
6287
|
});
|
|
6221
6288
|
|
|
6222
6289
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6223
|
-
import { z as
|
|
6290
|
+
import { z as z223 } from "zod";
|
|
6224
6291
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6225
|
-
var DTOFigmaNodeOrigin =
|
|
6226
|
-
sourceId:
|
|
6227
|
-
fileId:
|
|
6228
|
-
parentName:
|
|
6292
|
+
var DTOFigmaNodeOrigin = z223.object({
|
|
6293
|
+
sourceId: z223.string(),
|
|
6294
|
+
fileId: z223.string().optional(),
|
|
6295
|
+
parentName: z223.string().optional()
|
|
6229
6296
|
});
|
|
6230
|
-
var DTOFigmaNodeData =
|
|
6297
|
+
var DTOFigmaNodeData = z223.object({
|
|
6231
6298
|
// Id of the node in the Figma file
|
|
6232
|
-
figmaNodeId:
|
|
6299
|
+
figmaNodeId: z223.string(),
|
|
6233
6300
|
// Validity
|
|
6234
|
-
isValid:
|
|
6301
|
+
isValid: z223.boolean(),
|
|
6235
6302
|
// Asset data
|
|
6236
|
-
assetId:
|
|
6237
|
-
assetUrl:
|
|
6303
|
+
assetId: z223.string(),
|
|
6304
|
+
assetUrl: z223.string(),
|
|
6238
6305
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6239
6306
|
// Asset metadata
|
|
6240
|
-
assetScale:
|
|
6241
|
-
assetWidth:
|
|
6242
|
-
assetHeight:
|
|
6307
|
+
assetScale: z223.number(),
|
|
6308
|
+
assetWidth: z223.number().optional(),
|
|
6309
|
+
assetHeight: z223.number().optional()
|
|
6243
6310
|
});
|
|
6244
6311
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6245
6312
|
data: true,
|
|
@@ -6248,15 +6315,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6248
6315
|
data: DTOFigmaNodeData,
|
|
6249
6316
|
origin: DTOFigmaNodeOrigin
|
|
6250
6317
|
});
|
|
6251
|
-
var DTOFigmaNodeRenderInput =
|
|
6318
|
+
var DTOFigmaNodeRenderInput = z223.object({
|
|
6252
6319
|
/**
|
|
6253
6320
|
* Id of a design system's data source representing a linked Figma file
|
|
6254
6321
|
*/
|
|
6255
|
-
sourceId:
|
|
6322
|
+
sourceId: z223.string(),
|
|
6256
6323
|
/**
|
|
6257
6324
|
* Id of a node within the Figma file
|
|
6258
6325
|
*/
|
|
6259
|
-
figmaFileNodeId:
|
|
6326
|
+
figmaFileNodeId: z223.string(),
|
|
6260
6327
|
/**
|
|
6261
6328
|
* Format in which the node must be rendered, png by default.
|
|
6262
6329
|
*/
|
|
@@ -6264,97 +6331,97 @@ var DTOFigmaNodeRenderInput = z221.object({
|
|
|
6264
6331
|
});
|
|
6265
6332
|
|
|
6266
6333
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6267
|
-
import { z as
|
|
6268
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6269
|
-
type:
|
|
6270
|
-
figmaNodes:
|
|
6334
|
+
import { z as z224 } from "zod";
|
|
6335
|
+
var DTOFigmaNodeRenderActionOutput = z224.object({
|
|
6336
|
+
type: z224.literal("FigmaNodeRender"),
|
|
6337
|
+
figmaNodes: z224.array(DTOFigmaNode)
|
|
6271
6338
|
});
|
|
6272
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6273
|
-
type:
|
|
6339
|
+
var DTOFigmaNodeRenderActionInput = z224.object({
|
|
6340
|
+
type: z224.literal("FigmaNodeRender"),
|
|
6274
6341
|
input: DTOFigmaNodeRenderInput.array()
|
|
6275
6342
|
});
|
|
6276
6343
|
|
|
6277
6344
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6278
|
-
import { z as
|
|
6345
|
+
import { z as z226 } from "zod";
|
|
6279
6346
|
|
|
6280
6347
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6281
|
-
import { z as
|
|
6348
|
+
import { z as z225 } from "zod";
|
|
6282
6349
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6283
|
-
var DTOElementPropertyDefinition =
|
|
6284
|
-
id:
|
|
6285
|
-
designSystemVersionId:
|
|
6350
|
+
var DTOElementPropertyDefinition = z225.object({
|
|
6351
|
+
id: z225.string(),
|
|
6352
|
+
designSystemVersionId: z225.string(),
|
|
6286
6353
|
meta: ObjectMeta,
|
|
6287
|
-
persistentId:
|
|
6354
|
+
persistentId: z225.string(),
|
|
6288
6355
|
type: ElementPropertyTypeSchema,
|
|
6289
6356
|
targetElementType: ElementPropertyTargetType,
|
|
6290
|
-
codeName:
|
|
6291
|
-
options:
|
|
6357
|
+
codeName: z225.string().regex(CODE_NAME_REGEX2),
|
|
6358
|
+
options: z225.array(ElementPropertyDefinitionOption).optional(),
|
|
6292
6359
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6293
6360
|
});
|
|
6294
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6295
|
-
definitions:
|
|
6361
|
+
var DTOElementPropertyDefinitionsGetResponse = z225.object({
|
|
6362
|
+
definitions: z225.array(DTOElementPropertyDefinition)
|
|
6296
6363
|
});
|
|
6297
6364
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6298
6365
|
id: true,
|
|
6299
6366
|
designSystemVersionId: true
|
|
6300
6367
|
});
|
|
6301
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6302
|
-
id:
|
|
6303
|
-
name:
|
|
6304
|
-
description:
|
|
6305
|
-
codeName:
|
|
6306
|
-
options:
|
|
6368
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z225.object({
|
|
6369
|
+
id: z225.string(),
|
|
6370
|
+
name: z225.string().optional(),
|
|
6371
|
+
description: z225.string().optional(),
|
|
6372
|
+
codeName: z225.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6373
|
+
options: z225.array(ElementPropertyDefinitionOption).optional()
|
|
6307
6374
|
});
|
|
6308
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6309
|
-
id:
|
|
6375
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z225.object({
|
|
6376
|
+
id: z225.string()
|
|
6310
6377
|
});
|
|
6311
6378
|
|
|
6312
6379
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6313
|
-
var SuccessPayload3 =
|
|
6314
|
-
success:
|
|
6380
|
+
var SuccessPayload3 = z226.object({
|
|
6381
|
+
success: z226.literal(true)
|
|
6315
6382
|
});
|
|
6316
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6317
|
-
type:
|
|
6383
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z226.object({
|
|
6384
|
+
type: z226.literal("PropertyDefinitionCreate"),
|
|
6318
6385
|
definition: DTOElementPropertyDefinition
|
|
6319
6386
|
});
|
|
6320
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6321
|
-
type:
|
|
6387
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z226.object({
|
|
6388
|
+
type: z226.literal("PropertyDefinitionUpdate"),
|
|
6322
6389
|
definition: DTOElementPropertyDefinition
|
|
6323
6390
|
});
|
|
6324
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6325
|
-
type:
|
|
6391
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z226.object({
|
|
6392
|
+
type: z226.literal("PropertyDefinitionDelete"),
|
|
6326
6393
|
output: SuccessPayload3
|
|
6327
6394
|
});
|
|
6328
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6329
|
-
type:
|
|
6395
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z226.object({
|
|
6396
|
+
type: z226.literal("PropertyDefinitionCreate"),
|
|
6330
6397
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6331
6398
|
});
|
|
6332
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6333
|
-
type:
|
|
6399
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z226.object({
|
|
6400
|
+
type: z226.literal("PropertyDefinitionUpdate"),
|
|
6334
6401
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6335
6402
|
});
|
|
6336
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6337
|
-
type:
|
|
6403
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z226.object({
|
|
6404
|
+
type: z226.literal("PropertyDefinitionDelete"),
|
|
6338
6405
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6339
6406
|
});
|
|
6340
6407
|
|
|
6341
6408
|
// src/api/dto/elements/properties/property-values.ts
|
|
6342
|
-
import { z as
|
|
6343
|
-
var DTOElementPropertyValue =
|
|
6344
|
-
id:
|
|
6345
|
-
designSystemVersionId:
|
|
6346
|
-
definitionId:
|
|
6347
|
-
targetElementId:
|
|
6348
|
-
value:
|
|
6349
|
-
valuePreview:
|
|
6409
|
+
import { z as z227 } from "zod";
|
|
6410
|
+
var DTOElementPropertyValue = z227.object({
|
|
6411
|
+
id: z227.string(),
|
|
6412
|
+
designSystemVersionId: z227.string(),
|
|
6413
|
+
definitionId: z227.string(),
|
|
6414
|
+
targetElementId: z227.string(),
|
|
6415
|
+
value: z227.union([z227.string(), z227.number(), z227.boolean()]).optional(),
|
|
6416
|
+
valuePreview: z227.string().optional()
|
|
6350
6417
|
});
|
|
6351
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6352
|
-
values:
|
|
6418
|
+
var DTOElementPropertyValuesGetResponse = z227.object({
|
|
6419
|
+
values: z227.array(DTOElementPropertyValue)
|
|
6353
6420
|
});
|
|
6354
6421
|
|
|
6355
6422
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6356
|
-
import { z as
|
|
6357
|
-
var DTOElementActionOutput =
|
|
6423
|
+
import { z as z228 } from "zod";
|
|
6424
|
+
var DTOElementActionOutput = z228.discriminatedUnion("type", [
|
|
6358
6425
|
// Documentation pages
|
|
6359
6426
|
DTODocumentationPageCreateActionOutputV2,
|
|
6360
6427
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6381,7 +6448,7 @@ var DTOElementActionOutput = z226.discriminatedUnion("type", [
|
|
|
6381
6448
|
// Approvals
|
|
6382
6449
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6383
6450
|
]);
|
|
6384
|
-
var DTOElementActionInput =
|
|
6451
|
+
var DTOElementActionInput = z228.discriminatedUnion("type", [
|
|
6385
6452
|
// Documentation pages
|
|
6386
6453
|
DTODocumentationPageCreateActionInputV2,
|
|
6387
6454
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6410,60 +6477,60 @@ var DTOElementActionInput = z226.discriminatedUnion("type", [
|
|
|
6410
6477
|
]);
|
|
6411
6478
|
|
|
6412
6479
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6413
|
-
import { z as
|
|
6414
|
-
var DTOElementsGetTypeFilter =
|
|
6415
|
-
var DTOElementsGetQuerySchema =
|
|
6416
|
-
types:
|
|
6480
|
+
import { z as z229 } from "zod";
|
|
6481
|
+
var DTOElementsGetTypeFilter = z229.enum(["FigmaNode"]);
|
|
6482
|
+
var DTOElementsGetQuerySchema = z229.object({
|
|
6483
|
+
types: z229.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6417
6484
|
});
|
|
6418
|
-
var DTOElementsGetOutput =
|
|
6419
|
-
figmaNodes:
|
|
6485
|
+
var DTOElementsGetOutput = z229.object({
|
|
6486
|
+
figmaNodes: z229.array(DTOFigmaNode).optional()
|
|
6420
6487
|
});
|
|
6421
6488
|
|
|
6422
6489
|
// src/api/dto/figma-components/assets/download.ts
|
|
6423
|
-
import { z as
|
|
6424
|
-
var DTOAssetRenderConfiguration =
|
|
6425
|
-
prefix:
|
|
6426
|
-
suffix:
|
|
6427
|
-
scale:
|
|
6428
|
-
format:
|
|
6429
|
-
});
|
|
6430
|
-
var DTORenderedAssetFile =
|
|
6431
|
-
assetId:
|
|
6432
|
-
fileName:
|
|
6433
|
-
sourceUrl:
|
|
6490
|
+
import { z as z230 } from "zod";
|
|
6491
|
+
var DTOAssetRenderConfiguration = z230.object({
|
|
6492
|
+
prefix: z230.string().optional(),
|
|
6493
|
+
suffix: z230.string().optional(),
|
|
6494
|
+
scale: z230.enum(["x1", "x2", "x3", "x4"]),
|
|
6495
|
+
format: z230.enum(["png", "pdf", "svg"])
|
|
6496
|
+
});
|
|
6497
|
+
var DTORenderedAssetFile = z230.object({
|
|
6498
|
+
assetId: z230.string(),
|
|
6499
|
+
fileName: z230.string(),
|
|
6500
|
+
sourceUrl: z230.string(),
|
|
6434
6501
|
settings: DTOAssetRenderConfiguration,
|
|
6435
|
-
originalName:
|
|
6502
|
+
originalName: z230.string()
|
|
6436
6503
|
});
|
|
6437
|
-
var DTODownloadAssetsRequest =
|
|
6438
|
-
persistentIds:
|
|
6504
|
+
var DTODownloadAssetsRequest = z230.object({
|
|
6505
|
+
persistentIds: z230.array(z230.string().uuid()).optional(),
|
|
6439
6506
|
settings: DTOAssetRenderConfiguration.array()
|
|
6440
6507
|
});
|
|
6441
|
-
var DTODownloadAssetsResponse =
|
|
6508
|
+
var DTODownloadAssetsResponse = z230.object({
|
|
6442
6509
|
items: DTORenderedAssetFile.array()
|
|
6443
6510
|
});
|
|
6444
6511
|
|
|
6445
6512
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6446
|
-
import { z as
|
|
6447
|
-
var DTOLiveblocksAuthResponse =
|
|
6448
|
-
token:
|
|
6513
|
+
import { z as z231 } from "zod";
|
|
6514
|
+
var DTOLiveblocksAuthResponse = z231.object({
|
|
6515
|
+
token: z231.string()
|
|
6449
6516
|
});
|
|
6450
6517
|
|
|
6451
6518
|
// src/api/dto/users/authenticated-user.ts
|
|
6452
|
-
import { z as
|
|
6519
|
+
import { z as z233 } from "zod";
|
|
6453
6520
|
|
|
6454
6521
|
// src/api/dto/users/user.ts
|
|
6455
|
-
import { z as
|
|
6456
|
-
var DTOUserProfile =
|
|
6457
|
-
name:
|
|
6458
|
-
nickname:
|
|
6459
|
-
avatar:
|
|
6460
|
-
});
|
|
6461
|
-
var DTOUser =
|
|
6462
|
-
id:
|
|
6463
|
-
email:
|
|
6522
|
+
import { z as z232 } from "zod";
|
|
6523
|
+
var DTOUserProfile = z232.object({
|
|
6524
|
+
name: z232.string(),
|
|
6525
|
+
nickname: z232.string().optional(),
|
|
6526
|
+
avatar: z232.string().optional()
|
|
6527
|
+
});
|
|
6528
|
+
var DTOUser = z232.object({
|
|
6529
|
+
id: z232.string(),
|
|
6530
|
+
email: z232.string(),
|
|
6464
6531
|
profile: DTOUserProfile
|
|
6465
6532
|
});
|
|
6466
|
-
var DTOUserGetResponse =
|
|
6533
|
+
var DTOUserGetResponse = z232.object({
|
|
6467
6534
|
user: DTOUser
|
|
6468
6535
|
});
|
|
6469
6536
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6472,34 +6539,34 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6472
6539
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6473
6540
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6474
6541
|
var DTOUserSource = UserSource;
|
|
6475
|
-
var DTOUserOnboarding =
|
|
6476
|
-
companyName:
|
|
6477
|
-
numberOfPeopleInOrg:
|
|
6478
|
-
numberOfPeopleInDesignTeam:
|
|
6542
|
+
var DTOUserOnboarding = z233.object({
|
|
6543
|
+
companyName: z233.string().optional(),
|
|
6544
|
+
numberOfPeopleInOrg: z233.string().optional(),
|
|
6545
|
+
numberOfPeopleInDesignTeam: z233.string().optional(),
|
|
6479
6546
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6480
|
-
jobTitle:
|
|
6481
|
-
phase:
|
|
6547
|
+
jobTitle: z233.string().optional(),
|
|
6548
|
+
phase: z233.string().optional(),
|
|
6482
6549
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6483
|
-
designSystemName:
|
|
6484
|
-
defaultDestination:
|
|
6485
|
-
isPageDraftOnboardingFinished:
|
|
6550
|
+
designSystemName: z233.string().optional(),
|
|
6551
|
+
defaultDestination: z233.string().optional(),
|
|
6552
|
+
isPageDraftOnboardingFinished: z233.boolean().optional()
|
|
6486
6553
|
});
|
|
6487
6554
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6488
6555
|
onboarding: DTOUserOnboarding.optional()
|
|
6489
6556
|
});
|
|
6490
6557
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6491
6558
|
profile: DTOAuthenticatedUserProfile,
|
|
6492
|
-
createdAt:
|
|
6493
|
-
loggedOutAt:
|
|
6559
|
+
createdAt: z233.coerce.date(),
|
|
6560
|
+
loggedOutAt: z233.coerce.date().optional(),
|
|
6494
6561
|
source: DTOUserSource.optional()
|
|
6495
6562
|
});
|
|
6496
|
-
var DTOAuthenticatedUserResponse =
|
|
6563
|
+
var DTOAuthenticatedUserResponse = z233.object({
|
|
6497
6564
|
user: DTOAuthenticatedUser
|
|
6498
6565
|
});
|
|
6499
6566
|
|
|
6500
6567
|
// src/api/dto/users/update.ts
|
|
6501
|
-
import { z as
|
|
6502
|
-
var DTOUserProfileUpdateResponse =
|
|
6568
|
+
import { z as z234 } from "zod";
|
|
6569
|
+
var DTOUserProfileUpdateResponse = z234.object({
|
|
6503
6570
|
user: User
|
|
6504
6571
|
});
|
|
6505
6572
|
|
|
@@ -6532,7 +6599,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6532
6599
|
};
|
|
6533
6600
|
|
|
6534
6601
|
// src/api/endpoints/design-systems.ts
|
|
6535
|
-
import { z as
|
|
6602
|
+
import { z as z235 } from "zod";
|
|
6536
6603
|
var DesignSystemsEndpoint = class {
|
|
6537
6604
|
constructor(requestExecutor) {
|
|
6538
6605
|
this.requestExecutor = requestExecutor;
|
|
@@ -6548,10 +6615,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6548
6615
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6549
6616
|
}
|
|
6550
6617
|
get(dsId) {
|
|
6551
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6618
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z235.any());
|
|
6552
6619
|
}
|
|
6553
6620
|
delete(dsId) {
|
|
6554
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6621
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z235.any(), { method: "DELETE" });
|
|
6555
6622
|
}
|
|
6556
6623
|
update(dsId, body) {
|
|
6557
6624
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6567,6 +6634,19 @@ var DesignSystemsEndpoint = class {
|
|
|
6567
6634
|
}
|
|
6568
6635
|
};
|
|
6569
6636
|
|
|
6637
|
+
// src/api/endpoints/token-collections.ts
|
|
6638
|
+
var TokenCollectionsEndpoint = class {
|
|
6639
|
+
constructor(requestExecutor) {
|
|
6640
|
+
this.requestExecutor = requestExecutor;
|
|
6641
|
+
}
|
|
6642
|
+
list(dsId, vId) {
|
|
6643
|
+
return this.requestExecutor.json(
|
|
6644
|
+
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6645
|
+
DTOTokenCollectionsListReponse
|
|
6646
|
+
);
|
|
6647
|
+
}
|
|
6648
|
+
};
|
|
6649
|
+
|
|
6570
6650
|
// src/api/endpoints/users.ts
|
|
6571
6651
|
var UsersEndpoint = class {
|
|
6572
6652
|
constructor(requestExecutor) {
|
|
@@ -6607,7 +6687,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6607
6687
|
};
|
|
6608
6688
|
|
|
6609
6689
|
// src/api/endpoints/workspace-members.ts
|
|
6610
|
-
import { z as
|
|
6690
|
+
import { z as z236 } from "zod";
|
|
6611
6691
|
var WorkspaceMembersEndpoint = class {
|
|
6612
6692
|
constructor(requestExecutor) {
|
|
6613
6693
|
this.requestExecutor = requestExecutor;
|
|
@@ -6624,7 +6704,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6624
6704
|
});
|
|
6625
6705
|
}
|
|
6626
6706
|
invite(workspaceId, body) {
|
|
6627
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6707
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z236.any(), { method: "POST", body });
|
|
6628
6708
|
}
|
|
6629
6709
|
delete(workspaceId, userId) {
|
|
6630
6710
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6634,7 +6714,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6634
6714
|
};
|
|
6635
6715
|
|
|
6636
6716
|
// src/api/endpoints/workspaces.ts
|
|
6637
|
-
import { z as
|
|
6717
|
+
import { z as z237 } from "zod";
|
|
6638
6718
|
var WorkspacesEndpoint = class {
|
|
6639
6719
|
constructor(requestExecutor) {
|
|
6640
6720
|
this.requestExecutor = requestExecutor;
|
|
@@ -6654,10 +6734,10 @@ var WorkspacesEndpoint = class {
|
|
|
6654
6734
|
});
|
|
6655
6735
|
}
|
|
6656
6736
|
delete(workspaceId) {
|
|
6657
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6737
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z237.any(), { method: "DELETE" });
|
|
6658
6738
|
}
|
|
6659
6739
|
subscription(workspaceId) {
|
|
6660
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6740
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z237.any(), { method: "GET" });
|
|
6661
6741
|
}
|
|
6662
6742
|
};
|
|
6663
6743
|
|
|
@@ -6716,9 +6796,9 @@ ${bodyText}`,
|
|
|
6716
6796
|
|
|
6717
6797
|
// src/api/transport/request-executor.ts
|
|
6718
6798
|
import fetch from "node-fetch";
|
|
6719
|
-
import { z as
|
|
6720
|
-
var ResponseWrapper =
|
|
6721
|
-
result:
|
|
6799
|
+
import { z as z238 } from "zod";
|
|
6800
|
+
var ResponseWrapper = z238.object({
|
|
6801
|
+
result: z238.record(z238.any())
|
|
6722
6802
|
});
|
|
6723
6803
|
var RequestExecutor = class {
|
|
6724
6804
|
constructor(testServerConfig) {
|
|
@@ -6840,7 +6920,7 @@ function generateHash(input, debug = false) {
|
|
|
6840
6920
|
}
|
|
6841
6921
|
|
|
6842
6922
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6843
|
-
import { z as
|
|
6923
|
+
import { z as z239 } from "zod";
|
|
6844
6924
|
|
|
6845
6925
|
// src/yjs/version-room/base.ts
|
|
6846
6926
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7370,24 +7450,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7370
7450
|
};
|
|
7371
7451
|
|
|
7372
7452
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7373
|
-
var DocumentationHierarchySettings =
|
|
7374
|
-
routingVersion:
|
|
7375
|
-
isDraftFeatureAdopted:
|
|
7376
|
-
isApprovalFeatureEnabled:
|
|
7377
|
-
approvalRequiredForPublishing:
|
|
7453
|
+
var DocumentationHierarchySettings = z239.object({
|
|
7454
|
+
routingVersion: z239.string(),
|
|
7455
|
+
isDraftFeatureAdopted: z239.boolean(),
|
|
7456
|
+
isApprovalFeatureEnabled: z239.boolean(),
|
|
7457
|
+
approvalRequiredForPublishing: z239.boolean()
|
|
7378
7458
|
});
|
|
7379
7459
|
function yjsToDocumentationHierarchy(doc) {
|
|
7380
7460
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7381
7461
|
}
|
|
7382
7462
|
|
|
7383
7463
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7384
|
-
import { z as
|
|
7385
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7386
|
-
title:
|
|
7464
|
+
import { z as z240 } from "zod";
|
|
7465
|
+
var DTODocumentationPageRoomHeaderData = z240.object({
|
|
7466
|
+
title: z240.string(),
|
|
7387
7467
|
configuration: DTODocumentationItemConfigurationV2
|
|
7388
7468
|
});
|
|
7389
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7390
|
-
title:
|
|
7469
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z240.object({
|
|
7470
|
+
title: z240.string().optional(),
|
|
7391
7471
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7392
7472
|
});
|
|
7393
7473
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7438,7 +7518,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7438
7518
|
header: rawHeader
|
|
7439
7519
|
};
|
|
7440
7520
|
return {
|
|
7441
|
-
title:
|
|
7521
|
+
title: z240.string().parse(title),
|
|
7442
7522
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7443
7523
|
};
|
|
7444
7524
|
}
|
|
@@ -7448,9 +7528,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7448
7528
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7449
7529
|
|
|
7450
7530
|
// src/yjs/docs-editor/model/page.ts
|
|
7451
|
-
import { z as
|
|
7452
|
-
var DocumentationPageEditorModel =
|
|
7453
|
-
blocks:
|
|
7531
|
+
import { z as z241 } from "zod";
|
|
7532
|
+
var DocumentationPageEditorModel = z241.object({
|
|
7533
|
+
blocks: z241.array(DocumentationPageContentItem)
|
|
7454
7534
|
});
|
|
7455
7535
|
|
|
7456
7536
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10970,7 +11050,7 @@ var blocks = [
|
|
|
10970
11050
|
|
|
10971
11051
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10972
11052
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10973
|
-
import { z as
|
|
11053
|
+
import { z as z242 } from "zod";
|
|
10974
11054
|
function yDocToPage(yDoc, definitions) {
|
|
10975
11055
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10976
11056
|
}
|
|
@@ -11050,7 +11130,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11050
11130
|
return null;
|
|
11051
11131
|
return {
|
|
11052
11132
|
id,
|
|
11053
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11133
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z242.string()) ?? "",
|
|
11054
11134
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11055
11135
|
};
|
|
11056
11136
|
}
|
|
@@ -11085,7 +11165,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11085
11165
|
});
|
|
11086
11166
|
}
|
|
11087
11167
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11088
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11168
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z242.string());
|
|
11089
11169
|
if (!definitionId) {
|
|
11090
11170
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11091
11171
|
return [];
|
|
@@ -11127,7 +11207,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11127
11207
|
if (!id)
|
|
11128
11208
|
return null;
|
|
11129
11209
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11130
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11210
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z242.string().optional()));
|
|
11131
11211
|
return {
|
|
11132
11212
|
id,
|
|
11133
11213
|
type: "Block",
|
|
@@ -11255,10 +11335,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11255
11335
|
return null;
|
|
11256
11336
|
}
|
|
11257
11337
|
function parseProsemirrorLink(mark) {
|
|
11258
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11338
|
+
const href = getProsemirrorAttribute(mark, "href", z242.string().optional());
|
|
11259
11339
|
if (!href)
|
|
11260
11340
|
return null;
|
|
11261
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11341
|
+
const target = getProsemirrorAttribute(mark, "target", z242.string().optional());
|
|
11262
11342
|
const openInNewTab = target === "_blank";
|
|
11263
11343
|
if (href.startsWith("@")) {
|
|
11264
11344
|
return {
|
|
@@ -11277,10 +11357,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11277
11357
|
}
|
|
11278
11358
|
}
|
|
11279
11359
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11280
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11360
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z242.string().optional());
|
|
11281
11361
|
if (!highlightId)
|
|
11282
11362
|
return null;
|
|
11283
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11363
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z242.boolean().optional()) ?? false;
|
|
11284
11364
|
return {
|
|
11285
11365
|
type: "Comment",
|
|
11286
11366
|
commentHighlightId: highlightId,
|
|
@@ -11292,7 +11372,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11292
11372
|
if (!id)
|
|
11293
11373
|
return null;
|
|
11294
11374
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11295
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11375
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z242.boolean().optional()) !== false;
|
|
11296
11376
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11297
11377
|
if (!tableChild) {
|
|
11298
11378
|
return emptyTable(id, variantId, 0);
|
|
@@ -11339,9 +11419,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11339
11419
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11340
11420
|
if (!id)
|
|
11341
11421
|
return null;
|
|
11342
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11422
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z242.string().optional());
|
|
11343
11423
|
let columnWidth;
|
|
11344
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11424
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z242.array(z242.number()).nullish());
|
|
11345
11425
|
if (columnWidthArray) {
|
|
11346
11426
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11347
11427
|
}
|
|
@@ -11379,7 +11459,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11379
11459
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11380
11460
|
};
|
|
11381
11461
|
case "image":
|
|
11382
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11462
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z242.string());
|
|
11383
11463
|
if (!items)
|
|
11384
11464
|
return null;
|
|
11385
11465
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11499,7 +11579,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11499
11579
|
);
|
|
11500
11580
|
}
|
|
11501
11581
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11502
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11582
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z242.string());
|
|
11503
11583
|
if (!itemsString)
|
|
11504
11584
|
return null;
|
|
11505
11585
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11511,18 +11591,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11511
11591
|
}
|
|
11512
11592
|
function parseAppearance(prosemirrorNode) {
|
|
11513
11593
|
let appearance = {};
|
|
11514
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11594
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z242.string().optional());
|
|
11515
11595
|
if (rawAppearanceString) {
|
|
11516
11596
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11517
11597
|
if (parsedAppearance.success) {
|
|
11518
11598
|
appearance = parsedAppearance.data;
|
|
11519
11599
|
}
|
|
11520
11600
|
}
|
|
11521
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11601
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z242.number().optional());
|
|
11522
11602
|
if (columns) {
|
|
11523
11603
|
appearance.numberOfColumns = columns;
|
|
11524
11604
|
}
|
|
11525
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11605
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z242.string().optional());
|
|
11526
11606
|
if (backgroundColor) {
|
|
11527
11607
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11528
11608
|
if (parsedColor.success) {
|
|
@@ -11617,13 +11697,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11617
11697
|
}
|
|
11618
11698
|
}
|
|
11619
11699
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11620
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11700
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z242.string());
|
|
11621
11701
|
if (!id)
|
|
11622
11702
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11623
11703
|
return id;
|
|
11624
11704
|
}
|
|
11625
11705
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11626
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11706
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z242.string()));
|
|
11627
11707
|
}
|
|
11628
11708
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11629
11709
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11720,6 +11800,7 @@ export {
|
|
|
11720
11800
|
DTODesignSystemMembersUpdatePayload,
|
|
11721
11801
|
DTODesignSystemMembersUpdateResponse,
|
|
11722
11802
|
DTODesignSystemResponse,
|
|
11803
|
+
DTODesignSystemRole,
|
|
11723
11804
|
DTODesignSystemUpdateAccessModeInput,
|
|
11724
11805
|
DTODesignSystemUpdateInput,
|
|
11725
11806
|
DTODesignSystemVersion,
|
|
@@ -11876,6 +11957,8 @@ export {
|
|
|
11876
11957
|
DTORenderedAssetFile,
|
|
11877
11958
|
DTORestoreDocumentationGroupInput,
|
|
11878
11959
|
DTORestoreDocumentationPageInput,
|
|
11960
|
+
DTOTokenCollection,
|
|
11961
|
+
DTOTokenCollectionsListReponse,
|
|
11879
11962
|
DTOUpdateDocumentationGroupInput,
|
|
11880
11963
|
DTOUpdateDocumentationPageInputV2,
|
|
11881
11964
|
DTOUpdateElementPropertyDefinitionInputV2,
|
|
@@ -11919,6 +12002,7 @@ export {
|
|
|
11919
12002
|
RequestExecutor,
|
|
11920
12003
|
RequestExecutorError,
|
|
11921
12004
|
SupernovaApiClient,
|
|
12005
|
+
TokenCollectionsEndpoint,
|
|
11922
12006
|
UsersEndpoint,
|
|
11923
12007
|
VersionRoomBaseYDoc,
|
|
11924
12008
|
VersionSQSPayload,
|