@supernova-studio/client 0.48.18 → 0.48.20

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
@@ -152,27 +152,30 @@ import { z as z140 } from "zod";
152
152
  import { z as z142 } from "zod";
153
153
  import { z as z141 } from "zod";
154
154
  import { z as z144 } from "zod";
155
+ import { z as z147 } from "zod";
155
156
  import { z as z145 } from "zod";
156
157
  import { z as z146 } from "zod";
157
- import { z as z147 } from "zod";
158
158
  import { z as z148 } from "zod";
159
159
  import { z as z149 } from "zod";
160
160
  import { z as z150 } from "zod";
161
- import { z as z152 } from "zod";
162
161
  import { z as z151 } from "zod";
162
+ import { z as z152 } from "zod";
163
163
  import { z as z153 } from "zod";
164
- import { z as z154 } from "zod";
165
164
  import { z as z155 } from "zod";
165
+ import { z as z154 } from "zod";
166
166
  import { z as z156 } from "zod";
167
167
  import { z as z157 } from "zod";
168
- import { z as z165 } from "zod";
169
- import { z as z159 } from "zod";
170
168
  import { z as z158 } from "zod";
169
+ import { z as z159 } from "zod";
171
170
  import { z as z160 } from "zod";
172
- import { z as z161 } from "zod";
171
+ import { z as z168 } from "zod";
173
172
  import { z as z162 } from "zod";
173
+ import { z as z161 } from "zod";
174
174
  import { z as z163 } from "zod";
175
175
  import { z as z164 } from "zod";
176
+ import { z as z165 } from "zod";
177
+ import { z as z166 } from "zod";
178
+ import { z as z167 } from "zod";
176
179
  var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
