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