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