@supernova-studio/client 0.54.29 → 0.54.31
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 +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1071 -1077
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -138,7 +138,7 @@ import { z as z126 } from "zod";
|
|
|
138
138
|
import { z as z127 } from "zod";
|
|
139
139
|
import { z as z128 } from "zod";
|
|
140
140
|
import { z as z129 } from "zod";
|
|
141
|
-
import { z as
|
|
141
|
+
import { z as z145 } from "zod";
|
|
142
142
|
import { z as z132 } from "zod";
|
|
143
143
|
import { z as z133 } from "zod";
|
|
144
144
|
import { z as z134 } from "zod";
|
|
@@ -147,38 +147,37 @@ import { z as z136 } from "zod";
|
|
|
147
147
|
import { z as z137 } from "zod";
|
|
148
148
|
import { z as z138 } from "zod";
|
|
149
149
|
import { z as z139 } from "zod";
|
|
150
|
+
import { z as z144 } from "zod";
|
|
150
151
|
import { z as z140 } from "zod";
|
|
151
|
-
import { z as z145 } from "zod";
|
|
152
|
-
import { z as z141 } from "zod";
|
|
153
152
|
import IPCIDR from "ip-cidr";
|
|
154
|
-
import { z as z144 } from "zod";
|
|
155
|
-
import { z as z142 } from "zod";
|
|
156
153
|
import { z as z143 } from "zod";
|
|
154
|
+
import { z as z141 } from "zod";
|
|
155
|
+
import { z as z142 } from "zod";
|
|
156
|
+
import { z as z146 } from "zod";
|
|
157
|
+
import { z as z149 } from "zod";
|
|
157
158
|
import { z as z147 } from "zod";
|
|
158
|
-
import { z as z150 } from "zod";
|
|
159
159
|
import { z as z148 } from "zod";
|
|
160
|
-
import { z as
|
|
160
|
+
import { z as z150 } from "zod";
|
|
161
161
|
import { z as z151 } from "zod";
|
|
162
162
|
import { z as z152 } from "zod";
|
|
163
163
|
import { z as z153 } from "zod";
|
|
164
164
|
import { z as z154 } from "zod";
|
|
165
165
|
import { z as z155 } from "zod";
|
|
166
|
+
import { z as z157 } from "zod";
|
|
166
167
|
import { z as z156 } from "zod";
|
|
167
168
|
import { z as z158 } from "zod";
|
|
168
|
-
import { z as z157 } from "zod";
|
|
169
169
|
import { z as z159 } from "zod";
|
|
170
170
|
import { z as z160 } from "zod";
|
|
171
171
|
import { z as z161 } from "zod";
|
|
172
172
|
import { z as z162 } from "zod";
|
|
173
|
+
import { z as z170 } from "zod";
|
|
174
|
+
import { z as z164 } from "zod";
|
|
173
175
|
import { z as z163 } from "zod";
|
|
174
|
-
import { z as z171 } from "zod";
|
|
175
176
|
import { z as z165 } from "zod";
|
|
176
|
-
import { z as z164 } from "zod";
|
|
177
177
|
import { z as z166 } from "zod";
|
|
178
178
|
import { z as z167 } from "zod";
|
|
179
179
|
import { z as z168 } from "zod";
|
|
180
180
|
import { z as z169 } from "zod";
|
|
181
|
-
import { z as z170 } from "zod";
|
|
182
181
|
var __defProp2 = Object.defineProperty;
|
|
183
182
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
184
183
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -3625,7 +3624,7 @@ var DesignSystem = z117.object({
|
|
|
3625
3624
|
docUserSlug: nullishToOptional(z117.string()),
|
|
3626
3625
|
docSlugDeprecated: z117.string(),
|
|
3627
3626
|
isPublic: z117.boolean(),
|
|
3628
|
-
|
|
3627
|
+
isMultiBrand: z117.boolean(),
|
|
3629
3628
|
docViewUrl: nullishToOptional(z117.string()),
|
|
3630
3629
|
basePrefixes: z117.array(z117.string()),
|
|
3631
3630
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
@@ -3966,106 +3965,101 @@ var UserAnalyticsCleanupSchedule = z133.object({
|
|
|
3966
3965
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3967
3966
|
createdAt: true
|
|
3968
3967
|
});
|
|
3969
|
-
var
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
username: z134.string()
|
|
3968
|
+
var UserIdentity = z134.object({
|
|
3969
|
+
id: z134.string(),
|
|
3970
|
+
userId: z134.string()
|
|
3973
3971
|
});
|
|
3974
|
-
var
|
|
3972
|
+
var UserMinified = z135.object({
|
|
3975
3973
|
id: z135.string(),
|
|
3976
|
-
|
|
3974
|
+
name: z135.string(),
|
|
3975
|
+
email: z135.string(),
|
|
3976
|
+
avatar: z135.string().optional()
|
|
3977
3977
|
});
|
|
3978
|
-
var
|
|
3979
|
-
|
|
3980
|
-
name: z136.string(),
|
|
3981
|
-
email: z136.string(),
|
|
3982
|
-
avatar: z136.string().optional()
|
|
3978
|
+
var LiveblocksNotificationSettings = z136.object({
|
|
3979
|
+
sendCommentNotificationEmails: z136.boolean()
|
|
3983
3980
|
});
|
|
3984
|
-
var
|
|
3985
|
-
sendCommentNotificationEmails: z137.boolean()
|
|
3986
|
-
});
|
|
3987
|
-
var UserNotificationSettings = z137.object({
|
|
3981
|
+
var UserNotificationSettings = z136.object({
|
|
3988
3982
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3989
3983
|
});
|
|
3990
|
-
var UserOnboardingDepartment =
|
|
3991
|
-
var UserOnboardingJobLevel =
|
|
3992
|
-
var UserOnboarding =
|
|
3993
|
-
companyName:
|
|
3994
|
-
numberOfPeopleInOrg:
|
|
3995
|
-
numberOfPeopleInDesignTeam:
|
|
3984
|
+
var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3985
|
+
var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3986
|
+
var UserOnboarding = z137.object({
|
|
3987
|
+
companyName: z137.string().optional(),
|
|
3988
|
+
numberOfPeopleInOrg: z137.string().optional(),
|
|
3989
|
+
numberOfPeopleInDesignTeam: z137.string().optional(),
|
|
3996
3990
|
department: UserOnboardingDepartment.optional(),
|
|
3997
|
-
jobTitle:
|
|
3998
|
-
phase:
|
|
3991
|
+
jobTitle: z137.string().optional(),
|
|
3992
|
+
phase: z137.string().optional(),
|
|
3999
3993
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4000
|
-
designSystemName:
|
|
4001
|
-
defaultDestination:
|
|
4002
|
-
figmaUrl:
|
|
4003
|
-
isPageDraftOnboardingFinished:
|
|
4004
|
-
isApprovalsOnboardingFinished:
|
|
4005
|
-
});
|
|
4006
|
-
var UserProfile =
|
|
4007
|
-
name:
|
|
4008
|
-
avatar:
|
|
4009
|
-
nickname:
|
|
3994
|
+
designSystemName: z137.string().optional(),
|
|
3995
|
+
defaultDestination: z137.string().optional(),
|
|
3996
|
+
figmaUrl: z137.string().optional(),
|
|
3997
|
+
isPageDraftOnboardingFinished: z137.boolean().optional(),
|
|
3998
|
+
isApprovalsOnboardingFinished: z137.boolean().optional()
|
|
3999
|
+
});
|
|
4000
|
+
var UserProfile = z137.object({
|
|
4001
|
+
name: z137.string(),
|
|
4002
|
+
avatar: z137.string().optional(),
|
|
4003
|
+
nickname: z137.string().optional(),
|
|
4010
4004
|
onboarding: UserOnboarding.optional()
|
|
4011
4005
|
});
|
|
4012
4006
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4013
4007
|
avatar: true
|
|
4014
4008
|
});
|
|
4015
|
-
var UserTest =
|
|
4016
|
-
id:
|
|
4017
|
-
email:
|
|
4009
|
+
var UserTest = z138.object({
|
|
4010
|
+
id: z138.string(),
|
|
4011
|
+
email: z138.string()
|
|
4018
4012
|
});
|
|
4019
|
-
var UserSource =
|
|
4020
|
-
var User =
|
|
4021
|
-
id:
|
|
4022
|
-
email:
|
|
4023
|
-
emailVerified:
|
|
4024
|
-
createdAt:
|
|
4025
|
-
trialExpiresAt:
|
|
4013
|
+
var UserSource = z139.enum(["SignUp", "Invite", "SSO"]);
|
|
4014
|
+
var User = z139.object({
|
|
4015
|
+
id: z139.string(),
|
|
4016
|
+
email: z139.string(),
|
|
4017
|
+
emailVerified: z139.boolean(),
|
|
4018
|
+
createdAt: z139.coerce.date(),
|
|
4019
|
+
trialExpiresAt: z139.coerce.date().optional(),
|
|
4026
4020
|
profile: UserProfile,
|
|
4027
4021
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4028
|
-
loggedOutAt:
|
|
4029
|
-
isProtected:
|
|
4022
|
+
loggedOutAt: z139.coerce.date().optional(),
|
|
4023
|
+
isProtected: z139.boolean(),
|
|
4030
4024
|
source: UserSource.optional()
|
|
4031
4025
|
});
|
|
4032
|
-
var IntegrationDesignSystem =
|
|
4033
|
-
designSystemId:
|
|
4034
|
-
brandId:
|
|
4035
|
-
title:
|
|
4036
|
-
userId:
|
|
4037
|
-
date:
|
|
4038
|
-
});
|
|
4039
|
-
var IntegrationCredentialsType =
|
|
4040
|
-
var IntegrationCredentialsState =
|
|
4041
|
-
var IntegrationCredentialsProfile =
|
|
4042
|
-
id: nullishToOptional(
|
|
4043
|
-
email: nullishToOptional(
|
|
4044
|
-
handle: nullishToOptional(
|
|
4045
|
-
type: nullishToOptional(
|
|
4046
|
-
avatarUrl: nullishToOptional(
|
|
4047
|
-
organization: nullishToOptional(
|
|
4048
|
-
collection: nullishToOptional(
|
|
4049
|
-
});
|
|
4050
|
-
var IntegrationCredentials =
|
|
4051
|
-
id:
|
|
4026
|
+
var IntegrationDesignSystem = z140.object({
|
|
4027
|
+
designSystemId: z140.string(),
|
|
4028
|
+
brandId: z140.string(),
|
|
4029
|
+
title: z140.string().optional(),
|
|
4030
|
+
userId: z140.string().optional(),
|
|
4031
|
+
date: z140.coerce.date().optional()
|
|
4032
|
+
});
|
|
4033
|
+
var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4034
|
+
var IntegrationCredentialsState = z140.enum(["Active", "Inactive"]);
|
|
4035
|
+
var IntegrationCredentialsProfile = z140.object({
|
|
4036
|
+
id: nullishToOptional(z140.string()),
|
|
4037
|
+
email: nullishToOptional(z140.string()),
|
|
4038
|
+
handle: nullishToOptional(z140.string()),
|
|
4039
|
+
type: nullishToOptional(z140.string()),
|
|
4040
|
+
avatarUrl: nullishToOptional(z140.string()),
|
|
4041
|
+
organization: nullishToOptional(z140.string()),
|
|
4042
|
+
collection: nullishToOptional(z140.string())
|
|
4043
|
+
});
|
|
4044
|
+
var IntegrationCredentials = z140.object({
|
|
4045
|
+
id: z140.string(),
|
|
4052
4046
|
type: IntegrationCredentialsType,
|
|
4053
|
-
integrationId:
|
|
4054
|
-
accessToken:
|
|
4055
|
-
userId:
|
|
4056
|
-
createdAt:
|
|
4057
|
-
refreshToken:
|
|
4058
|
-
tokenName:
|
|
4059
|
-
expiresAt:
|
|
4060
|
-
refreshedAt:
|
|
4061
|
-
username:
|
|
4062
|
-
appInstallationId:
|
|
4047
|
+
integrationId: z140.string(),
|
|
4048
|
+
accessToken: z140.string(),
|
|
4049
|
+
userId: z140.string(),
|
|
4050
|
+
createdAt: z140.coerce.date(),
|
|
4051
|
+
refreshToken: z140.string().optional(),
|
|
4052
|
+
tokenName: z140.string().optional(),
|
|
4053
|
+
expiresAt: z140.coerce.date().optional(),
|
|
4054
|
+
refreshedAt: z140.coerce.date().optional(),
|
|
4055
|
+
username: z140.string().optional(),
|
|
4056
|
+
appInstallationId: z140.string().optional(),
|
|
4063
4057
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4064
|
-
customUrl:
|
|
4058
|
+
customUrl: z140.string().optional(),
|
|
4065
4059
|
state: IntegrationCredentialsState,
|
|
4066
4060
|
user: UserMinified.optional()
|
|
4067
4061
|
});
|
|
4068
|
-
var ExtendedIntegrationType =
|
|
4062
|
+
var ExtendedIntegrationType = z140.enum([
|
|
4069
4063
|
"Figma",
|
|
4070
4064
|
"Github",
|
|
4071
4065
|
"Gitlab",
|
|
@@ -4076,26 +4070,26 @@ var ExtendedIntegrationType = z141.enum([
|
|
|
4076
4070
|
]);
|
|
4077
4071
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4078
4072
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4079
|
-
var Integration =
|
|
4080
|
-
id:
|
|
4081
|
-
workspaceId:
|
|
4073
|
+
var Integration = z140.object({
|
|
4074
|
+
id: z140.string(),
|
|
4075
|
+
workspaceId: z140.string(),
|
|
4082
4076
|
type: IntegrationType,
|
|
4083
|
-
createdAt:
|
|
4084
|
-
integrationCredentials:
|
|
4085
|
-
});
|
|
4086
|
-
var IntegrationToken =
|
|
4087
|
-
access_token:
|
|
4088
|
-
refresh_token:
|
|
4089
|
-
expires_in:
|
|
4090
|
-
token_type:
|
|
4091
|
-
token_name:
|
|
4092
|
-
token_azure_organization_name:
|
|
4077
|
+
createdAt: z140.coerce.date(),
|
|
4078
|
+
integrationCredentials: z140.array(IntegrationCredentials).optional()
|
|
4079
|
+
});
|
|
4080
|
+
var IntegrationToken = z140.object({
|
|
4081
|
+
access_token: z140.string(),
|
|
4082
|
+
refresh_token: z140.string().optional(),
|
|
4083
|
+
expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
|
|
4084
|
+
token_type: z140.string().optional(),
|
|
4085
|
+
token_name: z140.string().optional(),
|
|
4086
|
+
token_azure_organization_name: z140.string().optional(),
|
|
4093
4087
|
// Azure Cloud PAT only
|
|
4094
|
-
token_azure_collection_name:
|
|
4088
|
+
token_azure_collection_name: z140.string().optional(),
|
|
4095
4089
|
// Azure Server PAT only
|
|
4096
|
-
token_bitbucket_username:
|
|
4090
|
+
token_bitbucket_username: z140.string().optional(),
|
|
4097
4091
|
// Bitbucket only
|
|
4098
|
-
custom_url:
|
|
4092
|
+
custom_url: z140.string().optional().transform((value) => {
|
|
4099
4093
|
if (!value?.trim())
|
|
4100
4094
|
return void 0;
|
|
4101
4095
|
return formatCustomUrl(value);
|
|
@@ -4131,158 +4125,158 @@ function formatCustomUrl(url) {
|
|
|
4131
4125
|
}
|
|
4132
4126
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4133
4127
|
}
|
|
4134
|
-
var NpmRegistryAuthType =
|
|
4135
|
-
var NpmRegistryType =
|
|
4136
|
-
var NpmRegistryBasicAuthConfig =
|
|
4137
|
-
authType:
|
|
4138
|
-
username:
|
|
4139
|
-
password:
|
|
4128
|
+
var NpmRegistryAuthType = z141.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4129
|
+
var NpmRegistryType = z141.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4130
|
+
var NpmRegistryBasicAuthConfig = z141.object({
|
|
4131
|
+
authType: z141.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4132
|
+
username: z141.string(),
|
|
4133
|
+
password: z141.string()
|
|
4140
4134
|
});
|
|
4141
|
-
var NpmRegistryBearerAuthConfig =
|
|
4142
|
-
authType:
|
|
4143
|
-
accessToken:
|
|
4135
|
+
var NpmRegistryBearerAuthConfig = z141.object({
|
|
4136
|
+
authType: z141.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4137
|
+
accessToken: z141.string()
|
|
4144
4138
|
});
|
|
4145
|
-
var NpmRegistryNoAuthConfig =
|
|
4146
|
-
authType:
|
|
4139
|
+
var NpmRegistryNoAuthConfig = z141.object({
|
|
4140
|
+
authType: z141.literal(NpmRegistryAuthType.Enum.None)
|
|
4147
4141
|
});
|
|
4148
|
-
var NpmRegistrCustomAuthConfig =
|
|
4149
|
-
authType:
|
|
4150
|
-
authHeaderName:
|
|
4151
|
-
authHeaderValue:
|
|
4142
|
+
var NpmRegistrCustomAuthConfig = z141.object({
|
|
4143
|
+
authType: z141.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4144
|
+
authHeaderName: z141.string(),
|
|
4145
|
+
authHeaderValue: z141.string()
|
|
4152
4146
|
});
|
|
4153
|
-
var NpmRegistryAuthConfig =
|
|
4147
|
+
var NpmRegistryAuthConfig = z141.discriminatedUnion("authType", [
|
|
4154
4148
|
NpmRegistryBasicAuthConfig,
|
|
4155
4149
|
NpmRegistryBearerAuthConfig,
|
|
4156
4150
|
NpmRegistryNoAuthConfig,
|
|
4157
4151
|
NpmRegistrCustomAuthConfig
|
|
4158
4152
|
]);
|
|
4159
|
-
var NpmRegistryConfigBase =
|
|
4153
|
+
var NpmRegistryConfigBase = z141.object({
|
|
4160
4154
|
registryType: NpmRegistryType,
|
|
4161
|
-
enabledScopes:
|
|
4162
|
-
customRegistryUrl:
|
|
4163
|
-
bypassProxy:
|
|
4164
|
-
npmProxyRegistryConfigId:
|
|
4165
|
-
npmProxyVersion:
|
|
4155
|
+
enabledScopes: z141.array(z141.string()),
|
|
4156
|
+
customRegistryUrl: z141.string().optional(),
|
|
4157
|
+
bypassProxy: z141.boolean().default(false),
|
|
4158
|
+
npmProxyRegistryConfigId: z141.string().optional(),
|
|
4159
|
+
npmProxyVersion: z141.number().optional()
|
|
4166
4160
|
});
|
|
4167
4161
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4168
|
-
var SsoProvider =
|
|
4169
|
-
providerId:
|
|
4170
|
-
defaultAutoInviteValue:
|
|
4171
|
-
autoInviteDomains:
|
|
4172
|
-
skipDocsSupernovaLogin:
|
|
4173
|
-
areInvitesDisabled:
|
|
4174
|
-
isTestMode:
|
|
4175
|
-
emailDomains:
|
|
4176
|
-
metadataXml:
|
|
4162
|
+
var SsoProvider = z142.object({
|
|
4163
|
+
providerId: z142.string(),
|
|
4164
|
+
defaultAutoInviteValue: z142.boolean(),
|
|
4165
|
+
autoInviteDomains: z142.record(z142.string(), z142.boolean()),
|
|
4166
|
+
skipDocsSupernovaLogin: z142.boolean(),
|
|
4167
|
+
areInvitesDisabled: z142.boolean(),
|
|
4168
|
+
isTestMode: z142.boolean(),
|
|
4169
|
+
emailDomains: z142.array(z142.string()),
|
|
4170
|
+
metadataXml: z142.string().nullish()
|
|
4177
4171
|
});
|
|
4178
4172
|
var isValidCIDR = (value) => {
|
|
4179
4173
|
return IPCIDR.isValidAddress(value);
|
|
4180
4174
|
};
|
|
4181
|
-
var WorkspaceIpWhitelistEntry =
|
|
4182
|
-
isEnabled:
|
|
4183
|
-
name:
|
|
4184
|
-
range:
|
|
4175
|
+
var WorkspaceIpWhitelistEntry = z143.object({
|
|
4176
|
+
isEnabled: z143.boolean(),
|
|
4177
|
+
name: z143.string(),
|
|
4178
|
+
range: z143.string().refine(isValidCIDR, {
|
|
4185
4179
|
message: "Invalid IP CIDR"
|
|
4186
4180
|
})
|
|
4187
4181
|
});
|
|
4188
|
-
var WorkspaceIpSettings =
|
|
4189
|
-
isEnabledForCloud:
|
|
4190
|
-
isEnabledForDocs:
|
|
4191
|
-
entries:
|
|
4182
|
+
var WorkspaceIpSettings = z143.object({
|
|
4183
|
+
isEnabledForCloud: z143.boolean(),
|
|
4184
|
+
isEnabledForDocs: z143.boolean(),
|
|
4185
|
+
entries: z143.array(WorkspaceIpWhitelistEntry)
|
|
4192
4186
|
});
|
|
4193
|
-
var WorkspaceProfile =
|
|
4194
|
-
name:
|
|
4195
|
-
handle:
|
|
4196
|
-
color:
|
|
4197
|
-
avatar: nullishToOptional(
|
|
4187
|
+
var WorkspaceProfile = z143.object({
|
|
4188
|
+
name: z143.string(),
|
|
4189
|
+
handle: z143.string(),
|
|
4190
|
+
color: z143.string(),
|
|
4191
|
+
avatar: nullishToOptional(z143.string()),
|
|
4198
4192
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4199
4193
|
});
|
|
4200
4194
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4201
4195
|
avatar: true
|
|
4202
4196
|
});
|
|
4203
|
-
var Workspace =
|
|
4204
|
-
id:
|
|
4197
|
+
var Workspace = z143.object({
|
|
4198
|
+
id: z143.string(),
|
|
4205
4199
|
profile: WorkspaceProfile,
|
|
4206
4200
|
subscription: Subscription,
|
|
4207
4201
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4208
4202
|
sso: nullishToOptional(SsoProvider),
|
|
4209
4203
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4210
4204
|
});
|
|
4211
|
-
var WorkspaceWithDesignSystems =
|
|
4205
|
+
var WorkspaceWithDesignSystems = z143.object({
|
|
4212
4206
|
workspace: Workspace,
|
|
4213
|
-
designSystems:
|
|
4207
|
+
designSystems: z143.array(DesignSystem)
|
|
4214
4208
|
});
|
|
4215
|
-
var WorkspaceDump =
|
|
4209
|
+
var WorkspaceDump = z144.object({
|
|
4216
4210
|
workspace: Workspace,
|
|
4217
4211
|
designSystems: DesignSystemDump.array(),
|
|
4218
4212
|
codeIntegration: CodeIntegrationDump,
|
|
4219
4213
|
integrations: Integration.array()
|
|
4220
4214
|
});
|
|
4221
|
-
var UserDump =
|
|
4215
|
+
var UserDump = z145.object({
|
|
4222
4216
|
user: User,
|
|
4223
4217
|
workspaces: WorkspaceDump.array()
|
|
4224
4218
|
});
|
|
4225
|
-
var NpmProxyToken =
|
|
4226
|
-
access:
|
|
4227
|
-
expiresAt:
|
|
4219
|
+
var NpmProxyToken = z146.object({
|
|
4220
|
+
access: z146.string(),
|
|
4221
|
+
expiresAt: z146.number()
|
|
4228
4222
|
});
|
|
4229
|
-
var SessionData =
|
|
4230
|
-
returnToUrl:
|
|
4223
|
+
var SessionData = z146.object({
|
|
4224
|
+
returnToUrl: z146.string().optional(),
|
|
4231
4225
|
npmProxyToken: NpmProxyToken.optional()
|
|
4232
4226
|
});
|
|
4233
|
-
var Session =
|
|
4234
|
-
id:
|
|
4235
|
-
expiresAt:
|
|
4236
|
-
userId:
|
|
4227
|
+
var Session = z146.object({
|
|
4228
|
+
id: z146.string(),
|
|
4229
|
+
expiresAt: z146.coerce.date(),
|
|
4230
|
+
userId: z146.string().nullable(),
|
|
4237
4231
|
data: SessionData
|
|
4238
4232
|
});
|
|
4239
|
-
var AuthTokens =
|
|
4240
|
-
access:
|
|
4241
|
-
refresh:
|
|
4233
|
+
var AuthTokens = z146.object({
|
|
4234
|
+
access: z146.string(),
|
|
4235
|
+
refresh: z146.string()
|
|
4242
4236
|
});
|
|
4243
|
-
var UserSession =
|
|
4237
|
+
var UserSession = z146.object({
|
|
4244
4238
|
session: Session,
|
|
4245
4239
|
user: User.nullable()
|
|
4246
4240
|
});
|
|
4247
|
-
var EventDataSourceImported =
|
|
4248
|
-
type:
|
|
4241
|
+
var EventDataSourceImported = z147.object({
|
|
4242
|
+
type: z147.literal("DataSourceImported"),
|
|
4243
|
+
workspaceId: z147.string(),
|
|
4244
|
+
designSystemId: z147.string()
|
|
4245
|
+
});
|
|
4246
|
+
var EventVersionReleased = z148.object({
|
|
4247
|
+
type: z148.literal("DesignSystemVersionReleased"),
|
|
4249
4248
|
workspaceId: z148.string(),
|
|
4250
|
-
designSystemId: z148.string()
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
});
|
|
4258
|
-
var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4259
|
-
var ExportJobDocumentationContext = z151.object({
|
|
4260
|
-
isSingleVersionDocs: z151.boolean(),
|
|
4261
|
-
versionSlug: z151.string(),
|
|
4249
|
+
designSystemId: z148.string(),
|
|
4250
|
+
versionId: z148.string()
|
|
4251
|
+
});
|
|
4252
|
+
var Event = z149.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4253
|
+
var ExportJobDocumentationContext = z150.object({
|
|
4254
|
+
isSingleVersionDocs: z150.boolean(),
|
|
4255
|
+
versionSlug: z150.string(),
|
|
4262
4256
|
environment: PublishedDocEnvironment
|
|
4263
4257
|
});
|
|
4264
|
-
var ExportJobContext =
|
|
4265
|
-
apiUrl:
|
|
4266
|
-
accessToken:
|
|
4267
|
-
designSystemId:
|
|
4268
|
-
designSystemName:
|
|
4269
|
-
exporterId:
|
|
4270
|
-
versionId:
|
|
4271
|
-
brandId:
|
|
4272
|
-
themeId:
|
|
4273
|
-
themePersistentIds:
|
|
4274
|
-
exporterName:
|
|
4275
|
-
exporterPackageUrl:
|
|
4258
|
+
var ExportJobContext = z150.object({
|
|
4259
|
+
apiUrl: z150.string(),
|
|
4260
|
+
accessToken: z150.string(),
|
|
4261
|
+
designSystemId: z150.string(),
|
|
4262
|
+
designSystemName: z150.string(),
|
|
4263
|
+
exporterId: z150.string(),
|
|
4264
|
+
versionId: z150.string(),
|
|
4265
|
+
brandId: z150.string().optional(),
|
|
4266
|
+
themeId: z150.string().optional(),
|
|
4267
|
+
themePersistentIds: z150.string().array().optional(),
|
|
4268
|
+
exporterName: z150.string(),
|
|
4269
|
+
exporterPackageUrl: z150.string(),
|
|
4276
4270
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4277
4271
|
documentation: ExportJobDocumentationContext.optional()
|
|
4278
4272
|
});
|
|
4279
|
-
var ExporterFunctionPayload =
|
|
4280
|
-
exportJobId:
|
|
4281
|
-
exportContextId:
|
|
4282
|
-
designSystemId:
|
|
4283
|
-
workspaceId:
|
|
4273
|
+
var ExporterFunctionPayload = z151.object({
|
|
4274
|
+
exportJobId: z151.string(),
|
|
4275
|
+
exportContextId: z151.string(),
|
|
4276
|
+
designSystemId: z151.string(),
|
|
4277
|
+
workspaceId: z151.string()
|
|
4284
4278
|
});
|
|
4285
|
-
var ExportJobDestinationType =
|
|
4279
|
+
var ExportJobDestinationType = z152.enum([
|
|
4286
4280
|
"s3",
|
|
4287
4281
|
"webhookUrl",
|
|
4288
4282
|
"github",
|
|
@@ -4291,30 +4285,30 @@ var ExportJobDestinationType = z153.enum([
|
|
|
4291
4285
|
"gitlab",
|
|
4292
4286
|
"bitbucket"
|
|
4293
4287
|
]);
|
|
4294
|
-
var ExportJobStatus =
|
|
4295
|
-
var ExportJobLogEntryType =
|
|
4296
|
-
var ExportJobLogEntry =
|
|
4297
|
-
id:
|
|
4298
|
-
time:
|
|
4288
|
+
var ExportJobStatus = z152.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4289
|
+
var ExportJobLogEntryType = z152.enum(["success", "info", "warning", "error", "user"]);
|
|
4290
|
+
var ExportJobLogEntry = z152.object({
|
|
4291
|
+
id: z152.string().optional(),
|
|
4292
|
+
time: z152.coerce.date(),
|
|
4299
4293
|
type: ExportJobLogEntryType,
|
|
4300
|
-
message:
|
|
4294
|
+
message: z152.string()
|
|
4301
4295
|
});
|
|
4302
|
-
var ExportJobPullRequestDestinationResult =
|
|
4303
|
-
pullRequestUrl:
|
|
4296
|
+
var ExportJobPullRequestDestinationResult = z152.object({
|
|
4297
|
+
pullRequestUrl: z152.string()
|
|
4304
4298
|
});
|
|
4305
|
-
var ExportJobS3DestinationResult =
|
|
4306
|
-
bucket:
|
|
4307
|
-
urlPrefix:
|
|
4308
|
-
path:
|
|
4309
|
-
files:
|
|
4310
|
-
url: nullishToOptional(
|
|
4311
|
-
urls: nullishToOptional(
|
|
4299
|
+
var ExportJobS3DestinationResult = z152.object({
|
|
4300
|
+
bucket: z152.string(),
|
|
4301
|
+
urlPrefix: z152.string().optional(),
|
|
4302
|
+
path: z152.string(),
|
|
4303
|
+
files: z152.array(z152.string()),
|
|
4304
|
+
url: nullishToOptional(z152.string()),
|
|
4305
|
+
urls: nullishToOptional(z152.string().array())
|
|
4312
4306
|
});
|
|
4313
|
-
var ExportJobDocsDestinationResult =
|
|
4314
|
-
url:
|
|
4307
|
+
var ExportJobDocsDestinationResult = z152.object({
|
|
4308
|
+
url: z152.string()
|
|
4315
4309
|
});
|
|
4316
|
-
var ExportJobResult =
|
|
4317
|
-
error:
|
|
4310
|
+
var ExportJobResult = z152.object({
|
|
4311
|
+
error: z152.string().optional(),
|
|
4318
4312
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4319
4313
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4320
4314
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4323,22 +4317,22 @@ var ExportJobResult = z153.object({
|
|
|
4323
4317
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4324
4318
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4325
4319
|
});
|
|
4326
|
-
var ExportJob =
|
|
4327
|
-
id:
|
|
4328
|
-
createdAt:
|
|
4329
|
-
finishedAt:
|
|
4330
|
-
designSystemId:
|
|
4331
|
-
designSystemVersionId:
|
|
4332
|
-
workspaceId:
|
|
4333
|
-
scheduleId:
|
|
4334
|
-
exporterId:
|
|
4335
|
-
brandId:
|
|
4336
|
-
themeId:
|
|
4337
|
-
themePersistentIds:
|
|
4338
|
-
estimatedExecutionTime:
|
|
4320
|
+
var ExportJob = z152.object({
|
|
4321
|
+
id: z152.string(),
|
|
4322
|
+
createdAt: z152.coerce.date(),
|
|
4323
|
+
finishedAt: z152.coerce.date().optional(),
|
|
4324
|
+
designSystemId: z152.string(),
|
|
4325
|
+
designSystemVersionId: z152.string(),
|
|
4326
|
+
workspaceId: z152.string(),
|
|
4327
|
+
scheduleId: z152.string().nullish(),
|
|
4328
|
+
exporterId: z152.string(),
|
|
4329
|
+
brandId: z152.string().optional(),
|
|
4330
|
+
themeId: z152.string().optional(),
|
|
4331
|
+
themePersistentIds: z152.string().array().optional(),
|
|
4332
|
+
estimatedExecutionTime: z152.number().optional(),
|
|
4339
4333
|
status: ExportJobStatus,
|
|
4340
4334
|
result: ExportJobResult.optional(),
|
|
4341
|
-
createdByUserId:
|
|
4335
|
+
createdByUserId: z152.string().optional(),
|
|
4342
4336
|
// Destinations
|
|
4343
4337
|
...ExportDestinationsMap.shape
|
|
4344
4338
|
});
|
|
@@ -4352,24 +4346,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4352
4346
|
themeId: true,
|
|
4353
4347
|
brandId: true
|
|
4354
4348
|
}).extend({
|
|
4355
|
-
destinations:
|
|
4349
|
+
destinations: z152.array(ExportJobDestinationType),
|
|
4356
4350
|
docsEnvironment: PublishedDocEnvironment
|
|
4357
4351
|
}).partial();
|
|
4358
|
-
var ExporterWorkspaceMembershipRole =
|
|
4359
|
-
var ExporterWorkspaceMembership =
|
|
4360
|
-
id:
|
|
4361
|
-
workspaceId:
|
|
4362
|
-
exporterId:
|
|
4352
|
+
var ExporterWorkspaceMembershipRole = z153.enum(["Owner", "OwnerArchived", "User"]);
|
|
4353
|
+
var ExporterWorkspaceMembership = z154.object({
|
|
4354
|
+
id: z154.string(),
|
|
4355
|
+
workspaceId: z154.string(),
|
|
4356
|
+
exporterId: z154.string(),
|
|
4363
4357
|
role: ExporterWorkspaceMembershipRole
|
|
4364
4358
|
});
|
|
4365
|
-
var FlaggedFeature =
|
|
4366
|
-
var FeatureFlagMap =
|
|
4367
|
-
var FeatureFlag =
|
|
4368
|
-
id:
|
|
4359
|
+
var FlaggedFeature = z155.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4360
|
+
var FeatureFlagMap = z155.record(FlaggedFeature, z155.boolean());
|
|
4361
|
+
var FeatureFlag = z155.object({
|
|
4362
|
+
id: z155.string(),
|
|
4369
4363
|
feature: FlaggedFeature,
|
|
4370
|
-
createdAt:
|
|
4371
|
-
enabled:
|
|
4372
|
-
designSystemId:
|
|
4364
|
+
createdAt: z155.coerce.date(),
|
|
4365
|
+
enabled: z155.boolean(),
|
|
4366
|
+
designSystemId: z155.string().optional()
|
|
4373
4367
|
});
|
|
4374
4368
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4375
4369
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4379,173 +4373,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4379
4373
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4380
4374
|
return OAuthProviderNames2;
|
|
4381
4375
|
})(OAuthProviderNames || {});
|
|
4382
|
-
var OAuthProviderSchema =
|
|
4376
|
+
var OAuthProviderSchema = z156.nativeEnum(OAuthProviderNames);
|
|
4383
4377
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4384
|
-
var ExternalOAuthRequest =
|
|
4385
|
-
id:
|
|
4378
|
+
var ExternalOAuthRequest = z157.object({
|
|
4379
|
+
id: z157.string(),
|
|
4386
4380
|
provider: OAuthProviderSchema,
|
|
4387
|
-
userId:
|
|
4388
|
-
state:
|
|
4389
|
-
createdAt:
|
|
4381
|
+
userId: z157.string(),
|
|
4382
|
+
state: z157.string(),
|
|
4383
|
+
createdAt: z157.coerce.date()
|
|
4390
4384
|
});
|
|
4391
|
-
var GitObjectsQuery =
|
|
4392
|
-
organization:
|
|
4385
|
+
var GitObjectsQuery = z158.object({
|
|
4386
|
+
organization: z158.string().optional(),
|
|
4393
4387
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4394
|
-
project:
|
|
4388
|
+
project: z158.string().optional(),
|
|
4395
4389
|
// Only for Bitbucket and Azure
|
|
4396
|
-
repository:
|
|
4390
|
+
repository: z158.string().optional(),
|
|
4397
4391
|
// For all providers. For Gitlab, it's called "project".
|
|
4398
|
-
branch:
|
|
4392
|
+
branch: z158.string().optional(),
|
|
4399
4393
|
// For all providers.
|
|
4400
|
-
user:
|
|
4394
|
+
user: z158.string().optional()
|
|
4401
4395
|
// Gitlab user
|
|
4402
4396
|
});
|
|
4403
|
-
var GitOrganization =
|
|
4404
|
-
id:
|
|
4405
|
-
name:
|
|
4406
|
-
url:
|
|
4407
|
-
slug:
|
|
4397
|
+
var GitOrganization = z158.object({
|
|
4398
|
+
id: z158.string(),
|
|
4399
|
+
name: z158.string(),
|
|
4400
|
+
url: z158.string(),
|
|
4401
|
+
slug: z158.string()
|
|
4408
4402
|
});
|
|
4409
|
-
var GitProject =
|
|
4410
|
-
id:
|
|
4411
|
-
name:
|
|
4412
|
-
url:
|
|
4413
|
-
slug:
|
|
4403
|
+
var GitProject = z158.object({
|
|
4404
|
+
id: z158.string(),
|
|
4405
|
+
name: z158.string(),
|
|
4406
|
+
url: z158.string(),
|
|
4407
|
+
slug: z158.string()
|
|
4414
4408
|
});
|
|
4415
|
-
var GitRepository =
|
|
4416
|
-
id:
|
|
4417
|
-
name:
|
|
4418
|
-
url:
|
|
4419
|
-
slug:
|
|
4409
|
+
var GitRepository = z158.object({
|
|
4410
|
+
id: z158.string(),
|
|
4411
|
+
name: z158.string(),
|
|
4412
|
+
url: z158.string(),
|
|
4413
|
+
slug: z158.string(),
|
|
4420
4414
|
/**
|
|
4421
4415
|
* Can be undefined when:
|
|
4422
4416
|
* - there are no branches in the repository yet
|
|
4423
4417
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4424
4418
|
*/
|
|
4425
|
-
defaultBranch:
|
|
4419
|
+
defaultBranch: z158.string().optional()
|
|
4426
4420
|
});
|
|
4427
|
-
var GitBranch =
|
|
4428
|
-
name:
|
|
4429
|
-
lastCommitId:
|
|
4421
|
+
var GitBranch = z158.object({
|
|
4422
|
+
name: z158.string(),
|
|
4423
|
+
lastCommitId: z158.string()
|
|
4430
4424
|
});
|
|
4431
|
-
var IntegrationTokenSchemaOld =
|
|
4425
|
+
var IntegrationTokenSchemaOld = z159.object({
|
|
4426
|
+
id: z159.string(),
|
|
4427
|
+
provider: OAuthProviderSchema,
|
|
4428
|
+
scope: z159.string(),
|
|
4429
|
+
userId: z159.string(),
|
|
4430
|
+
accessToken: z159.string(),
|
|
4431
|
+
refreshToken: z159.string(),
|
|
4432
|
+
expiresAt: z159.coerce.date(),
|
|
4433
|
+
externalUserId: z159.string().nullish()
|
|
4434
|
+
});
|
|
4435
|
+
var WorkspaceOAuthRequestSchema = z160.object({
|
|
4432
4436
|
id: z160.string(),
|
|
4437
|
+
workspaceId: z160.string(),
|
|
4433
4438
|
provider: OAuthProviderSchema,
|
|
4434
|
-
scope: z160.string(),
|
|
4435
4439
|
userId: z160.string(),
|
|
4436
|
-
|
|
4437
|
-
refreshToken: z160.string(),
|
|
4438
|
-
expiresAt: z160.coerce.date(),
|
|
4439
|
-
externalUserId: z160.string().nullish()
|
|
4440
|
-
});
|
|
4441
|
-
var WorkspaceOAuthRequestSchema = z161.object({
|
|
4442
|
-
id: z161.string(),
|
|
4443
|
-
workspaceId: z161.string(),
|
|
4444
|
-
provider: OAuthProviderSchema,
|
|
4445
|
-
userId: z161.string(),
|
|
4446
|
-
createdAt: z161.coerce.date()
|
|
4440
|
+
createdAt: z160.coerce.date()
|
|
4447
4441
|
});
|
|
4448
|
-
var AnyRecord =
|
|
4442
|
+
var AnyRecord = z161.record(z161.any());
|
|
4449
4443
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4450
|
-
|
|
4451
|
-
tarball:
|
|
4444
|
+
z161.object({
|
|
4445
|
+
tarball: z161.string()
|
|
4452
4446
|
})
|
|
4453
4447
|
);
|
|
4454
4448
|
var NpmPackageVersion = AnyRecord.and(
|
|
4455
|
-
|
|
4449
|
+
z161.object({
|
|
4456
4450
|
dist: NpmPackageVersionDist
|
|
4457
4451
|
})
|
|
4458
4452
|
);
|
|
4459
4453
|
var NpmPackage = AnyRecord.and(
|
|
4460
|
-
|
|
4461
|
-
_id:
|
|
4462
|
-
name:
|
|
4454
|
+
z161.object({
|
|
4455
|
+
_id: z161.string(),
|
|
4456
|
+
name: z161.string(),
|
|
4463
4457
|
// e.g. "latest": "1.2.3"
|
|
4464
|
-
"dist-tags":
|
|
4458
|
+
"dist-tags": z161.record(z161.string(), z161.string()),
|
|
4465
4459
|
// "1.2.3": {...}
|
|
4466
|
-
versions:
|
|
4460
|
+
versions: z161.record(NpmPackageVersion)
|
|
4467
4461
|
})
|
|
4468
4462
|
);
|
|
4469
|
-
var NpmProxyTokenPayload =
|
|
4470
|
-
npmProxyRegistryConfigId:
|
|
4463
|
+
var NpmProxyTokenPayload = z162.object({
|
|
4464
|
+
npmProxyRegistryConfigId: z162.string()
|
|
4471
4465
|
});
|
|
4472
|
-
var WorkspaceRoleSchema =
|
|
4466
|
+
var WorkspaceRoleSchema = z163.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4473
4467
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4474
4468
|
var MAX_MEMBERS_COUNT = 100;
|
|
4475
|
-
var UserInvite =
|
|
4476
|
-
email:
|
|
4469
|
+
var UserInvite = z164.object({
|
|
4470
|
+
email: z164.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4477
4471
|
role: WorkspaceRoleSchema
|
|
4478
4472
|
});
|
|
4479
|
-
var UserInvites =
|
|
4480
|
-
var WorkspaceConfigurationUpdate =
|
|
4481
|
-
id:
|
|
4473
|
+
var UserInvites = z164.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4474
|
+
var WorkspaceConfigurationUpdate = z165.object({
|
|
4475
|
+
id: z165.string(),
|
|
4482
4476
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4483
4477
|
sso: SsoProvider.optional(),
|
|
4484
4478
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4485
4479
|
profile: WorkspaceProfileUpdate.optional()
|
|
4486
4480
|
});
|
|
4487
|
-
var WorkspaceContext =
|
|
4488
|
-
workspaceId:
|
|
4481
|
+
var WorkspaceContext = z166.object({
|
|
4482
|
+
workspaceId: z166.string(),
|
|
4489
4483
|
product: ProductCodeSchema,
|
|
4490
4484
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4491
|
-
publicDesignSystem:
|
|
4485
|
+
publicDesignSystem: z166.boolean().optional()
|
|
4492
4486
|
});
|
|
4493
4487
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4494
4488
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4495
4489
|
var HANDLE_MIN_LENGTH = 2;
|
|
4496
4490
|
var HANDLE_MAX_LENGTH = 64;
|
|
4497
|
-
var CreateWorkspaceInput =
|
|
4498
|
-
name:
|
|
4491
|
+
var CreateWorkspaceInput = z167.object({
|
|
4492
|
+
name: z167.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4499
4493
|
product: ProductCodeSchema,
|
|
4500
|
-
priceId:
|
|
4501
|
-
billingEmail:
|
|
4502
|
-
handle:
|
|
4494
|
+
priceId: z167.string(),
|
|
4495
|
+
billingEmail: z167.string().email().optional(),
|
|
4496
|
+
handle: z167.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4503
4497
|
invites: UserInvites.optional(),
|
|
4504
|
-
promoCode:
|
|
4498
|
+
promoCode: z167.string().optional(),
|
|
4505
4499
|
status: InternalStatusSchema.optional(),
|
|
4506
4500
|
planInterval: BillingIntervalSchema.optional(),
|
|
4507
|
-
seats:
|
|
4508
|
-
seatLimit:
|
|
4501
|
+
seats: z167.number().optional(),
|
|
4502
|
+
seatLimit: z167.number().optional(),
|
|
4509
4503
|
card: CardSchema.optional(),
|
|
4510
4504
|
sso: SsoProvider.optional(),
|
|
4511
4505
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4512
4506
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4513
4507
|
});
|
|
4514
|
-
var WorkspaceInvitation =
|
|
4508
|
+
var WorkspaceInvitation = z168.object({
|
|
4509
|
+
id: z168.string(),
|
|
4510
|
+
email: z168.string().email(),
|
|
4511
|
+
createdAt: z168.coerce.date(),
|
|
4512
|
+
resentAt: z168.coerce.date().nullish(),
|
|
4513
|
+
role: z168.nativeEnum(WorkspaceRole),
|
|
4514
|
+
workspaceId: z168.string(),
|
|
4515
|
+
invitedBy: z168.string()
|
|
4516
|
+
});
|
|
4517
|
+
var WorkspaceMembership = z169.object({
|
|
4515
4518
|
id: z169.string(),
|
|
4516
|
-
|
|
4517
|
-
createdAt: z169.coerce.date(),
|
|
4518
|
-
resentAt: z169.coerce.date().nullish(),
|
|
4519
|
-
role: z169.nativeEnum(WorkspaceRole),
|
|
4519
|
+
userId: z169.string(),
|
|
4520
4520
|
workspaceId: z169.string(),
|
|
4521
|
-
|
|
4522
|
-
});
|
|
4523
|
-
var WorkspaceMembership = z170.object({
|
|
4524
|
-
id: z170.string(),
|
|
4525
|
-
userId: z170.string(),
|
|
4526
|
-
workspaceId: z170.string(),
|
|
4527
|
-
workspaceRole: z170.nativeEnum(WorkspaceRole),
|
|
4521
|
+
workspaceRole: z169.nativeEnum(WorkspaceRole),
|
|
4528
4522
|
notificationSettings: UserNotificationSettings
|
|
4529
4523
|
});
|
|
4530
|
-
var UpdateMembershipRolesInput =
|
|
4531
|
-
members:
|
|
4532
|
-
|
|
4533
|
-
userId:
|
|
4534
|
-
role:
|
|
4524
|
+
var UpdateMembershipRolesInput = z169.object({
|
|
4525
|
+
members: z169.array(
|
|
4526
|
+
z169.object({
|
|
4527
|
+
userId: z169.string(),
|
|
4528
|
+
role: z169.nativeEnum(WorkspaceRole)
|
|
4535
4529
|
})
|
|
4536
4530
|
)
|
|
4537
4531
|
});
|
|
4538
|
-
var PersonalAccessToken =
|
|
4539
|
-
id:
|
|
4540
|
-
userId:
|
|
4541
|
-
workspaceId:
|
|
4532
|
+
var PersonalAccessToken = z170.object({
|
|
4533
|
+
id: z170.string(),
|
|
4534
|
+
userId: z170.string(),
|
|
4535
|
+
workspaceId: z170.string().optional(),
|
|
4542
4536
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4543
|
-
name:
|
|
4544
|
-
hidden:
|
|
4545
|
-
token:
|
|
4546
|
-
scope:
|
|
4547
|
-
createdAt:
|
|
4548
|
-
expireAt:
|
|
4537
|
+
name: z170.string(),
|
|
4538
|
+
hidden: z170.boolean(),
|
|
4539
|
+
token: z170.string(),
|
|
4540
|
+
scope: z170.string().optional(),
|
|
4541
|
+
createdAt: z170.coerce.date(),
|
|
4542
|
+
expireAt: z170.coerce.date().optional()
|
|
4549
4543
|
});
|
|
4550
4544
|
|
|
4551
4545
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -4962,197 +4956,197 @@ function integrationCredentialToDto(credential) {
|
|
|
4962
4956
|
}
|
|
4963
4957
|
|
|
4964
4958
|
// src/api/dto/aux/pagination.ts
|
|
4965
|
-
import { z as
|
|
4966
|
-
var DTOPagination =
|
|
4967
|
-
limit:
|
|
4968
|
-
offset:
|
|
4959
|
+
import { z as z171 } from "zod";
|
|
4960
|
+
var DTOPagination = z171.object({
|
|
4961
|
+
limit: z171.string().optional(),
|
|
4962
|
+
offset: z171.string().optional()
|
|
4969
4963
|
});
|
|
4970
4964
|
|
|
4971
4965
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
4972
|
-
import { z as
|
|
4966
|
+
import { z as z195 } from "zod";
|
|
4973
4967
|
|
|
4974
4968
|
// src/api/dto/design-systems/brand.ts
|
|
4975
|
-
import { z as
|
|
4976
|
-
var DTOBrand =
|
|
4977
|
-
id:
|
|
4978
|
-
designSystemVersionId:
|
|
4979
|
-
persistentId:
|
|
4969
|
+
import { z as z172 } from "zod";
|
|
4970
|
+
var DTOBrand = z172.object({
|
|
4971
|
+
id: z172.string(),
|
|
4972
|
+
designSystemVersionId: z172.string(),
|
|
4973
|
+
persistentId: z172.string(),
|
|
4980
4974
|
meta: ObjectMeta
|
|
4981
4975
|
});
|
|
4982
|
-
var DTOBrandGetResponse =
|
|
4983
|
-
var DTOBrandCreateResponse =
|
|
4976
|
+
var DTOBrandGetResponse = z172.object({ brand: DTOBrand });
|
|
4977
|
+
var DTOBrandCreateResponse = z172.object({
|
|
4984
4978
|
brand: DTOBrand
|
|
4985
4979
|
});
|
|
4986
|
-
var DTOBrandsListResponse =
|
|
4980
|
+
var DTOBrandsListResponse = z172.object({ brands: z172.array(DTOBrand) });
|
|
4987
4981
|
|
|
4988
4982
|
// src/api/dto/design-systems/data-source.ts
|
|
4989
|
-
import { z as
|
|
4990
|
-
var DTODataSourceFigmaFileVersion =
|
|
4991
|
-
id:
|
|
4992
|
-
created_at:
|
|
4993
|
-
label:
|
|
4994
|
-
description:
|
|
4995
|
-
});
|
|
4996
|
-
var DTODataSourceFigmaCloud =
|
|
4997
|
-
fileId:
|
|
4983
|
+
import { z as z173 } from "zod";
|
|
4984
|
+
var DTODataSourceFigmaFileVersion = z173.object({
|
|
4985
|
+
id: z173.string(),
|
|
4986
|
+
created_at: z173.coerce.date(),
|
|
4987
|
+
label: z173.string(),
|
|
4988
|
+
description: z173.string()
|
|
4989
|
+
});
|
|
4990
|
+
var DTODataSourceFigmaCloud = z173.object({
|
|
4991
|
+
fileId: z173.string(),
|
|
4998
4992
|
state: DataSourceFigmaState,
|
|
4999
4993
|
autoImportMode: DataSourceAutoImportMode,
|
|
5000
|
-
fileThumbnailUrl:
|
|
4994
|
+
fileThumbnailUrl: z173.string().optional(),
|
|
5001
4995
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5002
|
-
lastImportedAt:
|
|
4996
|
+
lastImportedAt: z173.date().nullish(),
|
|
5003
4997
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5004
|
-
lastUpdatesCheckedAt:
|
|
5005
|
-
ownerId:
|
|
5006
|
-
ownerUserName:
|
|
5007
|
-
preferredCredentialId:
|
|
4998
|
+
lastUpdatesCheckedAt: z173.date().nullish(),
|
|
4999
|
+
ownerId: z173.string(),
|
|
5000
|
+
ownerUserName: z173.string().optional(),
|
|
5001
|
+
preferredCredentialId: z173.string().optional(),
|
|
5008
5002
|
stats: DataSourceStats
|
|
5009
5003
|
});
|
|
5010
|
-
var DTODataSourceFigma =
|
|
5011
|
-
id:
|
|
5012
|
-
type:
|
|
5013
|
-
fileName:
|
|
5004
|
+
var DTODataSourceFigma = z173.object({
|
|
5005
|
+
id: z173.string(),
|
|
5006
|
+
type: z173.literal(DataSourceRemoteType.Enum.Figma),
|
|
5007
|
+
fileName: z173.string(),
|
|
5014
5008
|
scope: DataSourceFigmaScope,
|
|
5015
|
-
brandId:
|
|
5016
|
-
themeId:
|
|
5009
|
+
brandId: z173.string(),
|
|
5010
|
+
themeId: z173.string().nullish(),
|
|
5017
5011
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5018
|
-
tokenStudio:
|
|
5019
|
-
upload:
|
|
5020
|
-
figmaVariablesPlugin:
|
|
5021
|
-
});
|
|
5022
|
-
var DTODataSourceTokenStudio =
|
|
5023
|
-
id:
|
|
5024
|
-
type:
|
|
5025
|
-
fileName:
|
|
5026
|
-
brandId:
|
|
5027
|
-
themeId:
|
|
5028
|
-
cloud:
|
|
5029
|
-
tokenStudio:
|
|
5030
|
-
settings:
|
|
5031
|
-
dryRun:
|
|
5032
|
-
verbose:
|
|
5033
|
-
preciseCopy:
|
|
5012
|
+
tokenStudio: z173.literal(null),
|
|
5013
|
+
upload: z173.literal(null),
|
|
5014
|
+
figmaVariablesPlugin: z173.literal(null)
|
|
5015
|
+
});
|
|
5016
|
+
var DTODataSourceTokenStudio = z173.object({
|
|
5017
|
+
id: z173.string(),
|
|
5018
|
+
type: z173.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5019
|
+
fileName: z173.string(),
|
|
5020
|
+
brandId: z173.string(),
|
|
5021
|
+
themeId: z173.string().nullish(),
|
|
5022
|
+
cloud: z173.literal(null),
|
|
5023
|
+
tokenStudio: z173.object({
|
|
5024
|
+
settings: z173.object({
|
|
5025
|
+
dryRun: z173.boolean(),
|
|
5026
|
+
verbose: z173.boolean(),
|
|
5027
|
+
preciseCopy: z173.boolean()
|
|
5034
5028
|
}),
|
|
5035
|
-
connectionName:
|
|
5036
|
-
lastImportedAt:
|
|
5037
|
-
lastImportedResults:
|
|
5038
|
-
|
|
5039
|
-
mapping:
|
|
5040
|
-
tokenSets:
|
|
5041
|
-
supernovaBrand:
|
|
5042
|
-
supernovaTheme:
|
|
5029
|
+
connectionName: z173.string(),
|
|
5030
|
+
lastImportedAt: z173.date(),
|
|
5031
|
+
lastImportedResults: z173.array(
|
|
5032
|
+
z173.object({
|
|
5033
|
+
mapping: z173.object({
|
|
5034
|
+
tokenSets: z173.array(z173.string()),
|
|
5035
|
+
supernovaBrand: z173.string(),
|
|
5036
|
+
supernovaTheme: z173.string().optional()
|
|
5043
5037
|
}),
|
|
5044
|
-
isFailed:
|
|
5045
|
-
tokensCreated:
|
|
5046
|
-
tokensDeleted:
|
|
5047
|
-
tokensUpdated:
|
|
5038
|
+
isFailed: z173.boolean(),
|
|
5039
|
+
tokensCreated: z173.number(),
|
|
5040
|
+
tokensDeleted: z173.number(),
|
|
5041
|
+
tokensUpdated: z173.number()
|
|
5048
5042
|
})
|
|
5049
5043
|
)
|
|
5050
5044
|
}),
|
|
5051
|
-
upload:
|
|
5052
|
-
figmaVariablesPlugin:
|
|
5053
|
-
});
|
|
5054
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5055
|
-
id:
|
|
5056
|
-
type:
|
|
5057
|
-
fileName:
|
|
5058
|
-
brandId:
|
|
5059
|
-
themeId:
|
|
5060
|
-
cloud:
|
|
5061
|
-
tokenStudio:
|
|
5062
|
-
upload:
|
|
5063
|
-
remoteId:
|
|
5045
|
+
upload: z173.literal(null),
|
|
5046
|
+
figmaVariablesPlugin: z173.literal(null)
|
|
5047
|
+
});
|
|
5048
|
+
var DTODataSourceFigmaVariablesPlugin = z173.object({
|
|
5049
|
+
id: z173.string(),
|
|
5050
|
+
type: z173.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5051
|
+
fileName: z173.string(),
|
|
5052
|
+
brandId: z173.string(),
|
|
5053
|
+
themeId: z173.literal(null),
|
|
5054
|
+
cloud: z173.literal(null),
|
|
5055
|
+
tokenStudio: z173.literal(null),
|
|
5056
|
+
upload: z173.object({
|
|
5057
|
+
remoteId: z173.string(),
|
|
5064
5058
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5065
|
-
lastImportedAt:
|
|
5059
|
+
lastImportedAt: z173.date().optional(),
|
|
5066
5060
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5067
5061
|
}),
|
|
5068
|
-
figmaVariablesPlugin:
|
|
5069
|
-
fileId:
|
|
5070
|
-
lastImportedAt:
|
|
5062
|
+
figmaVariablesPlugin: z173.object({
|
|
5063
|
+
fileId: z173.string(),
|
|
5064
|
+
lastImportedAt: z173.date().optional(),
|
|
5071
5065
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5072
5066
|
})
|
|
5073
5067
|
});
|
|
5074
|
-
var DTODataSource =
|
|
5068
|
+
var DTODataSource = z173.discriminatedUnion("type", [
|
|
5075
5069
|
DTODataSourceFigma,
|
|
5076
5070
|
DTODataSourceFigmaVariablesPlugin,
|
|
5077
5071
|
DTODataSourceTokenStudio
|
|
5078
5072
|
]);
|
|
5079
|
-
var DTODataSourcesListResponse =
|
|
5080
|
-
sources:
|
|
5073
|
+
var DTODataSourcesListResponse = z173.object({
|
|
5074
|
+
sources: z173.array(DTODataSource)
|
|
5081
5075
|
});
|
|
5082
|
-
var DTODataSourceCreationResponse =
|
|
5076
|
+
var DTODataSourceCreationResponse = z173.object({
|
|
5083
5077
|
source: DTODataSource
|
|
5084
5078
|
});
|
|
5085
5079
|
|
|
5086
5080
|
// src/api/dto/design-systems/design-system.ts
|
|
5087
|
-
import { z as
|
|
5081
|
+
import { z as z174 } from "zod";
|
|
5088
5082
|
var DTODesignSystem = DesignSystem.omit({
|
|
5089
5083
|
name: true,
|
|
5090
5084
|
description: true,
|
|
5091
5085
|
docExporterId: true
|
|
5092
5086
|
}).extend({
|
|
5093
5087
|
meta: ObjectMeta,
|
|
5094
|
-
docExporterId:
|
|
5095
|
-
sources:
|
|
5088
|
+
docExporterId: z174.string(),
|
|
5089
|
+
sources: z174.array(z174.any()),
|
|
5096
5090
|
role: WorkspaceRoleSchema.optional()
|
|
5097
5091
|
});
|
|
5098
|
-
var DTODesignSystemResponse =
|
|
5092
|
+
var DTODesignSystemResponse = z174.object({
|
|
5099
5093
|
designSystem: DTODesignSystem
|
|
5100
5094
|
});
|
|
5101
|
-
var DTODesignSystemsListResponse =
|
|
5095
|
+
var DTODesignSystemsListResponse = z174.object({
|
|
5102
5096
|
designSystems: DTODesignSystem.array()
|
|
5103
5097
|
});
|
|
5104
|
-
var DTODesignSystemCreateInput =
|
|
5105
|
-
workspaceId:
|
|
5098
|
+
var DTODesignSystemCreateInput = z174.object({
|
|
5099
|
+
workspaceId: z174.string(),
|
|
5106
5100
|
meta: ObjectMeta.optional(),
|
|
5107
|
-
name:
|
|
5108
|
-
description:
|
|
5101
|
+
name: z174.string().min(2).max(64).optional(),
|
|
5102
|
+
description: z174.string().max(1024).optional(),
|
|
5109
5103
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5110
|
-
inviteUserIds:
|
|
5104
|
+
inviteUserIds: z174.string().array().optional()
|
|
5111
5105
|
});
|
|
5112
5106
|
|
|
5113
5107
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5114
|
-
import { z as
|
|
5115
|
-
var DTODiffCountBase =
|
|
5116
|
-
created:
|
|
5117
|
-
updated:
|
|
5118
|
-
deleted:
|
|
5108
|
+
import { z as z175 } from "zod";
|
|
5109
|
+
var DTODiffCountBase = z175.object({
|
|
5110
|
+
created: z175.number(),
|
|
5111
|
+
updated: z175.number(),
|
|
5112
|
+
deleted: z175.number()
|
|
5119
5113
|
});
|
|
5120
|
-
var DTODesignElementsDataDiffResponse =
|
|
5114
|
+
var DTODesignElementsDataDiffResponse = z175.object({
|
|
5121
5115
|
tokens: DTODiffCountBase,
|
|
5122
5116
|
assets: DTODiffCountBase
|
|
5123
5117
|
});
|
|
5124
5118
|
|
|
5125
5119
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5126
|
-
import { z as
|
|
5127
|
-
var DTOExporterProperty =
|
|
5128
|
-
var DTOExporterPropertyListResponse =
|
|
5120
|
+
import { z as z176 } from "zod";
|
|
5121
|
+
var DTOExporterProperty = z176.any({});
|
|
5122
|
+
var DTOExporterPropertyListResponse = z176.object({ items: z176.array(DTOExporterProperty) });
|
|
5129
5123
|
|
|
5130
5124
|
// src/api/dto/design-systems/members.ts
|
|
5131
|
-
import { z as
|
|
5132
|
-
var DTODesignSystemMember =
|
|
5133
|
-
userId:
|
|
5125
|
+
import { z as z177 } from "zod";
|
|
5126
|
+
var DTODesignSystemMember = z177.object({
|
|
5127
|
+
userId: z177.string()
|
|
5134
5128
|
});
|
|
5135
|
-
var DTODesignSystemMemberListResponse =
|
|
5129
|
+
var DTODesignSystemMemberListResponse = z177.object({
|
|
5136
5130
|
members: DTODesignSystemMember.array()
|
|
5137
5131
|
});
|
|
5138
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5139
|
-
ok:
|
|
5132
|
+
var DTODesignSystemMembersUpdateResponse = z177.object({
|
|
5133
|
+
ok: z177.literal(true)
|
|
5140
5134
|
});
|
|
5141
|
-
var DTODesignSystemMembersUpdatePayload =
|
|
5142
|
-
inviteUserIds:
|
|
5143
|
-
removeUserIds:
|
|
5135
|
+
var DTODesignSystemMembersUpdatePayload = z177.object({
|
|
5136
|
+
inviteUserIds: z177.string().array().optional(),
|
|
5137
|
+
removeUserIds: z177.string().array().optional()
|
|
5144
5138
|
});
|
|
5145
5139
|
|
|
5146
5140
|
// src/api/dto/design-systems/version.ts
|
|
5147
|
-
import { z as
|
|
5141
|
+
import { z as z187 } from "zod";
|
|
5148
5142
|
|
|
5149
5143
|
// src/api/payloads/design-systems/brand.ts
|
|
5150
|
-
import { z as
|
|
5151
|
-
var DTOCreateBrandInput =
|
|
5152
|
-
persistentId:
|
|
5153
|
-
meta:
|
|
5154
|
-
name:
|
|
5155
|
-
description:
|
|
5144
|
+
import { z as z178 } from "zod";
|
|
5145
|
+
var DTOCreateBrandInput = z178.object({
|
|
5146
|
+
persistentId: z178.string().uuid(),
|
|
5147
|
+
meta: z178.object({
|
|
5148
|
+
name: z178.string(),
|
|
5149
|
+
description: z178.string()
|
|
5156
5150
|
})
|
|
5157
5151
|
});
|
|
5158
5152
|
|
|
@@ -5169,31 +5163,31 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5169
5163
|
});
|
|
5170
5164
|
|
|
5171
5165
|
// src/api/payloads/design-systems/version.ts
|
|
5172
|
-
import { z as
|
|
5173
|
-
var ObjectMeta2 =
|
|
5174
|
-
name:
|
|
5175
|
-
description:
|
|
5166
|
+
import { z as z179 } from "zod";
|
|
5167
|
+
var ObjectMeta2 = z179.object({
|
|
5168
|
+
name: z179.string().max(150).optional(),
|
|
5169
|
+
description: z179.string().max(2e3).optional()
|
|
5176
5170
|
});
|
|
5177
5171
|
function validateDesignSystemVersion(version) {
|
|
5178
5172
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5179
5173
|
return urlCompliantRegex.test(version);
|
|
5180
5174
|
}
|
|
5181
|
-
var DTOCreateVersionInput =
|
|
5175
|
+
var DTOCreateVersionInput = z179.object({
|
|
5182
5176
|
meta: ObjectMeta2,
|
|
5183
|
-
version:
|
|
5177
|
+
version: z179.string().refine(validateDesignSystemVersion, {
|
|
5184
5178
|
message: "Invalid semantic versioning format"
|
|
5185
5179
|
}),
|
|
5186
|
-
changeLog:
|
|
5180
|
+
changeLog: z179.string().optional()
|
|
5187
5181
|
});
|
|
5188
|
-
var DTOUpdateVersionInput =
|
|
5182
|
+
var DTOUpdateVersionInput = z179.object({
|
|
5189
5183
|
meta: ObjectMeta2,
|
|
5190
|
-
version:
|
|
5184
|
+
version: z179.string(),
|
|
5191
5185
|
// required for PUT, but not editable
|
|
5192
|
-
changeLog:
|
|
5186
|
+
changeLog: z179.string()
|
|
5193
5187
|
});
|
|
5194
5188
|
|
|
5195
5189
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5196
|
-
import { z as
|
|
5190
|
+
import { z as z180 } from "zod";
|
|
5197
5191
|
|
|
5198
5192
|
// src/api/dto/documentation/block-definition.ts
|
|
5199
5193
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5205,60 +5199,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5205
5199
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5206
5200
|
|
|
5207
5201
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5208
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5209
|
-
definitions:
|
|
5202
|
+
var DTOGetBlockDefinitionsOutput = z180.object({
|
|
5203
|
+
definitions: z180.array(DTOPageBlockDefinition)
|
|
5210
5204
|
});
|
|
5211
5205
|
|
|
5212
5206
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5213
|
-
import { z as
|
|
5214
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5215
|
-
environment:
|
|
5207
|
+
import { z as z181 } from "zod";
|
|
5208
|
+
var DTODocumentationPublishTypeQueryParams = z181.object({
|
|
5209
|
+
environment: z181.enum(["Live", "Preview"])
|
|
5216
5210
|
});
|
|
5217
5211
|
|
|
5218
5212
|
// src/api/payloads/export/pipeline.ts
|
|
5219
|
-
import { z as
|
|
5220
|
-
var DTOPipelineCreateBody =
|
|
5221
|
-
name:
|
|
5222
|
-
exporterId:
|
|
5223
|
-
designSystemId:
|
|
5224
|
-
isEnabled:
|
|
5213
|
+
import { z as z182 } from "zod";
|
|
5214
|
+
var DTOPipelineCreateBody = z182.object({
|
|
5215
|
+
name: z182.string(),
|
|
5216
|
+
exporterId: z182.string(),
|
|
5217
|
+
designSystemId: z182.string(),
|
|
5218
|
+
isEnabled: z182.boolean(),
|
|
5225
5219
|
eventType: PipelineEventType,
|
|
5226
|
-
brandPersistentId:
|
|
5227
|
-
themePersistentId:
|
|
5228
|
-
themePersistentIds:
|
|
5220
|
+
brandPersistentId: z182.string().optional(),
|
|
5221
|
+
themePersistentId: z182.string().optional(),
|
|
5222
|
+
themePersistentIds: z182.string().array().optional(),
|
|
5229
5223
|
destination: PipelineDestinationType.optional(),
|
|
5230
5224
|
gitQuery: GitObjectsQuery,
|
|
5231
|
-
destinations:
|
|
5225
|
+
destinations: z182.object({
|
|
5232
5226
|
s3: ExporterDestinationS3.nullish(),
|
|
5233
5227
|
azure: ExporterDestinationAzure.nullish(),
|
|
5234
5228
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5235
5229
|
github: ExporterDestinationGithub.nullish(),
|
|
5236
5230
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5237
5231
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5238
|
-
webhookUrl:
|
|
5232
|
+
webhookUrl: z182.string().nullish()
|
|
5239
5233
|
})
|
|
5240
5234
|
});
|
|
5241
5235
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5242
|
-
id:
|
|
5236
|
+
id: z182.string()
|
|
5243
5237
|
});
|
|
5244
|
-
var DTOPipelineTriggerBody =
|
|
5245
|
-
designSystemVersionId:
|
|
5238
|
+
var DTOPipelineTriggerBody = z182.object({
|
|
5239
|
+
designSystemVersionId: z182.string()
|
|
5246
5240
|
});
|
|
5247
5241
|
|
|
5248
5242
|
// src/api/payloads/liveblocks/auth.ts
|
|
5249
|
-
import { z as
|
|
5250
|
-
var DTOLiveblocksAuthRequest =
|
|
5251
|
-
room:
|
|
5243
|
+
import { z as z183 } from "zod";
|
|
5244
|
+
var DTOLiveblocksAuthRequest = z183.object({
|
|
5245
|
+
room: z183.string().optional()
|
|
5252
5246
|
});
|
|
5253
5247
|
|
|
5254
5248
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5255
|
-
import { z as
|
|
5256
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5249
|
+
import { z as z184 } from "zod";
|
|
5250
|
+
var DTOUpdateUserNotificationSettingsPayload = z184.object({
|
|
5257
5251
|
notificationSettings: UserNotificationSettings
|
|
5258
5252
|
});
|
|
5259
|
-
var DTOUserNotificationSettingsResponse =
|
|
5260
|
-
userId:
|
|
5261
|
-
workspaceId:
|
|
5253
|
+
var DTOUserNotificationSettingsResponse = z184.object({
|
|
5254
|
+
userId: z184.string(),
|
|
5255
|
+
workspaceId: z184.string(),
|
|
5262
5256
|
notificationSettings: UserNotificationSettings
|
|
5263
5257
|
});
|
|
5264
5258
|
|
|
@@ -5266,7 +5260,7 @@ var DTOUserNotificationSettingsResponse = z185.object({
|
|
|
5266
5260
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5267
5261
|
|
|
5268
5262
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5269
|
-
import { z as
|
|
5263
|
+
import { z as z185 } from "zod";
|
|
5270
5264
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5271
5265
|
function validateSsoPayload(ssoPayload) {
|
|
5272
5266
|
const keys = [];
|
|
@@ -5289,21 +5283,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5289
5283
|
keys
|
|
5290
5284
|
};
|
|
5291
5285
|
}
|
|
5292
|
-
var NpmRegistryInput =
|
|
5293
|
-
enabledScopes:
|
|
5294
|
-
customRegistryUrl:
|
|
5295
|
-
bypassProxy:
|
|
5296
|
-
npmProxyRegistryConfigId:
|
|
5297
|
-
npmProxyVersion:
|
|
5298
|
-
registryType:
|
|
5299
|
-
authType:
|
|
5300
|
-
authHeaderName:
|
|
5301
|
-
authHeaderValue:
|
|
5302
|
-
accessToken:
|
|
5303
|
-
username:
|
|
5304
|
-
password:
|
|
5305
|
-
});
|
|
5306
|
-
var WorkspaceConfigurationPayload =
|
|
5286
|
+
var NpmRegistryInput = z185.object({
|
|
5287
|
+
enabledScopes: z185.array(z185.string()),
|
|
5288
|
+
customRegistryUrl: z185.string().optional(),
|
|
5289
|
+
bypassProxy: z185.boolean().optional(),
|
|
5290
|
+
npmProxyRegistryConfigId: z185.string().optional(),
|
|
5291
|
+
npmProxyVersion: z185.number().optional(),
|
|
5292
|
+
registryType: z185.string(),
|
|
5293
|
+
authType: z185.string(),
|
|
5294
|
+
authHeaderName: z185.string(),
|
|
5295
|
+
authHeaderValue: z185.string(),
|
|
5296
|
+
accessToken: z185.string(),
|
|
5297
|
+
username: z185.string(),
|
|
5298
|
+
password: z185.string()
|
|
5299
|
+
});
|
|
5300
|
+
var WorkspaceConfigurationPayload = z185.object({
|
|
5307
5301
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5308
5302
|
sso: SsoProvider.partial().optional(),
|
|
5309
5303
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5311,208 +5305,208 @@ var WorkspaceConfigurationPayload = z186.object({
|
|
|
5311
5305
|
});
|
|
5312
5306
|
|
|
5313
5307
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5314
|
-
import { z as
|
|
5315
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5308
|
+
import { z as z186 } from "zod";
|
|
5309
|
+
var DTOWorkspaceIntegrationOauthInput = z186.object({
|
|
5316
5310
|
type: IntegrationType
|
|
5317
5311
|
});
|
|
5318
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5319
|
-
userId:
|
|
5312
|
+
var DTOWorkspaceIntegrationPATInput = z186.object({
|
|
5313
|
+
userId: z186.string(),
|
|
5320
5314
|
type: IntegrationType,
|
|
5321
5315
|
token: IntegrationToken
|
|
5322
5316
|
});
|
|
5323
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5324
|
-
organization:
|
|
5317
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z186.object({
|
|
5318
|
+
organization: z186.string().optional(),
|
|
5325
5319
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5326
|
-
project:
|
|
5320
|
+
project: z186.string().optional(),
|
|
5327
5321
|
// Only for Bitbucket and Azure
|
|
5328
|
-
repository:
|
|
5322
|
+
repository: z186.string().optional(),
|
|
5329
5323
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5330
|
-
branch:
|
|
5324
|
+
branch: z186.string().optional(),
|
|
5331
5325
|
// For all providers, useful for PR creations.
|
|
5332
|
-
user:
|
|
5326
|
+
user: z186.string().optional()
|
|
5333
5327
|
// Only for Gitlab User Repositories
|
|
5334
5328
|
});
|
|
5335
5329
|
|
|
5336
5330
|
// src/api/dto/design-systems/version.ts
|
|
5337
|
-
var DTODesignSystemVersion =
|
|
5338
|
-
id:
|
|
5339
|
-
createdAt:
|
|
5331
|
+
var DTODesignSystemVersion = z187.object({
|
|
5332
|
+
id: z187.string(),
|
|
5333
|
+
createdAt: z187.date(),
|
|
5340
5334
|
meta: ObjectMeta,
|
|
5341
|
-
version:
|
|
5342
|
-
isReadonly:
|
|
5343
|
-
changeLog:
|
|
5344
|
-
designSystemId:
|
|
5335
|
+
version: z187.string(),
|
|
5336
|
+
isReadonly: z187.boolean(),
|
|
5337
|
+
changeLog: z187.string(),
|
|
5338
|
+
designSystemId: z187.string()
|
|
5345
5339
|
});
|
|
5346
|
-
var DTODesignSystemVersionsListResponse =
|
|
5347
|
-
designSystemVersions:
|
|
5340
|
+
var DTODesignSystemVersionsListResponse = z187.object({
|
|
5341
|
+
designSystemVersions: z187.array(DTODesignSystemVersion)
|
|
5348
5342
|
});
|
|
5349
|
-
var DTODesignSystemVersionGetResponse =
|
|
5343
|
+
var DTODesignSystemVersionGetResponse = z187.object({
|
|
5350
5344
|
designSystemVersion: DTODesignSystemVersion
|
|
5351
5345
|
});
|
|
5352
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5346
|
+
var DTODesignSystemVersionCreationResponse = z187.object({
|
|
5353
5347
|
meta: ObjectMeta,
|
|
5354
|
-
version:
|
|
5355
|
-
changeLog:
|
|
5356
|
-
isReadOnly:
|
|
5357
|
-
designSystemId:
|
|
5358
|
-
jobId:
|
|
5359
|
-
});
|
|
5360
|
-
var VersionSQSPayload =
|
|
5361
|
-
jobId:
|
|
5362
|
-
designSystemId:
|
|
5348
|
+
version: z187.string(),
|
|
5349
|
+
changeLog: z187.string(),
|
|
5350
|
+
isReadOnly: z187.boolean(),
|
|
5351
|
+
designSystemId: z187.string(),
|
|
5352
|
+
jobId: z187.string()
|
|
5353
|
+
});
|
|
5354
|
+
var VersionSQSPayload = z187.object({
|
|
5355
|
+
jobId: z187.string(),
|
|
5356
|
+
designSystemId: z187.string(),
|
|
5363
5357
|
input: DTOCreateVersionInput
|
|
5364
5358
|
});
|
|
5365
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5366
|
-
jobs:
|
|
5359
|
+
var DTODesignSystemVersionJobsResponse = z187.object({
|
|
5360
|
+
jobs: z187.array(VersionCreationJob)
|
|
5367
5361
|
});
|
|
5368
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5362
|
+
var DTODesignSystemVersionJobStatusResponse = z187.object({
|
|
5369
5363
|
job: VersionCreationJob
|
|
5370
5364
|
});
|
|
5371
5365
|
|
|
5372
5366
|
// src/api/dto/design-systems/view.ts
|
|
5373
|
-
import { z as
|
|
5374
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5375
|
-
id:
|
|
5376
|
-
persistentId:
|
|
5377
|
-
width:
|
|
5367
|
+
import { z as z188 } from "zod";
|
|
5368
|
+
var DTOElementViewColumnSharedAttributes = z188.object({
|
|
5369
|
+
id: z188.string(),
|
|
5370
|
+
persistentId: z188.string(),
|
|
5371
|
+
width: z188.number()
|
|
5378
5372
|
});
|
|
5379
5373
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5380
|
-
type:
|
|
5374
|
+
type: z188.literal("BaseProperty"),
|
|
5381
5375
|
basePropertyType: ElementViewBaseColumnType
|
|
5382
5376
|
});
|
|
5383
5377
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5384
|
-
type:
|
|
5385
|
-
propertyDefinitionId:
|
|
5378
|
+
type: z188.literal("PropertyDefinition"),
|
|
5379
|
+
propertyDefinitionId: z188.string()
|
|
5386
5380
|
});
|
|
5387
5381
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5388
|
-
type:
|
|
5389
|
-
themeId:
|
|
5382
|
+
type: z188.literal("Theme"),
|
|
5383
|
+
themeId: z188.string()
|
|
5390
5384
|
});
|
|
5391
|
-
var DTOElementViewColumn =
|
|
5385
|
+
var DTOElementViewColumn = z188.discriminatedUnion("type", [
|
|
5392
5386
|
DTOElementViewBasePropertyColumn,
|
|
5393
5387
|
DTOElementViewPropertyDefinitionColumn,
|
|
5394
5388
|
DTOElementViewThemeColumn
|
|
5395
5389
|
]);
|
|
5396
|
-
var DTOElementView =
|
|
5390
|
+
var DTOElementView = z188.object({
|
|
5397
5391
|
meta: ObjectMeta,
|
|
5398
|
-
persistentId:
|
|
5392
|
+
persistentId: z188.string(),
|
|
5399
5393
|
targetElementType: ElementPropertyTargetType,
|
|
5400
|
-
id:
|
|
5401
|
-
isDefault:
|
|
5402
|
-
columns:
|
|
5394
|
+
id: z188.string(),
|
|
5395
|
+
isDefault: z188.boolean(),
|
|
5396
|
+
columns: z188.array(DTOElementViewColumn)
|
|
5403
5397
|
});
|
|
5404
|
-
var DTOElementViewsListResponse =
|
|
5405
|
-
elementDataViews:
|
|
5398
|
+
var DTOElementViewsListResponse = z188.object({
|
|
5399
|
+
elementDataViews: z188.array(DTOElementView)
|
|
5406
5400
|
});
|
|
5407
5401
|
|
|
5408
5402
|
// src/api/dto/workspaces/git.ts
|
|
5409
|
-
import { z as
|
|
5410
|
-
var DTOGitOrganization =
|
|
5411
|
-
id:
|
|
5412
|
-
name:
|
|
5413
|
-
url:
|
|
5414
|
-
slug:
|
|
5403
|
+
import { z as z189 } from "zod";
|
|
5404
|
+
var DTOGitOrganization = z189.object({
|
|
5405
|
+
id: z189.string(),
|
|
5406
|
+
name: z189.string(),
|
|
5407
|
+
url: z189.string(),
|
|
5408
|
+
slug: z189.string()
|
|
5415
5409
|
});
|
|
5416
|
-
var DTOGitProject =
|
|
5417
|
-
id:
|
|
5418
|
-
name:
|
|
5419
|
-
url:
|
|
5420
|
-
slug:
|
|
5410
|
+
var DTOGitProject = z189.object({
|
|
5411
|
+
id: z189.string(),
|
|
5412
|
+
name: z189.string(),
|
|
5413
|
+
url: z189.string(),
|
|
5414
|
+
slug: z189.string()
|
|
5421
5415
|
});
|
|
5422
|
-
var DTOGitRepository =
|
|
5423
|
-
id:
|
|
5424
|
-
name:
|
|
5425
|
-
url:
|
|
5426
|
-
slug:
|
|
5427
|
-
defaultBranch:
|
|
5416
|
+
var DTOGitRepository = z189.object({
|
|
5417
|
+
id: z189.string(),
|
|
5418
|
+
name: z189.string(),
|
|
5419
|
+
url: z189.string(),
|
|
5420
|
+
slug: z189.string(),
|
|
5421
|
+
defaultBranch: z189.string().optional()
|
|
5428
5422
|
});
|
|
5429
|
-
var DTOGitBranch =
|
|
5430
|
-
name:
|
|
5431
|
-
lastCommitId:
|
|
5423
|
+
var DTOGitBranch = z189.object({
|
|
5424
|
+
name: z189.string(),
|
|
5425
|
+
lastCommitId: z189.string()
|
|
5432
5426
|
});
|
|
5433
5427
|
|
|
5434
5428
|
// src/api/dto/workspaces/integrations.ts
|
|
5435
|
-
import { z as
|
|
5429
|
+
import { z as z190 } from "zod";
|
|
5436
5430
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5437
5431
|
accessToken: true,
|
|
5438
5432
|
refreshToken: true
|
|
5439
5433
|
});
|
|
5440
|
-
var DTOIntegration =
|
|
5441
|
-
id:
|
|
5442
|
-
workspaceId:
|
|
5434
|
+
var DTOIntegration = z190.object({
|
|
5435
|
+
id: z190.string(),
|
|
5436
|
+
workspaceId: z190.string(),
|
|
5443
5437
|
type: ExtendedIntegrationType,
|
|
5444
|
-
createdAt:
|
|
5445
|
-
integrationCredentials:
|
|
5446
|
-
integrationDesignSystems:
|
|
5438
|
+
createdAt: z190.coerce.date(),
|
|
5439
|
+
integrationCredentials: z190.array(DTOIntegrationCredentials).optional(),
|
|
5440
|
+
integrationDesignSystems: z190.array(IntegrationDesignSystem).optional()
|
|
5447
5441
|
});
|
|
5448
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5449
|
-
url:
|
|
5442
|
+
var DTOIntegrationOAuthGetResponse = z190.object({
|
|
5443
|
+
url: z190.string()
|
|
5450
5444
|
});
|
|
5451
|
-
var DTOIntegrationPostResponse =
|
|
5445
|
+
var DTOIntegrationPostResponse = z190.object({
|
|
5452
5446
|
integration: DTOIntegration
|
|
5453
5447
|
});
|
|
5454
|
-
var DTOIntegrationsGetListResponse =
|
|
5448
|
+
var DTOIntegrationsGetListResponse = z190.object({
|
|
5455
5449
|
integrations: DTOIntegration.array()
|
|
5456
5450
|
});
|
|
5457
5451
|
|
|
5458
5452
|
// src/api/dto/workspaces/invitations.ts
|
|
5459
|
-
import { z as
|
|
5460
|
-
var DTOWorkspaceInvitationInput =
|
|
5461
|
-
email:
|
|
5453
|
+
import { z as z191 } from "zod";
|
|
5454
|
+
var DTOWorkspaceInvitationInput = z191.object({
|
|
5455
|
+
email: z191.string().email(),
|
|
5462
5456
|
role: WorkspaceRoleSchema
|
|
5463
5457
|
});
|
|
5464
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5458
|
+
var DTOWorkspaceInvitationsListInput = z191.object({
|
|
5465
5459
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5466
|
-
designSystemId:
|
|
5460
|
+
designSystemId: z191.string().optional()
|
|
5467
5461
|
});
|
|
5468
5462
|
|
|
5469
5463
|
// src/api/dto/workspaces/membership.ts
|
|
5470
|
-
import { z as
|
|
5464
|
+
import { z as z194 } from "zod";
|
|
5471
5465
|
|
|
5472
5466
|
// src/api/dto/workspaces/workspace.ts
|
|
5473
|
-
import { z as
|
|
5467
|
+
import { z as z193 } from "zod";
|
|
5474
5468
|
|
|
5475
5469
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5476
|
-
import { z as
|
|
5470
|
+
import { z as z192 } from "zod";
|
|
5477
5471
|
var DTONpmRegistryConfigConstants = {
|
|
5478
5472
|
passwordPlaceholder: "redacted"
|
|
5479
5473
|
};
|
|
5480
|
-
var DTONpmRegistryConfig =
|
|
5474
|
+
var DTONpmRegistryConfig = z192.object({
|
|
5481
5475
|
// Registry basic configuration
|
|
5482
5476
|
registryType: NpmRegistryType,
|
|
5483
|
-
registryUrl:
|
|
5484
|
-
customRegistryUrl:
|
|
5477
|
+
registryUrl: z192.string(),
|
|
5478
|
+
customRegistryUrl: z192.string().optional(),
|
|
5485
5479
|
// URL of Supernova NPM packages proxy
|
|
5486
|
-
proxyUrl:
|
|
5480
|
+
proxyUrl: z192.string(),
|
|
5487
5481
|
// Auth configuration
|
|
5488
5482
|
authType: NpmRegistryAuthType,
|
|
5489
|
-
accessToken:
|
|
5490
|
-
username:
|
|
5491
|
-
password:
|
|
5483
|
+
accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5484
|
+
username: z192.string().optional(),
|
|
5485
|
+
password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5492
5486
|
// NPM package scopes for whih the proxy should be enabled
|
|
5493
|
-
enabledScopes:
|
|
5487
|
+
enabledScopes: z192.array(z192.string()),
|
|
5494
5488
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5495
5489
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5496
|
-
bypassProxy:
|
|
5490
|
+
bypassProxy: z192.boolean()
|
|
5497
5491
|
});
|
|
5498
5492
|
|
|
5499
5493
|
// src/api/dto/workspaces/workspace.ts
|
|
5500
|
-
var DTOWorkspace =
|
|
5501
|
-
id:
|
|
5494
|
+
var DTOWorkspace = z193.object({
|
|
5495
|
+
id: z193.string(),
|
|
5502
5496
|
profile: WorkspaceProfile,
|
|
5503
5497
|
subscription: Subscription,
|
|
5504
5498
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5505
5499
|
});
|
|
5506
|
-
var DTOWorkspaceCreateInput =
|
|
5507
|
-
name:
|
|
5500
|
+
var DTOWorkspaceCreateInput = z193.object({
|
|
5501
|
+
name: z193.string()
|
|
5508
5502
|
});
|
|
5509
|
-
var DTOWorkspaceResponse =
|
|
5503
|
+
var DTOWorkspaceResponse = z193.object({
|
|
5510
5504
|
workspace: DTOWorkspace
|
|
5511
5505
|
});
|
|
5512
5506
|
|
|
5513
5507
|
// src/api/dto/workspaces/membership.ts
|
|
5514
|
-
var DTOWorkspaceRole =
|
|
5515
|
-
var DTOUserWorkspaceMembership =
|
|
5508
|
+
var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5509
|
+
var DTOUserWorkspaceMembership = z194.object({
|
|
5516
5510
|
// Workspace the user is a member of
|
|
5517
5511
|
workspace: DTOWorkspace,
|
|
5518
5512
|
// Assigned role the user has in the workspace
|
|
@@ -5522,18 +5516,18 @@ var DTOUserWorkspaceMembership = z195.object({
|
|
|
5522
5516
|
// when a workspace's subscription is downgraded to free tier
|
|
5523
5517
|
effectiveRole: DTOWorkspaceRole
|
|
5524
5518
|
});
|
|
5525
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5526
|
-
membership:
|
|
5519
|
+
var DTOUserWorkspaceMembershipsResponse = z194.object({
|
|
5520
|
+
membership: z194.array(DTOUserWorkspaceMembership)
|
|
5527
5521
|
});
|
|
5528
5522
|
|
|
5529
5523
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5530
|
-
var DTOAppBootstrapDataQuery =
|
|
5531
|
-
preferredWorkspaceId:
|
|
5532
|
-
preferredDesignSystemId:
|
|
5533
|
-
preferredVersionId:
|
|
5534
|
-
preferredBrandId:
|
|
5524
|
+
var DTOAppBootstrapDataQuery = z195.object({
|
|
5525
|
+
preferredWorkspaceId: z195.string().optional(),
|
|
5526
|
+
preferredDesignSystemId: z195.string().optional(),
|
|
5527
|
+
preferredVersionId: z195.string().optional(),
|
|
5528
|
+
preferredBrandId: z195.string().optional()
|
|
5535
5529
|
});
|
|
5536
|
-
var DTOAppBootstrapDataResponse =
|
|
5530
|
+
var DTOAppBootstrapDataResponse = z195.object({
|
|
5537
5531
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5538
5532
|
designSystem: DTODesignSystem.optional(),
|
|
5539
5533
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5541,19 +5535,19 @@ var DTOAppBootstrapDataResponse = z196.object({
|
|
|
5541
5535
|
});
|
|
5542
5536
|
|
|
5543
5537
|
// src/api/dto/documentation/anchor.ts
|
|
5544
|
-
import { z as
|
|
5538
|
+
import { z as z196 } from "zod";
|
|
5545
5539
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5546
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5547
|
-
anchors:
|
|
5540
|
+
var DTOGetDocumentationPageAnchorsResponse = z196.object({
|
|
5541
|
+
anchors: z196.array(DTODocumentationPageAnchor)
|
|
5548
5542
|
});
|
|
5549
5543
|
|
|
5550
5544
|
// src/api/dto/documentation/approvals.ts
|
|
5551
|
-
import { z as
|
|
5545
|
+
import { z as z197 } from "zod";
|
|
5552
5546
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5553
|
-
var DTODocumentationGroupApprovalState =
|
|
5554
|
-
persistentId:
|
|
5555
|
-
groupId:
|
|
5556
|
-
designSystemVersionId:
|
|
5547
|
+
var DTODocumentationGroupApprovalState = z197.object({
|
|
5548
|
+
persistentId: z197.string(),
|
|
5549
|
+
groupId: z197.string(),
|
|
5550
|
+
designSystemVersionId: z197.string(),
|
|
5557
5551
|
approvalState: DocumentationPageApprovalState
|
|
5558
5552
|
});
|
|
5559
5553
|
|
|
@@ -5561,68 +5555,68 @@ var DTODocumentationGroupApprovalState = z198.object({
|
|
|
5561
5555
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5562
5556
|
|
|
5563
5557
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5564
|
-
import { z as
|
|
5558
|
+
import { z as z202 } from "zod";
|
|
5565
5559
|
|
|
5566
5560
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5567
|
-
import { z as
|
|
5561
|
+
import { z as z201 } from "zod";
|
|
5568
5562
|
|
|
5569
5563
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5570
|
-
import { z as
|
|
5564
|
+
import { z as z199 } from "zod";
|
|
5571
5565
|
|
|
5572
5566
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5573
|
-
import { z as
|
|
5567
|
+
import { z as z198 } from "zod";
|
|
5574
5568
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5575
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5576
|
-
showSidebar:
|
|
5577
|
-
isPrivate:
|
|
5578
|
-
isHidden:
|
|
5569
|
+
var DTODocumentationItemConfigurationV2 = z198.object({
|
|
5570
|
+
showSidebar: z198.boolean(),
|
|
5571
|
+
isPrivate: z198.boolean(),
|
|
5572
|
+
isHidden: z198.boolean(),
|
|
5579
5573
|
header: DTODocumentationItemHeaderV2
|
|
5580
5574
|
});
|
|
5581
5575
|
|
|
5582
5576
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5583
|
-
var DTODocumentationDraftChangeType =
|
|
5584
|
-
var DTODocumentationDraftStateCreated =
|
|
5585
|
-
changeType:
|
|
5586
|
-
});
|
|
5587
|
-
var DTODocumentationDraftStateUpdated =
|
|
5588
|
-
changeType:
|
|
5589
|
-
changes:
|
|
5590
|
-
previousTitle:
|
|
5577
|
+
var DTODocumentationDraftChangeType = z199.enum(["Created", "Updated", "Deleted"]);
|
|
5578
|
+
var DTODocumentationDraftStateCreated = z199.object({
|
|
5579
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5580
|
+
});
|
|
5581
|
+
var DTODocumentationDraftStateUpdated = z199.object({
|
|
5582
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5583
|
+
changes: z199.object({
|
|
5584
|
+
previousTitle: z199.string().optional(),
|
|
5591
5585
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5592
|
-
previousContentHash:
|
|
5586
|
+
previousContentHash: z199.string().optional()
|
|
5593
5587
|
})
|
|
5594
5588
|
});
|
|
5595
|
-
var DTODocumentationDraftStateDeleted =
|
|
5596
|
-
changeType:
|
|
5597
|
-
deletedAt:
|
|
5598
|
-
deletedByUserId:
|
|
5589
|
+
var DTODocumentationDraftStateDeleted = z199.object({
|
|
5590
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5591
|
+
deletedAt: z199.coerce.date(),
|
|
5592
|
+
deletedByUserId: z199.string()
|
|
5599
5593
|
});
|
|
5600
|
-
var DTODocumentationDraftState =
|
|
5594
|
+
var DTODocumentationDraftState = z199.discriminatedUnion("changeType", [
|
|
5601
5595
|
DTODocumentationDraftStateCreated,
|
|
5602
5596
|
DTODocumentationDraftStateUpdated,
|
|
5603
5597
|
DTODocumentationDraftStateDeleted
|
|
5604
5598
|
]);
|
|
5605
5599
|
|
|
5606
5600
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5607
|
-
import { z as
|
|
5608
|
-
var DTODocumentationPublishMetadata =
|
|
5609
|
-
lastPublishedByUserId:
|
|
5610
|
-
lastPublishedAt:
|
|
5601
|
+
import { z as z200 } from "zod";
|
|
5602
|
+
var DTODocumentationPublishMetadata = z200.object({
|
|
5603
|
+
lastPublishedByUserId: z200.string(),
|
|
5604
|
+
lastPublishedAt: z200.coerce.date()
|
|
5611
5605
|
});
|
|
5612
5606
|
|
|
5613
5607
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5614
|
-
var DTODocumentationPageV2 =
|
|
5615
|
-
id:
|
|
5616
|
-
persistentId:
|
|
5617
|
-
designSystemVersionId:
|
|
5618
|
-
title:
|
|
5608
|
+
var DTODocumentationPageV2 = z201.object({
|
|
5609
|
+
id: z201.string(),
|
|
5610
|
+
persistentId: z201.string(),
|
|
5611
|
+
designSystemVersionId: z201.string(),
|
|
5612
|
+
title: z201.string(),
|
|
5619
5613
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5620
|
-
shortPersistentId:
|
|
5621
|
-
slug:
|
|
5622
|
-
userSlug:
|
|
5623
|
-
createdAt:
|
|
5624
|
-
updatedAt:
|
|
5625
|
-
path:
|
|
5614
|
+
shortPersistentId: z201.string(),
|
|
5615
|
+
slug: z201.string().optional(),
|
|
5616
|
+
userSlug: z201.string().optional(),
|
|
5617
|
+
createdAt: z201.coerce.date(),
|
|
5618
|
+
updatedAt: z201.coerce.date(),
|
|
5619
|
+
path: z201.string(),
|
|
5626
5620
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5627
5621
|
draftState: DTODocumentationDraftState.optional(),
|
|
5628
5622
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5630,197 +5624,197 @@ var DTODocumentationPageV2 = z202.object({
|
|
|
5630
5624
|
/** Defines the approval state of the documentation page */
|
|
5631
5625
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5632
5626
|
// Backward compatibility
|
|
5633
|
-
type:
|
|
5627
|
+
type: z201.literal("Page")
|
|
5634
5628
|
});
|
|
5635
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5629
|
+
var DTOCreateDocumentationPageInputV2 = z201.object({
|
|
5636
5630
|
// Identifier
|
|
5637
|
-
persistentId:
|
|
5631
|
+
persistentId: z201.string().uuid(),
|
|
5638
5632
|
// Page properties
|
|
5639
|
-
title:
|
|
5633
|
+
title: z201.string(),
|
|
5640
5634
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5641
5635
|
// Page placement properties
|
|
5642
|
-
parentPersistentId:
|
|
5643
|
-
afterPersistentId:
|
|
5636
|
+
parentPersistentId: z201.string().uuid(),
|
|
5637
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5644
5638
|
});
|
|
5645
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5639
|
+
var DTOUpdateDocumentationPageInputV2 = z201.object({
|
|
5646
5640
|
// Identifier of the group to update
|
|
5647
|
-
id:
|
|
5641
|
+
id: z201.string(),
|
|
5648
5642
|
// Page properties
|
|
5649
|
-
title:
|
|
5643
|
+
title: z201.string().optional(),
|
|
5650
5644
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5651
5645
|
});
|
|
5652
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5646
|
+
var DTOMoveDocumentationPageInputV2 = z201.object({
|
|
5653
5647
|
// Identifier of the group to update
|
|
5654
|
-
id:
|
|
5648
|
+
id: z201.string(),
|
|
5655
5649
|
// Page placement properties
|
|
5656
|
-
parentPersistentId:
|
|
5657
|
-
afterPersistentId:
|
|
5650
|
+
parentPersistentId: z201.string().uuid(),
|
|
5651
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5658
5652
|
});
|
|
5659
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5653
|
+
var DTODuplicateDocumentationPageInputV2 = z201.object({
|
|
5660
5654
|
// Identifier of the page to duplicate from
|
|
5661
|
-
id:
|
|
5655
|
+
id: z201.string(),
|
|
5662
5656
|
// New page persistent id
|
|
5663
|
-
persistentId:
|
|
5657
|
+
persistentId: z201.string().uuid(),
|
|
5664
5658
|
// Page placement properties
|
|
5665
|
-
parentPersistentId:
|
|
5666
|
-
afterPersistentId:
|
|
5659
|
+
parentPersistentId: z201.string().uuid(),
|
|
5660
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5667
5661
|
});
|
|
5668
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5662
|
+
var DTODeleteDocumentationPageInputV2 = z201.object({
|
|
5669
5663
|
// Identifier
|
|
5670
|
-
id:
|
|
5664
|
+
id: z201.string()
|
|
5671
5665
|
});
|
|
5672
|
-
var DTORestoreDocumentationPageInput =
|
|
5673
|
-
persistentId:
|
|
5674
|
-
snapshotId:
|
|
5666
|
+
var DTORestoreDocumentationPageInput = z201.object({
|
|
5667
|
+
persistentId: z201.string(),
|
|
5668
|
+
snapshotId: z201.string().optional()
|
|
5675
5669
|
});
|
|
5676
|
-
var DTORestoreDocumentationGroupInput =
|
|
5677
|
-
persistentId:
|
|
5678
|
-
snapshotId:
|
|
5670
|
+
var DTORestoreDocumentationGroupInput = z201.object({
|
|
5671
|
+
persistentId: z201.string(),
|
|
5672
|
+
snapshotId: z201.string().optional()
|
|
5679
5673
|
});
|
|
5680
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5681
|
-
persistentId:
|
|
5674
|
+
var DTODocumentationPageApprovalStateChangeInput = z201.object({
|
|
5675
|
+
persistentId: z201.string(),
|
|
5682
5676
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5683
5677
|
});
|
|
5684
5678
|
|
|
5685
5679
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5686
|
-
var DTODocumentationPageSnapshot =
|
|
5687
|
-
id:
|
|
5688
|
-
designSystemVersionId:
|
|
5689
|
-
createdAt:
|
|
5690
|
-
updatedAt:
|
|
5680
|
+
var DTODocumentationPageSnapshot = z202.object({
|
|
5681
|
+
id: z202.string(),
|
|
5682
|
+
designSystemVersionId: z202.string(),
|
|
5683
|
+
createdAt: z202.string(),
|
|
5684
|
+
updatedAt: z202.string(),
|
|
5691
5685
|
documentationPage: DTODocumentationPageV2,
|
|
5692
|
-
pageContentHash:
|
|
5686
|
+
pageContentHash: z202.string(),
|
|
5693
5687
|
reason: DesignElementSnapshotReason
|
|
5694
5688
|
});
|
|
5695
5689
|
|
|
5696
5690
|
// src/api/dto/documentation/link-preview.ts
|
|
5697
|
-
import { z as
|
|
5698
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5691
|
+
import { z as z203 } from "zod";
|
|
5692
|
+
var DTODocumentationLinkPreviewResponse = z203.object({
|
|
5699
5693
|
linkPreview: DocumentationLinkPreview
|
|
5700
5694
|
});
|
|
5701
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5702
|
-
url:
|
|
5703
|
-
documentationItemPersistentId:
|
|
5695
|
+
var DTODocumentationLinkPreviewRequest = z203.object({
|
|
5696
|
+
url: z203.string().optional(),
|
|
5697
|
+
documentationItemPersistentId: z203.string().optional()
|
|
5704
5698
|
});
|
|
5705
5699
|
|
|
5706
5700
|
// src/api/dto/documentation/publish.ts
|
|
5707
|
-
import { z as
|
|
5701
|
+
import { z as z207 } from "zod";
|
|
5708
5702
|
|
|
5709
5703
|
// src/api/dto/export/exporter.ts
|
|
5710
|
-
import { z as
|
|
5711
|
-
var DTOExporterType =
|
|
5712
|
-
var DTOExporterSource =
|
|
5713
|
-
var DTOExporterMembershipRole =
|
|
5714
|
-
var DTOExporter =
|
|
5715
|
-
id:
|
|
5716
|
-
name:
|
|
5717
|
-
isPrivate:
|
|
5704
|
+
import { z as z204 } from "zod";
|
|
5705
|
+
var DTOExporterType = z204.enum(["documentation", "code"]);
|
|
5706
|
+
var DTOExporterSource = z204.enum(["git", "upload"]);
|
|
5707
|
+
var DTOExporterMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
|
|
5708
|
+
var DTOExporter = z204.object({
|
|
5709
|
+
id: z204.string(),
|
|
5710
|
+
name: z204.string(),
|
|
5711
|
+
isPrivate: z204.boolean(),
|
|
5718
5712
|
exporterType: DTOExporterType,
|
|
5719
|
-
isDefaultDocumentationExporter:
|
|
5720
|
-
iconURL:
|
|
5713
|
+
isDefaultDocumentationExporter: z204.boolean(),
|
|
5714
|
+
iconURL: z204.string().optional(),
|
|
5721
5715
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5722
5716
|
customBlocks: PulsarCustomBlock.array(),
|
|
5723
|
-
blockVariants:
|
|
5724
|
-
usesBrands:
|
|
5725
|
-
usesThemes:
|
|
5717
|
+
blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
|
|
5718
|
+
usesBrands: z204.boolean(),
|
|
5719
|
+
usesThemes: z204.boolean(),
|
|
5726
5720
|
source: DTOExporterSource,
|
|
5727
|
-
gitUrl:
|
|
5728
|
-
gitBranch:
|
|
5729
|
-
gitDirectory:
|
|
5721
|
+
gitUrl: z204.string().optional(),
|
|
5722
|
+
gitBranch: z204.string().optional(),
|
|
5723
|
+
gitDirectory: z204.string().optional()
|
|
5730
5724
|
});
|
|
5731
|
-
var DTOExporterMembership =
|
|
5732
|
-
workspaceId:
|
|
5733
|
-
exporterId:
|
|
5725
|
+
var DTOExporterMembership = z204.object({
|
|
5726
|
+
workspaceId: z204.string(),
|
|
5727
|
+
exporterId: z204.string(),
|
|
5734
5728
|
role: DTOExporterMembershipRole
|
|
5735
5729
|
});
|
|
5736
|
-
var DTOExporterCreateOutput =
|
|
5730
|
+
var DTOExporterCreateOutput = z204.object({
|
|
5737
5731
|
exporter: DTOExporter,
|
|
5738
5732
|
membership: DTOExporterMembership
|
|
5739
5733
|
});
|
|
5740
|
-
var DTOExporterGitProviderEnum =
|
|
5741
|
-
var DTOExporterCreateInput =
|
|
5742
|
-
url:
|
|
5734
|
+
var DTOExporterGitProviderEnum = z204.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5735
|
+
var DTOExporterCreateInput = z204.object({
|
|
5736
|
+
url: z204.string(),
|
|
5743
5737
|
provider: DTOExporterGitProviderEnum
|
|
5744
5738
|
});
|
|
5745
|
-
var DTOExporterUpdateInput =
|
|
5746
|
-
url:
|
|
5739
|
+
var DTOExporterUpdateInput = z204.object({
|
|
5740
|
+
url: z204.string().optional()
|
|
5747
5741
|
});
|
|
5748
5742
|
|
|
5749
5743
|
// src/api/dto/export/filter.ts
|
|
5750
5744
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5751
5745
|
|
|
5752
5746
|
// src/api/dto/export/job.ts
|
|
5753
|
-
import { z as
|
|
5754
|
-
var DTOExportJobCreatedBy =
|
|
5755
|
-
userId:
|
|
5756
|
-
userName:
|
|
5747
|
+
import { z as z205 } from "zod";
|
|
5748
|
+
var DTOExportJobCreatedBy = z205.object({
|
|
5749
|
+
userId: z205.string(),
|
|
5750
|
+
userName: z205.string()
|
|
5757
5751
|
});
|
|
5758
|
-
var DTOExportJobDesignSystemPreview =
|
|
5759
|
-
id:
|
|
5752
|
+
var DTOExportJobDesignSystemPreview = z205.object({
|
|
5753
|
+
id: z205.string(),
|
|
5760
5754
|
meta: ObjectMeta
|
|
5761
5755
|
});
|
|
5762
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5763
|
-
id:
|
|
5756
|
+
var DTOExportJobDesignSystemVersionPreview = z205.object({
|
|
5757
|
+
id: z205.string(),
|
|
5764
5758
|
meta: ObjectMeta,
|
|
5765
|
-
version:
|
|
5766
|
-
isReadonly:
|
|
5759
|
+
version: z205.string(),
|
|
5760
|
+
isReadonly: z205.boolean()
|
|
5767
5761
|
});
|
|
5768
|
-
var DTOExportJobDestinations =
|
|
5762
|
+
var DTOExportJobDestinations = z205.object({
|
|
5769
5763
|
s3: ExporterDestinationS3.optional(),
|
|
5770
5764
|
azure: ExporterDestinationAzure.optional(),
|
|
5771
5765
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5772
5766
|
github: ExporterDestinationGithub.optional(),
|
|
5773
5767
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5774
5768
|
documentation: ExporterDestinationDocs.optional(),
|
|
5775
|
-
webhookUrl:
|
|
5769
|
+
webhookUrl: z205.string().optional()
|
|
5776
5770
|
});
|
|
5777
5771
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5778
5772
|
sndocs: true
|
|
5779
5773
|
}).extend({
|
|
5780
5774
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5781
5775
|
});
|
|
5782
|
-
var DTOExportJob =
|
|
5783
|
-
id:
|
|
5784
|
-
createdAt:
|
|
5785
|
-
finishedAt:
|
|
5786
|
-
index:
|
|
5776
|
+
var DTOExportJob = z205.object({
|
|
5777
|
+
id: z205.string(),
|
|
5778
|
+
createdAt: z205.coerce.date(),
|
|
5779
|
+
finishedAt: z205.coerce.date().optional(),
|
|
5780
|
+
index: z205.number().optional(),
|
|
5787
5781
|
status: ExportJobStatus,
|
|
5788
|
-
estimatedExecutionTime:
|
|
5782
|
+
estimatedExecutionTime: z205.number().optional(),
|
|
5789
5783
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5790
5784
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5791
5785
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5792
5786
|
destinations: DTOExportJobDestinations,
|
|
5793
|
-
exporterId:
|
|
5794
|
-
scheduleId:
|
|
5787
|
+
exporterId: z205.string(),
|
|
5788
|
+
scheduleId: z205.string().optional(),
|
|
5795
5789
|
result: DTOExportJobResult.optional(),
|
|
5796
|
-
brandPersistentId:
|
|
5797
|
-
themePersistentId:
|
|
5798
|
-
themePersistentIds:
|
|
5790
|
+
brandPersistentId: z205.string().optional(),
|
|
5791
|
+
themePersistentId: z205.string().optional(),
|
|
5792
|
+
themePersistentIds: z205.string().array().optional()
|
|
5799
5793
|
});
|
|
5800
|
-
var DTOExportJobResponse =
|
|
5794
|
+
var DTOExportJobResponse = z205.object({
|
|
5801
5795
|
job: DTOExportJob
|
|
5802
5796
|
});
|
|
5803
5797
|
|
|
5804
5798
|
// src/api/dto/export/pipeline.ts
|
|
5805
|
-
import { z as
|
|
5806
|
-
var DTOPipeline =
|
|
5807
|
-
id:
|
|
5808
|
-
name:
|
|
5799
|
+
import { z as z206 } from "zod";
|
|
5800
|
+
var DTOPipeline = z206.object({
|
|
5801
|
+
id: z206.string(),
|
|
5802
|
+
name: z206.string(),
|
|
5809
5803
|
eventType: PipelineEventType,
|
|
5810
|
-
isEnabled:
|
|
5811
|
-
workspaceId:
|
|
5812
|
-
designSystemId:
|
|
5813
|
-
exporterId:
|
|
5814
|
-
brandPersistentId:
|
|
5815
|
-
themePersistentId:
|
|
5816
|
-
themePersistentIds:
|
|
5804
|
+
isEnabled: z206.boolean(),
|
|
5805
|
+
workspaceId: z206.string(),
|
|
5806
|
+
designSystemId: z206.string(),
|
|
5807
|
+
exporterId: z206.string(),
|
|
5808
|
+
brandPersistentId: z206.string().optional(),
|
|
5809
|
+
themePersistentId: z206.string().optional(),
|
|
5810
|
+
themePersistentIds: z206.string().array().optional(),
|
|
5817
5811
|
...ExportDestinationsMap.shape,
|
|
5818
5812
|
latestJobs: DTOExportJob.array()
|
|
5819
5813
|
});
|
|
5820
5814
|
|
|
5821
5815
|
// src/api/dto/documentation/publish.ts
|
|
5822
5816
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5823
|
-
var DTOPublishDocumentationRequest =
|
|
5817
|
+
var DTOPublishDocumentationRequest = z207.object({
|
|
5824
5818
|
environment: PublishedDocEnvironment,
|
|
5825
5819
|
/**
|
|
5826
5820
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5828,42 +5822,42 @@ var DTOPublishDocumentationRequest = z208.object({
|
|
|
5828
5822
|
*/
|
|
5829
5823
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5830
5824
|
});
|
|
5831
|
-
var DTOPublishDocumentationResponse =
|
|
5825
|
+
var DTOPublishDocumentationResponse = z207.object({
|
|
5832
5826
|
job: DTOExportJob
|
|
5833
5827
|
});
|
|
5834
5828
|
|
|
5835
5829
|
// src/api/dto/elements/components/figma-component.ts
|
|
5836
|
-
import { z as
|
|
5830
|
+
import { z as z208 } from "zod";
|
|
5837
5831
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5838
|
-
var DTOFigmaComponentPropertyMap =
|
|
5839
|
-
var DTOFigmaComponent =
|
|
5840
|
-
id:
|
|
5841
|
-
persistentId:
|
|
5842
|
-
designSystemVersionId:
|
|
5843
|
-
brandId:
|
|
5844
|
-
thumbnailUrl:
|
|
5845
|
-
svgUrl:
|
|
5846
|
-
exportProperties:
|
|
5847
|
-
isAsset:
|
|
5832
|
+
var DTOFigmaComponentPropertyMap = z208.record(DTOFigmaComponentProperty);
|
|
5833
|
+
var DTOFigmaComponent = z208.object({
|
|
5834
|
+
id: z208.string(),
|
|
5835
|
+
persistentId: z208.string(),
|
|
5836
|
+
designSystemVersionId: z208.string(),
|
|
5837
|
+
brandId: z208.string(),
|
|
5838
|
+
thumbnailUrl: z208.string().optional(),
|
|
5839
|
+
svgUrl: z208.string().optional(),
|
|
5840
|
+
exportProperties: z208.object({
|
|
5841
|
+
isAsset: z208.boolean()
|
|
5848
5842
|
}),
|
|
5849
|
-
createdAt:
|
|
5850
|
-
updatedAt:
|
|
5843
|
+
createdAt: z208.coerce.date(),
|
|
5844
|
+
updatedAt: z208.coerce.date(),
|
|
5851
5845
|
meta: ObjectMeta,
|
|
5852
5846
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5853
|
-
parentComponentPersistentId:
|
|
5854
|
-
childrenPersistentIds:
|
|
5847
|
+
parentComponentPersistentId: z208.string().optional(),
|
|
5848
|
+
childrenPersistentIds: z208.string().array().optional(),
|
|
5855
5849
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5856
|
-
variantPropertyValues:
|
|
5850
|
+
variantPropertyValues: z208.record(z208.string()).optional()
|
|
5857
5851
|
});
|
|
5858
|
-
var DTOFigmaComponentListResponse =
|
|
5852
|
+
var DTOFigmaComponentListResponse = z208.object({
|
|
5859
5853
|
components: DTOFigmaComponent.array()
|
|
5860
5854
|
});
|
|
5861
5855
|
|
|
5862
5856
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5863
|
-
import { z as
|
|
5857
|
+
import { z as z210 } from "zod";
|
|
5864
5858
|
|
|
5865
5859
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5866
|
-
import { z as
|
|
5860
|
+
import { z as z209 } from "zod";
|
|
5867
5861
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5868
5862
|
sortOrder: true,
|
|
5869
5863
|
parentPersistentId: true,
|
|
@@ -5873,13 +5867,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5873
5867
|
data: true,
|
|
5874
5868
|
shortPersistentId: true
|
|
5875
5869
|
}).extend({
|
|
5876
|
-
title:
|
|
5877
|
-
isRoot:
|
|
5878
|
-
childrenIds:
|
|
5870
|
+
title: z209.string(),
|
|
5871
|
+
isRoot: z209.boolean(),
|
|
5872
|
+
childrenIds: z209.array(z209.string()),
|
|
5879
5873
|
groupBehavior: DocumentationGroupBehavior,
|
|
5880
|
-
shortPersistentId:
|
|
5874
|
+
shortPersistentId: z209.string(),
|
|
5881
5875
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5882
|
-
type:
|
|
5876
|
+
type: z209.literal("Group"),
|
|
5883
5877
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5884
5878
|
draftState: DTODocumentationDraftState.optional(),
|
|
5885
5879
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5887,127 +5881,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5887
5881
|
//** An approval state for frontend to utilize. */
|
|
5888
5882
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5889
5883
|
});
|
|
5890
|
-
var DTOCreateDocumentationGroupInput =
|
|
5884
|
+
var DTOCreateDocumentationGroupInput = z209.object({
|
|
5891
5885
|
// Identifier
|
|
5892
|
-
persistentId:
|
|
5886
|
+
persistentId: z209.string().uuid(),
|
|
5893
5887
|
// Group properties
|
|
5894
|
-
title:
|
|
5888
|
+
title: z209.string(),
|
|
5895
5889
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5896
5890
|
// Group placement properties
|
|
5897
|
-
afterPersistentId:
|
|
5898
|
-
parentPersistentId:
|
|
5891
|
+
afterPersistentId: z209.string().uuid().nullish(),
|
|
5892
|
+
parentPersistentId: z209.string().uuid()
|
|
5899
5893
|
});
|
|
5900
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5894
|
+
var DTOUpdateDocumentationGroupInput = z209.object({
|
|
5901
5895
|
// Identifier of the group to update
|
|
5902
|
-
id:
|
|
5896
|
+
id: z209.string(),
|
|
5903
5897
|
// Group properties
|
|
5904
|
-
title:
|
|
5898
|
+
title: z209.string().optional(),
|
|
5905
5899
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5906
5900
|
});
|
|
5907
|
-
var DTOMoveDocumentationGroupInput =
|
|
5901
|
+
var DTOMoveDocumentationGroupInput = z209.object({
|
|
5908
5902
|
// Identifier of the group to update
|
|
5909
|
-
id:
|
|
5903
|
+
id: z209.string(),
|
|
5910
5904
|
// Group placement properties
|
|
5911
|
-
parentPersistentId:
|
|
5912
|
-
afterPersistentId:
|
|
5905
|
+
parentPersistentId: z209.string().uuid(),
|
|
5906
|
+
afterPersistentId: z209.string().uuid().nullish()
|
|
5913
5907
|
});
|
|
5914
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5908
|
+
var DTODuplicateDocumentationGroupInput = z209.object({
|
|
5915
5909
|
// Identifier of the group to duplicate from
|
|
5916
|
-
id:
|
|
5910
|
+
id: z209.string(),
|
|
5917
5911
|
// New group persistent id
|
|
5918
|
-
persistentId:
|
|
5912
|
+
persistentId: z209.string().uuid(),
|
|
5919
5913
|
// Group placement properties
|
|
5920
|
-
afterPersistentId:
|
|
5921
|
-
parentPersistentId:
|
|
5914
|
+
afterPersistentId: z209.string().uuid().nullish(),
|
|
5915
|
+
parentPersistentId: z209.string().uuid()
|
|
5922
5916
|
});
|
|
5923
|
-
var DTOCreateDocumentationTabInput =
|
|
5917
|
+
var DTOCreateDocumentationTabInput = z209.object({
|
|
5924
5918
|
// New group persistent id
|
|
5925
|
-
persistentId:
|
|
5919
|
+
persistentId: z209.string().uuid(),
|
|
5926
5920
|
// If this is page, we will attempt to convert it to tab
|
|
5927
5921
|
// If this is tab group, we will add a new tab to it
|
|
5928
|
-
fromItemPersistentId:
|
|
5929
|
-
tabName:
|
|
5922
|
+
fromItemPersistentId: z209.string(),
|
|
5923
|
+
tabName: z209.string()
|
|
5930
5924
|
});
|
|
5931
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5925
|
+
var DTODeleteDocumentationTabGroupInput = z209.object({
|
|
5932
5926
|
// Deleted group id
|
|
5933
|
-
id:
|
|
5927
|
+
id: z209.string()
|
|
5934
5928
|
});
|
|
5935
|
-
var DTODeleteDocumentationGroupInput =
|
|
5929
|
+
var DTODeleteDocumentationGroupInput = z209.object({
|
|
5936
5930
|
// Identifier
|
|
5937
|
-
id:
|
|
5931
|
+
id: z209.string(),
|
|
5938
5932
|
// Deletion options
|
|
5939
|
-
deleteSubtree:
|
|
5933
|
+
deleteSubtree: z209.boolean().default(false)
|
|
5940
5934
|
});
|
|
5941
5935
|
|
|
5942
5936
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5943
|
-
var SuccessPayload =
|
|
5944
|
-
success:
|
|
5937
|
+
var SuccessPayload = z210.object({
|
|
5938
|
+
success: z210.literal(true)
|
|
5945
5939
|
});
|
|
5946
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5947
|
-
type:
|
|
5940
|
+
var DTODocumentationGroupCreateActionOutputV2 = z210.object({
|
|
5941
|
+
type: z210.literal("DocumentationGroupCreate"),
|
|
5948
5942
|
output: SuccessPayload
|
|
5949
5943
|
});
|
|
5950
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5951
|
-
type:
|
|
5944
|
+
var DTODocumentationTabCreateActionOutputV2 = z210.object({
|
|
5945
|
+
type: z210.literal("DocumentationTabCreate"),
|
|
5952
5946
|
output: SuccessPayload
|
|
5953
5947
|
});
|
|
5954
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5955
|
-
type:
|
|
5948
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
|
|
5949
|
+
type: z210.literal("DocumentationGroupUpdate"),
|
|
5956
5950
|
output: SuccessPayload
|
|
5957
5951
|
});
|
|
5958
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5959
|
-
type:
|
|
5952
|
+
var DTODocumentationGroupMoveActionOutputV2 = z210.object({
|
|
5953
|
+
type: z210.literal("DocumentationGroupMove"),
|
|
5960
5954
|
output: SuccessPayload
|
|
5961
5955
|
});
|
|
5962
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5963
|
-
type:
|
|
5956
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
|
|
5957
|
+
type: z210.literal("DocumentationGroupDuplicate"),
|
|
5964
5958
|
output: SuccessPayload
|
|
5965
5959
|
});
|
|
5966
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5967
|
-
type:
|
|
5960
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
|
|
5961
|
+
type: z210.literal("DocumentationGroupDelete"),
|
|
5968
5962
|
output: SuccessPayload
|
|
5969
5963
|
});
|
|
5970
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5971
|
-
type:
|
|
5964
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
|
|
5965
|
+
type: z210.literal("DocumentationTabGroupDelete"),
|
|
5972
5966
|
output: SuccessPayload
|
|
5973
5967
|
});
|
|
5974
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5975
|
-
type:
|
|
5968
|
+
var DTODocumentationGroupCreateActionInputV2 = z210.object({
|
|
5969
|
+
type: z210.literal("DocumentationGroupCreate"),
|
|
5976
5970
|
input: DTOCreateDocumentationGroupInput
|
|
5977
5971
|
});
|
|
5978
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5979
|
-
type:
|
|
5972
|
+
var DTODocumentationTabCreateActionInputV2 = z210.object({
|
|
5973
|
+
type: z210.literal("DocumentationTabCreate"),
|
|
5980
5974
|
input: DTOCreateDocumentationTabInput
|
|
5981
5975
|
});
|
|
5982
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5983
|
-
type:
|
|
5976
|
+
var DTODocumentationGroupUpdateActionInputV2 = z210.object({
|
|
5977
|
+
type: z210.literal("DocumentationGroupUpdate"),
|
|
5984
5978
|
input: DTOUpdateDocumentationGroupInput
|
|
5985
5979
|
});
|
|
5986
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5987
|
-
type:
|
|
5980
|
+
var DTODocumentationGroupMoveActionInputV2 = z210.object({
|
|
5981
|
+
type: z210.literal("DocumentationGroupMove"),
|
|
5988
5982
|
input: DTOMoveDocumentationGroupInput
|
|
5989
5983
|
});
|
|
5990
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5991
|
-
type:
|
|
5984
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
|
|
5985
|
+
type: z210.literal("DocumentationGroupDuplicate"),
|
|
5992
5986
|
input: DTODuplicateDocumentationGroupInput
|
|
5993
5987
|
});
|
|
5994
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5995
|
-
type:
|
|
5988
|
+
var DTODocumentationGroupDeleteActionInputV2 = z210.object({
|
|
5989
|
+
type: z210.literal("DocumentationGroupDelete"),
|
|
5996
5990
|
input: DTODeleteDocumentationGroupInput
|
|
5997
5991
|
});
|
|
5998
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5999
|
-
type:
|
|
5992
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z210.object({
|
|
5993
|
+
type: z210.literal("DocumentationTabGroupDelete"),
|
|
6000
5994
|
input: DTODeleteDocumentationTabGroupInput
|
|
6001
5995
|
});
|
|
6002
5996
|
|
|
6003
5997
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6004
|
-
import { z as
|
|
5998
|
+
import { z as z212 } from "zod";
|
|
6005
5999
|
|
|
6006
6000
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6007
|
-
import { z as
|
|
6008
|
-
var DocumentationColorV1 =
|
|
6009
|
-
aliasTo:
|
|
6010
|
-
value:
|
|
6001
|
+
import { z as z211 } from "zod";
|
|
6002
|
+
var DocumentationColorV1 = z211.object({
|
|
6003
|
+
aliasTo: z211.string().optional(),
|
|
6004
|
+
value: z211.string().optional()
|
|
6011
6005
|
});
|
|
6012
6006
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6013
6007
|
foregroundColor: true,
|
|
@@ -6016,10 +6010,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6016
6010
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6017
6011
|
backgroundColor: DocumentationColorV1.optional()
|
|
6018
6012
|
});
|
|
6019
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6020
|
-
showSidebar:
|
|
6021
|
-
isPrivate:
|
|
6022
|
-
isHidden:
|
|
6013
|
+
var DTODocumentationItemConfigurationV1 = z211.object({
|
|
6014
|
+
showSidebar: z211.boolean(),
|
|
6015
|
+
isPrivate: z211.boolean(),
|
|
6016
|
+
isHidden: z211.boolean(),
|
|
6023
6017
|
header: DTODocumentationItemHeaderV1
|
|
6024
6018
|
});
|
|
6025
6019
|
|
|
@@ -6033,27 +6027,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6033
6027
|
data: true,
|
|
6034
6028
|
shortPersistentId: true
|
|
6035
6029
|
}).extend({
|
|
6036
|
-
title:
|
|
6037
|
-
isRoot:
|
|
6038
|
-
childrenIds:
|
|
6030
|
+
title: z212.string(),
|
|
6031
|
+
isRoot: z212.boolean(),
|
|
6032
|
+
childrenIds: z212.array(z212.string()),
|
|
6039
6033
|
groupBehavior: DocumentationGroupBehavior,
|
|
6040
|
-
shortPersistentId:
|
|
6041
|
-
type:
|
|
6034
|
+
shortPersistentId: z212.string(),
|
|
6035
|
+
type: z212.literal("Group")
|
|
6042
6036
|
});
|
|
6043
6037
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6044
6038
|
configuration: DTODocumentationItemConfigurationV1
|
|
6045
6039
|
});
|
|
6046
6040
|
|
|
6047
6041
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6048
|
-
import { z as
|
|
6049
|
-
var DTODocumentationHierarchyV2 =
|
|
6050
|
-
pages:
|
|
6042
|
+
import { z as z213 } from "zod";
|
|
6043
|
+
var DTODocumentationHierarchyV2 = z213.object({
|
|
6044
|
+
pages: z213.array(
|
|
6051
6045
|
DTODocumentationPageV2.extend({
|
|
6052
6046
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6053
6047
|
draftState: DTODocumentationDraftState.optional()
|
|
6054
6048
|
})
|
|
6055
6049
|
),
|
|
6056
|
-
groups:
|
|
6050
|
+
groups: z213.array(
|
|
6057
6051
|
DTODocumentationGroupV2.extend({
|
|
6058
6052
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6059
6053
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6062,84 +6056,84 @@ var DTODocumentationHierarchyV2 = z214.object({
|
|
|
6062
6056
|
});
|
|
6063
6057
|
|
|
6064
6058
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6065
|
-
import { z as
|
|
6066
|
-
var SuccessPayload2 =
|
|
6067
|
-
success:
|
|
6059
|
+
import { z as z214 } from "zod";
|
|
6060
|
+
var SuccessPayload2 = z214.object({
|
|
6061
|
+
success: z214.literal(true)
|
|
6068
6062
|
});
|
|
6069
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6070
|
-
type:
|
|
6063
|
+
var DTODocumentationPageCreateActionOutputV2 = z214.object({
|
|
6064
|
+
type: z214.literal("DocumentationPageCreate"),
|
|
6071
6065
|
output: SuccessPayload2
|
|
6072
6066
|
});
|
|
6073
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6074
|
-
type:
|
|
6067
|
+
var DTODocumentationPageUpdateActionOutputV2 = z214.object({
|
|
6068
|
+
type: z214.literal("DocumentationPageUpdate"),
|
|
6075
6069
|
output: SuccessPayload2
|
|
6076
6070
|
});
|
|
6077
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6078
|
-
type:
|
|
6071
|
+
var DTODocumentationPageMoveActionOutputV2 = z214.object({
|
|
6072
|
+
type: z214.literal("DocumentationPageMove"),
|
|
6079
6073
|
output: SuccessPayload2
|
|
6080
6074
|
});
|
|
6081
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6082
|
-
type:
|
|
6075
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
|
|
6076
|
+
type: z214.literal("DocumentationPageDuplicate"),
|
|
6083
6077
|
output: SuccessPayload2
|
|
6084
6078
|
});
|
|
6085
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6086
|
-
type:
|
|
6079
|
+
var DTODocumentationPageDeleteActionOutputV2 = z214.object({
|
|
6080
|
+
type: z214.literal("DocumentationPageDelete"),
|
|
6087
6081
|
output: SuccessPayload2
|
|
6088
6082
|
});
|
|
6089
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6090
|
-
type:
|
|
6083
|
+
var DTODocumentationPageRestoreActionOutput = z214.object({
|
|
6084
|
+
type: z214.literal("DocumentationPageRestore"),
|
|
6091
6085
|
output: SuccessPayload2
|
|
6092
6086
|
});
|
|
6093
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6094
|
-
type:
|
|
6087
|
+
var DTODocumentationGroupRestoreActionOutput = z214.object({
|
|
6088
|
+
type: z214.literal("DocumentationGroupRestore"),
|
|
6095
6089
|
output: SuccessPayload2
|
|
6096
6090
|
});
|
|
6097
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6098
|
-
type:
|
|
6091
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
|
|
6092
|
+
type: z214.literal("DocumentationPageApprovalStateChange"),
|
|
6099
6093
|
output: SuccessPayload2
|
|
6100
6094
|
});
|
|
6101
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6102
|
-
type:
|
|
6095
|
+
var DTODocumentationPageCreateActionInputV2 = z214.object({
|
|
6096
|
+
type: z214.literal("DocumentationPageCreate"),
|
|
6103
6097
|
input: DTOCreateDocumentationPageInputV2
|
|
6104
6098
|
});
|
|
6105
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6106
|
-
type:
|
|
6099
|
+
var DTODocumentationPageUpdateActionInputV2 = z214.object({
|
|
6100
|
+
type: z214.literal("DocumentationPageUpdate"),
|
|
6107
6101
|
input: DTOUpdateDocumentationPageInputV2
|
|
6108
6102
|
});
|
|
6109
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6110
|
-
type:
|
|
6103
|
+
var DTODocumentationPageMoveActionInputV2 = z214.object({
|
|
6104
|
+
type: z214.literal("DocumentationPageMove"),
|
|
6111
6105
|
input: DTOMoveDocumentationPageInputV2
|
|
6112
6106
|
});
|
|
6113
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6114
|
-
type:
|
|
6107
|
+
var DTODocumentationPageDuplicateActionInputV2 = z214.object({
|
|
6108
|
+
type: z214.literal("DocumentationPageDuplicate"),
|
|
6115
6109
|
input: DTODuplicateDocumentationPageInputV2
|
|
6116
6110
|
});
|
|
6117
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6118
|
-
type:
|
|
6111
|
+
var DTODocumentationPageDeleteActionInputV2 = z214.object({
|
|
6112
|
+
type: z214.literal("DocumentationPageDelete"),
|
|
6119
6113
|
input: DTODeleteDocumentationPageInputV2
|
|
6120
6114
|
});
|
|
6121
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6122
|
-
type:
|
|
6115
|
+
var DTODocumentationPageRestoreActionInput = z214.object({
|
|
6116
|
+
type: z214.literal("DocumentationPageRestore"),
|
|
6123
6117
|
input: DTORestoreDocumentationPageInput
|
|
6124
6118
|
});
|
|
6125
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6126
|
-
type:
|
|
6119
|
+
var DTODocumentationGroupRestoreActionInput = z214.object({
|
|
6120
|
+
type: z214.literal("DocumentationGroupRestore"),
|
|
6127
6121
|
input: DTORestoreDocumentationGroupInput
|
|
6128
6122
|
});
|
|
6129
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6130
|
-
type:
|
|
6123
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z214.object({
|
|
6124
|
+
type: z214.literal("DocumentationPageApprovalStateChange"),
|
|
6131
6125
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6132
6126
|
});
|
|
6133
6127
|
|
|
6134
6128
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6135
|
-
import { z as
|
|
6129
|
+
import { z as z215 } from "zod";
|
|
6136
6130
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6137
|
-
var DTODocumentationPageContentGetResponse =
|
|
6131
|
+
var DTODocumentationPageContentGetResponse = z215.object({
|
|
6138
6132
|
pageContent: DTODocumentationPageContent
|
|
6139
6133
|
});
|
|
6140
6134
|
|
|
6141
6135
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6142
|
-
import { z as
|
|
6136
|
+
import { z as z216 } from "zod";
|
|
6143
6137
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6144
6138
|
data: true,
|
|
6145
6139
|
meta: true,
|
|
@@ -6147,32 +6141,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6147
6141
|
sortOrder: true
|
|
6148
6142
|
}).extend({
|
|
6149
6143
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6150
|
-
blocks:
|
|
6151
|
-
title:
|
|
6152
|
-
path:
|
|
6144
|
+
blocks: z216.array(PageBlockV1),
|
|
6145
|
+
title: z216.string(),
|
|
6146
|
+
path: z216.string()
|
|
6153
6147
|
});
|
|
6154
6148
|
|
|
6155
6149
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6156
|
-
import { z as
|
|
6150
|
+
import { z as z217 } from "zod";
|
|
6157
6151
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6158
|
-
var DTOFigmaNodeOrigin =
|
|
6159
|
-
sourceId:
|
|
6160
|
-
fileId:
|
|
6161
|
-
parentName:
|
|
6152
|
+
var DTOFigmaNodeOrigin = z217.object({
|
|
6153
|
+
sourceId: z217.string(),
|
|
6154
|
+
fileId: z217.string().optional(),
|
|
6155
|
+
parentName: z217.string().optional()
|
|
6162
6156
|
});
|
|
6163
|
-
var DTOFigmaNodeData =
|
|
6157
|
+
var DTOFigmaNodeData = z217.object({
|
|
6164
6158
|
// Id of the node in the Figma file
|
|
6165
|
-
figmaNodeId:
|
|
6159
|
+
figmaNodeId: z217.string(),
|
|
6166
6160
|
// Validity
|
|
6167
|
-
isValid:
|
|
6161
|
+
isValid: z217.boolean(),
|
|
6168
6162
|
// Asset data
|
|
6169
|
-
assetId:
|
|
6170
|
-
assetUrl:
|
|
6163
|
+
assetId: z217.string(),
|
|
6164
|
+
assetUrl: z217.string(),
|
|
6171
6165
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6172
6166
|
// Asset metadata
|
|
6173
|
-
assetScale:
|
|
6174
|
-
assetWidth:
|
|
6175
|
-
assetHeight:
|
|
6167
|
+
assetScale: z217.number(),
|
|
6168
|
+
assetWidth: z217.number().optional(),
|
|
6169
|
+
assetHeight: z217.number().optional()
|
|
6176
6170
|
});
|
|
6177
6171
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6178
6172
|
data: true,
|
|
@@ -6181,15 +6175,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6181
6175
|
data: DTOFigmaNodeData,
|
|
6182
6176
|
origin: DTOFigmaNodeOrigin
|
|
6183
6177
|
});
|
|
6184
|
-
var DTOFigmaNodeRenderInput =
|
|
6178
|
+
var DTOFigmaNodeRenderInput = z217.object({
|
|
6185
6179
|
/**
|
|
6186
6180
|
* Id of a design system's data source representing a linked Figma file
|
|
6187
6181
|
*/
|
|
6188
|
-
sourceId:
|
|
6182
|
+
sourceId: z217.string(),
|
|
6189
6183
|
/**
|
|
6190
6184
|
* Id of a node within the Figma file
|
|
6191
6185
|
*/
|
|
6192
|
-
figmaFileNodeId:
|
|
6186
|
+
figmaFileNodeId: z217.string(),
|
|
6193
6187
|
/**
|
|
6194
6188
|
* Format in which the node must be rendered, png by default.
|
|
6195
6189
|
*/
|
|
@@ -6197,97 +6191,97 @@ var DTOFigmaNodeRenderInput = z218.object({
|
|
|
6197
6191
|
});
|
|
6198
6192
|
|
|
6199
6193
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6200
|
-
import { z as
|
|
6201
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6202
|
-
type:
|
|
6203
|
-
figmaNodes:
|
|
6194
|
+
import { z as z218 } from "zod";
|
|
6195
|
+
var DTOFigmaNodeRenderActionOutput = z218.object({
|
|
6196
|
+
type: z218.literal("FigmaNodeRender"),
|
|
6197
|
+
figmaNodes: z218.array(DTOFigmaNode)
|
|
6204
6198
|
});
|
|
6205
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6206
|
-
type:
|
|
6199
|
+
var DTOFigmaNodeRenderActionInput = z218.object({
|
|
6200
|
+
type: z218.literal("FigmaNodeRender"),
|
|
6207
6201
|
input: DTOFigmaNodeRenderInput.array()
|
|
6208
6202
|
});
|
|
6209
6203
|
|
|
6210
6204
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6211
|
-
import { z as
|
|
6205
|
+
import { z as z220 } from "zod";
|
|
6212
6206
|
|
|
6213
6207
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6214
|
-
import { z as
|
|
6208
|
+
import { z as z219 } from "zod";
|
|
6215
6209
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6216
|
-
var DTOElementPropertyDefinition =
|
|
6217
|
-
id:
|
|
6218
|
-
designSystemVersionId:
|
|
6210
|
+
var DTOElementPropertyDefinition = z219.object({
|
|
6211
|
+
id: z219.string(),
|
|
6212
|
+
designSystemVersionId: z219.string(),
|
|
6219
6213
|
meta: ObjectMeta,
|
|
6220
|
-
persistentId:
|
|
6214
|
+
persistentId: z219.string(),
|
|
6221
6215
|
type: ElementPropertyTypeSchema,
|
|
6222
6216
|
targetElementType: ElementPropertyTargetType,
|
|
6223
|
-
codeName:
|
|
6224
|
-
options:
|
|
6217
|
+
codeName: z219.string().regex(CODE_NAME_REGEX2),
|
|
6218
|
+
options: z219.array(ElementPropertyDefinitionOption).optional(),
|
|
6225
6219
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6226
6220
|
});
|
|
6227
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6228
|
-
definitions:
|
|
6221
|
+
var DTOElementPropertyDefinitionsGetResponse = z219.object({
|
|
6222
|
+
definitions: z219.array(DTOElementPropertyDefinition)
|
|
6229
6223
|
});
|
|
6230
6224
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6231
6225
|
id: true,
|
|
6232
6226
|
designSystemVersionId: true
|
|
6233
6227
|
});
|
|
6234
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6235
|
-
id:
|
|
6236
|
-
name:
|
|
6237
|
-
description:
|
|
6238
|
-
codeName:
|
|
6239
|
-
options:
|
|
6228
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z219.object({
|
|
6229
|
+
id: z219.string(),
|
|
6230
|
+
name: z219.string().optional(),
|
|
6231
|
+
description: z219.string().optional(),
|
|
6232
|
+
codeName: z219.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6233
|
+
options: z219.array(ElementPropertyDefinitionOption).optional()
|
|
6240
6234
|
});
|
|
6241
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6242
|
-
id:
|
|
6235
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z219.object({
|
|
6236
|
+
id: z219.string()
|
|
6243
6237
|
});
|
|
6244
6238
|
|
|
6245
6239
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6246
|
-
var SuccessPayload3 =
|
|
6247
|
-
success:
|
|
6240
|
+
var SuccessPayload3 = z220.object({
|
|
6241
|
+
success: z220.literal(true)
|
|
6248
6242
|
});
|
|
6249
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6250
|
-
type:
|
|
6243
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
|
|
6244
|
+
type: z220.literal("PropertyDefinitionCreate"),
|
|
6251
6245
|
definition: DTOElementPropertyDefinition
|
|
6252
6246
|
});
|
|
6253
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6254
|
-
type:
|
|
6247
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
|
|
6248
|
+
type: z220.literal("PropertyDefinitionUpdate"),
|
|
6255
6249
|
definition: DTOElementPropertyDefinition
|
|
6256
6250
|
});
|
|
6257
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6258
|
-
type:
|
|
6251
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
|
|
6252
|
+
type: z220.literal("PropertyDefinitionDelete"),
|
|
6259
6253
|
output: SuccessPayload3
|
|
6260
6254
|
});
|
|
6261
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6262
|
-
type:
|
|
6255
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
|
|
6256
|
+
type: z220.literal("PropertyDefinitionCreate"),
|
|
6263
6257
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6264
6258
|
});
|
|
6265
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6266
|
-
type:
|
|
6259
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
|
|
6260
|
+
type: z220.literal("PropertyDefinitionUpdate"),
|
|
6267
6261
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6268
6262
|
});
|
|
6269
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6270
|
-
type:
|
|
6263
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z220.object({
|
|
6264
|
+
type: z220.literal("PropertyDefinitionDelete"),
|
|
6271
6265
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6272
6266
|
});
|
|
6273
6267
|
|
|
6274
6268
|
// src/api/dto/elements/properties/property-values.ts
|
|
6275
|
-
import { z as
|
|
6276
|
-
var DTOElementPropertyValue =
|
|
6277
|
-
id:
|
|
6278
|
-
designSystemVersionId:
|
|
6279
|
-
definitionId:
|
|
6280
|
-
targetElementId:
|
|
6281
|
-
value:
|
|
6282
|
-
valuePreview:
|
|
6269
|
+
import { z as z221 } from "zod";
|
|
6270
|
+
var DTOElementPropertyValue = z221.object({
|
|
6271
|
+
id: z221.string(),
|
|
6272
|
+
designSystemVersionId: z221.string(),
|
|
6273
|
+
definitionId: z221.string(),
|
|
6274
|
+
targetElementId: z221.string(),
|
|
6275
|
+
value: z221.union([z221.string(), z221.number(), z221.boolean()]).optional(),
|
|
6276
|
+
valuePreview: z221.string().optional()
|
|
6283
6277
|
});
|
|
6284
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6285
|
-
values:
|
|
6278
|
+
var DTOElementPropertyValuesGetResponse = z221.object({
|
|
6279
|
+
values: z221.array(DTOElementPropertyValue)
|
|
6286
6280
|
});
|
|
6287
6281
|
|
|
6288
6282
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6289
|
-
import { z as
|
|
6290
|
-
var DTOElementActionOutput =
|
|
6283
|
+
import { z as z222 } from "zod";
|
|
6284
|
+
var DTOElementActionOutput = z222.discriminatedUnion("type", [
|
|
6291
6285
|
// Documentation pages
|
|
6292
6286
|
DTODocumentationPageCreateActionOutputV2,
|
|
6293
6287
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6314,7 +6308,7 @@ var DTOElementActionOutput = z223.discriminatedUnion("type", [
|
|
|
6314
6308
|
// Approvals
|
|
6315
6309
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6316
6310
|
]);
|
|
6317
|
-
var DTOElementActionInput =
|
|
6311
|
+
var DTOElementActionInput = z222.discriminatedUnion("type", [
|
|
6318
6312
|
// Documentation pages
|
|
6319
6313
|
DTODocumentationPageCreateActionInputV2,
|
|
6320
6314
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6343,60 +6337,60 @@ var DTOElementActionInput = z223.discriminatedUnion("type", [
|
|
|
6343
6337
|
]);
|
|
6344
6338
|
|
|
6345
6339
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6346
|
-
import { z as
|
|
6347
|
-
var DTOElementsGetTypeFilter =
|
|
6348
|
-
var DTOElementsGetQuerySchema =
|
|
6349
|
-
types:
|
|
6340
|
+
import { z as z223 } from "zod";
|
|
6341
|
+
var DTOElementsGetTypeFilter = z223.enum(["FigmaNode"]);
|
|
6342
|
+
var DTOElementsGetQuerySchema = z223.object({
|
|
6343
|
+
types: z223.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6350
6344
|
});
|
|
6351
|
-
var DTOElementsGetOutput =
|
|
6352
|
-
figmaNodes:
|
|
6345
|
+
var DTOElementsGetOutput = z223.object({
|
|
6346
|
+
figmaNodes: z223.array(DTOFigmaNode).optional()
|
|
6353
6347
|
});
|
|
6354
6348
|
|
|
6355
6349
|
// src/api/dto/figma-components/assets/download.ts
|
|
6356
|
-
import { z as
|
|
6357
|
-
var DTOAssetRenderConfiguration =
|
|
6358
|
-
prefix:
|
|
6359
|
-
suffix:
|
|
6360
|
-
scale:
|
|
6361
|
-
format:
|
|
6362
|
-
});
|
|
6363
|
-
var DTORenderedAssetFile =
|
|
6364
|
-
assetId:
|
|
6365
|
-
fileName:
|
|
6366
|
-
sourceUrl:
|
|
6350
|
+
import { z as z224 } from "zod";
|
|
6351
|
+
var DTOAssetRenderConfiguration = z224.object({
|
|
6352
|
+
prefix: z224.string().optional(),
|
|
6353
|
+
suffix: z224.string().optional(),
|
|
6354
|
+
scale: z224.enum(["x1", "x2", "x3", "x4"]),
|
|
6355
|
+
format: z224.enum(["png", "pdf", "svg"])
|
|
6356
|
+
});
|
|
6357
|
+
var DTORenderedAssetFile = z224.object({
|
|
6358
|
+
assetId: z224.string(),
|
|
6359
|
+
fileName: z224.string(),
|
|
6360
|
+
sourceUrl: z224.string(),
|
|
6367
6361
|
settings: DTOAssetRenderConfiguration,
|
|
6368
|
-
originalName:
|
|
6362
|
+
originalName: z224.string()
|
|
6369
6363
|
});
|
|
6370
|
-
var DTODownloadAssetsRequest =
|
|
6371
|
-
persistentIds:
|
|
6364
|
+
var DTODownloadAssetsRequest = z224.object({
|
|
6365
|
+
persistentIds: z224.array(z224.string().uuid()).optional(),
|
|
6372
6366
|
settings: DTOAssetRenderConfiguration.array()
|
|
6373
6367
|
});
|
|
6374
|
-
var DTODownloadAssetsResponse =
|
|
6368
|
+
var DTODownloadAssetsResponse = z224.object({
|
|
6375
6369
|
items: DTORenderedAssetFile.array()
|
|
6376
6370
|
});
|
|
6377
6371
|
|
|
6378
6372
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6379
|
-
import { z as
|
|
6380
|
-
var DTOLiveblocksAuthResponse =
|
|
6381
|
-
token:
|
|
6373
|
+
import { z as z225 } from "zod";
|
|
6374
|
+
var DTOLiveblocksAuthResponse = z225.object({
|
|
6375
|
+
token: z225.string()
|
|
6382
6376
|
});
|
|
6383
6377
|
|
|
6384
6378
|
// src/api/dto/users/authenticated-user.ts
|
|
6385
|
-
import { z as
|
|
6379
|
+
import { z as z227 } from "zod";
|
|
6386
6380
|
|
|
6387
6381
|
// src/api/dto/users/user.ts
|
|
6388
|
-
import { z as
|
|
6389
|
-
var DTOUserProfile =
|
|
6390
|
-
name:
|
|
6391
|
-
nickname:
|
|
6392
|
-
avatar:
|
|
6393
|
-
});
|
|
6394
|
-
var DTOUser =
|
|
6395
|
-
id:
|
|
6396
|
-
email:
|
|
6382
|
+
import { z as z226 } from "zod";
|
|
6383
|
+
var DTOUserProfile = z226.object({
|
|
6384
|
+
name: z226.string(),
|
|
6385
|
+
nickname: z226.string().optional(),
|
|
6386
|
+
avatar: z226.string().optional()
|
|
6387
|
+
});
|
|
6388
|
+
var DTOUser = z226.object({
|
|
6389
|
+
id: z226.string(),
|
|
6390
|
+
email: z226.string(),
|
|
6397
6391
|
profile: DTOUserProfile
|
|
6398
6392
|
});
|
|
6399
|
-
var DTOUserGetResponse =
|
|
6393
|
+
var DTOUserGetResponse = z226.object({
|
|
6400
6394
|
user: DTOUser
|
|
6401
6395
|
});
|
|
6402
6396
|
|
|
@@ -6404,34 +6398,34 @@ var DTOUserGetResponse = z227.object({
|
|
|
6404
6398
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6405
6399
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6406
6400
|
var DTOUserSource = UserSource;
|
|
6407
|
-
var DTOUserOnboarding =
|
|
6408
|
-
companyName:
|
|
6409
|
-
numberOfPeopleInOrg:
|
|
6410
|
-
numberOfPeopleInDesignTeam:
|
|
6401
|
+
var DTOUserOnboarding = z227.object({
|
|
6402
|
+
companyName: z227.string().optional(),
|
|
6403
|
+
numberOfPeopleInOrg: z227.string().optional(),
|
|
6404
|
+
numberOfPeopleInDesignTeam: z227.string().optional(),
|
|
6411
6405
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6412
|
-
jobTitle:
|
|
6413
|
-
phase:
|
|
6406
|
+
jobTitle: z227.string().optional(),
|
|
6407
|
+
phase: z227.string().optional(),
|
|
6414
6408
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6415
|
-
designSystemName:
|
|
6416
|
-
defaultDestination:
|
|
6417
|
-
isPageDraftOnboardingFinished:
|
|
6409
|
+
designSystemName: z227.string().optional(),
|
|
6410
|
+
defaultDestination: z227.string().optional(),
|
|
6411
|
+
isPageDraftOnboardingFinished: z227.boolean().optional()
|
|
6418
6412
|
});
|
|
6419
6413
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6420
6414
|
onboarding: DTOUserOnboarding.optional()
|
|
6421
6415
|
});
|
|
6422
6416
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6423
6417
|
profile: DTOAuthenticatedUserProfile,
|
|
6424
|
-
createdAt:
|
|
6425
|
-
loggedOutAt:
|
|
6418
|
+
createdAt: z227.coerce.date(),
|
|
6419
|
+
loggedOutAt: z227.coerce.date().optional(),
|
|
6426
6420
|
source: DTOUserSource.optional()
|
|
6427
6421
|
});
|
|
6428
|
-
var DTOAuthenticatedUserResponse =
|
|
6422
|
+
var DTOAuthenticatedUserResponse = z227.object({
|
|
6429
6423
|
user: DTOAuthenticatedUser
|
|
6430
6424
|
});
|
|
6431
6425
|
|
|
6432
6426
|
// src/api/dto/users/update.ts
|
|
6433
|
-
import { z as
|
|
6434
|
-
var DTOUserProfileUpdateResponse =
|
|
6427
|
+
import { z as z228 } from "zod";
|
|
6428
|
+
var DTOUserProfileUpdateResponse = z228.object({
|
|
6435
6429
|
user: User
|
|
6436
6430
|
});
|
|
6437
6431
|
|
|
@@ -6454,7 +6448,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6454
6448
|
};
|
|
6455
6449
|
|
|
6456
6450
|
// src/api/endpoints/design-systems.ts
|
|
6457
|
-
import { z as
|
|
6451
|
+
import { z as z229 } from "zod";
|
|
6458
6452
|
var DesignSystemsEndpoint = class {
|
|
6459
6453
|
constructor(requestExecutor) {
|
|
6460
6454
|
this.requestExecutor = requestExecutor;
|
|
@@ -6468,10 +6462,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6468
6462
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6469
6463
|
}
|
|
6470
6464
|
get(dsId) {
|
|
6471
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6465
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any());
|
|
6472
6466
|
}
|
|
6473
6467
|
delete(dsId) {
|
|
6474
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6468
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any(), { method: "DELETE" });
|
|
6475
6469
|
}
|
|
6476
6470
|
update(dsId, body) {
|
|
6477
6471
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6498,7 +6492,7 @@ var UsersEndpoint = class {
|
|
|
6498
6492
|
};
|
|
6499
6493
|
|
|
6500
6494
|
// src/api/endpoints/workspace-members.ts
|
|
6501
|
-
import { z as
|
|
6495
|
+
import { z as z230 } from "zod";
|
|
6502
6496
|
var WorkspaceMembersEndpoint = class {
|
|
6503
6497
|
constructor(requestExecutor) {
|
|
6504
6498
|
this.requestExecutor = requestExecutor;
|
|
@@ -6515,7 +6509,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6515
6509
|
});
|
|
6516
6510
|
}
|
|
6517
6511
|
invite(workspaceId, body) {
|
|
6518
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6512
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z230.any(), { method: "POST", body });
|
|
6519
6513
|
}
|
|
6520
6514
|
delete(workspaceId, userId) {
|
|
6521
6515
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6525,7 +6519,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6525
6519
|
};
|
|
6526
6520
|
|
|
6527
6521
|
// src/api/endpoints/workspaces.ts
|
|
6528
|
-
import { z as
|
|
6522
|
+
import { z as z231 } from "zod";
|
|
6529
6523
|
var WorkspacesEndpoint = class {
|
|
6530
6524
|
constructor(requestExecutor) {
|
|
6531
6525
|
this.requestExecutor = requestExecutor;
|
|
@@ -6543,10 +6537,10 @@ var WorkspacesEndpoint = class {
|
|
|
6543
6537
|
});
|
|
6544
6538
|
}
|
|
6545
6539
|
delete(workspaceId) {
|
|
6546
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6540
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z231.any(), { method: "DELETE" });
|
|
6547
6541
|
}
|
|
6548
6542
|
subscription(workspaceId) {
|
|
6549
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6543
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z231.any(), { method: "GET" });
|
|
6550
6544
|
}
|
|
6551
6545
|
};
|
|
6552
6546
|
|
|
@@ -6568,9 +6562,9 @@ ${bodyText}`);
|
|
|
6568
6562
|
|
|
6569
6563
|
// src/api/transport/request-executor.ts
|
|
6570
6564
|
import fetch from "node-fetch";
|
|
6571
|
-
import { z as
|
|
6572
|
-
var ResponseWrapper =
|
|
6573
|
-
result:
|
|
6565
|
+
import { z as z232 } from "zod";
|
|
6566
|
+
var ResponseWrapper = z232.object({
|
|
6567
|
+
result: z232.record(z232.any())
|
|
6574
6568
|
});
|
|
6575
6569
|
var RequestExecutor = class {
|
|
6576
6570
|
constructor(testServerConfig) {
|
|
@@ -6692,7 +6686,7 @@ function generateHash(input, debug = false) {
|
|
|
6692
6686
|
}
|
|
6693
6687
|
|
|
6694
6688
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6695
|
-
import { z as
|
|
6689
|
+
import { z as z233 } from "zod";
|
|
6696
6690
|
|
|
6697
6691
|
// src/yjs/version-room/base.ts
|
|
6698
6692
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7221,24 +7215,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7221
7215
|
};
|
|
7222
7216
|
|
|
7223
7217
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7224
|
-
var DocumentationHierarchySettings =
|
|
7225
|
-
routingVersion:
|
|
7226
|
-
isDraftFeatureAdopted:
|
|
7227
|
-
isApprovalFeatureEnabled:
|
|
7228
|
-
approvalRequiredForPublishing:
|
|
7218
|
+
var DocumentationHierarchySettings = z233.object({
|
|
7219
|
+
routingVersion: z233.string(),
|
|
7220
|
+
isDraftFeatureAdopted: z233.boolean(),
|
|
7221
|
+
isApprovalFeatureEnabled: z233.boolean(),
|
|
7222
|
+
approvalRequiredForPublishing: z233.boolean()
|
|
7229
7223
|
});
|
|
7230
7224
|
function yjsToDocumentationHierarchy(doc) {
|
|
7231
7225
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7232
7226
|
}
|
|
7233
7227
|
|
|
7234
7228
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7235
|
-
import { z as
|
|
7236
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7237
|
-
title:
|
|
7229
|
+
import { z as z234 } from "zod";
|
|
7230
|
+
var DTODocumentationPageRoomHeaderData = z234.object({
|
|
7231
|
+
title: z234.string(),
|
|
7238
7232
|
configuration: DTODocumentationItemConfigurationV2
|
|
7239
7233
|
});
|
|
7240
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7241
|
-
title:
|
|
7234
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z234.object({
|
|
7235
|
+
title: z234.string().optional(),
|
|
7242
7236
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7243
7237
|
});
|
|
7244
7238
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7289,7 +7283,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7289
7283
|
header: rawHeader
|
|
7290
7284
|
};
|
|
7291
7285
|
return {
|
|
7292
|
-
title:
|
|
7286
|
+
title: z234.string().parse(title),
|
|
7293
7287
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7294
7288
|
};
|
|
7295
7289
|
}
|
|
@@ -7299,9 +7293,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7299
7293
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7300
7294
|
|
|
7301
7295
|
// src/yjs/docs-editor/model/page.ts
|
|
7302
|
-
import { z as
|
|
7303
|
-
var DocumentationPageEditorModel =
|
|
7304
|
-
blocks:
|
|
7296
|
+
import { z as z235 } from "zod";
|
|
7297
|
+
var DocumentationPageEditorModel = z235.object({
|
|
7298
|
+
blocks: z235.array(DocumentationPageContentItem)
|
|
7305
7299
|
});
|
|
7306
7300
|
|
|
7307
7301
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10652,7 +10646,7 @@ var blocks = [
|
|
|
10652
10646
|
|
|
10653
10647
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10654
10648
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10655
|
-
import { z as
|
|
10649
|
+
import { z as z236 } from "zod";
|
|
10656
10650
|
function yDocToPage(yDoc, definitions) {
|
|
10657
10651
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10658
10652
|
}
|
|
@@ -10732,7 +10726,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10732
10726
|
return null;
|
|
10733
10727
|
return {
|
|
10734
10728
|
id,
|
|
10735
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10729
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z236.string()) ?? "",
|
|
10736
10730
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10737
10731
|
};
|
|
10738
10732
|
}
|
|
@@ -10767,7 +10761,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10767
10761
|
});
|
|
10768
10762
|
}
|
|
10769
10763
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10770
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10764
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z236.string());
|
|
10771
10765
|
if (!definitionId) {
|
|
10772
10766
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10773
10767
|
return [];
|
|
@@ -10809,7 +10803,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10809
10803
|
if (!id)
|
|
10810
10804
|
return null;
|
|
10811
10805
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10812
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10806
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z236.string().optional()));
|
|
10813
10807
|
return {
|
|
10814
10808
|
id,
|
|
10815
10809
|
type: "Block",
|
|
@@ -10937,10 +10931,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10937
10931
|
return null;
|
|
10938
10932
|
}
|
|
10939
10933
|
function parseProsemirrorLink(mark) {
|
|
10940
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
10934
|
+
const href = getProsemirrorAttribute(mark, "href", z236.string().optional());
|
|
10941
10935
|
if (!href)
|
|
10942
10936
|
return null;
|
|
10943
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
10937
|
+
const target = getProsemirrorAttribute(mark, "target", z236.string().optional());
|
|
10944
10938
|
const openInNewTab = target === "_blank";
|
|
10945
10939
|
if (href.startsWith("@")) {
|
|
10946
10940
|
return {
|
|
@@ -10959,10 +10953,10 @@ function parseProsemirrorLink(mark) {
|
|
|
10959
10953
|
}
|
|
10960
10954
|
}
|
|
10961
10955
|
function parseProsemirrorCommentHighlight(mark) {
|
|
10962
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
10956
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z236.string().optional());
|
|
10963
10957
|
if (!highlightId)
|
|
10964
10958
|
return null;
|
|
10965
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
10959
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z236.boolean().optional()) ?? false;
|
|
10966
10960
|
return {
|
|
10967
10961
|
type: "Comment",
|
|
10968
10962
|
commentHighlightId: highlightId,
|
|
@@ -10974,7 +10968,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10974
10968
|
if (!id)
|
|
10975
10969
|
return null;
|
|
10976
10970
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10977
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
10971
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z236.boolean().optional()) !== false;
|
|
10978
10972
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
10979
10973
|
if (!tableChild) {
|
|
10980
10974
|
return emptyTable(id, variantId, 0);
|
|
@@ -11021,9 +11015,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11021
11015
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11022
11016
|
if (!id)
|
|
11023
11017
|
return null;
|
|
11024
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11018
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z236.string().optional());
|
|
11025
11019
|
let columnWidth;
|
|
11026
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11020
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z236.array(z236.number()).nullish());
|
|
11027
11021
|
if (columnWidthArray) {
|
|
11028
11022
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11029
11023
|
}
|
|
@@ -11061,7 +11055,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11061
11055
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11062
11056
|
};
|
|
11063
11057
|
case "image":
|
|
11064
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11058
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z236.string());
|
|
11065
11059
|
if (!items)
|
|
11066
11060
|
return null;
|
|
11067
11061
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11181,7 +11175,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11181
11175
|
);
|
|
11182
11176
|
}
|
|
11183
11177
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11184
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11178
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z236.string());
|
|
11185
11179
|
if (!itemsString)
|
|
11186
11180
|
return null;
|
|
11187
11181
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11193,18 +11187,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11193
11187
|
}
|
|
11194
11188
|
function parseAppearance(prosemirrorNode) {
|
|
11195
11189
|
let appearance = {};
|
|
11196
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11190
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z236.string().optional());
|
|
11197
11191
|
if (rawAppearanceString) {
|
|
11198
11192
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11199
11193
|
if (parsedAppearance.success) {
|
|
11200
11194
|
appearance = parsedAppearance.data;
|
|
11201
11195
|
}
|
|
11202
11196
|
}
|
|
11203
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11197
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z236.number().optional());
|
|
11204
11198
|
if (columns) {
|
|
11205
11199
|
appearance.numberOfColumns = columns;
|
|
11206
11200
|
}
|
|
11207
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11201
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z236.string().optional());
|
|
11208
11202
|
if (backgroundColor) {
|
|
11209
11203
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11210
11204
|
if (parsedColor.success) {
|
|
@@ -11299,13 +11293,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11299
11293
|
}
|
|
11300
11294
|
}
|
|
11301
11295
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11302
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11296
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z236.string());
|
|
11303
11297
|
if (!id)
|
|
11304
11298
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11305
11299
|
return id;
|
|
11306
11300
|
}
|
|
11307
11301
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11308
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11302
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z236.string()));
|
|
11309
11303
|
}
|
|
11310
11304
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11311
11305
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|