@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.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 z146 } from "zod";
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 z149 } from "zod";
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 UserAnalyticsCleanupSchedule = z133.object({
3962
- userId: z133.string(),
3963
- createdAt: z133.coerce.date(),
3964
- deleteAt: z133.coerce.date()
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 UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3967
- createdAt: true
3982
+ var UserProfileUpdate = UserProfile.partial().omit({
3983
+ avatar: true
3968
3984
  });
3969
- var CreateUserInput = z134.object({
3985
+ var UserSource = z134.enum(["SignUp", "Invite", "SSO"]);
3986
+ var User = z134.object({
3987
+ id: z134.string(),
3970
3988
  email: z134.string(),
3971
- name: z134.string(),
3972
- username: z134.string()
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 UserIdentity = z135.object({
3975
- id: z135.string(),
3976
- userId: z135.string()
3998
+ var UserAnalyticsCleanupSchedule = z135.object({
3999
+ userId: z135.string(),
4000
+ createdAt: z135.coerce.date(),
4001
+ deleteAt: z135.coerce.date()
3977
4002
  });
3978
- var UserMinified = z136.object({
3979
- id: z136.string(),
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 LiveblocksNotificationSettings = z137.object({
3985
- sendCommentNotificationEmails: z137.boolean()
4006
+ var UserIdentity = z136.object({
4007
+ id: z136.string(),
4008
+ userId: z136.string()
3986
4009
  });
3987
- var UserNotificationSettings = z137.object({
3988
- liveblocksNotificationSettings: LiveblocksNotificationSettings
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 UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3991
- var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
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 UserProfileUpdate = UserProfile.partial().omit({
4013
- avatar: true
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 User = z140.object({
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: z141.string(),
4052
- accessToken: z141.string(),
4053
- userId: z141.string(),
4054
- createdAt: z141.coerce.date(),
4055
- refreshToken: z141.string().optional(),
4056
- tokenName: z141.string().optional(),
4057
- expiresAt: z141.coerce.date().optional(),
4058
- refreshedAt: z141.coerce.date().optional(),
4059
- username: z141.string().optional(),
4060
- appInstallationId: z141.string().optional(),
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: z141.string().optional(),
4058
+ customUrl: z140.string().optional(),
4063
4059
  state: IntegrationCredentialsState,
4064
4060
  user: UserMinified.optional()
4065
4061
  });
4066
- var ExtendedIntegrationType = z141.enum([
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 = z141.object({
4078
- id: z141.string(),
4079
- workspaceId: z141.string(),
4073
+ var Integration = z140.object({
4074
+ id: z140.string(),
4075
+ workspaceId: z140.string(),
4080
4076
  type: IntegrationType,
4081
- createdAt: z141.coerce.date(),
4082
- integrationCredentials: z141.array(IntegrationCredentials).optional()
4083
- });
4084
- var IntegrationToken = z141.object({
4085
- access_token: z141.string(),
4086
- refresh_token: z141.string().optional(),
4087
- expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
4088
- token_type: z141.string().optional(),
4089
- token_name: z141.string().optional(),
4090
- token_azure_organization_name: z141.string().optional(),
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: z141.string().optional(),
4088
+ token_azure_collection_name: z140.string().optional(),
4093
4089
  // Azure Server PAT only
4094
- token_bitbucket_username: z141.string().optional(),
4090
+ token_bitbucket_username: z140.string().optional(),
4095
4091
  // Bitbucket only
4096
- custom_url: z141.string().optional().transform((value) => {
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 = z142.enum(["Basic", "Bearer", "None", "Custom"]);
4133
- var NpmRegistryType = z142.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4134
- var NpmRegistryBasicAuthConfig = z142.object({
4135
- authType: z142.literal(NpmRegistryAuthType.Enum.Basic),
4136
- username: z142.string(),
4137
- password: z142.string()
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 = z142.object({
4140
- authType: z142.literal(NpmRegistryAuthType.Enum.Bearer),
4141
- accessToken: z142.string()
4135
+ var NpmRegistryBearerAuthConfig = z141.object({
4136
+ authType: z141.literal(NpmRegistryAuthType.Enum.Bearer),
4137
+ accessToken: z141.string()
4142
4138
  });
4143
- var NpmRegistryNoAuthConfig = z142.object({
4144
- authType: z142.literal(NpmRegistryAuthType.Enum.None)
4139
+ var NpmRegistryNoAuthConfig = z141.object({
4140
+ authType: z141.literal(NpmRegistryAuthType.Enum.None)
4145
4141
  });
4146
- var NpmRegistrCustomAuthConfig = z142.object({
4147
- authType: z142.literal(NpmRegistryAuthType.Enum.Custom),
4148
- authHeaderName: z142.string(),
4149
- authHeaderValue: z142.string()
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 = z142.discriminatedUnion("authType", [
4147
+ var NpmRegistryAuthConfig = z141.discriminatedUnion("authType", [
4152
4148
  NpmRegistryBasicAuthConfig,
4153
4149
  NpmRegistryBearerAuthConfig,
4154
4150
  NpmRegistryNoAuthConfig,
4155
4151
  NpmRegistrCustomAuthConfig
4156
4152
  ]);
4157
- var NpmRegistryConfigBase = z142.object({
4153
+ var NpmRegistryConfigBase = z141.object({
4158
4154
  registryType: NpmRegistryType,
4159
- enabledScopes: z142.array(z142.string()),
4160
- customRegistryUrl: z142.string().optional(),
4161
- bypassProxy: z142.boolean().default(false),
4162
- npmProxyRegistryConfigId: z142.string().optional(),
4163
- npmProxyVersion: z142.number().optional()
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 = z143.object({
4167
- providerId: z143.string(),
4168
- defaultAutoInviteValue: z143.boolean(),
4169
- autoInviteDomains: z143.record(z143.string(), z143.boolean()),
4170
- skipDocsSupernovaLogin: z143.boolean(),
4171
- areInvitesDisabled: z143.boolean(),
4172
- isTestMode: z143.boolean(),
4173
- emailDomains: z143.array(z143.string()),
4174
- metadataXml: z143.string().nullish()
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 = z144.object({
4180
- isEnabled: z144.boolean(),
4181
- name: z144.string(),
4182
- range: z144.string().refine(isValidCIDR, {
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 = z144.object({
4187
- isEnabledForCloud: z144.boolean(),
4188
- isEnabledForDocs: z144.boolean(),
4189
- entries: z144.array(WorkspaceIpWhitelistEntry)
4182
+ var WorkspaceIpSettings = z143.object({
4183
+ isEnabledForCloud: z143.boolean(),
4184
+ isEnabledForDocs: z143.boolean(),
4185
+ entries: z143.array(WorkspaceIpWhitelistEntry)
4190
4186
  });
4191
- var WorkspaceProfile = z144.object({
4192
- name: z144.string(),
4193
- handle: z144.string(),
4194
- color: z144.string(),
4195
- avatar: nullishToOptional(z144.string()),
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 = z144.object({
4202
- id: z144.string(),
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 = z144.object({
4205
+ var WorkspaceWithDesignSystems = z143.object({
4210
4206
  workspace: Workspace,
4211
- designSystems: z144.array(DesignSystem)
4207
+ designSystems: z143.array(DesignSystem)
4212
4208
  });
4213
- var WorkspaceDump = z145.object({
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 = z146.object({
4215
+ var UserDump = z145.object({
4220
4216
  user: User,
4221
4217
  workspaces: WorkspaceDump.array()
4222
4218
  });
4223
- var NpmProxyToken = z147.object({
4224
- access: z147.string(),
4225
- expiresAt: z147.number()
4219
+ var NpmProxyToken = z146.object({
4220
+ access: z146.string(),
4221
+ expiresAt: z146.number()
4226
4222
  });
4227
- var SessionData = z147.object({
4228
- returnToUrl: z147.string().optional(),
4223
+ var SessionData = z146.object({
4224
+ returnToUrl: z146.string().optional(),
4229
4225
  npmProxyToken: NpmProxyToken.optional()
4230
4226
  });
4231
- var Session = z147.object({
4232
- id: z147.string(),
4233
- expiresAt: z147.coerce.date(),
4234
- userId: z147.string().nullable(),
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 = z147.object({
4238
- access: z147.string(),
4239
- refresh: z147.string()
4233
+ var AuthTokens = z146.object({
4234
+ access: z146.string(),
4235
+ refresh: z146.string()
4240
4236
  });
4241
- var UserSession = z147.object({
4237
+ var UserSession = z146.object({
4242
4238
  session: Session,
4243
4239
  user: User.nullable()
4244
4240
  });
4245
- var EventDataSourceImported = z148.object({
4246
- type: z148.literal("DataSourceImported"),
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
- var EventVersionReleased = z149.object({
4251
- type: z149.literal("DesignSystemVersionReleased"),
4252
- workspaceId: z149.string(),
4253
- designSystemId: z149.string(),
4254
- versionId: z149.string()
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 = z151.object({
4263
- apiUrl: z151.string(),
4264
- accessToken: z151.string(),
4265
- designSystemId: z151.string(),
4266
- designSystemName: z151.string(),
4267
- exporterId: z151.string(),
4268
- versionId: z151.string(),
4269
- brandId: z151.string().optional(),
4270
- themeId: z151.string().optional(),
4271
- themePersistentIds: z151.string().array().optional(),
4272
- exporterName: z151.string(),
4273
- exporterPackageUrl: z151.string(),
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 = z152.object({
4278
- exportJobId: z152.string(),
4279
- exportContextId: z152.string(),
4280
- designSystemId: z152.string(),
4281
- workspaceId: z152.string()
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 = z153.enum([
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 = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4293
- var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4294
- var ExportJobLogEntry = z153.object({
4295
- id: z153.string().optional(),
4296
- time: z153.coerce.date(),
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: z153.string()
4294
+ message: z152.string()
4299
4295
  });
4300
- var ExportJobPullRequestDestinationResult = z153.object({
4301
- pullRequestUrl: z153.string()
4296
+ var ExportJobPullRequestDestinationResult = z152.object({
4297
+ pullRequestUrl: z152.string()
4302
4298
  });
4303
- var ExportJobS3DestinationResult = z153.object({
4304
- bucket: z153.string(),
4305
- urlPrefix: z153.string().optional(),
4306
- path: z153.string(),
4307
- files: z153.array(z153.string()),
4308
- url: nullishToOptional(z153.string()),
4309
- urls: nullishToOptional(z153.string().array())
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 = z153.object({
4312
- url: z153.string()
4307
+ var ExportJobDocsDestinationResult = z152.object({
4308
+ url: z152.string()
4313
4309
  });
4314
- var ExportJobResult = z153.object({
4315
- error: z153.string().optional(),
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 = z153.object({
4325
- id: z153.string(),
4326
- createdAt: z153.coerce.date(),
4327
- finishedAt: z153.coerce.date().optional(),
4328
- designSystemId: z153.string(),
4329
- designSystemVersionId: z153.string(),
4330
- workspaceId: z153.string(),
4331
- scheduleId: z153.string().nullish(),
4332
- exporterId: z153.string(),
4333
- brandId: z153.string().optional(),
4334
- themeId: z153.string().optional(),
4335
- themePersistentIds: z153.string().array().optional(),
4336
- estimatedExecutionTime: z153.number().optional(),
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: z153.string().optional(),
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: z153.array(ExportJobDestinationType),
4349
+ destinations: z152.array(ExportJobDestinationType),
4354
4350
  docsEnvironment: PublishedDocEnvironment
4355
4351
  }).partial();
4356
- var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4357
- var ExporterWorkspaceMembership = z155.object({
4358
- id: z155.string(),
4359
- workspaceId: z155.string(),
4360
- exporterId: z155.string(),
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 = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4364
- var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4365
- var FeatureFlag = z156.object({
4366
- id: z156.string(),
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: z156.coerce.date(),
4369
- enabled: z156.boolean(),
4370
- designSystemId: z156.string().optional()
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 = z157.nativeEnum(OAuthProviderNames);
4376
+ var OAuthProviderSchema = z156.nativeEnum(OAuthProviderNames);
4381
4377
  var OAuthProvider = OAuthProviderSchema.enum;
4382
- var ExternalOAuthRequest = z158.object({
4383
- id: z158.string(),
4378
+ var ExternalOAuthRequest = z157.object({
4379
+ id: z157.string(),
4384
4380
  provider: OAuthProviderSchema,
4385
- userId: z158.string(),
4386
- state: z158.string(),
4387
- createdAt: z158.coerce.date()
4381
+ userId: z157.string(),
4382
+ state: z157.string(),
4383
+ createdAt: z157.coerce.date()
4388
4384
  });
4389
- var GitObjectsQuery = z159.object({
4390
- organization: z159.string().optional(),
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: z159.string().optional(),
4388
+ project: z158.string().optional(),
4393
4389
  // Only for Bitbucket and Azure
4394
- repository: z159.string().optional(),
4390
+ repository: z158.string().optional(),
4395
4391
  // For all providers. For Gitlab, it's called "project".
4396
- branch: z159.string().optional(),
4392
+ branch: z158.string().optional(),
4397
4393
  // For all providers.
4398
- user: z159.string().optional()
4394
+ user: z158.string().optional()
4399
4395
  // Gitlab user
4400
4396
  });
4401
- var GitOrganization = z159.object({
4402
- id: z159.string(),
4403
- name: z159.string(),
4404
- url: z159.string(),
4405
- slug: z159.string()
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 = z159.object({
4408
- id: z159.string(),
4409
- name: z159.string(),
4410
- url: z159.string(),
4411
- slug: z159.string()
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 = z159.object({
4414
- id: z159.string(),
4415
- name: z159.string(),
4416
- url: z159.string(),
4417
- slug: z159.string(),
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: z159.string().optional()
4419
+ defaultBranch: z158.string().optional()
4424
4420
  });
4425
- var GitBranch = z159.object({
4426
- name: z159.string(),
4427
- lastCommitId: z159.string()
4421
+ var GitBranch = z158.object({
4422
+ name: z158.string(),
4423
+ lastCommitId: z158.string()
4428
4424
  });
4429
- var IntegrationTokenSchemaOld = z160.object({
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
- accessToken: z160.string(),
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 = z162.record(z162.any());
4442
+ var AnyRecord = z161.record(z161.any());
4447
4443
  var NpmPackageVersionDist = AnyRecord.and(
4448
- z162.object({
4449
- tarball: z162.string()
4444
+ z161.object({
4445
+ tarball: z161.string()
4450
4446
  })
4451
4447
  );
4452
4448
  var NpmPackageVersion = AnyRecord.and(
4453
- z162.object({
4449
+ z161.object({
4454
4450
  dist: NpmPackageVersionDist
4455
4451
  })
4456
4452
  );
4457
4453
  var NpmPackage = AnyRecord.and(
4458
- z162.object({
4459
- _id: z162.string(),
4460
- name: z162.string(),
4454
+ z161.object({
4455
+ _id: z161.string(),
4456
+ name: z161.string(),
4461
4457
  // e.g. "latest": "1.2.3"
4462
- "dist-tags": z162.record(z162.string(), z162.string()),
4458
+ "dist-tags": z161.record(z161.string(), z161.string()),
4463
4459
  // "1.2.3": {...}
4464
- versions: z162.record(NpmPackageVersion)
4460
+ versions: z161.record(NpmPackageVersion)
4465
4461
  })
4466
4462
  );
4467
- var NpmProxyTokenPayload = z163.object({
4468
- npmProxyRegistryConfigId: z163.string()
4463
+ var NpmProxyTokenPayload = z162.object({
4464
+ npmProxyRegistryConfigId: z162.string()
4469
4465
  });
4470
- var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
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 = z165.object({
4474
- email: z165.string().email().trim().transform((value) => value.toLowerCase()),
4469
+ var UserInvite = z164.object({
4470
+ email: z164.string().email().trim().transform((value) => value.toLowerCase()),
4475
4471
  role: WorkspaceRoleSchema
4476
4472
  });
4477
- var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
4478
- var WorkspaceConfigurationUpdate = z166.object({
4479
- id: z166.string(),
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 = z167.object({
4486
- workspaceId: z167.string(),
4481
+ var WorkspaceContext = z166.object({
4482
+ workspaceId: z166.string(),
4487
4483
  product: ProductCodeSchema,
4488
4484
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4489
- publicDesignSystem: z167.boolean().optional()
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 = z168.object({
4496
- name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
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: z168.string(),
4499
- billingEmail: z168.string().email().optional(),
4500
- handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
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: z168.string().optional(),
4498
+ promoCode: z167.string().optional(),
4503
4499
  status: InternalStatusSchema.optional(),
4504
4500
  planInterval: BillingIntervalSchema.optional(),
4505
- seats: z168.number().optional(),
4506
- seatLimit: z168.number().optional(),
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 = z169.object({
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
- email: z169.string().email(),
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
- invitedBy: z169.string()
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 = z170.object({
4529
- members: z170.array(
4530
- z170.object({
4531
- userId: z170.string(),
4532
- role: z170.nativeEnum(WorkspaceRole)
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 = z171.object({
4537
- id: z171.string(),
4538
- userId: z171.string(),
4539
- workspaceId: z171.string().optional(),
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: z171.string(),
4542
- hidden: z171.boolean(),
4543
- token: z171.string(),
4544
- scope: z171.string().optional(),
4545
- createdAt: z171.coerce.date(),
4546
- expireAt: z171.coerce.date().optional()
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 z172 } from "zod";
4964
- var DTOPagination = z172.object({
4965
- limit: z172.string().optional(),
4966
- offset: z172.string().optional()
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 z196 } from "zod";
4966
+ import { z as z195 } from "zod";
4971
4967
 
4972
4968
  // src/api/dto/design-systems/brand.ts
4973
- import { z as z173 } from "zod";
4974
- var DTOBrand = z173.object({
4975
- id: z173.string(),
4976
- designSystemVersionId: z173.string(),
4977
- persistentId: z173.string(),
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 = z173.object({ brand: DTOBrand });
4981
- var DTOBrandCreateResponse = z173.object({
4976
+ var DTOBrandGetResponse = z172.object({ brand: DTOBrand });
4977
+ var DTOBrandCreateResponse = z172.object({
4982
4978
  brand: DTOBrand
4983
4979
  });
4984
- var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
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 z174 } from "zod";
4988
- var DTODataSourceFigmaFileVersion = z174.object({
4989
- id: z174.string(),
4990
- created_at: z174.coerce.date(),
4991
- label: z174.string(),
4992
- description: z174.string()
4993
- });
4994
- var DTODataSourceFigmaCloud = z174.object({
4995
- fileId: z174.string(),
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: z174.string().optional(),
4994
+ fileThumbnailUrl: z173.string().optional(),
4999
4995
  lastImportResult: SourceImportSummary.nullish(),
5000
- lastImportedAt: z174.date().nullish(),
4996
+ lastImportedAt: z173.date().nullish(),
5001
4997
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5002
- lastUpdatesCheckedAt: z174.date().nullish(),
5003
- ownerId: z174.string(),
5004
- ownerUserName: z174.string().optional(),
5005
- preferredCredentialId: z174.string().optional(),
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 = z174.object({
5009
- id: z174.string(),
5010
- type: z174.literal(DataSourceRemoteType.Enum.Figma),
5011
- fileName: z174.string(),
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: z174.string(),
5014
- themeId: z174.string().nullish(),
5009
+ brandId: z173.string(),
5010
+ themeId: z173.string().nullish(),
5015
5011
  cloud: DTODataSourceFigmaCloud.nullish(),
5016
- tokenStudio: z174.literal(null),
5017
- upload: z174.literal(null),
5018
- figmaVariablesPlugin: z174.literal(null)
5019
- });
5020
- var DTODataSourceTokenStudio = z174.object({
5021
- id: z174.string(),
5022
- type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
5023
- fileName: z174.string(),
5024
- brandId: z174.string(),
5025
- themeId: z174.string().nullish(),
5026
- cloud: z174.literal(null),
5027
- tokenStudio: z174.object({
5028
- settings: z174.object({
5029
- dryRun: z174.boolean(),
5030
- verbose: z174.boolean(),
5031
- preciseCopy: z174.boolean()
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: z174.string(),
5034
- lastImportedAt: z174.date(),
5035
- lastImportedResults: z174.array(
5036
- z174.object({
5037
- mapping: z174.object({
5038
- tokenSets: z174.array(z174.string()),
5039
- supernovaBrand: z174.string(),
5040
- supernovaTheme: z174.string().optional()
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: z174.boolean(),
5043
- tokensCreated: z174.number(),
5044
- tokensDeleted: z174.number(),
5045
- tokensUpdated: z174.number()
5038
+ isFailed: z173.boolean(),
5039
+ tokensCreated: z173.number(),
5040
+ tokensDeleted: z173.number(),
5041
+ tokensUpdated: z173.number()
5046
5042
  })
5047
5043
  )
5048
5044
  }),
5049
- upload: z174.literal(null),
5050
- figmaVariablesPlugin: z174.literal(null)
5051
- });
5052
- var DTODataSourceFigmaVariablesPlugin = z174.object({
5053
- id: z174.string(),
5054
- type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5055
- fileName: z174.string(),
5056
- brandId: z174.string(),
5057
- themeId: z174.literal(null),
5058
- cloud: z174.literal(null),
5059
- tokenStudio: z174.literal(null),
5060
- upload: z174.object({
5061
- remoteId: z174.string(),
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: z174.date().optional(),
5059
+ lastImportedAt: z173.date().optional(),
5064
5060
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5065
5061
  }),
5066
- figmaVariablesPlugin: z174.object({
5067
- fileId: z174.string(),
5068
- lastImportedAt: z174.date().optional(),
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 = z174.discriminatedUnion("type", [
5068
+ var DTODataSource = z173.discriminatedUnion("type", [
5073
5069
  DTODataSourceFigma,
5074
5070
  DTODataSourceFigmaVariablesPlugin,
5075
5071
  DTODataSourceTokenStudio
5076
5072
  ]);
5077
- var DTODataSourcesListResponse = z174.object({
5078
- sources: z174.array(DTODataSource)
5073
+ var DTODataSourcesListResponse = z173.object({
5074
+ sources: z173.array(DTODataSource)
5079
5075
  });
5080
- var DTODataSourceCreationResponse = z174.object({
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 z175 } from "zod";
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: z175.string(),
5093
- sources: z175.array(z175.any()),
5088
+ docExporterId: z174.string(),
5089
+ sources: z174.array(z174.any()),
5094
5090
  role: WorkspaceRoleSchema.optional()
5095
5091
  });
5096
- var DTODesignSystemResponse = z175.object({
5092
+ var DTODesignSystemResponse = z174.object({
5097
5093
  designSystem: DTODesignSystem
5098
5094
  });
5099
- var DTODesignSystemsListResponse = z175.object({
5095
+ var DTODesignSystemsListResponse = z174.object({
5100
5096
  designSystems: DTODesignSystem.array()
5101
5097
  });
5102
- var DTODesignSystemCreateInput = z175.object({
5103
- workspaceId: z175.string(),
5098
+ var DTODesignSystemCreateInput = z174.object({
5099
+ workspaceId: z174.string(),
5104
5100
  meta: ObjectMeta.optional(),
5105
- name: z175.string().min(2).max(64).optional(),
5106
- description: z175.string().max(1024).optional(),
5101
+ name: z174.string().min(2).max(64).optional(),
5102
+ description: z174.string().max(1024).optional(),
5107
5103
  accessMode: DesignSystemAccessMode.optional(),
5108
- inviteUserIds: z175.string().array().optional()
5104
+ inviteUserIds: z174.string().array().optional()
5109
5105
  });
5110
5106
 
5111
5107
  // src/api/dto/design-systems/elements-diff.ts
5112
- import { z as z176 } from "zod";
5113
- var DTODiffCountBase = z176.object({
5114
- created: z176.number(),
5115
- updated: z176.number(),
5116
- deleted: z176.number()
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 = z176.object({
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 z177 } from "zod";
5125
- var DTOExporterProperty = z177.any({});
5126
- var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
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 z178 } from "zod";
5130
- var DTODesignSystemMember = z178.object({
5131
- userId: z178.string()
5125
+ import { z as z177 } from "zod";
5126
+ var DTODesignSystemMember = z177.object({
5127
+ userId: z177.string()
5132
5128
  });
5133
- var DTODesignSystemMemberListResponse = z178.object({
5129
+ var DTODesignSystemMemberListResponse = z177.object({
5134
5130
  members: DTODesignSystemMember.array()
5135
5131
  });
5136
- var DTODesignSystemMembersUpdateResponse = z178.object({
5137
- ok: z178.literal(true)
5132
+ var DTODesignSystemMembersUpdateResponse = z177.object({
5133
+ ok: z177.literal(true)
5138
5134
  });
5139
- var DTODesignSystemMembersUpdatePayload = z178.object({
5140
- inviteUserIds: z178.string().array().optional(),
5141
- removeUserIds: z178.string().array().optional()
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 z188 } from "zod";
5141
+ import { z as z187 } from "zod";
5146
5142
 
5147
5143
  // src/api/payloads/design-systems/brand.ts
5148
- import { z as z179 } from "zod";
5149
- var DTOCreateBrandInput = z179.object({
5150
- persistentId: z179.string().uuid(),
5151
- meta: z179.object({
5152
- name: z179.string(),
5153
- description: z179.string()
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 z180 } from "zod";
5171
- var ObjectMeta2 = z180.object({
5172
- name: z180.string().max(150).optional(),
5173
- description: z180.string().max(2e3).optional()
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 = z180.object({
5175
+ var DTOCreateVersionInput = z179.object({
5180
5176
  meta: ObjectMeta2,
5181
- version: z180.string().refine(validateDesignSystemVersion, {
5177
+ version: z179.string().refine(validateDesignSystemVersion, {
5182
5178
  message: "Invalid semantic versioning format"
5183
5179
  }),
5184
- changeLog: z180.string().optional()
5180
+ changeLog: z179.string().optional()
5185
5181
  });
5186
- var DTOUpdateVersionInput = z180.object({
5182
+ var DTOUpdateVersionInput = z179.object({
5187
5183
  meta: ObjectMeta2,
5188
- version: z180.string(),
5184
+ version: z179.string(),
5189
5185
  // required for PUT, but not editable
5190
- changeLog: z180.string()
5186
+ changeLog: z179.string()
5191
5187
  });
5192
5188
 
5193
5189
  // src/api/payloads/documentation/block-definitions.ts
5194
- import { z as z181 } from "zod";
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 = z181.object({
5207
- definitions: z181.array(DTOPageBlockDefinition)
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 z182 } from "zod";
5212
- var DTODocumentationPublishTypeQueryParams = z182.object({
5213
- environment: z182.enum(["Live", "Preview"])
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 z183 } from "zod";
5218
- var DTOPipelineCreateBody = z183.object({
5219
- name: z183.string(),
5220
- exporterId: z183.string(),
5221
- designSystemId: z183.string(),
5222
- isEnabled: z183.boolean(),
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: z183.string().optional(),
5225
- themePersistentId: z183.string().optional(),
5226
- themePersistentIds: z183.string().array().optional(),
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: z183.object({
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: z183.string().nullish()
5232
+ webhookUrl: z182.string().nullish()
5237
5233
  })
5238
5234
  });
5239
5235
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5240
- id: z183.string()
5236
+ id: z182.string()
5241
5237
  });
5242
- var DTOPipelineTriggerBody = z183.object({
5243
- designSystemVersionId: z183.string()
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 z184 } from "zod";
5248
- var DTOLiveblocksAuthRequest = z184.object({
5249
- room: z184.string().optional()
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 z185 } from "zod";
5254
- var DTOUpdateUserNotificationSettingsPayload = z185.object({
5249
+ import { z as z184 } from "zod";
5250
+ var DTOUpdateUserNotificationSettingsPayload = z184.object({
5255
5251
  notificationSettings: UserNotificationSettings
5256
5252
  });
5257
- var DTOUserNotificationSettingsResponse = z185.object({
5258
- userId: z185.string(),
5259
- workspaceId: z185.string(),
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 z186 } from "zod";
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 = z186.object({
5291
- enabledScopes: z186.array(z186.string()),
5292
- customRegistryUrl: z186.string().optional(),
5293
- bypassProxy: z186.boolean().optional(),
5294
- npmProxyRegistryConfigId: z186.string().optional(),
5295
- npmProxyVersion: z186.number().optional(),
5296
- registryType: z186.string(),
5297
- authType: z186.string(),
5298
- authHeaderName: z186.string(),
5299
- authHeaderValue: z186.string(),
5300
- accessToken: z186.string(),
5301
- username: z186.string(),
5302
- password: z186.string()
5303
- });
5304
- var WorkspaceConfigurationPayload = z186.object({
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 z187 } from "zod";
5313
- var DTOWorkspaceIntegrationOauthInput = z187.object({
5308
+ import { z as z186 } from "zod";
5309
+ var DTOWorkspaceIntegrationOauthInput = z186.object({
5314
5310
  type: IntegrationType
5315
5311
  });
5316
- var DTOWorkspaceIntegrationPATInput = z187.object({
5317
- userId: z187.string(),
5312
+ var DTOWorkspaceIntegrationPATInput = z186.object({
5313
+ userId: z186.string(),
5318
5314
  type: IntegrationType,
5319
5315
  token: IntegrationToken
5320
5316
  });
5321
- var DTOWorkspaceIntegrationGetGitObjectsInput = z187.object({
5322
- organization: z187.string().optional(),
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: z187.string().optional(),
5320
+ project: z186.string().optional(),
5325
5321
  // Only for Bitbucket and Azure
5326
- repository: z187.string().optional(),
5322
+ repository: z186.string().optional(),
5327
5323
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5328
- branch: z187.string().optional(),
5324
+ branch: z186.string().optional(),
5329
5325
  // For all providers, useful for PR creations.
5330
- user: z187.string().optional()
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 = z188.object({
5336
- id: z188.string(),
5337
- createdAt: z188.date(),
5331
+ var DTODesignSystemVersion = z187.object({
5332
+ id: z187.string(),
5333
+ createdAt: z187.date(),
5338
5334
  meta: ObjectMeta,
5339
- version: z188.string(),
5340
- isReadonly: z188.boolean(),
5341
- changeLog: z188.string(),
5342
- designSystemId: z188.string()
5335
+ version: z187.string(),
5336
+ isReadonly: z187.boolean(),
5337
+ changeLog: z187.string(),
5338
+ designSystemId: z187.string()
5343
5339
  });
5344
- var DTODesignSystemVersionsListResponse = z188.object({
5345
- designSystemVersions: z188.array(DTODesignSystemVersion)
5340
+ var DTODesignSystemVersionsListResponse = z187.object({
5341
+ designSystemVersions: z187.array(DTODesignSystemVersion)
5346
5342
  });
5347
- var DTODesignSystemVersionGetResponse = z188.object({
5343
+ var DTODesignSystemVersionGetResponse = z187.object({
5348
5344
  designSystemVersion: DTODesignSystemVersion
5349
5345
  });
5350
- var DTODesignSystemVersionCreationResponse = z188.object({
5346
+ var DTODesignSystemVersionCreationResponse = z187.object({
5351
5347
  meta: ObjectMeta,
5352
- version: z188.string(),
5353
- changeLog: z188.string(),
5354
- isReadOnly: z188.boolean(),
5355
- designSystemId: z188.string(),
5356
- jobId: z188.string()
5357
- });
5358
- var VersionSQSPayload = z188.object({
5359
- jobId: z188.string(),
5360
- designSystemId: z188.string(),
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 = z188.object({
5364
- jobs: z188.array(VersionCreationJob)
5359
+ var DTODesignSystemVersionJobsResponse = z187.object({
5360
+ jobs: z187.array(VersionCreationJob)
5365
5361
  });
5366
- var DTODesignSystemVersionJobStatusResponse = z188.object({
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 z189 } from "zod";
5372
- var DTOElementViewColumnSharedAttributes = z189.object({
5373
- id: z189.string(),
5374
- persistentId: z189.string(),
5375
- width: z189.number()
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: z189.literal("BaseProperty"),
5374
+ type: z188.literal("BaseProperty"),
5379
5375
  basePropertyType: ElementViewBaseColumnType
5380
5376
  });
5381
5377
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5382
- type: z189.literal("PropertyDefinition"),
5383
- propertyDefinitionId: z189.string()
5378
+ type: z188.literal("PropertyDefinition"),
5379
+ propertyDefinitionId: z188.string()
5384
5380
  });
5385
5381
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5386
- type: z189.literal("Theme"),
5387
- themeId: z189.string()
5382
+ type: z188.literal("Theme"),
5383
+ themeId: z188.string()
5388
5384
  });
5389
- var DTOElementViewColumn = z189.discriminatedUnion("type", [
5385
+ var DTOElementViewColumn = z188.discriminatedUnion("type", [
5390
5386
  DTOElementViewBasePropertyColumn,
5391
5387
  DTOElementViewPropertyDefinitionColumn,
5392
5388
  DTOElementViewThemeColumn
5393
5389
  ]);
5394
- var DTOElementView = z189.object({
5390
+ var DTOElementView = z188.object({
5395
5391
  meta: ObjectMeta,
5396
- persistentId: z189.string(),
5392
+ persistentId: z188.string(),
5397
5393
  targetElementType: ElementPropertyTargetType,
5398
- id: z189.string(),
5399
- isDefault: z189.boolean(),
5400
- columns: z189.array(DTOElementViewColumn)
5394
+ id: z188.string(),
5395
+ isDefault: z188.boolean(),
5396
+ columns: z188.array(DTOElementViewColumn)
5401
5397
  });
5402
- var DTOElementViewsListResponse = z189.object({
5403
- elementDataViews: z189.array(DTOElementView)
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 z190 } from "zod";
5408
- var DTOGitOrganization = z190.object({
5409
- id: z190.string(),
5410
- name: z190.string(),
5411
- url: z190.string(),
5412
- slug: z190.string()
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 = z190.object({
5415
- id: z190.string(),
5416
- name: z190.string(),
5417
- url: z190.string(),
5418
- slug: z190.string()
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 = z190.object({
5421
- id: z190.string(),
5422
- name: z190.string(),
5423
- url: z190.string(),
5424
- slug: z190.string(),
5425
- defaultBranch: z190.string().optional()
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 = z190.object({
5428
- name: z190.string(),
5429
- lastCommitId: z190.string()
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 z191 } from "zod";
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 = z191.object({
5439
- id: z191.string(),
5440
- workspaceId: z191.string(),
5434
+ var DTOIntegration = z190.object({
5435
+ id: z190.string(),
5436
+ workspaceId: z190.string(),
5441
5437
  type: ExtendedIntegrationType,
5442
- createdAt: z191.coerce.date(),
5443
- integrationCredentials: z191.array(DTOIntegrationCredentials).optional(),
5444
- integrationDesignSystems: z191.array(IntegrationDesignSystem).optional()
5438
+ createdAt: z190.coerce.date(),
5439
+ integrationCredentials: z190.array(DTOIntegrationCredentials).optional(),
5440
+ integrationDesignSystems: z190.array(IntegrationDesignSystem).optional()
5445
5441
  });
5446
- var DTOIntegrationOAuthGetResponse = z191.object({
5447
- url: z191.string()
5442
+ var DTOIntegrationOAuthGetResponse = z190.object({
5443
+ url: z190.string()
5448
5444
  });
5449
- var DTOIntegrationPostResponse = z191.object({
5445
+ var DTOIntegrationPostResponse = z190.object({
5450
5446
  integration: DTOIntegration
5451
5447
  });
5452
- var DTOIntegrationsGetListResponse = z191.object({
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 z192 } from "zod";
5458
- var DTOWorkspaceInvitationInput = z192.object({
5459
- email: z192.string().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 = z192.object({
5458
+ var DTOWorkspaceInvitationsListInput = z191.object({
5463
5459
  invites: DTOWorkspaceInvitationInput.array().max(100),
5464
- designSystemId: z192.string().optional()
5460
+ designSystemId: z191.string().optional()
5465
5461
  });
5466
5462
 
5467
5463
  // src/api/dto/workspaces/membership.ts
5468
- import { z as z195 } from "zod";
5464
+ import { z as z194 } from "zod";
5469
5465
 
5470
5466
  // src/api/dto/workspaces/workspace.ts
5471
- import { z as z194 } from "zod";
5467
+ import { z as z193 } from "zod";
5472
5468
 
5473
5469
  // src/api/dto/workspaces/npm-registry.ts
5474
- import { z as z193 } from "zod";
5470
+ import { z as z192 } from "zod";
5475
5471
  var DTONpmRegistryConfigConstants = {
5476
5472
  passwordPlaceholder: "redacted"
5477
5473
  };
5478
- var DTONpmRegistryConfig = z193.object({
5474
+ var DTONpmRegistryConfig = z192.object({
5479
5475
  // Registry basic configuration
5480
5476
  registryType: NpmRegistryType,
5481
- registryUrl: z193.string(),
5482
- customRegistryUrl: z193.string().optional(),
5477
+ registryUrl: z192.string(),
5478
+ customRegistryUrl: z192.string().optional(),
5483
5479
  // URL of Supernova NPM packages proxy
5484
- proxyUrl: z193.string(),
5480
+ proxyUrl: z192.string(),
5485
5481
  // Auth configuration
5486
5482
  authType: NpmRegistryAuthType,
5487
- accessToken: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5488
- username: z193.string().optional(),
5489
- password: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
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: z193.array(z193.string()),
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: z193.boolean()
5490
+ bypassProxy: z192.boolean()
5495
5491
  });
5496
5492
 
5497
5493
  // src/api/dto/workspaces/workspace.ts
5498
- var DTOWorkspace = z194.object({
5499
- id: z194.string(),
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 = z194.object({
5505
- name: z194.string()
5500
+ var DTOWorkspaceCreateInput = z193.object({
5501
+ name: z193.string()
5506
5502
  });
5507
- var DTOWorkspaceResponse = z194.object({
5503
+ var DTOWorkspaceResponse = z193.object({
5508
5504
  workspace: DTOWorkspace
5509
5505
  });
5510
5506
 
5511
5507
  // src/api/dto/workspaces/membership.ts
5512
- var DTOWorkspaceRole = z195.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5513
- var DTOUserWorkspaceMembership = z195.object({
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 = z195.object({
5524
- membership: z195.array(DTOUserWorkspaceMembership)
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 = z196.object({
5529
- preferredWorkspaceId: z196.string().optional(),
5530
- preferredDesignSystemId: z196.string().optional(),
5531
- preferredVersionId: z196.string().optional(),
5532
- preferredBrandId: z196.string().optional()
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 = z196.object({
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 z197 } from "zod";
5538
+ import { z as z196 } from "zod";
5543
5539
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5544
- var DTOGetDocumentationPageAnchorsResponse = z197.object({
5545
- anchors: z197.array(DTODocumentationPageAnchor)
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 z198 } from "zod";
5545
+ import { z as z197 } from "zod";
5550
5546
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5551
- var DTODocumentationGroupApprovalState = z198.object({
5552
- persistentId: z198.string(),
5553
- groupId: z198.string(),
5554
- designSystemVersionId: z198.string(),
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 z203 } from "zod";
5558
+ import { z as z202 } from "zod";
5563
5559
 
5564
5560
  // src/api/dto/elements/documentation/page-v2.ts
5565
- import { z as z202 } from "zod";
5561
+ import { z as z201 } from "zod";
5566
5562
 
5567
5563
  // src/api/dto/elements/documentation/draft-state.ts
5568
- import { z as z200 } from "zod";
5564
+ import { z as z199 } from "zod";
5569
5565
 
5570
5566
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5571
- import { z as z199 } from "zod";
5567
+ import { z as z198 } from "zod";
5572
5568
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5573
- var DTODocumentationItemConfigurationV2 = z199.object({
5574
- showSidebar: z199.boolean(),
5575
- isPrivate: z199.boolean(),
5576
- isHidden: z199.boolean(),
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 = z200.enum(["Created", "Updated", "Deleted"]);
5582
- var DTODocumentationDraftStateCreated = z200.object({
5583
- changeType: z200.literal(DTODocumentationDraftChangeType.enum.Created)
5584
- });
5585
- var DTODocumentationDraftStateUpdated = z200.object({
5586
- changeType: z200.literal(DTODocumentationDraftChangeType.enum.Updated),
5587
- changes: z200.object({
5588
- previousTitle: z200.string().optional(),
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: z200.string().optional()
5586
+ previousContentHash: z199.string().optional()
5591
5587
  })
5592
5588
  });
5593
- var DTODocumentationDraftStateDeleted = z200.object({
5594
- changeType: z200.literal(DTODocumentationDraftChangeType.enum.Deleted),
5595
- deletedAt: z200.coerce.date(),
5596
- deletedByUserId: z200.string()
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 = z200.discriminatedUnion("changeType", [
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 z201 } from "zod";
5606
- var DTODocumentationPublishMetadata = z201.object({
5607
- lastPublishedByUserId: z201.string(),
5608
- lastPublishedAt: z201.coerce.date()
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 = z202.object({
5613
- id: z202.string(),
5614
- persistentId: z202.string(),
5615
- designSystemVersionId: z202.string(),
5616
- title: z202.string(),
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: z202.string(),
5619
- slug: z202.string().optional(),
5620
- userSlug: z202.string().optional(),
5621
- createdAt: z202.coerce.date(),
5622
- updatedAt: z202.coerce.date(),
5623
- path: z202.string(),
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: z202.literal("Page")
5627
+ type: z201.literal("Page")
5632
5628
  });
5633
- var DTOCreateDocumentationPageInputV2 = z202.object({
5629
+ var DTOCreateDocumentationPageInputV2 = z201.object({
5634
5630
  // Identifier
5635
- persistentId: z202.string().uuid(),
5631
+ persistentId: z201.string().uuid(),
5636
5632
  // Page properties
5637
- title: z202.string(),
5633
+ title: z201.string(),
5638
5634
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5639
5635
  // Page placement properties
5640
- parentPersistentId: z202.string().uuid(),
5641
- afterPersistentId: z202.string().uuid().nullish()
5636
+ parentPersistentId: z201.string().uuid(),
5637
+ afterPersistentId: z201.string().uuid().nullish()
5642
5638
  });
5643
- var DTOUpdateDocumentationPageInputV2 = z202.object({
5639
+ var DTOUpdateDocumentationPageInputV2 = z201.object({
5644
5640
  // Identifier of the group to update
5645
- id: z202.string(),
5641
+ id: z201.string(),
5646
5642
  // Page properties
5647
- title: z202.string().optional(),
5643
+ title: z201.string().optional(),
5648
5644
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5649
5645
  });
5650
- var DTOMoveDocumentationPageInputV2 = z202.object({
5646
+ var DTOMoveDocumentationPageInputV2 = z201.object({
5651
5647
  // Identifier of the group to update
5652
- id: z202.string(),
5648
+ id: z201.string(),
5653
5649
  // Page placement properties
5654
- parentPersistentId: z202.string().uuid(),
5655
- afterPersistentId: z202.string().uuid().nullish()
5650
+ parentPersistentId: z201.string().uuid(),
5651
+ afterPersistentId: z201.string().uuid().nullish()
5656
5652
  });
5657
- var DTODuplicateDocumentationPageInputV2 = z202.object({
5653
+ var DTODuplicateDocumentationPageInputV2 = z201.object({
5658
5654
  // Identifier of the page to duplicate from
5659
- id: z202.string(),
5655
+ id: z201.string(),
5660
5656
  // New page persistent id
5661
- persistentId: z202.string().uuid(),
5657
+ persistentId: z201.string().uuid(),
5662
5658
  // Page placement properties
5663
- parentPersistentId: z202.string().uuid(),
5664
- afterPersistentId: z202.string().uuid().nullish()
5659
+ parentPersistentId: z201.string().uuid(),
5660
+ afterPersistentId: z201.string().uuid().nullish()
5665
5661
  });
5666
- var DTODeleteDocumentationPageInputV2 = z202.object({
5662
+ var DTODeleteDocumentationPageInputV2 = z201.object({
5667
5663
  // Identifier
5668
- id: z202.string()
5664
+ id: z201.string()
5669
5665
  });
5670
- var DTORestoreDocumentationPageInput = z202.object({
5671
- persistentId: z202.string(),
5672
- snapshotId: z202.string().optional()
5666
+ var DTORestoreDocumentationPageInput = z201.object({
5667
+ persistentId: z201.string(),
5668
+ snapshotId: z201.string().optional()
5673
5669
  });
5674
- var DTORestoreDocumentationGroupInput = z202.object({
5675
- persistentId: z202.string(),
5676
- snapshotId: z202.string().optional()
5670
+ var DTORestoreDocumentationGroupInput = z201.object({
5671
+ persistentId: z201.string(),
5672
+ snapshotId: z201.string().optional()
5677
5673
  });
5678
- var DTODocumentationPageApprovalStateChangeInput = z202.object({
5679
- persistentId: z202.string(),
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 = z203.object({
5685
- id: z203.string(),
5686
- designSystemVersionId: z203.string(),
5687
- createdAt: z203.string(),
5688
- updatedAt: z203.string(),
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: z203.string(),
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 z204 } from "zod";
5696
- var DTODocumentationLinkPreviewResponse = z204.object({
5691
+ import { z as z203 } from "zod";
5692
+ var DTODocumentationLinkPreviewResponse = z203.object({
5697
5693
  linkPreview: DocumentationLinkPreview
5698
5694
  });
5699
- var DTODocumentationLinkPreviewRequest = z204.object({
5700
- url: z204.string().optional(),
5701
- documentationItemPersistentId: z204.string().optional()
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 z208 } from "zod";
5701
+ import { z as z207 } from "zod";
5706
5702
 
5707
5703
  // src/api/dto/export/exporter.ts
5708
- import { z as z205 } from "zod";
5709
- var DTOExporterType = z205.enum(["documentation", "code"]);
5710
- var DTOExporterSource = z205.enum(["git", "upload"]);
5711
- var DTOExporterMembershipRole = z205.enum(["Owner", "OwnerArchived", "User"]);
5712
- var DTOExporter = z205.object({
5713
- id: z205.string(),
5714
- name: z205.string(),
5715
- isPrivate: z205.boolean(),
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: z205.boolean(),
5718
- iconURL: z205.string().optional(),
5713
+ isDefaultDocumentationExporter: z204.boolean(),
5714
+ iconURL: z204.string().optional(),
5719
5715
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5720
5716
  customBlocks: PulsarCustomBlock.array(),
5721
- blockVariants: z205.record(z205.string(), PulsarContributionVariant.array()),
5722
- usesBrands: z205.boolean(),
5723
- usesThemes: z205.boolean(),
5717
+ blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
5718
+ usesBrands: z204.boolean(),
5719
+ usesThemes: z204.boolean(),
5724
5720
  source: DTOExporterSource,
5725
- gitUrl: z205.string().optional(),
5726
- gitBranch: z205.string().optional(),
5727
- gitDirectory: z205.string().optional()
5721
+ gitUrl: z204.string().optional(),
5722
+ gitBranch: z204.string().optional(),
5723
+ gitDirectory: z204.string().optional()
5728
5724
  });
5729
- var DTOExporterMembership = z205.object({
5730
- workspaceId: z205.string(),
5731
- exporterId: z205.string(),
5725
+ var DTOExporterMembership = z204.object({
5726
+ workspaceId: z204.string(),
5727
+ exporterId: z204.string(),
5732
5728
  role: DTOExporterMembershipRole
5733
5729
  });
5734
- var DTOExporterCreateOutput = z205.object({
5730
+ var DTOExporterCreateOutput = z204.object({
5735
5731
  exporter: DTOExporter,
5736
5732
  membership: DTOExporterMembership
5737
5733
  });
5738
- var DTOExporterGitProviderEnum = z205.enum(["github", "gitlab", "bitbucket", "azure"]);
5739
- var DTOExporterCreateInput = z205.object({
5740
- url: z205.string(),
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 = z205.object({
5744
- url: z205.string().optional()
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 z206 } from "zod";
5752
- var DTOExportJobCreatedBy = z206.object({
5753
- userId: z206.string(),
5754
- userName: z206.string()
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 = z206.object({
5757
- id: z206.string(),
5752
+ var DTOExportJobDesignSystemPreview = z205.object({
5753
+ id: z205.string(),
5758
5754
  meta: ObjectMeta
5759
5755
  });
5760
- var DTOExportJobDesignSystemVersionPreview = z206.object({
5761
- id: z206.string(),
5756
+ var DTOExportJobDesignSystemVersionPreview = z205.object({
5757
+ id: z205.string(),
5762
5758
  meta: ObjectMeta,
5763
- version: z206.string(),
5764
- isReadonly: z206.boolean()
5759
+ version: z205.string(),
5760
+ isReadonly: z205.boolean()
5765
5761
  });
5766
- var DTOExportJobDestinations = z206.object({
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: z206.string().optional()
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 = z206.object({
5781
- id: z206.string(),
5782
- createdAt: z206.coerce.date(),
5783
- finishedAt: z206.coerce.date().optional(),
5784
- index: z206.number().optional(),
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: z206.number().optional(),
5782
+ estimatedExecutionTime: z205.number().optional(),
5787
5783
  createdBy: DTOExportJobCreatedBy.optional(),
5788
5784
  designSystem: DTOExportJobDesignSystemPreview,
5789
5785
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5790
5786
  destinations: DTOExportJobDestinations,
5791
- exporterId: z206.string(),
5792
- scheduleId: z206.string().optional(),
5787
+ exporterId: z205.string(),
5788
+ scheduleId: z205.string().optional(),
5793
5789
  result: DTOExportJobResult.optional(),
5794
- brandPersistentId: z206.string().optional(),
5795
- themePersistentId: z206.string().optional(),
5796
- themePersistentIds: z206.string().array().optional()
5790
+ brandPersistentId: z205.string().optional(),
5791
+ themePersistentId: z205.string().optional(),
5792
+ themePersistentIds: z205.string().array().optional()
5797
5793
  });
5798
- var DTOExportJobResponse = z206.object({
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 z207 } from "zod";
5804
- var DTOPipeline = z207.object({
5805
- id: z207.string(),
5806
- name: z207.string(),
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: z207.boolean(),
5809
- workspaceId: z207.string(),
5810
- designSystemId: z207.string(),
5811
- exporterId: z207.string(),
5812
- brandPersistentId: z207.string().optional(),
5813
- themePersistentId: z207.string().optional(),
5814
- themePersistentIds: z207.string().array().optional(),
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 = z208.object({
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 = z208.object({
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 z209 } from "zod";
5830
+ import { z as z208 } from "zod";
5835
5831
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5836
- var DTOFigmaComponentPropertyMap = z209.record(DTOFigmaComponentProperty);
5837
- var DTOFigmaComponent = z209.object({
5838
- id: z209.string(),
5839
- persistentId: z209.string(),
5840
- designSystemVersionId: z209.string(),
5841
- brandId: z209.string(),
5842
- thumbnailUrl: z209.string().optional(),
5843
- svgUrl: z209.string().optional(),
5844
- exportProperties: z209.object({
5845
- isAsset: z209.boolean()
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: z209.coerce.date(),
5848
- updatedAt: z209.coerce.date(),
5843
+ createdAt: z208.coerce.date(),
5844
+ updatedAt: z208.coerce.date(),
5849
5845
  meta: ObjectMeta,
5850
5846
  originComponent: FigmaComponentOrigin.optional(),
5851
- parentComponentPersistentId: z209.string().optional(),
5852
- childrenPersistentIds: z209.string().array().optional(),
5847
+ parentComponentPersistentId: z208.string().optional(),
5848
+ childrenPersistentIds: z208.string().array().optional(),
5853
5849
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5854
- variantPropertyValues: z209.record(z209.string()).optional()
5850
+ variantPropertyValues: z208.record(z208.string()).optional()
5855
5851
  });
5856
- var DTOFigmaComponentListResponse = z209.object({
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 z211 } from "zod";
5857
+ import { z as z210 } from "zod";
5862
5858
 
5863
5859
  // src/api/dto/elements/documentation/group-v2.ts
5864
- import { z as z210 } from "zod";
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: z210.string(),
5875
- isRoot: z210.boolean(),
5876
- childrenIds: z210.array(z210.string()),
5870
+ title: z209.string(),
5871
+ isRoot: z209.boolean(),
5872
+ childrenIds: z209.array(z209.string()),
5877
5873
  groupBehavior: DocumentationGroupBehavior,
5878
- shortPersistentId: z210.string(),
5874
+ shortPersistentId: z209.string(),
5879
5875
  configuration: DTODocumentationItemConfigurationV2,
5880
- type: z210.literal("Group"),
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 = z210.object({
5884
+ var DTOCreateDocumentationGroupInput = z209.object({
5889
5885
  // Identifier
5890
- persistentId: z210.string().uuid(),
5886
+ persistentId: z209.string().uuid(),
5891
5887
  // Group properties
5892
- title: z210.string(),
5888
+ title: z209.string(),
5893
5889
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5894
5890
  // Group placement properties
5895
- afterPersistentId: z210.string().uuid().nullish(),
5896
- parentPersistentId: z210.string().uuid()
5891
+ afterPersistentId: z209.string().uuid().nullish(),
5892
+ parentPersistentId: z209.string().uuid()
5897
5893
  });
5898
- var DTOUpdateDocumentationGroupInput = z210.object({
5894
+ var DTOUpdateDocumentationGroupInput = z209.object({
5899
5895
  // Identifier of the group to update
5900
- id: z210.string(),
5896
+ id: z209.string(),
5901
5897
  // Group properties
5902
- title: z210.string().optional(),
5898
+ title: z209.string().optional(),
5903
5899
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5904
5900
  });
5905
- var DTOMoveDocumentationGroupInput = z210.object({
5901
+ var DTOMoveDocumentationGroupInput = z209.object({
5906
5902
  // Identifier of the group to update
5907
- id: z210.string(),
5903
+ id: z209.string(),
5908
5904
  // Group placement properties
5909
- parentPersistentId: z210.string().uuid(),
5910
- afterPersistentId: z210.string().uuid().nullish()
5905
+ parentPersistentId: z209.string().uuid(),
5906
+ afterPersistentId: z209.string().uuid().nullish()
5911
5907
  });
5912
- var DTODuplicateDocumentationGroupInput = z210.object({
5908
+ var DTODuplicateDocumentationGroupInput = z209.object({
5913
5909
  // Identifier of the group to duplicate from
5914
- id: z210.string(),
5910
+ id: z209.string(),
5915
5911
  // New group persistent id
5916
- persistentId: z210.string().uuid(),
5912
+ persistentId: z209.string().uuid(),
5917
5913
  // Group placement properties
5918
- afterPersistentId: z210.string().uuid().nullish(),
5919
- parentPersistentId: z210.string().uuid()
5914
+ afterPersistentId: z209.string().uuid().nullish(),
5915
+ parentPersistentId: z209.string().uuid()
5920
5916
  });
5921
- var DTOCreateDocumentationTabInput = z210.object({
5917
+ var DTOCreateDocumentationTabInput = z209.object({
5922
5918
  // New group persistent id
5923
- persistentId: z210.string().uuid(),
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: z210.string(),
5927
- tabName: z210.string()
5922
+ fromItemPersistentId: z209.string(),
5923
+ tabName: z209.string()
5928
5924
  });
5929
- var DTODeleteDocumentationTabGroupInput = z210.object({
5925
+ var DTODeleteDocumentationTabGroupInput = z209.object({
5930
5926
  // Deleted group id
5931
- id: z210.string()
5927
+ id: z209.string()
5932
5928
  });
5933
- var DTODeleteDocumentationGroupInput = z210.object({
5929
+ var DTODeleteDocumentationGroupInput = z209.object({
5934
5930
  // Identifier
5935
- id: z210.string(),
5931
+ id: z209.string(),
5936
5932
  // Deletion options
5937
- deleteSubtree: z210.boolean().default(false)
5933
+ deleteSubtree: z209.boolean().default(false)
5938
5934
  });
5939
5935
 
5940
5936
  // src/api/dto/elements/documentation/group-action.ts
5941
- var SuccessPayload = z211.object({
5942
- success: z211.literal(true)
5937
+ var SuccessPayload = z210.object({
5938
+ success: z210.literal(true)
5943
5939
  });
5944
- var DTODocumentationGroupCreateActionOutputV2 = z211.object({
5945
- type: z211.literal("DocumentationGroupCreate"),
5940
+ var DTODocumentationGroupCreateActionOutputV2 = z210.object({
5941
+ type: z210.literal("DocumentationGroupCreate"),
5946
5942
  output: SuccessPayload
5947
5943
  });
5948
- var DTODocumentationTabCreateActionOutputV2 = z211.object({
5949
- type: z211.literal("DocumentationTabCreate"),
5944
+ var DTODocumentationTabCreateActionOutputV2 = z210.object({
5945
+ type: z210.literal("DocumentationTabCreate"),
5950
5946
  output: SuccessPayload
5951
5947
  });
5952
- var DTODocumentationGroupUpdateActionOutputV2 = z211.object({
5953
- type: z211.literal("DocumentationGroupUpdate"),
5948
+ var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
5949
+ type: z210.literal("DocumentationGroupUpdate"),
5954
5950
  output: SuccessPayload
5955
5951
  });
5956
- var DTODocumentationGroupMoveActionOutputV2 = z211.object({
5957
- type: z211.literal("DocumentationGroupMove"),
5952
+ var DTODocumentationGroupMoveActionOutputV2 = z210.object({
5953
+ type: z210.literal("DocumentationGroupMove"),
5958
5954
  output: SuccessPayload
5959
5955
  });
5960
- var DTODocumentationGroupDuplicateActionOutputV2 = z211.object({
5961
- type: z211.literal("DocumentationGroupDuplicate"),
5956
+ var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
5957
+ type: z210.literal("DocumentationGroupDuplicate"),
5962
5958
  output: SuccessPayload
5963
5959
  });
5964
- var DTODocumentationGroupDeleteActionOutputV2 = z211.object({
5965
- type: z211.literal("DocumentationGroupDelete"),
5960
+ var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
5961
+ type: z210.literal("DocumentationGroupDelete"),
5966
5962
  output: SuccessPayload
5967
5963
  });
5968
- var DTODocumentationTabGroupDeleteActionOutputV2 = z211.object({
5969
- type: z211.literal("DocumentationTabGroupDelete"),
5964
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
5965
+ type: z210.literal("DocumentationTabGroupDelete"),
5970
5966
  output: SuccessPayload
5971
5967
  });
5972
- var DTODocumentationGroupCreateActionInputV2 = z211.object({
5973
- type: z211.literal("DocumentationGroupCreate"),
5968
+ var DTODocumentationGroupCreateActionInputV2 = z210.object({
5969
+ type: z210.literal("DocumentationGroupCreate"),
5974
5970
  input: DTOCreateDocumentationGroupInput
5975
5971
  });
5976
- var DTODocumentationTabCreateActionInputV2 = z211.object({
5977
- type: z211.literal("DocumentationTabCreate"),
5972
+ var DTODocumentationTabCreateActionInputV2 = z210.object({
5973
+ type: z210.literal("DocumentationTabCreate"),
5978
5974
  input: DTOCreateDocumentationTabInput
5979
5975
  });
5980
- var DTODocumentationGroupUpdateActionInputV2 = z211.object({
5981
- type: z211.literal("DocumentationGroupUpdate"),
5976
+ var DTODocumentationGroupUpdateActionInputV2 = z210.object({
5977
+ type: z210.literal("DocumentationGroupUpdate"),
5982
5978
  input: DTOUpdateDocumentationGroupInput
5983
5979
  });
5984
- var DTODocumentationGroupMoveActionInputV2 = z211.object({
5985
- type: z211.literal("DocumentationGroupMove"),
5980
+ var DTODocumentationGroupMoveActionInputV2 = z210.object({
5981
+ type: z210.literal("DocumentationGroupMove"),
5986
5982
  input: DTOMoveDocumentationGroupInput
5987
5983
  });
5988
- var DTODocumentationGroupDuplicateActionInputV2 = z211.object({
5989
- type: z211.literal("DocumentationGroupDuplicate"),
5984
+ var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
5985
+ type: z210.literal("DocumentationGroupDuplicate"),
5990
5986
  input: DTODuplicateDocumentationGroupInput
5991
5987
  });
5992
- var DTODocumentationGroupDeleteActionInputV2 = z211.object({
5993
- type: z211.literal("DocumentationGroupDelete"),
5988
+ var DTODocumentationGroupDeleteActionInputV2 = z210.object({
5989
+ type: z210.literal("DocumentationGroupDelete"),
5994
5990
  input: DTODeleteDocumentationGroupInput
5995
5991
  });
5996
- var DTODocumentationTabGroupDeleteActionInputV2 = z211.object({
5997
- type: z211.literal("DocumentationTabGroupDelete"),
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 z213 } from "zod";
5998
+ import { z as z212 } from "zod";
6003
5999
 
6004
6000
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6005
- import { z as z212 } from "zod";
6006
- var DocumentationColorV1 = z212.object({
6007
- aliasTo: z212.string().optional(),
6008
- value: z212.string().optional()
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 = z212.object({
6018
- showSidebar: z212.boolean(),
6019
- isPrivate: z212.boolean(),
6020
- isHidden: z212.boolean(),
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: z213.string(),
6035
- isRoot: z213.boolean(),
6036
- childrenIds: z213.array(z213.string()),
6030
+ title: z212.string(),
6031
+ isRoot: z212.boolean(),
6032
+ childrenIds: z212.array(z212.string()),
6037
6033
  groupBehavior: DocumentationGroupBehavior,
6038
- shortPersistentId: z213.string(),
6039
- type: z213.literal("Group")
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 z214 } from "zod";
6047
- var DTODocumentationHierarchyV2 = z214.object({
6048
- pages: z214.array(
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: z214.array(
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 z215 } from "zod";
6064
- var SuccessPayload2 = z215.object({
6065
- success: z215.literal(true)
6059
+ import { z as z214 } from "zod";
6060
+ var SuccessPayload2 = z214.object({
6061
+ success: z214.literal(true)
6066
6062
  });
6067
- var DTODocumentationPageCreateActionOutputV2 = z215.object({
6068
- type: z215.literal("DocumentationPageCreate"),
6063
+ var DTODocumentationPageCreateActionOutputV2 = z214.object({
6064
+ type: z214.literal("DocumentationPageCreate"),
6069
6065
  output: SuccessPayload2
6070
6066
  });
6071
- var DTODocumentationPageUpdateActionOutputV2 = z215.object({
6072
- type: z215.literal("DocumentationPageUpdate"),
6067
+ var DTODocumentationPageUpdateActionOutputV2 = z214.object({
6068
+ type: z214.literal("DocumentationPageUpdate"),
6073
6069
  output: SuccessPayload2
6074
6070
  });
6075
- var DTODocumentationPageMoveActionOutputV2 = z215.object({
6076
- type: z215.literal("DocumentationPageMove"),
6071
+ var DTODocumentationPageMoveActionOutputV2 = z214.object({
6072
+ type: z214.literal("DocumentationPageMove"),
6077
6073
  output: SuccessPayload2
6078
6074
  });
6079
- var DTODocumentationPageDuplicateActionOutputV2 = z215.object({
6080
- type: z215.literal("DocumentationPageDuplicate"),
6075
+ var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
6076
+ type: z214.literal("DocumentationPageDuplicate"),
6081
6077
  output: SuccessPayload2
6082
6078
  });
6083
- var DTODocumentationPageDeleteActionOutputV2 = z215.object({
6084
- type: z215.literal("DocumentationPageDelete"),
6079
+ var DTODocumentationPageDeleteActionOutputV2 = z214.object({
6080
+ type: z214.literal("DocumentationPageDelete"),
6085
6081
  output: SuccessPayload2
6086
6082
  });
6087
- var DTODocumentationPageRestoreActionOutput = z215.object({
6088
- type: z215.literal("DocumentationPageRestore"),
6083
+ var DTODocumentationPageRestoreActionOutput = z214.object({
6084
+ type: z214.literal("DocumentationPageRestore"),
6089
6085
  output: SuccessPayload2
6090
6086
  });
6091
- var DTODocumentationGroupRestoreActionOutput = z215.object({
6092
- type: z215.literal("DocumentationGroupRestore"),
6087
+ var DTODocumentationGroupRestoreActionOutput = z214.object({
6088
+ type: z214.literal("DocumentationGroupRestore"),
6093
6089
  output: SuccessPayload2
6094
6090
  });
6095
- var DTODocumentationPageApprovalStateChangeActionOutput = z215.object({
6096
- type: z215.literal("DocumentationPageApprovalStateChange"),
6091
+ var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
6092
+ type: z214.literal("DocumentationPageApprovalStateChange"),
6097
6093
  output: SuccessPayload2
6098
6094
  });
6099
- var DTODocumentationPageCreateActionInputV2 = z215.object({
6100
- type: z215.literal("DocumentationPageCreate"),
6095
+ var DTODocumentationPageCreateActionInputV2 = z214.object({
6096
+ type: z214.literal("DocumentationPageCreate"),
6101
6097
  input: DTOCreateDocumentationPageInputV2
6102
6098
  });
6103
- var DTODocumentationPageUpdateActionInputV2 = z215.object({
6104
- type: z215.literal("DocumentationPageUpdate"),
6099
+ var DTODocumentationPageUpdateActionInputV2 = z214.object({
6100
+ type: z214.literal("DocumentationPageUpdate"),
6105
6101
  input: DTOUpdateDocumentationPageInputV2
6106
6102
  });
6107
- var DTODocumentationPageMoveActionInputV2 = z215.object({
6108
- type: z215.literal("DocumentationPageMove"),
6103
+ var DTODocumentationPageMoveActionInputV2 = z214.object({
6104
+ type: z214.literal("DocumentationPageMove"),
6109
6105
  input: DTOMoveDocumentationPageInputV2
6110
6106
  });
6111
- var DTODocumentationPageDuplicateActionInputV2 = z215.object({
6112
- type: z215.literal("DocumentationPageDuplicate"),
6107
+ var DTODocumentationPageDuplicateActionInputV2 = z214.object({
6108
+ type: z214.literal("DocumentationPageDuplicate"),
6113
6109
  input: DTODuplicateDocumentationPageInputV2
6114
6110
  });
6115
- var DTODocumentationPageDeleteActionInputV2 = z215.object({
6116
- type: z215.literal("DocumentationPageDelete"),
6111
+ var DTODocumentationPageDeleteActionInputV2 = z214.object({
6112
+ type: z214.literal("DocumentationPageDelete"),
6117
6113
  input: DTODeleteDocumentationPageInputV2
6118
6114
  });
6119
- var DTODocumentationPageRestoreActionInput = z215.object({
6120
- type: z215.literal("DocumentationPageRestore"),
6115
+ var DTODocumentationPageRestoreActionInput = z214.object({
6116
+ type: z214.literal("DocumentationPageRestore"),
6121
6117
  input: DTORestoreDocumentationPageInput
6122
6118
  });
6123
- var DTODocumentationGroupRestoreActionInput = z215.object({
6124
- type: z215.literal("DocumentationGroupRestore"),
6119
+ var DTODocumentationGroupRestoreActionInput = z214.object({
6120
+ type: z214.literal("DocumentationGroupRestore"),
6125
6121
  input: DTORestoreDocumentationGroupInput
6126
6122
  });
6127
- var DTODocumentationPageApprovalStateChangeActionInput = z215.object({
6128
- type: z215.literal("DocumentationPageApprovalStateChange"),
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 z216 } from "zod";
6129
+ import { z as z215 } from "zod";
6134
6130
  var DTODocumentationPageContent = DocumentationPageContent;
6135
- var DTODocumentationPageContentGetResponse = z216.object({
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 z217 } from "zod";
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: z217.array(PageBlockV1),
6149
- title: z217.string(),
6150
- path: z217.string()
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 z218 } from "zod";
6150
+ import { z as z217 } from "zod";
6155
6151
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6156
- var DTOFigmaNodeOrigin = z218.object({
6157
- sourceId: z218.string(),
6158
- fileId: z218.string().optional(),
6159
- parentName: z218.string().optional()
6152
+ var DTOFigmaNodeOrigin = z217.object({
6153
+ sourceId: z217.string(),
6154
+ fileId: z217.string().optional(),
6155
+ parentName: z217.string().optional()
6160
6156
  });
6161
- var DTOFigmaNodeData = z218.object({
6157
+ var DTOFigmaNodeData = z217.object({
6162
6158
  // Id of the node in the Figma file
6163
- figmaNodeId: z218.string(),
6159
+ figmaNodeId: z217.string(),
6164
6160
  // Validity
6165
- isValid: z218.boolean(),
6161
+ isValid: z217.boolean(),
6166
6162
  // Asset data
6167
- assetId: z218.string(),
6168
- assetUrl: z218.string(),
6163
+ assetId: z217.string(),
6164
+ assetUrl: z217.string(),
6169
6165
  assetFormat: DTOFigmaNodeRenderFormat,
6170
6166
  // Asset metadata
6171
- assetScale: z218.number(),
6172
- assetWidth: z218.number().optional(),
6173
- assetHeight: z218.number().optional()
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 = z218.object({
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: z218.string(),
6182
+ sourceId: z217.string(),
6187
6183
  /**
6188
6184
  * Id of a node within the Figma file
6189
6185
  */
6190
- figmaFileNodeId: z218.string(),
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 z219 } from "zod";
6199
- var DTOFigmaNodeRenderActionOutput = z219.object({
6200
- type: z219.literal("FigmaNodeRender"),
6201
- figmaNodes: z219.array(DTOFigmaNode)
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 = z219.object({
6204
- type: z219.literal("FigmaNodeRender"),
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 z221 } from "zod";
6205
+ import { z as z220 } from "zod";
6210
6206
 
6211
6207
  // src/api/dto/elements/properties/property-definitions.ts
6212
- import { z as z220 } from "zod";
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 = z220.object({
6215
- id: z220.string(),
6216
- designSystemVersionId: z220.string(),
6210
+ var DTOElementPropertyDefinition = z219.object({
6211
+ id: z219.string(),
6212
+ designSystemVersionId: z219.string(),
6217
6213
  meta: ObjectMeta,
6218
- persistentId: z220.string(),
6214
+ persistentId: z219.string(),
6219
6215
  type: ElementPropertyTypeSchema,
6220
6216
  targetElementType: ElementPropertyTargetType,
6221
- codeName: z220.string().regex(CODE_NAME_REGEX2),
6222
- options: z220.array(ElementPropertyDefinitionOption).optional(),
6217
+ codeName: z219.string().regex(CODE_NAME_REGEX2),
6218
+ options: z219.array(ElementPropertyDefinitionOption).optional(),
6223
6219
  linkElementType: ElementPropertyLinkType.optional()
6224
6220
  });
6225
- var DTOElementPropertyDefinitionsGetResponse = z220.object({
6226
- definitions: z220.array(DTOElementPropertyDefinition)
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 = z220.object({
6233
- id: z220.string(),
6234
- name: z220.string().optional(),
6235
- description: z220.string().optional(),
6236
- codeName: z220.string().regex(CODE_NAME_REGEX2).optional(),
6237
- options: z220.array(ElementPropertyDefinitionOption).optional()
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 = z220.object({
6240
- id: z220.string()
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 = z221.object({
6245
- success: z221.literal(true)
6240
+ var SuccessPayload3 = z220.object({
6241
+ success: z220.literal(true)
6246
6242
  });
6247
- var DTOPropertyDefinitionCreateActionOutputV2 = z221.object({
6248
- type: z221.literal("PropertyDefinitionCreate"),
6243
+ var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
6244
+ type: z220.literal("PropertyDefinitionCreate"),
6249
6245
  definition: DTOElementPropertyDefinition
6250
6246
  });
6251
- var DTOPropertyDefinitionUpdateActionOutputV2 = z221.object({
6252
- type: z221.literal("PropertyDefinitionUpdate"),
6247
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
6248
+ type: z220.literal("PropertyDefinitionUpdate"),
6253
6249
  definition: DTOElementPropertyDefinition
6254
6250
  });
6255
- var DTOPropertyDefinitionDeleteActionOutputV2 = z221.object({
6256
- type: z221.literal("PropertyDefinitionDelete"),
6251
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
6252
+ type: z220.literal("PropertyDefinitionDelete"),
6257
6253
  output: SuccessPayload3
6258
6254
  });
6259
- var DTOPropertyDefinitionCreateActionInputV2 = z221.object({
6260
- type: z221.literal("PropertyDefinitionCreate"),
6255
+ var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
6256
+ type: z220.literal("PropertyDefinitionCreate"),
6261
6257
  input: DTOCreateElementPropertyDefinitionInputV2
6262
6258
  });
6263
- var DTOPropertyDefinitionUpdateActionInputV2 = z221.object({
6264
- type: z221.literal("PropertyDefinitionUpdate"),
6259
+ var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
6260
+ type: z220.literal("PropertyDefinitionUpdate"),
6265
6261
  input: DTOUpdateElementPropertyDefinitionInputV2
6266
6262
  });
6267
- var DTOPropertyDefinitionDeleteActionInputV2 = z221.object({
6268
- type: z221.literal("PropertyDefinitionDelete"),
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 z222 } from "zod";
6274
- var DTOElementPropertyValue = z222.object({
6275
- id: z222.string(),
6276
- designSystemVersionId: z222.string(),
6277
- definitionId: z222.string(),
6278
- targetElementId: z222.string(),
6279
- value: z222.union([z222.string(), z222.number(), z222.boolean()]).optional(),
6280
- valuePreview: z222.string().optional()
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 = z222.object({
6283
- values: z222.array(DTOElementPropertyValue)
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 z223 } from "zod";
6288
- var DTOElementActionOutput = z223.discriminatedUnion("type", [
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 = z223.discriminatedUnion("type", [
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 z224 } from "zod";
6345
- var DTOElementsGetTypeFilter = z224.enum(["FigmaNode"]);
6346
- var DTOElementsGetQuerySchema = z224.object({
6347
- types: z224.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
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 = z224.object({
6350
- figmaNodes: z224.array(DTOFigmaNode).optional()
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 z225 } from "zod";
6355
- var DTOAssetRenderConfiguration = z225.object({
6356
- prefix: z225.string().optional(),
6357
- suffix: z225.string().optional(),
6358
- scale: z225.enum(["x1", "x2", "x3", "x4"]),
6359
- format: z225.enum(["png", "pdf", "svg"])
6360
- });
6361
- var DTORenderedAssetFile = z225.object({
6362
- assetId: z225.string(),
6363
- fileName: z225.string(),
6364
- sourceUrl: z225.string(),
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: z225.string()
6362
+ originalName: z224.string()
6367
6363
  });
6368
- var DTODownloadAssetsRequest = z225.object({
6369
- persistentIds: z225.array(z225.string().uuid()).optional(),
6364
+ var DTODownloadAssetsRequest = z224.object({
6365
+ persistentIds: z224.array(z224.string().uuid()).optional(),
6370
6366
  settings: DTOAssetRenderConfiguration.array()
6371
6367
  });
6372
- var DTODownloadAssetsResponse = z225.object({
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 z226 } from "zod";
6378
- var DTOLiveblocksAuthResponse = z226.object({
6379
- token: z226.string()
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 z228 } from "zod";
6379
+ import { z as z227 } from "zod";
6384
6380
 
6385
6381
  // src/api/dto/users/user.ts
6386
- import { z as z227 } from "zod";
6387
- var DTOUserProfile = z227.object({
6388
- name: z227.string(),
6389
- nickname: z227.string().optional(),
6390
- avatar: z227.string().optional()
6391
- });
6392
- var DTOUser = z227.object({
6393
- id: z227.string(),
6394
- email: z227.string(),
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 = z227.object({
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 = z228.enum(["Design", "Engineering", "Brand", "Other"]);
6403
- var DTOUserOnboardingJobLevel = z228.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
6404
- var DTOUserSource = z228.enum(["SignUp", "Invite", "SSO"]);
6405
- var DTOUserOnboarding = z228.object({
6406
- companyName: z228.string().optional(),
6407
- numberOfPeopleInOrg: z228.string().optional(),
6408
- numberOfPeopleInDesignTeam: z228.string().optional(),
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: z228.string().optional(),
6411
- phase: z228.string().optional(),
6406
+ jobTitle: z227.string().optional(),
6407
+ phase: z227.string().optional(),
6412
6408
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6413
- designSystemName: z228.string().optional(),
6414
- defaultDestination: z228.string().optional(),
6415
- isPageDraftOnboardingFinished: z228.boolean().optional()
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: z228.coerce.date(),
6423
- loggedOutAt: z228.coerce.date().optional(),
6418
+ createdAt: z227.coerce.date(),
6419
+ loggedOutAt: z227.coerce.date().optional(),
6424
6420
  source: DTOUserSource.optional()
6425
6421
  });
6426
- var DTOAuthenticatedUserResponse = z228.object({
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 z229 } from "zod";
6432
- var DTOUserProfileUpdateResponse = z229.object({
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 z230 } from "zod";
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}`, z230.any());
6465
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any());
6470
6466
  }
6471
6467
  delete(dsId) {
6472
- return this.requestExecutor.json(`/design-systems/${dsId}`, z230.any(), { method: "DELETE" });
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 z231 } from "zod";
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`, z231.any(), { method: "POST", body });
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 z232 } from "zod";
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}`, z232.any(), { method: "DELETE" });
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`, z232.any(), { method: "GET" });
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 z233 } from "zod";
6570
- var ResponseWrapper = z233.object({
6571
- result: z233.record(z233.any())
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 z234 } from "zod";
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 = z234.object({
7223
- routingVersion: z234.string(),
7224
- isDraftFeatureAdopted: z234.boolean(),
7225
- isApprovalFeatureEnabled: z234.boolean(),
7226
- approvalRequiredForPublishing: z234.boolean()
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 z235 } from "zod";
7234
- var DTODocumentationPageRoomHeaderData = z235.object({
7235
- title: z235.string(),
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 = z235.object({
7239
- title: z235.string().optional(),
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: z235.string().parse(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 z236 } from "zod";
7301
- var DocumentationPageEditorModel = z236.object({
7302
- blocks: z236.array(DocumentationPageContentItem)
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 z237 } from "zod";
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", z237.string()) ?? "",
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", z237.string());
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", z237.string().optional()));
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", z237.string().optional());
10934
+ const href = getProsemirrorAttribute(mark, "href", z236.string().optional());
10939
10935
  if (!href)
10940
10936
  return null;
10941
- const target = getProsemirrorAttribute(mark, "target", z237.string().optional());
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", z237.string().optional());
10956
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z236.string().optional());
10961
10957
  if (!highlightId)
10962
10958
  return null;
10963
- const isResolved = getProsemirrorAttribute(mark, "resolved", z237.boolean().optional()) ?? false;
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", z237.boolean().optional()) !== false;
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", z237.string().optional());
11018
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z236.string().optional());
11023
11019
  let columnWidth;
11024
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z237.array(z237.number()).nullish());
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", z237.string());
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", z237.string());
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", z237.string().optional());
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", z237.number().optional());
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", z237.string().optional());
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", z237.string());
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(z237.string()));
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]);