177
180
  var AssetDeleteSchedule = z.object({
178
181
  id: z.string(),
@@ -3992,32 +3995,44 @@ var UserSession = z144.object({
3992
3995
  session: Session,
3993
3996
  user: User.nullable()
3994
3997
  });
3995
- var ExportJobDocumentationContext = z145.object({
3996
- isSingleVersionDocs: z145.boolean(),
3997
- versionSlug: z145.string(),
3998
+ var EventDataSourceImported = z145.object({
3999
+ type: z145.literal("DataSourceImported"),
4000
+ workspaceId: z145.string(),
4001
+ designSystemId: z145.string()
4002
+ });
4003
+ var EventVersionReleased = z146.object({
4004
+ type: z146.literal("DesignSystemVersionReleased"),
4005
+ workspaceId: z146.string(),
4006
+ designSystemId: z146.string(),
4007
+ versionId: z146.string()
4008
+ });
4009
+ var Event = z147.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4010
+ var ExportJobDocumentationContext = z148.object({
4011
+ isSingleVersionDocs: z148.boolean(),
4012
+ versionSlug: z148.string(),
3998
4013
  environment: PublishedDocEnvironment
3999
4014
  });
4000
- var ExportJobContext = z145.object({
4001
- apiUrl: z145.string(),
4002
- accessToken: z145.string(),
4003
- designSystemId: z145.string(),
4004
- designSystemName: z145.string(),
4005
- exporterId: z145.string(),
4006
- versionId: z145.string(),
4007
- brandId: z145.string().optional(),
4008
- themeId: z145.string().optional(),
4009
- exporterName: z145.string(),
4010
- exporterPackageUrl: z145.string(),
4015
+ var ExportJobContext = z148.object({
4016
+ apiUrl: z148.string(),
4017
+ accessToken: z148.string(),
4018
+ designSystemId: z148.string(),
4019
+ designSystemName: z148.string(),
4020
+ exporterId: z148.string(),
4021
+ versionId: z148.string(),
4022
+ brandId: z148.string().optional(),
4023
+ themeId: z148.string().optional(),
4024
+ exporterName: z148.string(),
4025
+ exporterPackageUrl: z148.string(),
4011
4026
  exporterPropertyValues: ExporterPropertyValue.array(),
4012
4027
  documentation: ExportJobDocumentationContext.optional()
4013
4028
  });
4014
- var ExporterFunctionPayload = z146.object({
4015
- exportJobId: z146.string(),
4016
- exportContextId: z146.string(),
4017
- designSystemId: z146.string(),
4018
- workspaceId: z146.string()
4029
+ var ExporterFunctionPayload = z149.object({
4030
+ exportJobId: z149.string(),
4031
+ exportContextId: z149.string(),
4032
+ designSystemId: z149.string(),
4033
+ workspaceId: z149.string()
4019
4034
  });
4020
- var ExportJobDestinationType = z147.enum([
4035
+ var ExportJobDestinationType = z150.enum([
4021
4036
  "s3",
4022
4037
  "webhookUrl",
4023
4038
  "github",
@@ -4026,30 +4041,30 @@ var ExportJobDestinationType = z147.enum([
4026
4041
  "gitlab",
4027
4042
  "bitbucket"
4028
4043
  ]);
4029
- var ExportJobStatus = z147.enum(["InProgress", "Success", "Failed", "Timeout"]);
4030
- var ExportJobLogEntryType = z147.enum(["success", "info", "warning", "error", "user"]);
4031
- var ExportJobLogEntry = z147.object({
4032
- id: z147.string().optional(),
4033
- time: z147.coerce.date(),
4044
+ var ExportJobStatus = z150.enum(["InProgress", "Success", "Failed", "Timeout"]);
4045
+ var ExportJobLogEntryType = z150.enum(["success", "info", "warning", "error", "user"]);
4046
+ var ExportJobLogEntry = z150.object({
4047
+ id: z150.string().optional(),
4048
+ time: z150.coerce.date(),
4034
4049
  type: ExportJobLogEntryType,
4035
- message: z147.string()
4050
+ message: z150.string()
4036
4051
  });
4037
- var ExportJobPullRequestDestinationResult = z147.object({
4038
- pullRequestUrl: z147.string()
4052
+ var ExportJobPullRequestDestinationResult = z150.object({
4053
+ pullRequestUrl: z150.string()
4039
4054
  });
4040
- var ExportJobS3DestinationResult = z147.object({
4041
- bucket: z147.string(),
4042
- urlPrefix: z147.string().optional(),
4043
- path: z147.string(),
4044
- files: z147.array(z147.string()),
4045
- url: nullishToOptional(z147.string()),
4046
- urls: nullishToOptional(z147.string().array())
4055
+ var ExportJobS3DestinationResult = z150.object({
4056
+ bucket: z150.string(),
4057
+ urlPrefix: z150.string().optional(),
4058
+ path: z150.string(),
4059
+ files: z150.array(z150.string()),
4060
+ url: nullishToOptional(z150.string()),
4061
+ urls: nullishToOptional(z150.string().array())
4047
4062
  });
4048
- var ExportJobDocsDestinationResult = z147.object({
4049
- url: z147.string()
4063
+ var ExportJobDocsDestinationResult = z150.object({
4064
+ url: z150.string()
4050
4065
  });
4051
- var ExportJobResult = z147.object({
4052
- error: z147.string().optional(),
4066
+ var ExportJobResult = z150.object({
4067
+ error: z150.string().optional(),
4053
4068
  s3: nullishToOptional(ExportJobS3DestinationResult),
4054
4069
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4055
4070
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4058,21 +4073,21 @@ var ExportJobResult = z147.object({
4058
4073
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4059
4074
  logs: nullishToOptional(ExportJobLogEntry.array())
4060
4075
  });
4061
- var ExportJob = z147.object({
4062
- id: z147.string(),
4063
- createdAt: z147.coerce.date(),
4064
- finishedAt: z147.coerce.date().optional(),
4065
- designSystemId: z147.string(),
4066
- designSystemVersionId: z147.string(),
4067
- workspaceId: z147.string(),
4068
- scheduleId: z147.string().nullish(),
4069
- exporterId: z147.string(),
4070
- brandId: z147.string().optional(),
4071
- themeId: z147.string().optional(),
4072
- estimatedExecutionTime: z147.number().optional(),
4076
+ var ExportJob = z150.object({
4077
+ id: z150.string(),
4078
+ createdAt: z150.coerce.date(),
4079
+ finishedAt: z150.coerce.date().optional(),
4080
+ designSystemId: z150.string(),
4081
+ designSystemVersionId: z150.string(),
4082
+ workspaceId: z150.string(),
4083
+ scheduleId: z150.string().nullish(),
4084
+ exporterId: z150.string(),
4085
+ brandId: z150.string().optional(),
4086
+ themeId: z150.string().optional(),
4087
+ estimatedExecutionTime: z150.number().optional(),
4073
4088
  status: ExportJobStatus,
4074
4089
  result: ExportJobResult.optional(),
4075
- createdByUserId: z147.string().optional(),
4090
+ createdByUserId: z150.string().optional(),
4076
4091
  // Destinations
4077
4092
  ...ExportDestinationsMap.shape
4078
4093
  });
@@ -4086,24 +4101,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4086
4101
  themeId: true,
4087
4102
  brandId: true
4088
4103
  }).extend({
4089
- destinations: z147.array(ExportJobDestinationType),
4104
+ destinations: z150.array(ExportJobDestinationType),
4090
4105
  docsEnvironment: PublishedDocEnvironment
4091
4106
  }).partial();
4092
- var ExporterWorkspaceMembershipRole = z148.enum(["Owner", "OwnerArchived", "User"]);
4093
- var ExporterWorkspaceMembership = z149.object({
4094
- id: z149.string(),
4095
- workspaceId: z149.string(),
4096
- exporterId: z149.string(),
4107
+ var ExporterWorkspaceMembershipRole = z151.enum(["Owner", "OwnerArchived", "User"]);
4108
+ var ExporterWorkspaceMembership = z152.object({
4109
+ id: z152.string(),
4110
+ workspaceId: z152.string(),
4111
+ exporterId: z152.string(),
4097
4112
  role: ExporterWorkspaceMembershipRole
4098
4113
  });
4099
- var FlaggedFeature = z150.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4100
- var FeatureFlagMap = z150.record(FlaggedFeature, z150.boolean());
4101
- var FeatureFlag = z150.object({
4102
- id: z150.string(),
4114
+ var FlaggedFeature = z153.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4115
+ var FeatureFlagMap = z153.record(FlaggedFeature, z153.boolean());
4116
+ var FeatureFlag = z153.object({
4117
+ id: z153.string(),
4103
4118
  feature: FlaggedFeature,
4104
- createdAt: z150.coerce.date(),
4105
- enabled: z150.boolean(),
4106
- designSystemId: z150.string().optional()
4119
+ createdAt: z153.coerce.date(),
4120
+ enabled: z153.boolean(),
4121
+ designSystemId: z153.string().optional()
4107
4122
  });
4108
4123
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4109
4124
  OAuthProviderNames2["Figma"] = "figma";
@@ -4113,173 +4128,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4113
4128
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4114
4129
  return OAuthProviderNames2;
4115
4130
  })(OAuthProviderNames || {});
4116
- var OAuthProviderSchema = z151.nativeEnum(OAuthProviderNames);
4131
+ var OAuthProviderSchema = z154.nativeEnum(OAuthProviderNames);
4117
4132
  var OAuthProvider = OAuthProviderSchema.enum;
4118
- var ExternalOAuthRequest = z152.object({
4119
- id: z152.string(),
4133
+ var ExternalOAuthRequest = z155.object({
4134
+ id: z155.string(),
4120
4135
  provider: OAuthProviderSchema,
4121
- userId: z152.string(),
4122
- state: z152.string(),
4123
- createdAt: z152.coerce.date()
4136
+ userId: z155.string(),
4137
+ state: z155.string(),
4138
+ createdAt: z155.coerce.date()
4124
4139
  });
4125
- var GitObjectsQuery = z153.object({
4126
- organization: z153.string().optional(),
4140
+ var GitObjectsQuery = z156.object({
4141
+ organization: z156.string().optional(),
4127
4142
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4128
- project: z153.string().optional(),
4143
+ project: z156.string().optional(),
4129
4144
  // Only for Bitbucket and Azure
4130
- repository: z153.string().optional(),
4145
+ repository: z156.string().optional(),
4131
4146
  // For all providers. For Gitlab, it's called "project".
4132
- branch: z153.string().optional(),
4147
+ branch: z156.string().optional(),
4133
4148
  // For all providers.
4134
- user: z153.string().optional()
4149
+ user: z156.string().optional()
4135
4150
  // Gitlab user
4136
4151
  });
4137
- var GitOrganization = z153.object({
4138
- id: z153.string(),
4139
- name: z153.string(),
4140
- url: z153.string(),
4141
- slug: z153.string()
4142
- });
4143
- var GitProject = z153.object({
4144
- id: z153.string(),
4145
- name: z153.string(),
4146
- url: z153.string(),
4147
- slug: z153.string()
4148
- });
4149
- var GitRepository = z153.object({
4150
- id: z153.string(),
4151
- name: z153.string(),
4152
- url: z153.string(),
4153
- slug: z153.string(),
4152
+ var GitOrganization = z156.object({
4153
+ id: z156.string(),
4154
+ name: z156.string(),
4155
+ url: z156.string(),
4156
+ slug: z156.string()
4157
+ });
4158
+ var GitProject = z156.object({
4159
+ id: z156.string(),
4160
+ name: z156.string(),
4161
+ url: z156.string(),
4162
+ slug: z156.string()
4163
+ });
4164
+ var GitRepository = z156.object({
4165
+ id: z156.string(),
4166
+ name: z156.string(),
4167
+ url: z156.string(),
4168
+ slug: z156.string(),
4154
4169
  /**
4155
4170
  * Can be undefined when:
4156
4171
  * - there are no branches in the repository yet
4157
4172
  * - Git provider doesn't expose this information on a repository via their API
4158
4173
  */
4159
- defaultBranch: z153.string().optional()
4174
+ defaultBranch: z156.string().optional()
4160
4175
  });
4161
- var GitBranch = z153.object({
4162
- name: z153.string(),
4163
- lastCommitId: z153.string()
4176
+ var GitBranch = z156.object({
4177
+ name: z156.string(),
4178
+ lastCommitId: z156.string()
4164
4179
  });
4165
- var IntegrationTokenSchemaOld = z154.object({
4166
- id: z154.string(),
4180
+ var IntegrationTokenSchemaOld = z157.object({
4181
+ id: z157.string(),
4167
4182
  provider: OAuthProviderSchema,
4168
- scope: z154.string(),
4169
- userId: z154.string(),
4170
- accessToken: z154.string(),
4171
- refreshToken: z154.string(),
4172
- expiresAt: z154.coerce.date(),
4173
- externalUserId: z154.string().nullish()
4174
- });
4175
- var WorkspaceOAuthRequestSchema = z155.object({
4176
- id: z155.string(),
4177
- workspaceId: z155.string(),
4183
+ scope: z157.string(),
4184
+ userId: z157.string(),
4185
+ accessToken: z157.string(),
4186
+ refreshToken: z157.string(),
4187
+ expiresAt: z157.coerce.date(),
4188
+ externalUserId: z157.string().nullish()
4189
+ });
4190
+ var WorkspaceOAuthRequestSchema = z158.object({
4191
+ id: z158.string(),
4192
+ workspaceId: z158.string(),
4178
4193
  provider: OAuthProviderSchema,
4179
- userId: z155.string(),
4180
- createdAt: z155.coerce.date()
4194
+ userId: z158.string(),
4195
+ createdAt: z158.coerce.date()
4181
4196
  });
4182
- var AnyRecord = z156.record(z156.any());
4197
+ var AnyRecord = z159.record(z159.any());
4183
4198
  var NpmPackageVersionDist = AnyRecord.and(
4184
- z156.object({
4185
- tarball: z156.string()
4199
+ z159.object({
4200
+ tarball: z159.string()
4186
4201
  })
4187
4202
  );
4188
4203
  var NpmPackageVersion = AnyRecord.and(
4189
- z156.object({
4204
+ z159.object({
4190
4205
  dist: NpmPackageVersionDist
4191
4206
  })
4192
4207
  );
4193
4208
  var NpmPackage = AnyRecord.and(
4194
- z156.object({
4195
- _id: z156.string(),
4196
- name: z156.string(),
4209
+ z159.object({
4210
+ _id: z159.string(),
4211
+ name: z159.string(),
4197
4212
  // e.g. "latest": "1.2.3"
4198
- "dist-tags": z156.record(z156.string(), z156.string()),
4213
+ "dist-tags": z159.record(z159.string(), z159.string()),
4199
4214
  // "1.2.3": {...}
4200
- versions: z156.record(NpmPackageVersion)
4215
+ versions: z159.record(NpmPackageVersion)
4201
4216
  })
4202
4217
  );
4203
- var NpmProxyTokenPayload = z157.object({
4204
- npmProxyRegistryConfigId: z157.string()
4218
+ var NpmProxyTokenPayload = z160.object({
4219
+ npmProxyRegistryConfigId: z160.string()
4205
4220
  });
4206
- var WorkspaceRoleSchema = z158.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4221
+ var WorkspaceRoleSchema = z161.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4207
4222
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4208
4223
  var MAX_MEMBERS_COUNT = 100;
4209
- var UserInvite = z159.object({
4210
- email: z159.string().email().trim().transform((value) => value.toLowerCase()),
4224
+ var UserInvite = z162.object({
4225
+ email: z162.string().email().trim().transform((value) => value.toLowerCase()),
4211
4226
  role: WorkspaceRoleSchema
4212
4227
  });
4213
- var UserInvites = z159.array(UserInvite).max(MAX_MEMBERS_COUNT);
4214
- var WorkspaceConfigurationUpdate = z160.object({
4215
- id: z160.string(),
4228
+ var UserInvites = z162.array(UserInvite).max(MAX_MEMBERS_COUNT);
4229
+ var WorkspaceConfigurationUpdate = z163.object({
4230
+ id: z163.string(),
4216
4231
  ipWhitelist: WorkspaceIpSettings.optional(),
4217
4232
  sso: SsoProvider.optional(),
4218
4233
  npmRegistrySettings: NpmRegistryConfig.optional(),
4219
4234
  profile: WorkspaceProfileUpdate.optional()
4220
4235
  });
4221
- var WorkspaceContext = z161.object({
4222
- workspaceId: z161.string(),
4236
+ var WorkspaceContext = z164.object({
4237
+ workspaceId: z164.string(),
4223
4238
  product: ProductCodeSchema,
4224
4239
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4225
- publicDesignSystem: z161.boolean().optional()
4240
+ publicDesignSystem: z164.boolean().optional()
4226
4241
  });
4227
4242
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4228
4243
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4229
4244
  var HANDLE_MIN_LENGTH = 2;
4230
4245
  var HANDLE_MAX_LENGTH = 64;
4231
- var CreateWorkspaceInput = z162.object({
4232
- name: z162.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4246
+ var CreateWorkspaceInput = z165.object({
4247
+ name: z165.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4233
4248
  product: ProductCodeSchema,
4234
- priceId: z162.string(),
4235
- billingEmail: z162.string().email().optional(),
4236
- handle: z162.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4249
+ priceId: z165.string(),
4250
+ billingEmail: z165.string().email().optional(),
4251
+ handle: z165.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4237
4252
  invites: UserInvites.optional(),
4238
- promoCode: z162.string().optional(),
4253
+ promoCode: z165.string().optional(),
4239
4254
  status: InternalStatusSchema.optional(),
4240
4255
  planInterval: BillingIntervalSchema.optional(),
4241
- seats: z162.number().optional(),
4242
- seatLimit: z162.number().optional(),
4256
+ seats: z165.number().optional(),
4257
+ seatLimit: z165.number().optional(),
4243
4258
  card: CardSchema.optional(),
4244
4259
  sso: SsoProvider.optional(),
4245
4260
  npmRegistrySettings: NpmRegistryConfig.optional(),
4246
4261
  ipWhitelist: WorkspaceIpSettings.optional()
4247
4262
  });
4248
- var WorkspaceInvitation = z163.object({
4249
- id: z163.string(),
4250
- email: z163.string().email(),
4251
- createdAt: z163.coerce.date(),
4252
- resentAt: z163.coerce.date().nullish(),
4253
- role: z163.nativeEnum(WorkspaceRole),
4254
- workspaceId: z163.string(),
4255
- invitedBy: z163.string()
4256
- });
4257
- var WorkspaceMembership = z164.object({
4258
- id: z164.string(),
4259
- userId: z164.string(),
4260
- workspaceId: z164.string(),
4261
- workspaceRole: z164.nativeEnum(WorkspaceRole),
4263
+ var WorkspaceInvitation = z166.object({
4264
+ id: z166.string(),
4265
+ email: z166.string().email(),
4266
+ createdAt: z166.coerce.date(),
4267
+ resentAt: z166.coerce.date().nullish(),
4268
+ role: z166.nativeEnum(WorkspaceRole),
4269
+ workspaceId: z166.string(),
4270
+ invitedBy: z166.string()
4271
+ });
4272
+ var WorkspaceMembership = z167.object({
4273
+ id: z167.string(),
4274
+ userId: z167.string(),
4275
+ workspaceId: z167.string(),
4276
+ workspaceRole: z167.nativeEnum(WorkspaceRole),
4262
4277
  notificationSettings: UserNotificationSettings
4263
4278
  });
4264
- var UpdateMembershipRolesInput = z164.object({
4265
- members: z164.array(
4266
- z164.object({
4267
- userId: z164.string(),
4268
- role: z164.nativeEnum(WorkspaceRole)
4279
+ var UpdateMembershipRolesInput = z167.object({
4280
+ members: z167.array(
4281
+ z167.object({
4282
+ userId: z167.string(),
4283
+ role: z167.nativeEnum(WorkspaceRole)
4269
4284
  })
4270
4285
  )
4271
4286
  });
4272
- var PersonalAccessToken = z165.object({
4273
- id: z165.string(),
4274
- userId: z165.string(),
4275
- workspaceId: z165.string().optional(),
4287
+ var PersonalAccessToken = z168.object({
4288
+ id: z168.string(),
4289
+ userId: z168.string(),
4290
+ workspaceId: z168.string().optional(),
4276
4291
  workspaceRole: WorkspaceRoleSchema.optional(),
4277
- name: z165.string(),
4278
- hidden: z165.boolean(),
4279
- token: z165.string(),
4280
- scope: z165.string().optional(),
4281
- createdAt: z165.coerce.date(),
4282
- expireAt: z165.coerce.date().optional()
4292
+ name: z168.string(),
4293
+ hidden: z168.boolean(),
4294
+ token: z168.string(),
4295
+ scope: z168.string().optional(),
4296
+ createdAt: z168.coerce.date(),
4297
+ expireAt: z168.coerce.date().optional()
4283
4298
  });
4284
4299
 
4285
4300
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -4694,157 +4709,164 @@ function integrationCredentialToDto(credential) {
4694
4709
  };
4695
4710
  }
4696
4711
 
4712
+ // src/api/dto/aux/pagination.ts
4713
+ import { z as z169 } from "zod";
4714
+ var DTOPagination = z169.object({
4715
+ limit: z169.string().optional(),
4716
+ offset: z169.string().optional()
4717
+ });
4718
+
4697
4719
  // src/api/dto/design-systems/brand.ts
4698
- import { z as z166 } from "zod";
4699
- var DTOBrand = z166.object({
4700
- id: z166.string(),
4701
- designSystemVersionId: z166.string(),
4702
- persistentId: z166.string(),
4720
+ import { z as z170 } from "zod";
4721
+ var DTOBrand = z170.object({
4722
+ id: z170.string(),
4723
+ designSystemVersionId: z170.string(),
4724
+ persistentId: z170.string(),
4703
4725
  meta: ObjectMeta
4704
4726
  });
4705
- var DTOBrandGetResponse = z166.object({ brand: DTOBrand });
4706
- var DTOBrandCreateResponse = z166.object({
4727
+ var DTOBrandGetResponse = z170.object({ brand: DTOBrand });
4728
+ var DTOBrandCreateResponse = z170.object({
4707
4729
  brand: DTOBrand
4708
4730
  });
4709
- var DTOBrandsListResponse = z166.object({ brands: z166.array(DTOBrand) });
4731
+ var DTOBrandsListResponse = z170.object({ brands: z170.array(DTOBrand) });
4710
4732
 
4711
4733
  // src/api/dto/design-systems/data-source.ts
4712
- import { z as z167 } from "zod";
4713
- var DTODataSourceFigmaFileVersion = z167.object({
4714
- id: z167.string(),
4715
- created_at: z167.coerce.date(),
4716
- label: z167.string(),
4717
- description: z167.string()
4718
- });
4719
- var DTODataSourceFigmaCloud = z167.object({
4720
- fileId: z167.string(),
4734
+ import { z as z171 } from "zod";
4735
+ var DTODataSourceFigmaFileVersion = z171.object({
4736
+ id: z171.string(),
4737
+ created_at: z171.coerce.date(),
4738
+ label: z171.string(),
4739
+ description: z171.string()
4740
+ });
4741
+ var DTODataSourceFigmaCloud = z171.object({
4742
+ fileId: z171.string(),
4721
4743
  state: DataSourceFigmaState,
4722
4744
  autoImportMode: DataSourceAutoImportMode,
4723
- fileThumbnailUrl: z167.string().optional(),
4745
+ fileThumbnailUrl: z171.string().optional(),
4724
4746
  lastImportResult: SourceImportSummary.nullish(),
4725
- lastImportedAt: z167.date().nullish(),
4747
+ lastImportedAt: z171.date().nullish(),
4726
4748
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4727
- lastUpdatesCheckedAt: z167.date().nullish(),
4728
- ownerId: z167.string(),
4729
- ownerUserName: z167.string().optional(),
4730
- preferredCredentialId: z167.string().optional(),
4749
+ lastUpdatesCheckedAt: z171.date().nullish(),
4750
+ ownerId: z171.string(),
4751
+ ownerUserName: z171.string().optional(),
4752
+ preferredCredentialId: z171.string().optional(),
4731
4753
  stats: DataSourceStats
4732
4754
  });
4733
- var DTODataSourceFigma = z167.object({
4734
- id: z167.string(),
4735
- type: z167.literal(DataSourceRemoteType.Enum.Figma),
4736
- fileName: z167.string(),
4755
+ var DTODataSourceFigma = z171.object({
4756
+ id: z171.string(),
4757
+ type: z171.literal(DataSourceRemoteType.Enum.Figma),
4758
+ fileName: z171.string(),
4737
4759
  scope: DataSourceFigmaScope,
4738
- brandId: z167.string(),
4739
- themeId: z167.string().nullish(),
4760
+ brandId: z171.string(),
4761
+ themeId: z171.string().nullish(),
4740
4762
  cloud: DTODataSourceFigmaCloud.nullish(),
4741
- tokenStudio: z167.literal(null),
4742
- upload: z167.literal(null),
4743
- figmaVariablesPlugin: z167.literal(null)
4744
- });
4745
- var DTODataSourceTokenStudio = z167.object({
4746
- id: z167.string(),
4747
- type: z167.literal(DataSourceRemoteType.Enum.TokenStudio),
4748
- fileName: z167.string(),
4749
- brandId: z167.string(),
4750
- themeId: z167.string().nullish(),
4751
- cloud: z167.literal(null),
4752
- tokenStudio: z167.object({
4753
- settings: z167.object({
4754
- dryRun: z167.boolean(),
4755
- verbose: z167.boolean(),
4756
- preciseCopy: z167.boolean()
4763
+ tokenStudio: z171.literal(null),
4764
+ upload: z171.literal(null),
4765
+ figmaVariablesPlugin: z171.literal(null)
4766
+ });
4767
+ var DTODataSourceTokenStudio = z171.object({
4768
+ id: z171.string(),
4769
+ type: z171.literal(DataSourceRemoteType.Enum.TokenStudio),
4770
+ fileName: z171.string(),
4771
+ brandId: z171.string(),
4772
+ themeId: z171.string().nullish(),
4773
+ cloud: z171.literal(null),
4774
+ tokenStudio: z171.object({
4775
+ settings: z171.object({
4776
+ dryRun: z171.boolean(),
4777
+ verbose: z171.boolean(),
4778
+ preciseCopy: z171.boolean()
4757
4779
  }),
4758
- connectionName: z167.string(),
4759
- lastImportedAt: z167.date(),
4760
- lastImportedResults: z167.array(
4761
- z167.object({
4762
- mapping: z167.object({
4763
- tokenSets: z167.array(z167.string()),
4764
- supernovaBrand: z167.string(),
4765
- supernovaTheme: z167.string().optional()
4780
+ connectionName: z171.string(),
4781
+ lastImportedAt: z171.date(),
4782
+ lastImportedResults: z171.array(
4783
+ z171.object({
4784
+ mapping: z171.object({
4785
+ tokenSets: z171.array(z171.string()),
4786
+ supernovaBrand: z171.string(),
4787
+ supernovaTheme: z171.string().optional()
4766
4788
  }),
4767
- isFailed: z167.boolean(),
4768
- tokensCreated: z167.number(),
4769
- tokensDeleted: z167.number(),
4770
- tokensUpdated: z167.number()
4789
+ isFailed: z171.boolean(),
4790
+ tokensCreated: z171.number(),
4791
+ tokensDeleted: z171.number(),
4792
+ tokensUpdated: z171.number()
4771
4793
  })
4772
4794
  )
4773
4795
  }),
4774
- upload: z167.literal(null),
4775
- figmaVariablesPlugin: z167.literal(null)
4776
- });
4777
- var DTODataSourceFigmaVariablesPlugin = z167.object({
4778
- id: z167.string(),
4779
- type: z167.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4780
- fileName: z167.string(),
4781
- brandId: z167.string(),
4782
- themeId: z167.literal(null),
4783
- cloud: z167.literal(null),
4784
- tokenStudio: z167.literal(null),
4785
- upload: z167.object({
4786
- remoteId: z167.string(),
4796
+ upload: z171.literal(null),
4797
+ figmaVariablesPlugin: z171.literal(null)
4798
+ });
4799
+ var DTODataSourceFigmaVariablesPlugin = z171.object({
4800
+ id: z171.string(),
4801
+ type: z171.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4802
+ fileName: z171.string(),
4803
+ brandId: z171.string(),
4804
+ themeId: z171.literal(null),
4805
+ cloud: z171.literal(null),
4806
+ tokenStudio: z171.literal(null),
4807
+ upload: z171.object({
4808
+ remoteId: z171.string(),
4787
4809
  remoteSourceType: DataSourceUploadRemoteSource,
4788
- lastImportedAt: z167.date().optional(),
4810
+ lastImportedAt: z171.date().optional(),
4789
4811
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4790
4812
  }),
4791
- figmaVariablesPlugin: z167.object({
4792
- fileId: z167.string(),
4793
- lastImportedAt: z167.date().optional(),
4813
+ figmaVariablesPlugin: z171.object({
4814
+ fileId: z171.string(),
4815
+ lastImportedAt: z171.date().optional(),
4794
4816
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4795
4817
  })
4796
4818
  });
4797
- var DTODataSource = z167.discriminatedUnion("type", [
4819
+ var DTODataSource = z171.discriminatedUnion("type", [
4798
4820
  DTODataSourceFigma,
4799
4821
  DTODataSourceFigmaVariablesPlugin,
4800
4822
  DTODataSourceTokenStudio
4801
4823
  ]);
4802
- var DTODataSourcesListResponse = z167.object({
4803
- sources: z167.array(DTODataSource)
4824
+ var DTODataSourcesListResponse = z171.object({
4825
+ sources: z171.array(DTODataSource)
4804
4826
  });
4805
- var DTODataSourceCreationResponse = z167.object({
4827
+ var DTODataSourceCreationResponse = z171.object({
4806
4828
  source: DTODataSource
4807
4829
  });
4808
4830
 
4809
4831
  // src/api/dto/design-systems/design-system.ts
4810
- import { z as z168 } from "zod";
4832
+ import { z as z172 } from "zod";
4811
4833
  var DTODesignSystem = DesignSystem.omit({
4812
4834
  name: true,
4813
4835
  description: true,
4814
4836
  docExporterId: true
4815
4837
  }).extend({
4816
4838
  meta: ObjectMeta,
4817
- docExporterId: z168.string(),
4818
- sources: z168.array(z168.any())
4839
+ docExporterId: z172.string(),
4840
+ sources: z172.array(z172.any())
4819
4841
  });
4820
4842
 
4821
4843
  // src/api/dto/design-systems/elements-diff.ts
4822
- import { z as z169 } from "zod";
4823
- var DTODiffCountBase = z169.object({
4824
- created: z169.number(),
4825
- updated: z169.number(),
4826
- deleted: z169.number()
4844
+ import { z as z173 } from "zod";
4845
+ var DTODiffCountBase = z173.object({
4846
+ created: z173.number(),
4847
+ updated: z173.number(),
4848
+ deleted: z173.number()
4827
4849
  });
4828
- var DTODesignElementsDataDiffResponse = z169.object({
4850
+ var DTODesignElementsDataDiffResponse = z173.object({
4829
4851
  tokens: DTODiffCountBase,
4830
4852
  assets: DTODiffCountBase
4831
4853
  });
4832
4854
 
4833
4855
  // src/api/dto/design-systems/exporter-property.ts
4834
- import { z as z170 } from "zod";
4835
- var DTOExporterProperty = z170.any({});
4836
- var DTOExporterPropertyListResponse = z170.object({ items: z170.array(DTOExporterProperty) });
4856
+ import { z as z174 } from "zod";
4857
+ var DTOExporterProperty = z174.any({});
4858
+ var DTOExporterPropertyListResponse = z174.object({ items: z174.array(DTOExporterProperty) });
4837
4859
 
4838
4860
  // src/api/dto/design-systems/version.ts
4839
- import { z as z180 } from "zod";
4861
+ import { z as z184 } from "zod";
4840
4862
 
4841
4863
  // src/api/payloads/design-systems/brand.ts
4842
- import { z as z171 } from "zod";
4843
- var DTOCreateBrandInput = z171.object({
4844
- persistentId: z171.string().uuid(),
4845
- meta: z171.object({
4846
- name: z171.string(),
4847
- description: z171.string()
4864
+ import { z as z175 } from "zod";
4865
+ var DTOCreateBrandInput = z175.object({
4866
+ persistentId: z175.string().uuid(),
4867
+ meta: z175.object({
4868
+ name: z175.string(),
4869
+ description: z175.string()
4848
4870
  })
4849
4871
  });
4850
4872
 
@@ -4852,31 +4874,31 @@ var DTOCreateBrandInput = z171.object({
4852
4874
  var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
4853
4875
 
4854
4876
  // src/api/payloads/design-systems/version.ts
4855
- import { z as z172 } from "zod";
4856
- var ObjectMeta2 = z172.object({
4857
- name: z172.string().max(150).optional(),
4858
- description: z172.string().max(2e3).optional()
4877
+ import { z as z176 } from "zod";
4878
+ var ObjectMeta2 = z176.object({
4879
+ name: z176.string().max(150).optional(),
4880
+ description: z176.string().max(2e3).optional()
4859
4881
  });
4860
4882
  function validateDesignSystemVersion(version) {
4861
4883
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4862
4884
  return urlCompliantRegex.test(version);
4863
4885
  }
4864
- var DTOCreateVersionInput = z172.object({
4886
+ var DTOCreateVersionInput = z176.object({
4865
4887
  meta: ObjectMeta2,
4866
- version: z172.string().refine(validateDesignSystemVersion, {
4888
+ version: z176.string().refine(validateDesignSystemVersion, {
4867
4889
  message: "Invalid semantic versioning format"
4868
4890
  }),
4869
- changeLog: z172.string().optional()
4891
+ changeLog: z176.string().optional()
4870
4892
  });
4871
- var DTOUpdateVersionInput = z172.object({
4893
+ var DTOUpdateVersionInput = z176.object({
4872
4894
  meta: ObjectMeta2,
4873
- version: z172.string(),
4895
+ version: z176.string(),
4874
4896
  // required for PUT, but not editable
4875
- changeLog: z172.string()
4897
+ changeLog: z176.string()
4876
4898
  });
4877
4899
 
4878
4900
  // src/api/payloads/documentation/block-definitions.ts
4879
- import { z as z173 } from "zod";
4901
+ import { z as z177 } from "zod";
4880
4902
 
4881
4903
  // src/api/dto/documentation/block-definition.ts
4882
4904
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -4888,59 +4910,59 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
4888
4910
  var DTOPageBlockDefinition = PageBlockDefinition;
4889
4911
 
4890
4912
  // src/api/payloads/documentation/block-definitions.ts
4891
- var DTOGetBlockDefinitionsOutput = z173.object({
4892
- definitions: z173.array(DTOPageBlockDefinition)
4913
+ var DTOGetBlockDefinitionsOutput = z177.object({
4914
+ definitions: z177.array(DTOPageBlockDefinition)
4893
4915
  });
4894
4916
 
4895
4917
  // src/api/payloads/documentation/design-data-doc-diff.ts
4896
- import { z as z174 } from "zod";
4897
- var DTODocumentationPublishTypeQueryParams = z174.object({
4898
- environment: z174.enum(["Live", "Preview"])
4918
+ import { z as z178 } from "zod";
4919
+ var DTODocumentationPublishTypeQueryParams = z178.object({
4920
+ environment: z178.enum(["Live", "Preview"])
4899
4921
  });
4900
4922
 
4901
4923
  // src/api/payloads/export/pipeline.ts
4902
- import { z as z175 } from "zod";
4903
- var DTOPipelineCreateBody = z175.object({
4904
- name: z175.string(),
4905
- exporterId: z175.string(),
4906
- designSystemId: z175.string(),
4907
- isEnabled: z175.boolean(),
4924
+ import { z as z179 } from "zod";
4925
+ var DTOPipelineCreateBody = z179.object({
4926
+ name: z179.string(),
4927
+ exporterId: z179.string(),
4928
+ designSystemId: z179.string(),
4929
+ isEnabled: z179.boolean(),
4908
4930
  eventType: PipelineEventType,
4909
- brandPersistentId: z175.string().optional(),
4910
- themePersistentId: z175.string().optional(),
4931
+ brandPersistentId: z179.string().optional(),
4932
+ themePersistentId: z179.string().optional(),
4911
4933
  destination: PipelineDestinationType.optional(),
4912
4934
  gitQuery: GitObjectsQuery,
4913
- destinations: z175.object({
4935
+ destinations: z179.object({
4914
4936
  s3: ExporterDestinationS3.nullish(),
4915
4937
  azure: ExporterDestinationAzure.nullish(),
4916
4938
  bitbucket: ExporterDestinationBitbucket.nullish(),
4917
4939
  github: ExporterDestinationGithub.nullish(),
4918
4940
  gitlab: ExporterDestinationGitlab.nullish(),
4919
4941
  documentation: ExporterDestinationDocs.nullish(),
4920
- webhookUrl: z175.string().nullish()
4942
+ webhookUrl: z179.string().nullish()
4921
4943
  })
4922
4944
  });
4923
4945
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
4924
- id: z175.string()
4946
+ id: z179.string()
4925
4947
  });
4926
- var DTOPipelineTriggerBody = z175.object({
4927
- designSystemVersionId: z175.string()
4948
+ var DTOPipelineTriggerBody = z179.object({
4949
+ designSystemVersionId: z179.string()
4928
4950
  });
4929
4951
 
4930
4952
  // src/api/payloads/liveblocks/auth.ts
4931
- import { z as z176 } from "zod";
4932
- var DTOLiveblocksAuthRequest = z176.object({
4933
- room: z176.string().optional()
4953
+ import { z as z180 } from "zod";
4954
+ var DTOLiveblocksAuthRequest = z180.object({
4955
+ room: z180.string().optional()
4934
4956
  });
4935
4957
 
4936
4958
  // src/api/payloads/users/notifications/notification-settings.ts
4937
- import { z as z177 } from "zod";
4938
- var DTOUpdateUserNotificationSettingsPayload = z177.object({
4959
+ import { z as z181 } from "zod";
4960
+ var DTOUpdateUserNotificationSettingsPayload = z181.object({
4939
4961
  notificationSettings: UserNotificationSettings
4940
4962
  });
4941
- var DTOUserNotificationSettingsResponse = z177.object({
4942
- userId: z177.string(),
4943
- workspaceId: z177.string(),
4963
+ var DTOUserNotificationSettingsResponse = z181.object({
4964
+ userId: z181.string(),
4965
+ workspaceId: z181.string(),
4944
4966
  notificationSettings: UserNotificationSettings
4945
4967
  });
4946
4968
 
@@ -4948,7 +4970,7 @@ var DTOUserNotificationSettingsResponse = z177.object({
4948
4970
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4949
4971
 
4950
4972
  // src/api/payloads/workspaces/workspace-configuration.ts
4951
- import { z as z178 } from "zod";
4973
+ import { z as z182 } from "zod";
4952
4974
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4953
4975
  function validateSsoPayload(ssoPayload) {
4954
4976
  const keys = [];
@@ -4971,21 +4993,21 @@ function validateSsoPayload(ssoPayload) {
4971
4993
  keys
4972
4994
  };
4973
4995
  }
4974
- var NpmRegistryInput = z178.object({
4975
- enabledScopes: z178.array(z178.string()),
4976
- customRegistryUrl: z178.string().optional(),
4977
- bypassProxy: z178.boolean().optional(),
4978
- npmProxyRegistryConfigId: z178.string().optional(),
4979
- npmProxyVersion: z178.number().optional(),
4980
- registryType: z178.string(),
4981
- authType: z178.string(),
4982
- authHeaderName: z178.string(),
4983
- authHeaderValue: z178.string(),
4984
- accessToken: z178.string(),
4985
- username: z178.string(),
4986
- password: z178.string()
4987
- });
4988
- var WorkspaceConfigurationPayload = z178.object({
4996
+ var NpmRegistryInput = z182.object({
4997
+ enabledScopes: z182.array(z182.string()),
4998
+ customRegistryUrl: z182.string().optional(),
4999
+ bypassProxy: z182.boolean().optional(),
5000
+ npmProxyRegistryConfigId: z182.string().optional(),
5001
+ npmProxyVersion: z182.number().optional(),
5002
+ registryType: z182.string(),
5003
+ authType: z182.string(),
5004
+ authHeaderName: z182.string(),
5005
+ authHeaderValue: z182.string(),
5006
+ accessToken: z182.string(),
5007
+ username: z182.string(),
5008
+ password: z182.string()
5009
+ });
5010
+ var WorkspaceConfigurationPayload = z182.object({
4989
5011
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4990
5012
  sso: SsoProvider.partial().optional(),
4991
5013
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4993,363 +5015,363 @@ var WorkspaceConfigurationPayload = z178.object({
4993
5015
  });
4994
5016
 
4995
5017
  // src/api/payloads/workspaces/workspace-integrations.ts
4996
- import { z as z179 } from "zod";
4997
- var DTOWorkspaceIntegrationOauthInput = z179.object({
5018
+ import { z as z183 } from "zod";
5019
+ var DTOWorkspaceIntegrationOauthInput = z183.object({
4998
5020
  type: IntegrationType
4999
5021
  });
5000
- var DTOWorkspaceIntegrationPATInput = z179.object({
5001
- userId: z179.string(),
5022
+ var DTOWorkspaceIntegrationPATInput = z183.object({
5023
+ userId: z183.string(),
5002
5024
  type: IntegrationType,
5003
5025
  token: IntegrationToken
5004
5026
  });
5005
- var DTOWorkspaceIntegrationGetGitObjectsInput = z179.object({
5006
- organization: z179.string().optional(),
5027
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z183.object({
5028
+ organization: z183.string().optional(),
5007
5029
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5008
- project: z179.string().optional(),
5030
+ project: z183.string().optional(),
5009
5031
  // Only for Bitbucket and Azure
5010
- repository: z179.string().optional(),
5032
+ repository: z183.string().optional(),
5011
5033
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5012
- branch: z179.string().optional(),
5034
+ branch: z183.string().optional(),
5013
5035
  // For all providers, useful for PR creations.
5014
- user: z179.string().optional()
5036
+ user: z183.string().optional()
5015
5037
  // Only for Gitlab User Repositories
5016
5038
  });
5017
5039
 
5018
5040
  // src/api/dto/design-systems/version.ts
5019
- var DTODesignSystemVersion = z180.object({
5020
- id: z180.string(),
5021
- createdAt: z180.date(),
5041
+ var DTODesignSystemVersion = z184.object({
5042
+ id: z184.string(),
5043
+ createdAt: z184.date(),
5022
5044
  meta: ObjectMeta,
5023
- version: z180.string(),
5024
- isReadonly: z180.boolean(),
5025
- changeLog: z180.string(),
5026
- designSystemId: z180.string()
5045
+ version: z184.string(),
5046
+ isReadonly: z184.boolean(),
5047
+ changeLog: z184.string(),
5048
+ designSystemId: z184.string()
5027
5049
  });
5028
- var DTODesignSystemVersionsListResponse = z180.object({
5029
- designSystemVersions: z180.array(DTODesignSystemVersion)
5050
+ var DTODesignSystemVersionsListResponse = z184.object({
5051
+ designSystemVersions: z184.array(DTODesignSystemVersion)
5030
5052
  });
5031
- var DTODesignSystemVersionGetResponse = z180.object({
5053
+ var DTODesignSystemVersionGetResponse = z184.object({
5032
5054
  designSystemVersion: DTODesignSystemVersion
5033
5055
  });
5034
- var DTODesignSystemVersionCreationResponse = z180.object({
5056
+ var DTODesignSystemVersionCreationResponse = z184.object({
5035
5057
  meta: ObjectMeta,
5036
- version: z180.string(),
5037
- changeLog: z180.string(),
5038
- isReadOnly: z180.boolean(),
5039
- designSystemId: z180.string(),
5040
- jobId: z180.string()
5041
- });
5042
- var VersionSQSPayload = z180.object({
5043
- jobId: z180.string(),
5044
- designSystemId: z180.string(),
5058
+ version: z184.string(),
5059
+ changeLog: z184.string(),
5060
+ isReadOnly: z184.boolean(),
5061
+ designSystemId: z184.string(),
5062
+ jobId: z184.string()
5063
+ });
5064
+ var VersionSQSPayload = z184.object({
5065
+ jobId: z184.string(),
5066
+ designSystemId: z184.string(),
5045
5067
  input: DTOCreateVersionInput
5046
5068
  });
5047
- var DTODesignSystemVersionJobsResponse = z180.object({
5048
- jobs: z180.array(VersionCreationJob)
5069
+ var DTODesignSystemVersionJobsResponse = z184.object({
5070
+ jobs: z184.array(VersionCreationJob)
5049
5071
  });
5050
- var DTODesignSystemVersionJobStatusResponse = z180.object({
5072
+ var DTODesignSystemVersionJobStatusResponse = z184.object({
5051
5073
  job: VersionCreationJob
5052
5074
  });
5053
5075
 
5054
5076
  // src/api/dto/design-systems/view.ts
5055
- import { z as z181 } from "zod";
5056
- var DTOElementViewColumnSharedAttributes = z181.object({
5057
- id: z181.string(),
5058
- persistentId: z181.string(),
5059
- width: z181.number()
5077
+ import { z as z185 } from "zod";
5078
+ var DTOElementViewColumnSharedAttributes = z185.object({
5079
+ id: z185.string(),
5080
+ persistentId: z185.string(),
5081
+ width: z185.number()
5060
5082
  });
5061
5083
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5062
- type: z181.literal("BaseProperty"),
5084
+ type: z185.literal("BaseProperty"),
5063
5085
  basePropertyType: ElementViewBaseColumnType
5064
5086
  });
5065
5087
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5066
- type: z181.literal("PropertyDefinition"),
5067
- propertyDefinitionId: z181.string()
5088
+ type: z185.literal("PropertyDefinition"),
5089
+ propertyDefinitionId: z185.string()
5068
5090
  });
5069
5091
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5070
- type: z181.literal("Theme"),
5071
- themeId: z181.string()
5092
+ type: z185.literal("Theme"),
5093
+ themeId: z185.string()
5072
5094
  });
5073
- var DTOElementViewColumn = z181.discriminatedUnion("type", [
5095
+ var DTOElementViewColumn = z185.discriminatedUnion("type", [
5074
5096
  DTOElementViewBasePropertyColumn,
5075
5097
  DTOElementViewPropertyDefinitionColumn,
5076
5098
  DTOElementViewThemeColumn
5077
5099
  ]);
5078
- var DTOElementView = z181.object({
5100
+ var DTOElementView = z185.object({
5079
5101
  meta: ObjectMeta,
5080
- persistentId: z181.string(),
5102
+ persistentId: z185.string(),
5081
5103
  targetElementType: ElementPropertyTargetType,
5082
- id: z181.string(),
5083
- isDefault: z181.boolean(),
5084
- columns: z181.array(DTOElementViewColumn)
5104
+ id: z185.string(),
5105
+ isDefault: z185.boolean(),
5106
+ columns: z185.array(DTOElementViewColumn)
5085
5107
  });
5086
- var DTOElementViewsListResponse = z181.object({
5087
- elementDataViews: z181.array(DTOElementView)
5108
+ var DTOElementViewsListResponse = z185.object({
5109
+ elementDataViews: z185.array(DTOElementView)
5088
5110
  });
5089
5111
 
5090
5112
  // src/api/dto/documentation/anchor.ts
5091
- import { z as z182 } from "zod";
5113
+ import { z as z186 } from "zod";
5092
5114
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5093
- var DTOGetDocumentationPageAnchorsResponse = z182.object({
5094
- anchors: z182.array(DTODocumentationPageAnchor)
5115
+ var DTOGetDocumentationPageAnchorsResponse = z186.object({
5116
+ anchors: z186.array(DTODocumentationPageAnchor)
5095
5117
  });
5096
5118
 
5097
5119
  // src/api/dto/documentation/block.ts
5098
5120
  var DTOPageBlockItemV2 = PageBlockItemV2;
5099
5121
 
5100
5122
  // src/api/dto/documentation/documentation-page-snapshot.ts
5101
- import { z as z187 } from "zod";
5123
+ import { z as z191 } from "zod";
5102
5124
 
5103
5125
  // src/api/dto/elements/documentation/page-v2.ts
5104
- import { z as z186 } from "zod";
5126
+ import { z as z190 } from "zod";
5105
5127
 
5106
5128
  // src/api/dto/elements/documentation/draft-state.ts
5107
- import { z as z184 } from "zod";
5129
+ import { z as z188 } from "zod";
5108
5130
 
5109
5131
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5110
- import { z as z183 } from "zod";
5132
+ import { z as z187 } from "zod";
5111
5133
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5112
- var DTODocumentationItemConfigurationV2 = z183.object({
5113
- showSidebar: z183.boolean(),
5114
- isPrivate: z183.boolean(),
5115
- isHidden: z183.boolean(),
5134
+ var DTODocumentationItemConfigurationV2 = z187.object({
5135
+ showSidebar: z187.boolean(),
5136
+ isPrivate: z187.boolean(),
5137
+ isHidden: z187.boolean(),
5116
5138
  header: DTODocumentationItemHeaderV2
5117
5139
  });
5118
5140
 
5119
5141
  // src/api/dto/elements/documentation/draft-state.ts
5120
- var DTODocumentationDraftChangeType = z184.enum(["Created", "Updated", "Deleted"]);
5121
- var DTODocumentationDraftStateCreated = z184.object({
5122
- changeType: z184.literal(DTODocumentationDraftChangeType.enum.Created)
5123
- });
5124
- var DTODocumentationDraftStateUpdated = z184.object({
5125
- changeType: z184.literal(DTODocumentationDraftChangeType.enum.Updated),
5126
- changes: z184.object({
5127
- previousTitle: z184.string().optional(),
5142
+ var DTODocumentationDraftChangeType = z188.enum(["Created", "Updated", "Deleted"]);
5143
+ var DTODocumentationDraftStateCreated = z188.object({
5144
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Created)
5145
+ });
5146
+ var DTODocumentationDraftStateUpdated = z188.object({
5147
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Updated),
5148
+ changes: z188.object({
5149
+ previousTitle: z188.string().optional(),
5128
5150
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5129
- previousContentHash: z184.string().optional()
5151
+ previousContentHash: z188.string().optional()
5130
5152
  })
5131
5153
  });
5132
- var DTODocumentationDraftStateDeleted = z184.object({
5133
- changeType: z184.literal(DTODocumentationDraftChangeType.enum.Deleted),
5134
- deletedAt: z184.coerce.date(),
5135
- deletedByUserId: z184.string()
5154
+ var DTODocumentationDraftStateDeleted = z188.object({
5155
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Deleted),
5156
+ deletedAt: z188.coerce.date(),
5157
+ deletedByUserId: z188.string()
5136
5158
  });
5137
- var DTODocumentationDraftState = z184.discriminatedUnion("changeType", [
5159
+ var DTODocumentationDraftState = z188.discriminatedUnion("changeType", [
5138
5160
  DTODocumentationDraftStateCreated,
5139
5161
  DTODocumentationDraftStateUpdated,
5140
5162
  DTODocumentationDraftStateDeleted
5141
5163
  ]);
5142
5164
 
5143
5165
  // src/api/dto/elements/documentation/metadata.ts
5144
- import { z as z185 } from "zod";
5145
- var DTODocumentationPublishMetadata = z185.object({
5146
- lastPublishedByUserId: z185.string(),
5147
- lastPublishedAt: z185.coerce.date()
5166
+ import { z as z189 } from "zod";
5167
+ var DTODocumentationPublishMetadata = z189.object({
5168
+ lastPublishedByUserId: z189.string(),
5169
+ lastPublishedAt: z189.coerce.date()
5148
5170
  });
5149
5171
 
5150
5172
  // src/api/dto/elements/documentation/page-v2.ts
5151
- var DTODocumentationPageV2 = z186.object({
5152
- id: z186.string(),
5153
- persistentId: z186.string(),
5154
- designSystemVersionId: z186.string(),
5155
- title: z186.string(),
5173
+ var DTODocumentationPageV2 = z190.object({
5174
+ id: z190.string(),
5175
+ persistentId: z190.string(),
5176
+ designSystemVersionId: z190.string(),
5177
+ title: z190.string(),
5156
5178
  configuration: DTODocumentationItemConfigurationV2,
5157
- shortPersistentId: z186.string(),
5158
- slug: z186.string().optional(),
5159
- userSlug: z186.string().optional(),
5160
- createdAt: z186.coerce.date(),
5161
- updatedAt: z186.coerce.date(),
5162
- path: z186.string(),
5179
+ shortPersistentId: z190.string(),
5180
+ slug: z190.string().optional(),
5181
+ userSlug: z190.string().optional(),
5182
+ createdAt: z190.coerce.date(),
5183
+ updatedAt: z190.coerce.date(),
5184
+ path: z190.string(),
5163
5185
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5164
5186
  draftState: DTODocumentationDraftState.optional(),
5165
5187
  /** Defined if a page was published at least once and contains metadata about last publish */
5166
5188
  publishMetadata: DTODocumentationPublishMetadata.optional(),
5167
5189
  // Backward compatibility
5168
- type: z186.literal("Page")
5190
+ type: z190.literal("Page")
5169
5191
  });
5170
- var DTOCreateDocumentationPageInputV2 = z186.object({
5192
+ var DTOCreateDocumentationPageInputV2 = z190.object({
5171
5193
  // Identifier
5172
- persistentId: z186.string().uuid(),
5194
+ persistentId: z190.string().uuid(),
5173
5195
  // Page properties
5174
- title: z186.string(),
5196
+ title: z190.string(),
5175
5197
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5176
5198
  // Page placement properties
5177
- parentPersistentId: z186.string().uuid(),
5178
- afterPersistentId: z186.string().uuid().nullish()
5199
+ parentPersistentId: z190.string().uuid(),
5200
+ afterPersistentId: z190.string().uuid().nullish()
5179
5201
  });
5180
- var DTOUpdateDocumentationPageInputV2 = z186.object({
5202
+ var DTOUpdateDocumentationPageInputV2 = z190.object({
5181
5203
  // Identifier of the group to update
5182
- id: z186.string(),
5204
+ id: z190.string(),
5183
5205
  // Page properties
5184
- title: z186.string().optional(),
5206
+ title: z190.string().optional(),
5185
5207
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5186
5208
  });
5187
- var DTOMoveDocumentationPageInputV2 = z186.object({
5209
+ var DTOMoveDocumentationPageInputV2 = z190.object({
5188
5210
  // Identifier of the group to update
5189
- id: z186.string(),
5211
+ id: z190.string(),
5190
5212
  // Page placement properties
5191
- parentPersistentId: z186.string().uuid(),
5192
- afterPersistentId: z186.string().uuid().nullish()
5213
+ parentPersistentId: z190.string().uuid(),
5214
+ afterPersistentId: z190.string().uuid().nullish()
5193
5215
  });
5194
- var DTODuplicateDocumentationPageInputV2 = z186.object({
5216
+ var DTODuplicateDocumentationPageInputV2 = z190.object({
5195
5217
  // Identifier of the page to duplicate from
5196
- id: z186.string(),
5218
+ id: z190.string(),
5197
5219
  // New page persistent id
5198
- persistentId: z186.string().uuid(),
5220
+ persistentId: z190.string().uuid(),
5199
5221
  // Page placement properties
5200
- parentPersistentId: z186.string().uuid(),
5201
- afterPersistentId: z186.string().uuid().nullish()
5222
+ parentPersistentId: z190.string().uuid(),
5223
+ afterPersistentId: z190.string().uuid().nullish()
5202
5224
  });
5203
- var DTODeleteDocumentationPageInputV2 = z186.object({
5225
+ var DTODeleteDocumentationPageInputV2 = z190.object({
5204
5226
  // Identifier
5205
- id: z186.string()
5227
+ id: z190.string()
5206
5228
  });
5207
- var DTORestoreDocumentationPageInput = z186.object({
5208
- persistentId: z186.string(),
5209
- snapshotId: z186.string().optional()
5229
+ var DTORestoreDocumentationPageInput = z190.object({
5230
+ persistentId: z190.string(),
5231
+ snapshotId: z190.string().optional()
5210
5232
  });
5211
- var DTORestoreDocumentationGroupInput = z186.object({
5212
- persistentId: z186.string(),
5213
- snapshotId: z186.string().optional()
5233
+ var DTORestoreDocumentationGroupInput = z190.object({
5234
+ persistentId: z190.string(),
5235
+ snapshotId: z190.string().optional()
5214
5236
  });
5215
5237
 
5216
5238
  // src/api/dto/documentation/documentation-page-snapshot.ts
5217
- var DTODocumentationPageSnapshot = z187.object({
5218
- id: z187.string(),
5219
- designSystemVersionId: z187.string(),
5220
- createdAt: z187.string(),
5221
- updatedAt: z187.string(),
5239
+ var DTODocumentationPageSnapshot = z191.object({
5240
+ id: z191.string(),
5241
+ designSystemVersionId: z191.string(),
5242
+ createdAt: z191.string(),
5243
+ updatedAt: z191.string(),
5222
5244
  documentationPage: DTODocumentationPageV2,
5223
- pageContentHash: z187.string(),
5245
+ pageContentHash: z191.string(),
5224
5246
  reason: DesignElementSnapshotReason
5225
5247
  });
5226
5248
 
5227
5249
  // src/api/dto/documentation/link-preview.ts
5228
- import { z as z188 } from "zod";
5229
- var DTODocumentationLinkPreviewResponse = z188.object({
5250
+ import { z as z192 } from "zod";
5251
+ var DTODocumentationLinkPreviewResponse = z192.object({
5230
5252
  linkPreview: DocumentationLinkPreview
5231
5253
  });
5232
- var DTODocumentationLinkPreviewRequest = z188.object({
5233
- url: z188.string().optional(),
5234
- documentationItemPersistentId: z188.string().optional()
5254
+ var DTODocumentationLinkPreviewRequest = z192.object({
5255
+ url: z192.string().optional(),
5256
+ documentationItemPersistentId: z192.string().optional()
5235
5257
  });
5236
5258
 
5237
5259
  // src/api/dto/documentation/publish.ts
5238
- import { z as z192 } from "zod";
5260
+ import { z as z196 } from "zod";
5239
5261
 
5240
5262
  // src/api/dto/export/exporter.ts
5241
- import { z as z189 } from "zod";
5242
- var DTOExporterType = z189.enum(["documentation", "code"]);
5243
- var DTOExporterSource = z189.enum(["git", "upload"]);
5244
- var DTOExporterMembershipRole = z189.enum(["Owner", "OwnerArchived", "User"]);
5245
- var DTOExporter = z189.object({
5246
- id: z189.string(),
5247
- name: z189.string(),
5248
- isPrivate: z189.boolean(),
5263
+ import { z as z193 } from "zod";
5264
+ var DTOExporterType = z193.enum(["documentation", "code"]);
5265
+ var DTOExporterSource = z193.enum(["git", "upload"]);
5266
+ var DTOExporterMembershipRole = z193.enum(["Owner", "OwnerArchived", "User"]);
5267
+ var DTOExporter = z193.object({
5268
+ id: z193.string(),
5269
+ name: z193.string(),
5270
+ isPrivate: z193.boolean(),
5249
5271
  exporterType: DTOExporterType,
5250
- isDefaultDocumentationExporter: z189.boolean(),
5251
- iconURL: z189.string().optional(),
5272
+ isDefaultDocumentationExporter: z193.boolean(),
5273
+ iconURL: z193.string().optional(),
5252
5274
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5253
5275
  customBlocks: PulsarCustomBlock.array(),
5254
- blockVariants: z189.record(z189.string(), PulsarContributionVariant.array()),
5255
- usesBrands: z189.boolean(),
5256
- usesThemes: z189.boolean(),
5276
+ blockVariants: z193.record(z193.string(), PulsarContributionVariant.array()),
5277
+ usesBrands: z193.boolean(),
5278
+ usesThemes: z193.boolean(),
5257
5279
  source: DTOExporterSource,
5258
- gitUrl: z189.string().optional(),
5259
- gitBranch: z189.string().optional(),
5260
- gitDirectory: z189.string().optional()
5280
+ gitUrl: z193.string().optional(),
5281
+ gitBranch: z193.string().optional(),
5282
+ gitDirectory: z193.string().optional()
5261
5283
  });
5262
- var DTOExporterMembership = z189.object({
5263
- workspaceId: z189.string(),
5264
- exporterId: z189.string(),
5284
+ var DTOExporterMembership = z193.object({
5285
+ workspaceId: z193.string(),
5286
+ exporterId: z193.string(),
5265
5287
  role: DTOExporterMembershipRole
5266
5288
  });
5267
- var DTOExporterCreateOutput = z189.object({
5289
+ var DTOExporterCreateOutput = z193.object({
5268
5290
  exporter: DTOExporter,
5269
5291
  membership: DTOExporterMembership
5270
5292
  });
5271
- var DTOExporterGitProviderEnum = z189.enum(["github", "gitlab", "bitbucket", "azure"]);
5272
- var DTOExporterCreateInput = z189.object({
5273
- url: z189.string(),
5293
+ var DTOExporterGitProviderEnum = z193.enum(["github", "gitlab", "bitbucket", "azure"]);
5294
+ var DTOExporterCreateInput = z193.object({
5295
+ url: z193.string(),
5274
5296
  provider: DTOExporterGitProviderEnum
5275
5297
  });
5276
- var DTOExporterUpdateInput = z189.object({
5277
- url: z189.string().optional()
5298
+ var DTOExporterUpdateInput = z193.object({
5299
+ url: z193.string().optional()
5278
5300
  });
5279
5301
 
5280
5302
  // src/api/dto/export/filter.ts
5281
5303
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5282
5304
 
5283
5305
  // src/api/dto/export/job.ts
5284
- import { z as z190 } from "zod";
5285
- var DTOExportJobCreatedBy = z190.object({
5286
- userId: z190.string(),
5287
- userName: z190.string()
5306
+ import { z as z194 } from "zod";
5307
+ var DTOExportJobCreatedBy = z194.object({
5308
+ userId: z194.string(),
5309
+ userName: z194.string()
5288
5310
  });
5289
- var DTOExportJobDesignSystemPreview = z190.object({
5290
- id: z190.string(),
5311
+ var DTOExportJobDesignSystemPreview = z194.object({
5312
+ id: z194.string(),
5291
5313
  meta: ObjectMeta
5292
5314
  });
5293
- var DTOExportJobDesignSystemVersionPreview = z190.object({
5294
- id: z190.string(),
5315
+ var DTOExportJobDesignSystemVersionPreview = z194.object({
5316
+ id: z194.string(),
5295
5317
  meta: ObjectMeta,
5296
- version: z190.string(),
5297
- isReadonly: z190.boolean()
5318
+ version: z194.string(),
5319
+ isReadonly: z194.boolean()
5298
5320
  });
5299
- var DTOExportJobDestinations = z190.object({
5321
+ var DTOExportJobDestinations = z194.object({
5300
5322
  s3: ExporterDestinationS3.optional(),
5301
5323
  azure: ExporterDestinationAzure.optional(),
5302
5324
  bitbucket: ExporterDestinationBitbucket.optional(),
5303
5325
  github: ExporterDestinationGithub.optional(),
5304
5326
  gitlab: ExporterDestinationGitlab.optional(),
5305
5327
  documentation: ExporterDestinationDocs.optional(),
5306
- webhookUrl: z190.string().optional()
5328
+ webhookUrl: z194.string().optional()
5307
5329
  });
5308
5330
  var DTOExportJobResult = ExportJobResult.omit({
5309
5331
  sndocs: true
5310
5332
  }).extend({
5311
5333
  documentation: ExportJobDocsDestinationResult.optional()
5312
5334
  });
5313
- var DTOExportJob = z190.object({
5314
- id: z190.string(),
5315
- createdAt: z190.coerce.date(),
5316
- finishedAt: z190.coerce.date().optional(),
5317
- index: z190.number().optional(),
5335
+ var DTOExportJob = z194.object({
5336
+ id: z194.string(),
5337
+ createdAt: z194.coerce.date(),
5338
+ finishedAt: z194.coerce.date().optional(),
5339
+ index: z194.number().optional(),
5318
5340
  status: ExportJobStatus,
5319
- estimatedExecutionTime: z190.number().optional(),
5341
+ estimatedExecutionTime: z194.number().optional(),
5320
5342
  createdBy: DTOExportJobCreatedBy.optional(),
5321
5343
  designSystem: DTOExportJobDesignSystemPreview,
5322
5344
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5323
5345
  destinations: DTOExportJobDestinations,
5324
- exporterId: z190.string(),
5325
- scheduleId: z190.string().optional(),
5346
+ exporterId: z194.string(),
5347
+ scheduleId: z194.string().optional(),
5326
5348
  result: DTOExportJobResult.optional(),
5327
- brandPersistentId: z190.string().optional(),
5328
- themePersistentId: z190.string().optional()
5349
+ brandPersistentId: z194.string().optional(),
5350
+ themePersistentId: z194.string().optional()
5329
5351
  });
5330
- var DTOExportJobResponse = z190.object({
5352
+ var DTOExportJobResponse = z194.object({
5331
5353
  job: DTOExportJob
5332
5354
  });
5333
5355
 
5334
5356
  // src/api/dto/export/pipeline.ts
5335
- import { z as z191 } from "zod";
5336
- var DTOPipeline = z191.object({
5337
- id: z191.string(),
5338
- name: z191.string(),
5357
+ import { z as z195 } from "zod";
5358
+ var DTOPipeline = z195.object({
5359
+ id: z195.string(),
5360
+ name: z195.string(),
5339
5361
  eventType: PipelineEventType,
5340
- isEnabled: z191.boolean(),
5341
- workspaceId: z191.string(),
5342
- designSystemId: z191.string(),
5343
- exporterId: z191.string(),
5344
- brandPersistentId: z191.string().optional(),
5345
- themePersistentId: z191.string().optional(),
5362
+ isEnabled: z195.boolean(),
5363
+ workspaceId: z195.string(),
5364
+ designSystemId: z195.string(),
5365
+ exporterId: z195.string(),
5366
+ brandPersistentId: z195.string().optional(),
5367
+ themePersistentId: z195.string().optional(),
5346
5368
  ...ExportDestinationsMap.shape,
5347
5369
  latestJobs: DTOExportJob.array()
5348
5370
  });
5349
5371
 
5350
5372
  // src/api/dto/documentation/publish.ts
5351
5373
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5352
- var DTOPublishDocumentationRequest = z192.object({
5374
+ var DTOPublishDocumentationRequest = z196.object({
5353
5375
  environment: PublishedDocEnvironment,
5354
5376
  /**
5355
5377
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5357,15 +5379,15 @@ var DTOPublishDocumentationRequest = z192.object({
5357
5379
  */
5358
5380
  changes: DTOPublishDocumentationChanges.optional()
5359
5381
  });
5360
- var DTOPublishDocumentationResponse = z192.object({
5382
+ var DTOPublishDocumentationResponse = z196.object({
5361
5383
  job: DTOExportJob
5362
5384
  });
5363
5385
 
5364
5386
  // src/api/dto/elements/documentation/group-action.ts
5365
- import { z as z194 } from "zod";
5387
+ import { z as z198 } from "zod";
5366
5388
 
5367
5389
  // src/api/dto/elements/documentation/group-v2.ts
5368
- import { z as z193 } from "zod";
5390
+ import { z as z197 } from "zod";
5369
5391
  var DTODocumentationGroupV2 = ElementGroup.omit({
5370
5392
  sortOrder: true,
5371
5393
  parentPersistentId: true,
@@ -5375,139 +5397,139 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5375
5397
  data: true,
5376
5398
  shortPersistentId: true
5377
5399
  }).extend({
5378
- title: z193.string(),
5379
- isRoot: z193.boolean(),
5380
- childrenIds: z193.array(z193.string()),
5400
+ title: z197.string(),
5401
+ isRoot: z197.boolean(),
5402
+ childrenIds: z197.array(z197.string()),
5381
5403
  groupBehavior: DocumentationGroupBehavior,
5382
- shortPersistentId: z193.string(),
5404
+ shortPersistentId: z197.string(),
5383
5405
  configuration: DTODocumentationItemConfigurationV2,
5384
- type: z193.literal("Group"),
5406
+ type: z197.literal("Group"),
5385
5407
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5386
5408
  draftState: DTODocumentationDraftState.optional(),
5387
5409
  /** Defined if a group was published at least once and contains metadata about last publish */
5388
5410
  publishMetadata: DTODocumentationPublishMetadata.optional()
5389
5411
  });
5390
- var DTOCreateDocumentationGroupInput = z193.object({
5412
+ var DTOCreateDocumentationGroupInput = z197.object({
5391
5413
  // Identifier
5392
- persistentId: z193.string().uuid(),
5414
+ persistentId: z197.string().uuid(),
5393
5415
  // Group properties
5394
- title: z193.string(),
5416
+ title: z197.string(),
5395
5417
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5396
5418
  // Group placement properties
5397
- afterPersistentId: z193.string().uuid().nullish(),
5398
- parentPersistentId: z193.string().uuid()
5419
+ afterPersistentId: z197.string().uuid().nullish(),
5420
+ parentPersistentId: z197.string().uuid()
5399
5421
  });
5400
- var DTOUpdateDocumentationGroupInput = z193.object({
5422
+ var DTOUpdateDocumentationGroupInput = z197.object({
5401
5423
  // Identifier of the group to update
5402
- id: z193.string(),
5424
+ id: z197.string(),
5403
5425
  // Group properties
5404
- title: z193.string().optional(),
5426
+ title: z197.string().optional(),
5405
5427
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5406
5428
  });
5407
- var DTOMoveDocumentationGroupInput = z193.object({
5429
+ var DTOMoveDocumentationGroupInput = z197.object({
5408
5430
  // Identifier of the group to update
5409
- id: z193.string(),
5431
+ id: z197.string(),
5410
5432
  // Group placement properties
5411
- parentPersistentId: z193.string().uuid(),
5412
- afterPersistentId: z193.string().uuid().nullish()
5433
+ parentPersistentId: z197.string().uuid(),
5434
+ afterPersistentId: z197.string().uuid().nullish()
5413
5435
  });
5414
- var DTODuplicateDocumentationGroupInput = z193.object({
5436
+ var DTODuplicateDocumentationGroupInput = z197.object({
5415
5437
  // Identifier of the group to duplicate from
5416
- id: z193.string(),
5438
+ id: z197.string(),
5417
5439
  // New group persistent id
5418
- persistentId: z193.string().uuid(),
5440
+ persistentId: z197.string().uuid(),
5419
5441
  // Group placement properties
5420
- afterPersistentId: z193.string().uuid().nullish(),
5421
- parentPersistentId: z193.string().uuid()
5442
+ afterPersistentId: z197.string().uuid().nullish(),
5443
+ parentPersistentId: z197.string().uuid()
5422
5444
  });
5423
- var DTOCreateDocumentationTabInput = z193.object({
5445
+ var DTOCreateDocumentationTabInput = z197.object({
5424
5446
  // New group persistent id
5425
- persistentId: z193.string().uuid(),
5447
+ persistentId: z197.string().uuid(),
5426
5448
  // If this is page, we will attempt to convert it to tab
5427
5449
  // If this is tab group, we will add a new tab to it
5428
- fromItemPersistentId: z193.string(),
5429
- tabName: z193.string()
5450
+ fromItemPersistentId: z197.string(),
5451
+ tabName: z197.string()
5430
5452
  });
5431
- var DTODeleteDocumentationTabGroupInput = z193.object({
5453
+ var DTODeleteDocumentationTabGroupInput = z197.object({
5432
5454
  // Deleted group id
5433
- id: z193.string()
5455
+ id: z197.string()
5434
5456
  });
5435
- var DTODeleteDocumentationGroupInput = z193.object({
5457
+ var DTODeleteDocumentationGroupInput = z197.object({
5436
5458
  // Identifier
5437
- id: z193.string(),
5459
+ id: z197.string(),
5438
5460
  // Deletion options
5439
- deleteSubtree: z193.boolean().default(false)
5461
+ deleteSubtree: z197.boolean().default(false)
5440
5462
  });
5441
5463
 
5442
5464
  // src/api/dto/elements/documentation/group-action.ts
5443
- var SuccessPayload = z194.object({
5444
- success: z194.literal(true)
5465
+ var SuccessPayload = z198.object({
5466
+ success: z198.literal(true)
5445
5467
  });
5446
- var DTODocumentationGroupCreateActionOutputV2 = z194.object({
5447
- type: z194.literal("DocumentationGroupCreate"),
5468
+ var DTODocumentationGroupCreateActionOutputV2 = z198.object({
5469
+ type: z198.literal("DocumentationGroupCreate"),
5448
5470
  output: SuccessPayload
5449
5471
  });
5450
- var DTODocumentationTabCreateActionOutputV2 = z194.object({
5451
- type: z194.literal("DocumentationTabCreate"),
5472
+ var DTODocumentationTabCreateActionOutputV2 = z198.object({
5473
+ type: z198.literal("DocumentationTabCreate"),
5452
5474
  output: SuccessPayload
5453
5475
  });
5454
- var DTODocumentationGroupUpdateActionOutputV2 = z194.object({
5455
- type: z194.literal("DocumentationGroupUpdate"),
5476
+ var DTODocumentationGroupUpdateActionOutputV2 = z198.object({
5477
+ type: z198.literal("DocumentationGroupUpdate"),
5456
5478
  output: SuccessPayload
5457
5479
  });
5458
- var DTODocumentationGroupMoveActionOutputV2 = z194.object({
5459
- type: z194.literal("DocumentationGroupMove"),
5480
+ var DTODocumentationGroupMoveActionOutputV2 = z198.object({
5481
+ type: z198.literal("DocumentationGroupMove"),
5460
5482
  output: SuccessPayload
5461
5483
  });
5462
- var DTODocumentationGroupDuplicateActionOutputV2 = z194.object({
5463
- type: z194.literal("DocumentationGroupDuplicate"),
5484
+ var DTODocumentationGroupDuplicateActionOutputV2 = z198.object({
5485
+ type: z198.literal("DocumentationGroupDuplicate"),
5464
5486
  output: SuccessPayload
5465
5487
  });
5466
- var DTODocumentationGroupDeleteActionOutputV2 = z194.object({
5467
- type: z194.literal("DocumentationGroupDelete"),
5488
+ var DTODocumentationGroupDeleteActionOutputV2 = z198.object({
5489
+ type: z198.literal("DocumentationGroupDelete"),
5468
5490
  output: SuccessPayload
5469
5491
  });
5470
- var DTODocumentationTabGroupDeleteActionOutputV2 = z194.object({
5471
- type: z194.literal("DocumentationTabGroupDelete"),
5492
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z198.object({
5493
+ type: z198.literal("DocumentationTabGroupDelete"),
5472
5494
  output: SuccessPayload
5473
5495
  });
5474
- var DTODocumentationGroupCreateActionInputV2 = z194.object({
5475
- type: z194.literal("DocumentationGroupCreate"),
5496
+ var DTODocumentationGroupCreateActionInputV2 = z198.object({
5497
+ type: z198.literal("DocumentationGroupCreate"),
5476
5498
  input: DTOCreateDocumentationGroupInput
5477
5499
  });
5478
- var DTODocumentationTabCreateActionInputV2 = z194.object({
5479
- type: z194.literal("DocumentationTabCreate"),
5500
+ var DTODocumentationTabCreateActionInputV2 = z198.object({
5501
+ type: z198.literal("DocumentationTabCreate"),
5480
5502
  input: DTOCreateDocumentationTabInput
5481
5503
  });
5482
- var DTODocumentationGroupUpdateActionInputV2 = z194.object({
5483
- type: z194.literal("DocumentationGroupUpdate"),
5504
+ var DTODocumentationGroupUpdateActionInputV2 = z198.object({
5505
+ type: z198.literal("DocumentationGroupUpdate"),
5484
5506
  input: DTOUpdateDocumentationGroupInput
5485
5507
  });
5486
- var DTODocumentationGroupMoveActionInputV2 = z194.object({
5487
- type: z194.literal("DocumentationGroupMove"),
5508
+ var DTODocumentationGroupMoveActionInputV2 = z198.object({
5509
+ type: z198.literal("DocumentationGroupMove"),
5488
5510
  input: DTOMoveDocumentationGroupInput
5489
5511
  });
5490
- var DTODocumentationGroupDuplicateActionInputV2 = z194.object({
5491
- type: z194.literal("DocumentationGroupDuplicate"),
5512
+ var DTODocumentationGroupDuplicateActionInputV2 = z198.object({
5513
+ type: z198.literal("DocumentationGroupDuplicate"),
5492
5514
  input: DTODuplicateDocumentationGroupInput
5493
5515
  });
5494
- var DTODocumentationGroupDeleteActionInputV2 = z194.object({
5495
- type: z194.literal("DocumentationGroupDelete"),
5516
+ var DTODocumentationGroupDeleteActionInputV2 = z198.object({
5517
+ type: z198.literal("DocumentationGroupDelete"),
5496
5518
  input: DTODeleteDocumentationGroupInput
5497
5519
  });
5498
- var DTODocumentationTabGroupDeleteActionInputV2 = z194.object({
5499
- type: z194.literal("DocumentationTabGroupDelete"),
5520
+ var DTODocumentationTabGroupDeleteActionInputV2 = z198.object({
5521
+ type: z198.literal("DocumentationTabGroupDelete"),
5500
5522
  input: DTODeleteDocumentationTabGroupInput
5501
5523
  });
5502
5524
 
5503
5525
  // src/api/dto/elements/documentation/group-v1.ts
5504
- import { z as z196 } from "zod";
5526
+ import { z as z200 } from "zod";
5505
5527
 
5506
5528
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5507
- import { z as z195 } from "zod";
5508
- var DocumentationColorV1 = z195.object({
5509
- aliasTo: z195.string().optional(),
5510
- value: z195.string().optional()
5529
+ import { z as z199 } from "zod";
5530
+ var DocumentationColorV1 = z199.object({
5531
+ aliasTo: z199.string().optional(),
5532
+ value: z199.string().optional()
5511
5533
  });
5512
5534
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5513
5535
  foregroundColor: true,
@@ -5516,10 +5538,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5516
5538
  foregroundColor: DocumentationColorV1.optional(),
5517
5539
  backgroundColor: DocumentationColorV1.optional()
5518
5540
  });
5519
- var DTODocumentationItemConfigurationV1 = z195.object({
5520
- showSidebar: z195.boolean(),
5521
- isPrivate: z195.boolean(),
5522
- isHidden: z195.boolean(),
5541
+ var DTODocumentationItemConfigurationV1 = z199.object({
5542
+ showSidebar: z199.boolean(),
5543
+ isPrivate: z199.boolean(),
5544
+ isHidden: z199.boolean(),
5523
5545
  header: DTODocumentationItemHeaderV1
5524
5546
  });
5525
5547
 
@@ -5533,27 +5555,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5533
5555
  data: true,
5534
5556
  shortPersistentId: true
5535
5557
  }).extend({
5536
- title: z196.string(),
5537
- isRoot: z196.boolean(),
5538
- childrenIds: z196.array(z196.string()),
5558
+ title: z200.string(),
5559
+ isRoot: z200.boolean(),
5560
+ childrenIds: z200.array(z200.string()),
5539
5561
  groupBehavior: DocumentationGroupBehavior,
5540
- shortPersistentId: z196.string(),
5541
- type: z196.literal("Group")
5562
+ shortPersistentId: z200.string(),
5563
+ type: z200.literal("Group")
5542
5564
  });
5543
5565
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5544
5566
  configuration: DTODocumentationItemConfigurationV1
5545
5567
  });
5546
5568
 
5547
5569
  // src/api/dto/elements/documentation/hierarchy.ts
5548
- import { z as z197 } from "zod";
5549
- var DTODocumentationHierarchyV2 = z197.object({
5550
- pages: z197.array(
5570
+ import { z as z201 } from "zod";
5571
+ var DTODocumentationHierarchyV2 = z201.object({
5572
+ pages: z201.array(
5551
5573
  DTODocumentationPageV2.extend({
5552
5574
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5553
5575
  draftState: DTODocumentationDraftState.optional()
5554
5576
  })
5555
5577
  ),
5556
- groups: z197.array(
5578
+ groups: z201.array(
5557
5579
  DTODocumentationGroupV2.extend({
5558
5580
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5559
5581
  draftState: DTODocumentationDraftState.optional()
@@ -5562,76 +5584,76 @@ var DTODocumentationHierarchyV2 = z197.object({
5562
5584
  });
5563
5585
 
5564
5586
  // src/api/dto/elements/documentation/page-actions-v2.ts
5565
- import { z as z198 } from "zod";
5566
- var SuccessPayload2 = z198.object({
5567
- success: z198.literal(true)
5587
+ import { z as z202 } from "zod";
5588
+ var SuccessPayload2 = z202.object({
5589
+ success: z202.literal(true)
5568
5590
  });
5569
- var DTODocumentationPageCreateActionOutputV2 = z198.object({
5570
- type: z198.literal("DocumentationPageCreate"),
5591
+ var DTODocumentationPageCreateActionOutputV2 = z202.object({
5592
+ type: z202.literal("DocumentationPageCreate"),
5571
5593
  output: SuccessPayload2
5572
5594
  });
5573
- var DTODocumentationPageUpdateActionOutputV2 = z198.object({
5574
- type: z198.literal("DocumentationPageUpdate"),
5595
+ var DTODocumentationPageUpdateActionOutputV2 = z202.object({
5596
+ type: z202.literal("DocumentationPageUpdate"),
5575
5597
  output: SuccessPayload2
5576
5598
  });
5577
- var DTODocumentationPageMoveActionOutputV2 = z198.object({
5578
- type: z198.literal("DocumentationPageMove"),
5599
+ var DTODocumentationPageMoveActionOutputV2 = z202.object({
5600
+ type: z202.literal("DocumentationPageMove"),
5579
5601
  output: SuccessPayload2
5580
5602
  });
5581
- var DTODocumentationPageDuplicateActionOutputV2 = z198.object({
5582
- type: z198.literal("DocumentationPageDuplicate"),
5603
+ var DTODocumentationPageDuplicateActionOutputV2 = z202.object({
5604
+ type: z202.literal("DocumentationPageDuplicate"),
5583
5605
  output: SuccessPayload2
5584
5606
  });
5585
- var DTODocumentationPageDeleteActionOutputV2 = z198.object({
5586
- type: z198.literal("DocumentationPageDelete"),
5607
+ var DTODocumentationPageDeleteActionOutputV2 = z202.object({
5608
+ type: z202.literal("DocumentationPageDelete"),
5587
5609
  output: SuccessPayload2
5588
5610
  });
5589
- var DTODocumentationPageRestoreActionOutput = z198.object({
5590
- type: z198.literal("DocumentationPageRestore"),
5611
+ var DTODocumentationPageRestoreActionOutput = z202.object({
5612
+ type: z202.literal("DocumentationPageRestore"),
5591
5613
  output: SuccessPayload2
5592
5614
  });
5593
- var DTODocumentationGroupRestoreActionOutput = z198.object({
5594
- type: z198.literal("DocumentationGroupRestore"),
5615
+ var DTODocumentationGroupRestoreActionOutput = z202.object({
5616
+ type: z202.literal("DocumentationGroupRestore"),
5595
5617
  output: SuccessPayload2
5596
5618
  });
5597
- var DTODocumentationPageCreateActionInputV2 = z198.object({
5598
- type: z198.literal("DocumentationPageCreate"),
5619
+ var DTODocumentationPageCreateActionInputV2 = z202.object({
5620
+ type: z202.literal("DocumentationPageCreate"),
5599
5621
  input: DTOCreateDocumentationPageInputV2
5600
5622
  });
5601
- var DTODocumentationPageUpdateActionInputV2 = z198.object({
5602
- type: z198.literal("DocumentationPageUpdate"),
5623
+ var DTODocumentationPageUpdateActionInputV2 = z202.object({
5624
+ type: z202.literal("DocumentationPageUpdate"),
5603
5625
  input: DTOUpdateDocumentationPageInputV2
5604
5626
  });
5605
- var DTODocumentationPageMoveActionInputV2 = z198.object({
5606
- type: z198.literal("DocumentationPageMove"),
5627
+ var DTODocumentationPageMoveActionInputV2 = z202.object({
5628
+ type: z202.literal("DocumentationPageMove"),
5607
5629
  input: DTOMoveDocumentationPageInputV2
5608
5630
  });
5609
- var DTODocumentationPageDuplicateActionInputV2 = z198.object({
5610
- type: z198.literal("DocumentationPageDuplicate"),
5631
+ var DTODocumentationPageDuplicateActionInputV2 = z202.object({
5632
+ type: z202.literal("DocumentationPageDuplicate"),
5611
5633
  input: DTODuplicateDocumentationPageInputV2
5612
5634
  });
5613
- var DTODocumentationPageDeleteActionInputV2 = z198.object({
5614
- type: z198.literal("DocumentationPageDelete"),
5635
+ var DTODocumentationPageDeleteActionInputV2 = z202.object({
5636
+ type: z202.literal("DocumentationPageDelete"),
5615
5637
  input: DTODeleteDocumentationPageInputV2
5616
5638
  });
5617
- var DTODocumentationPageRestoreActionInput = z198.object({
5618
- type: z198.literal("DocumentationPageRestore"),
5639
+ var DTODocumentationPageRestoreActionInput = z202.object({
5640
+ type: z202.literal("DocumentationPageRestore"),
5619
5641
  input: DTORestoreDocumentationPageInput
5620
5642
  });
5621
- var DTODocumentationGroupRestoreActionInput = z198.object({
5622
- type: z198.literal("DocumentationGroupRestore"),
5643
+ var DTODocumentationGroupRestoreActionInput = z202.object({
5644
+ type: z202.literal("DocumentationGroupRestore"),
5623
5645
  input: DTORestoreDocumentationGroupInput
5624
5646
  });
5625
5647
 
5626
5648
  // src/api/dto/elements/documentation/page-content.ts
5627
- import { z as z199 } from "zod";
5649
+ import { z as z203 } from "zod";
5628
5650
  var DTODocumentationPageContent = DocumentationPageContent;
5629
- var DTODocumentationPageContentGetResponse = z199.object({
5651
+ var DTODocumentationPageContentGetResponse = z203.object({
5630
5652
  pageContent: DTODocumentationPageContent
5631
5653
  });
5632
5654
 
5633
5655
  // src/api/dto/elements/documentation/page-v1.ts
5634
- import { z as z200 } from "zod";
5656
+ import { z as z204 } from "zod";
5635
5657
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5636
5658
  data: true,
5637
5659
  meta: true,
@@ -5639,30 +5661,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5639
5661
  sortOrder: true
5640
5662
  }).extend({
5641
5663
  configuration: DTODocumentationItemConfigurationV1,
5642
- blocks: z200.array(PageBlockV1),
5643
- title: z200.string(),
5644
- path: z200.string()
5664
+ blocks: z204.array(PageBlockV1),
5665
+ title: z204.string(),
5666
+ path: z204.string()
5645
5667
  });
5646
5668
 
5647
5669
  // src/api/dto/elements/figma-nodes/figma-node.ts
5648
- import { z as z201 } from "zod";
5649
- var DTOFigmaNodeOrigin = z201.object({
5650
- sourceId: z201.string(),
5651
- fileId: z201.string().optional(),
5652
- parentName: z201.string().optional()
5670
+ import { z as z205 } from "zod";
5671
+ var DTOFigmaNodeOrigin = z205.object({
5672
+ sourceId: z205.string(),
5673
+ fileId: z205.string().optional(),
5674
+ parentName: z205.string().optional()
5653
5675
  });
5654
- var DTOFigmaNodeData = z201.object({
5676
+ var DTOFigmaNodeData = z205.object({
5655
5677
  // Id of the node in the Figma file
5656
- figmaNodeId: z201.string(),
5678
+ figmaNodeId: z205.string(),
5657
5679
  // Validity
5658
- isValid: z201.boolean(),
5680
+ isValid: z205.boolean(),
5659
5681
  // Asset data
5660
- assetId: z201.string(),
5661
- assetUrl: z201.string(),
5682
+ assetId: z205.string(),
5683
+ assetUrl: z205.string(),
5662
5684
  // Asset metadata
5663
- assetScale: z201.number(),
5664
- assetWidth: z201.number().optional(),
5665
- assetHeight: z201.number().optional()
5685
+ assetScale: z205.number(),
5686
+ assetWidth: z205.number().optional(),
5687
+ assetHeight: z205.number().optional()
5666
5688
  });
5667
5689
  var DTOFigmaNode = FigmaFileStructure.omit({
5668
5690
  data: true,
@@ -5671,105 +5693,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5671
5693
  data: DTOFigmaNodeData,
5672
5694
  origin: DTOFigmaNodeOrigin
5673
5695
  });
5674
- var DTOFigmaNodeRenderInput = z201.object({
5696
+ var DTOFigmaNodeRenderInput = z205.object({
5675
5697
  // Id of a design system's data source representing a linked Figma file
5676
- sourceId: z201.string(),
5698
+ sourceId: z205.string(),
5677
5699
  // Id of a node within the Figma file
5678
- figmaFileNodeId: z201.string()
5700
+ figmaFileNodeId: z205.string()
5679
5701
  });
5680
5702
 
5681
5703
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5682
- import { z as z202 } from "zod";
5683
- var DTOFigmaNodeRenderActionOutput = z202.object({
5684
- type: z202.literal("FigmaNodeRender"),
5685
- figmaNodes: z202.array(DTOFigmaNode)
5704
+ import { z as z206 } from "zod";
5705
+ var DTOFigmaNodeRenderActionOutput = z206.object({
5706
+ type: z206.literal("FigmaNodeRender"),
5707
+ figmaNodes: z206.array(DTOFigmaNode)
5686
5708
  });
5687
- var DTOFigmaNodeRenderActionInput = z202.object({
5688
- type: z202.literal("FigmaNodeRender"),
5709
+ var DTOFigmaNodeRenderActionInput = z206.object({
5710
+ type: z206.literal("FigmaNodeRender"),
5689
5711
  input: DTOFigmaNodeRenderInput.array()
5690
5712
  });
5691
5713
 
5692
5714
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5693
- import { z as z204 } from "zod";
5715
+ import { z as z208 } from "zod";
5694
5716
 
5695
5717
  // src/api/dto/elements/properties/property-definitions.ts
5696
- import { z as z203 } from "zod";
5718
+ import { z as z207 } from "zod";
5697
5719
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5698
- var DTOElementPropertyDefinition = z203.object({
5699
- id: z203.string(),
5700
- designSystemVersionId: z203.string(),
5720
+ var DTOElementPropertyDefinition = z207.object({
5721
+ id: z207.string(),
5722
+ designSystemVersionId: z207.string(),
5701
5723
  meta: ObjectMeta,
5702
- persistentId: z203.string(),
5724
+ persistentId: z207.string(),
5703
5725
  type: ElementPropertyTypeSchema,
5704
5726
  targetElementType: ElementPropertyTargetType,
5705
- codeName: z203.string().regex(CODE_NAME_REGEX2),
5706
- options: z203.array(ElementPropertyDefinitionOption).optional(),
5727
+ codeName: z207.string().regex(CODE_NAME_REGEX2),
5728
+ options: z207.array(ElementPropertyDefinitionOption).optional(),
5707
5729
  linkElementType: ElementPropertyLinkType.optional()
5708
5730
  });
5709
- var DTOElementPropertyDefinitionsGetResponse = z203.object({
5710
- definitions: z203.array(DTOElementPropertyDefinition)
5731
+ var DTOElementPropertyDefinitionsGetResponse = z207.object({
5732
+ definitions: z207.array(DTOElementPropertyDefinition)
5711
5733
  });
5712
5734
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5713
5735
  id: true,
5714
5736
  designSystemVersionId: true
5715
5737
  });
5716
- var DTOUpdateElementPropertyDefinitionInputV2 = z203.object({
5717
- id: z203.string(),
5718
- name: z203.string().optional(),
5719
- description: z203.string().optional(),
5720
- codeName: z203.string().regex(CODE_NAME_REGEX2).optional(),
5721
- options: z203.array(ElementPropertyDefinitionOption).optional()
5738
+ var DTOUpdateElementPropertyDefinitionInputV2 = z207.object({
5739
+ id: z207.string(),
5740
+ name: z207.string().optional(),
5741
+ description: z207.string().optional(),
5742
+ codeName: z207.string().regex(CODE_NAME_REGEX2).optional(),
5743
+ options: z207.array(ElementPropertyDefinitionOption).optional()
5722
5744
  });
5723
- var DTODeleteElementPropertyDefinitionInputV2 = z203.object({
5724
- id: z203.string()
5745
+ var DTODeleteElementPropertyDefinitionInputV2 = z207.object({
5746
+ id: z207.string()
5725
5747
  });
5726
5748
 
5727
5749
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5728
- var SuccessPayload3 = z204.object({
5729
- success: z204.literal(true)
5750
+ var SuccessPayload3 = z208.object({
5751
+ success: z208.literal(true)
5730
5752
  });
5731
- var DTOPropertyDefinitionCreateActionOutputV2 = z204.object({
5732
- type: z204.literal("PropertyDefinitionCreate"),
5753
+ var DTOPropertyDefinitionCreateActionOutputV2 = z208.object({
5754
+ type: z208.literal("PropertyDefinitionCreate"),
5733
5755
  definition: DTOElementPropertyDefinition
5734
5756
  });
5735
- var DTOPropertyDefinitionUpdateActionOutputV2 = z204.object({
5736
- type: z204.literal("PropertyDefinitionUpdate"),
5757
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z208.object({
5758
+ type: z208.literal("PropertyDefinitionUpdate"),
5737
5759
  definition: DTOElementPropertyDefinition
5738
5760
  });
5739
- var DTOPropertyDefinitionDeleteActionOutputV2 = z204.object({
5740
- type: z204.literal("PropertyDefinitionDelete"),
5761
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z208.object({
5762
+ type: z208.literal("PropertyDefinitionDelete"),
5741
5763
  output: SuccessPayload3
5742
5764
  });
5743
- var DTOPropertyDefinitionCreateActionInputV2 = z204.object({
5744
- type: z204.literal("PropertyDefinitionCreate"),
5765
+ var DTOPropertyDefinitionCreateActionInputV2 = z208.object({
5766
+ type: z208.literal("PropertyDefinitionCreate"),
5745
5767
  input: DTOCreateElementPropertyDefinitionInputV2
5746
5768
  });
5747
- var DTOPropertyDefinitionUpdateActionInputV2 = z204.object({
5748
- type: z204.literal("PropertyDefinitionUpdate"),
5769
+ var DTOPropertyDefinitionUpdateActionInputV2 = z208.object({
5770
+ type: z208.literal("PropertyDefinitionUpdate"),
5749
5771
  input: DTOUpdateElementPropertyDefinitionInputV2
5750
5772
  });
5751
- var DTOPropertyDefinitionDeleteActionInputV2 = z204.object({
5752
- type: z204.literal("PropertyDefinitionDelete"),
5773
+ var DTOPropertyDefinitionDeleteActionInputV2 = z208.object({
5774
+ type: z208.literal("PropertyDefinitionDelete"),
5753
5775
  input: DTODeleteElementPropertyDefinitionInputV2
5754
5776
  });
5755
5777
 
5756
5778
  // src/api/dto/elements/properties/property-values.ts
5757
- import { z as z205 } from "zod";
5758
- var DTOElementPropertyValue = z205.object({
5759
- id: z205.string(),
5760
- designSystemVersionId: z205.string(),
5761
- definitionId: z205.string(),
5762
- targetElementId: z205.string(),
5763
- value: z205.union([z205.string(), z205.number(), z205.boolean()]).optional(),
5764
- valuePreview: z205.string().optional()
5779
+ import { z as z209 } from "zod";
5780
+ var DTOElementPropertyValue = z209.object({
5781
+ id: z209.string(),
5782
+ designSystemVersionId: z209.string(),
5783
+ definitionId: z209.string(),
5784
+ targetElementId: z209.string(),
5785
+ value: z209.union([z209.string(), z209.number(), z209.boolean()]).optional(),
5786
+ valuePreview: z209.string().optional()
5765
5787
  });
5766
- var DTOElementPropertyValuesGetResponse = z205.object({
5767
- values: z205.array(DTOElementPropertyValue)
5788
+ var DTOElementPropertyValuesGetResponse = z209.object({
5789
+ values: z209.array(DTOElementPropertyValue)
5768
5790
  });
5769
5791
 
5770
5792
  // src/api/dto/elements/elements-action-v2.ts
5771
- import { z as z206 } from "zod";
5772
- var DTOElementActionOutput = z206.discriminatedUnion("type", [
5793
+ import { z as z210 } from "zod";
5794
+ var DTOElementActionOutput = z210.discriminatedUnion("type", [
5773
5795
  // Documentation pages
5774
5796
  DTODocumentationPageCreateActionOutputV2,
5775
5797
  DTODocumentationPageUpdateActionOutputV2,
@@ -5794,7 +5816,7 @@ var DTOElementActionOutput = z206.discriminatedUnion("type", [
5794
5816
  DTODocumentationPageRestoreActionOutput,
5795
5817
  DTODocumentationGroupRestoreActionOutput
5796
5818
  ]);
5797
- var DTOElementActionInput = z206.discriminatedUnion("type", [
5819
+ var DTOElementActionInput = z210.discriminatedUnion("type", [
5798
5820
  // Documentation pages
5799
5821
  DTODocumentationPageCreateActionInputV2,
5800
5822
  DTODocumentationPageUpdateActionInputV2,
@@ -5821,141 +5843,141 @@ var DTOElementActionInput = z206.discriminatedUnion("type", [
5821
5843
  ]);
5822
5844
 
5823
5845
  // src/api/dto/elements/get-elements-v2.ts
5824
- import { z as z207 } from "zod";
5825
- var DTOElementsGetTypeFilter = z207.enum(["FigmaNode"]);
5826
- var DTOElementsGetQuerySchema = z207.object({
5827
- types: z207.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5846
+ import { z as z211 } from "zod";
5847
+ var DTOElementsGetTypeFilter = z211.enum(["FigmaNode"]);
5848
+ var DTOElementsGetQuerySchema = z211.object({
5849
+ types: z211.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5828
5850
  });
5829
- var DTOElementsGetOutput = z207.object({
5830
- figmaNodes: z207.array(DTOFigmaNode).optional()
5851
+ var DTOElementsGetOutput = z211.object({
5852
+ figmaNodes: z211.array(DTOFigmaNode).optional()
5831
5853
  });
5832
5854
 
5833
5855
  // src/api/dto/figma-components/assets/download.ts
5834
- import { z as z208 } from "zod";
5835
- var DTOAssetRenderConfiguration = z208.object({
5836
- prefix: z208.string().optional(),
5837
- suffix: z208.string().optional(),
5838
- scale: z208.enum(["x1", "x2", "x3", "x4"]),
5839
- format: z208.enum(["png", "pdf", "svg"])
5840
- });
5841
- var DTORenderedAssetFile = z208.object({
5842
- assetId: z208.string(),
5843
- fileName: z208.string(),
5844
- sourceUrl: z208.string(),
5856
+ import { z as z212 } from "zod";
5857
+ var DTOAssetRenderConfiguration = z212.object({
5858
+ prefix: z212.string().optional(),
5859
+ suffix: z212.string().optional(),
5860
+ scale: z212.enum(["x1", "x2", "x3", "x4"]),
5861
+ format: z212.enum(["png", "pdf", "svg"])
5862
+ });
5863
+ var DTORenderedAssetFile = z212.object({
5864
+ assetId: z212.string(),
5865
+ fileName: z212.string(),
5866
+ sourceUrl: z212.string(),
5845
5867
  settings: DTOAssetRenderConfiguration,
5846
- originalName: z208.string()
5868
+ originalName: z212.string()
5847
5869
  });
5848
- var DTODownloadAssetsRequest = z208.object({
5849
- persistentIds: z208.array(z208.string().uuid()).optional(),
5870
+ var DTODownloadAssetsRequest = z212.object({
5871
+ persistentIds: z212.array(z212.string().uuid()).optional(),
5850
5872
  settings: DTOAssetRenderConfiguration.array()
5851
5873
  });
5852
- var DTODownloadAssetsResponse = z208.object({
5874
+ var DTODownloadAssetsResponse = z212.object({
5853
5875
  items: DTORenderedAssetFile.array()
5854
5876
  });
5855
5877
 
5856
5878
  // src/api/dto/liveblocks/auth-response.ts
5857
- import { z as z209 } from "zod";
5858
- var DTOLiveblocksAuthResponse = z209.object({
5859
- token: z209.string()
5879
+ import { z as z213 } from "zod";
5880
+ var DTOLiveblocksAuthResponse = z213.object({
5881
+ token: z213.string()
5860
5882
  });
5861
5883
 
5862
5884
  // src/api/dto/users/profile/update.ts
5863
- import { z as z210 } from "zod";
5864
- var DTOUserProfileUpdateResponse = z210.object({
5885
+ import { z as z214 } from "zod";
5886
+ var DTOUserProfileUpdateResponse = z214.object({
5865
5887
  user: User
5866
5888
  });
5867
5889
 
5868
5890
  // src/api/dto/workspaces/git.ts
5869
- import { z as z211 } from "zod";
5870
- var DTOGitOrganization = z211.object({
5871
- id: z211.string(),
5872
- name: z211.string(),
5873
- url: z211.string(),
5874
- slug: z211.string()
5875
- });
5876
- var DTOGitProject = z211.object({
5877
- id: z211.string(),
5878
- name: z211.string(),
5879
- url: z211.string(),
5880
- slug: z211.string()
5881
- });
5882
- var DTOGitRepository = z211.object({
5883
- id: z211.string(),
5884
- name: z211.string(),
5885
- url: z211.string(),
5886
- slug: z211.string(),
5887
- defaultBranch: z211.string().optional()
5888
- });
5889
- var DTOGitBranch = z211.object({
5890
- name: z211.string(),
5891
- lastCommitId: z211.string()
5891
+ import { z as z215 } from "zod";
5892
+ var DTOGitOrganization = z215.object({
5893
+ id: z215.string(),
5894
+ name: z215.string(),
5895
+ url: z215.string(),
5896
+ slug: z215.string()
5897
+ });
5898
+ var DTOGitProject = z215.object({
5899
+ id: z215.string(),
5900
+ name: z215.string(),
5901
+ url: z215.string(),
5902
+ slug: z215.string()
5903
+ });
5904
+ var DTOGitRepository = z215.object({
5905
+ id: z215.string(),
5906
+ name: z215.string(),
5907
+ url: z215.string(),
5908
+ slug: z215.string(),
5909
+ defaultBranch: z215.string().optional()
5910
+ });
5911
+ var DTOGitBranch = z215.object({
5912
+ name: z215.string(),
5913
+ lastCommitId: z215.string()
5892
5914
  });
5893
5915
 
5894
5916
  // src/api/dto/workspaces/integrations.ts
5895
- import { z as z212 } from "zod";
5917
+ import { z as z216 } from "zod";
5896
5918
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5897
5919
  accessToken: true,
5898
5920
  refreshToken: true
5899
5921
  });
5900
- var DTOIntegration = z212.object({
5901
- id: z212.string(),
5902
- workspaceId: z212.string(),
5922
+ var DTOIntegration = z216.object({
5923
+ id: z216.string(),
5924
+ workspaceId: z216.string(),
5903
5925
  type: ExtendedIntegrationType,
5904
- createdAt: z212.coerce.date(),
5905
- integrationCredentials: z212.array(DTOIntegrationCredentials).optional(),
5906
- integrationDesignSystems: z212.array(IntegrationDesignSystem).optional()
5926
+ createdAt: z216.coerce.date(),
5927
+ integrationCredentials: z216.array(DTOIntegrationCredentials).optional(),
5928
+ integrationDesignSystems: z216.array(IntegrationDesignSystem).optional()
5907
5929
  });
5908
- var DTOIntegrationOAuthGetResponse = z212.object({
5909
- url: z212.string()
5930
+ var DTOIntegrationOAuthGetResponse = z216.object({
5931
+ url: z216.string()
5910
5932
  });
5911
- var DTOIntegrationPostResponse = z212.object({
5933
+ var DTOIntegrationPostResponse = z216.object({
5912
5934
  integration: DTOIntegration
5913
5935
  });
5914
- var DTOIntegrationsGetListResponse = z212.object({
5936
+ var DTOIntegrationsGetListResponse = z216.object({
5915
5937
  integrations: DTOIntegration.array()
5916
5938
  });
5917
5939
 
5918
5940
  // src/api/dto/workspaces/membership.ts
5919
- import { z as z215 } from "zod";
5941
+ import { z as z219 } from "zod";
5920
5942
 
5921
5943
  // src/api/dto/workspaces/workspace.ts
5922
- import { z as z214 } from "zod";
5944
+ import { z as z218 } from "zod";
5923
5945
 
5924
5946
  // src/api/dto/workspaces/npm-registry.ts
5925
- import { z as z213 } from "zod";
5947
+ import { z as z217 } from "zod";
5926
5948
  var DTONpmRegistryConfigConstants = {
5927
5949
  passwordPlaceholder: "redacted"
5928
5950
  };
5929
- var DTONpmRegistryConfig = z213.object({
5951
+ var DTONpmRegistryConfig = z217.object({
5930
5952
  // Registry basic configuration
5931
5953
  registryType: NpmRegistryType,
5932
- registryUrl: z213.string(),
5933
- customRegistryUrl: z213.string().optional(),
5954
+ registryUrl: z217.string(),
5955
+ customRegistryUrl: z217.string().optional(),
5934
5956
  // URL of Supernova NPM packages proxy
5935
- proxyUrl: z213.string(),
5957
+ proxyUrl: z217.string(),
5936
5958
  // Auth configuration
5937
5959
  authType: NpmRegistryAuthType,
5938
- accessToken: z213.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5939
- username: z213.string().optional(),
5940
- password: z213.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5960
+ accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5961
+ username: z217.string().optional(),
5962
+ password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5941
5963
  // NPM package scopes for whih the proxy should be enabled
5942
- enabledScopes: z213.array(z213.string()),
5964
+ enabledScopes: z217.array(z217.string()),
5943
5965
  // True if client should bypass Supernova proxy and connect directly to the registry
5944
5966
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5945
- bypassProxy: z213.boolean()
5967
+ bypassProxy: z217.boolean()
5946
5968
  });
5947
5969
 
5948
5970
  // src/api/dto/workspaces/workspace.ts
5949
- var DTOWorkspace = z214.object({
5950
- id: z214.string(),
5971
+ var DTOWorkspace = z218.object({
5972
+ id: z218.string(),
5951
5973
  profile: WorkspaceProfile,
5952
5974
  subscription: Subscription,
5953
5975
  npmRegistry: DTONpmRegistryConfig.optional()
5954
5976
  });
5955
5977
 
5956
5978
  // src/api/dto/workspaces/membership.ts
5957
- var DTOWorkspaceRole = z215.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5958
- var DTOUserWorkspaceMembership = z215.object({
5979
+ var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5980
+ var DTOUserWorkspaceMembership = z219.object({
5959
5981
  // Workspace the user is a member of
5960
5982
  workspace: DTOWorkspace,
5961
5983
  // Assigned role the user has in the workspace
@@ -5965,8 +5987,8 @@ var DTOUserWorkspaceMembership = z215.object({
5965
5987
  // when a workspace's subscription is downgraded to free tier
5966
5988
  effectiveRole: DTOWorkspaceRole
5967
5989
  });
5968
- var DTOUserWorkspaceMembershipsResponse = z215.object({
5969
- membership: z215.array(DTOUserWorkspaceMembership)
5990
+ var DTOUserWorkspaceMembershipsResponse = z219.object({
5991
+ membership: z219.array(DTOUserWorkspaceMembership)
5970
5992
  });
5971
5993
 
5972
5994
  // src/utils/hash.ts
@@ -6028,7 +6050,7 @@ function generateHash(input, debug = false) {
6028
6050
  }
6029
6051
 
6030
6052
  // src/yjs/design-system-content/documentation-hierarchy.ts
6031
- import { z as z216 } from "zod";
6053
+ import { z as z220 } from "zod";
6032
6054
 
6033
6055
  // src/yjs/version-room/base.ts
6034
6056
  var VersionRoomBaseYDoc = class {
@@ -6448,22 +6470,22 @@ var FrontendVersionRoomYDoc = class {
6448
6470
  };
6449
6471
 
6450
6472
  // src/yjs/design-system-content/documentation-hierarchy.ts
6451
- var DocumentationHierarchySettings = z216.object({
6452
- routingVersion: z216.string(),
6453
- isDraftFeatureAdopted: z216.boolean()
6473
+ var DocumentationHierarchySettings = z220.object({
6474
+ routingVersion: z220.string(),
6475
+ isDraftFeatureAdopted: z220.boolean()
6454
6476
  });
6455
6477
  function yjsToDocumentationHierarchy(doc) {
6456
6478
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6457
6479
  }
6458
6480
 
6459
6481
  // src/yjs/design-system-content/item-configuration.ts
6460
- import { z as z217 } from "zod";
6461
- var DTODocumentationPageRoomHeaderData = z217.object({
6462
- title: z217.string(),
6482
+ import { z as z221 } from "zod";
6483
+ var DTODocumentationPageRoomHeaderData = z221.object({
6484
+ title: z221.string(),
6463
6485
  configuration: DTODocumentationItemConfigurationV2
6464
6486
  });
6465
- var DTODocumentationPageRoomHeaderDataUpdate = z217.object({
6466
- title: z217.string().optional(),
6487
+ var DTODocumentationPageRoomHeaderDataUpdate = z221.object({
6488
+ title: z221.string().optional(),
6467
6489
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6468
6490
  });
6469
6491
  function itemConfigurationToYjs(yDoc, item) {
@@ -6514,7 +6536,7 @@ function yjsToItemConfiguration(yDoc) {
6514
6536
  header: rawHeader
6515
6537
  };
6516
6538
  return {
6517
- title: z217.string().parse(title),
6539
+ title: z221.string().parse(title),
6518
6540
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
6519
6541
  };
6520
6542
  }
@@ -6524,9 +6546,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
6524
6546
  var PageSectionEditorModel = PageSectionEditorModelV2;
6525
6547
 
6526
6548
  // src/yjs/docs-editor/model/page.ts
6527
- import { z as z218 } from "zod";
6528
- var DocumentationPageEditorModel = z218.object({
6529
- blocks: z218.array(DocumentationPageContentItem)
6549
+ import { z as z222 } from "zod";
6550
+ var DocumentationPageEditorModel = z222.object({
6551
+ blocks: z222.array(DocumentationPageContentItem)
6530
6552
  });
6531
6553
 
6532
6554
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -10276,7 +10298,7 @@ var blocks = [
10276
10298
 
10277
10299
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10278
10300
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10279
- import { z as z219 } from "zod";
10301
+ import { z as z223 } from "zod";
10280
10302
  function yDocToPage(yDoc, definitions) {
10281
10303
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10282
10304
  }
@@ -10319,7 +10341,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10319
10341
  return null;
10320
10342
  return {
10321
10343
  id,
10322
- title: getProsemirrorAttribute(prosemirrorNode, "title", z219.string()) ?? "",
10344
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z223.string()) ?? "",
10323
10345
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10324
10346
  };
10325
10347
  }
@@ -10354,7 +10376,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10354
10376
  });
10355
10377
  }
10356
10378
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10357
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z219.string());
10379
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z223.string());
10358
10380
  if (!definitionId) {
10359
10381
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10360
10382
  return [];
@@ -10396,7 +10418,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10396
10418
  if (!id)
10397
10419
  return null;
10398
10420
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10399
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z219.string().optional()));
10421
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z223.string().optional()));
10400
10422
  return {
10401
10423
  id,
10402
10424
  type: "Block",
@@ -10522,10 +10544,10 @@ function parseRichTextAttribute(mark) {
10522
10544
  return null;
10523
10545
  }
10524
10546
  function parseProsemirrorLink(mark) {
10525
- const href = getProsemirrorAttribute(mark, "href", z219.string().optional());
10547
+ const href = getProsemirrorAttribute(mark, "href", z223.string().optional());
10526
10548
  if (!href)
10527
10549
  return null;
10528
- const target = getProsemirrorAttribute(mark, "target", z219.string().optional());
10550
+ const target = getProsemirrorAttribute(mark, "target", z223.string().optional());
10529
10551
  const openInNewTab = target === "_blank";
10530
10552
  if (href.startsWith("@")) {
10531
10553
  return {
@@ -10548,7 +10570,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
10548
10570
  if (!id)
10549
10571
  return null;
10550
10572
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10551
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z219.boolean().optional()) !== false;
10573
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z223.boolean().optional()) !== false;
10552
10574
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
10553
10575
  if (!tableChild) {
10554
10576
  return emptyTable(id, variantId, 0);
@@ -10595,9 +10617,9 @@ function parseAsTableCell(prosemirrorNode) {
10595
10617
  const id = getProsemirrorBlockId(prosemirrorNode);
10596
10618
  if (!id)
10597
10619
  return null;
10598
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z219.string().optional());
10620
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z223.string().optional());
10599
10621
  let columnWidth;
10600
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z219.array(z219.number()).optional());
10622
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z223.array(z223.number()).optional());
10601
10623
  if (columnWidthArray) {
10602
10624
  columnWidth = roundDimension(columnWidthArray[0]);
10603
10625
  }
@@ -10635,7 +10657,7 @@ function parseAsTableNode(prosemirrorNode) {
10635
10657
  value: parseRichText(prosemirrorNode.content ?? [])
10636
10658
  };
10637
10659
  case "image":
10638
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z219.string());
10660
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
10639
10661
  if (!items)
10640
10662
  return null;
10641
10663
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -10752,7 +10774,7 @@ function definitionExpectsPlaceholderItem(definition) {
10752
10774
  );
10753
10775
  }
10754
10776
  function parseBlockItems(prosemirrorNode, definition) {
10755
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z219.string());
10777
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
10756
10778
  if (!itemsString)
10757
10779
  return null;
10758
10780
  const itemsJson = JSON.parse(itemsString);
@@ -10764,18 +10786,18 @@ function parseBlockItems(prosemirrorNode, definition) {
10764
10786
  }
10765
10787
  function parseAppearance(prosemirrorNode) {
10766
10788
  let appearance = {};
10767
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z219.string().optional());
10789
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z223.string().optional());
10768
10790
  if (rawAppearanceString) {
10769
10791
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
10770
10792
  if (parsedAppearance.success) {
10771
10793
  appearance = parsedAppearance.data;
10772
10794
  }
10773
10795
  }
10774
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z219.number().optional());
10796
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z223.number().optional());
10775
10797
  if (columns) {
10776
10798
  appearance.numberOfColumns = columns;
10777
10799
  }
10778
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z219.string().optional());
10800
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z223.string().optional());
10779
10801
  if (backgroundColor) {
10780
10802
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
10781
10803
  if (parsedColor.success) {
@@ -10868,13 +10890,13 @@ function valueSchemaForPropertyType(type) {
10868
10890
  }
10869
10891
  }
10870
10892
  function getProsemirrorBlockId(prosemirrorNode) {
10871
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z219.string());
10893
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z223.string());
10872
10894
  if (!id)
10873
10895
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
10874
10896
  return id;
10875
10897
  }
10876
10898
  function getProsemirrorBlockVariantId(prosemirrorNode) {
10877
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z219.string()));
10899
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z223.string()));
10878
10900
  }
10879
10901
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
10880
10902
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11079,6 +11101,7 @@ export {
11079
11101
  DTOPageBlockDefinitionProperty,
11080
11102
  DTOPageBlockDefinitionVariant,
11081
11103
  DTOPageBlockItemV2,
11104
+ DTOPagination,
11082
11105
  DTOPipeline,
11083
11106
  DTOPipelineCreateBody,
11084
11107
  DTOPipelineTriggerBody,