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