@supernova-studio/model 0.54.32 → 0.54.34

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
@@ -287,7 +287,7 @@ var CustomDomain = z14.object({
287
287
  });
288
288
 
289
289
  // src/data-dumps/code-integration-dump.ts
290
- import { z as z124 } from "zod";
290
+ import { z as z143 } from "zod";
291
291
 
292
292
  // src/export/exporter.ts
293
293
  import { z as z17 } from "zod";
@@ -390,10 +390,10 @@ var Exporter = z17.object({
390
390
  });
391
391
 
392
392
  // src/export/pipeline.ts
393
- import { z as z123 } from "zod";
393
+ import { z as z142 } from "zod";
394
394
 
395
395
  // src/export/export-destinations.ts
396
- import { z as z122 } from "zod";
396
+ import { z as z141 } from "zod";
397
397
 
398
398
  // src/dsm/assets/asset-dynamo-record.ts
399
399
  import { z as z18 } from "zod";
@@ -3995,272 +3995,590 @@ function pickLatestGroupSnapshots(snapshots) {
3995
3995
  }
3996
3996
 
3997
3997
  // src/dsm/membership/design-system-membership.ts
3998
+ import { z as z132 } from "zod";
3999
+
4000
+ // src/workspace/npm-registry-settings.ts
3998
4001
  import { z as z113 } from "zod";
3999
- var DesignSystemMembership = z113.object({
4000
- id: z113.string(),
4001
- userId: z113.string(),
4002
- designSystemId: z113.string(),
4003
- workspaceMembershipId: z113.string()
4002
+ var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
4003
+ var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4004
+ var NpmRegistryBasicAuthConfig = z113.object({
4005
+ authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
4006
+ username: z113.string(),
4007
+ password: z113.string()
4008
+ });
4009
+ var NpmRegistryBearerAuthConfig = z113.object({
4010
+ authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
4011
+ accessToken: z113.string()
4012
+ });
4013
+ var NpmRegistryNoAuthConfig = z113.object({
4014
+ authType: z113.literal(NpmRegistryAuthType.Enum.None)
4015
+ });
4016
+ var NpmRegistrCustomAuthConfig = z113.object({
4017
+ authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
4018
+ authHeaderName: z113.string(),
4019
+ authHeaderValue: z113.string()
4020
+ });
4021
+ var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
4022
+ NpmRegistryBasicAuthConfig,
4023
+ NpmRegistryBearerAuthConfig,
4024
+ NpmRegistryNoAuthConfig,
4025
+ NpmRegistrCustomAuthConfig
4026
+ ]);
4027
+ var NpmRegistryConfigBase = z113.object({
4028
+ registryType: NpmRegistryType,
4029
+ enabledScopes: z113.array(z113.string()),
4030
+ customRegistryUrl: z113.string().optional(),
4031
+ bypassProxy: z113.boolean().default(false),
4032
+ npmProxyRegistryConfigId: z113.string().optional(),
4033
+ npmProxyVersion: z113.number().optional()
4004
4034
  });
4035
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4005
4036
 
4006
- // src/dsm/views/column.ts
4037
+ // src/workspace/sso-provider.ts
4007
4038
  import { z as z114 } from "zod";
4008
- var ElementViewBaseColumnType = z114.enum(["Name", "Description", "Value", "UpdatedAt"]);
4009
- var ElementViewColumnType = z114.union([
4010
- z114.literal("BaseProperty"),
4011
- z114.literal("PropertyDefinition"),
4012
- z114.literal("Theme")
4039
+ var SsoProvider = z114.object({
4040
+ providerId: z114.string(),
4041
+ defaultAutoInviteValue: z114.boolean(),
4042
+ autoInviteDomains: z114.record(z114.string(), z114.boolean()),
4043
+ skipDocsSupernovaLogin: z114.boolean(),
4044
+ areInvitesDisabled: z114.boolean(),
4045
+ isTestMode: z114.boolean(),
4046
+ emailDomains: z114.array(z114.string()),
4047
+ metadataXml: z114.string().nullish()
4048
+ });
4049
+
4050
+ // src/workspace/user-invite.ts
4051
+ import { z as z116 } from "zod";
4052
+
4053
+ // src/workspace/workspace-role.ts
4054
+ import { z as z115 } from "zod";
4055
+ var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4056
+ var WorkspaceRole = WorkspaceRoleSchema.enum;
4057
+
4058
+ // src/workspace/user-invite.ts
4059
+ var MAX_MEMBERS_COUNT = 100;
4060
+ var UserInvite = z116.object({
4061
+ email: z116.string().email().trim().transform((value) => value.toLowerCase()),
4062
+ role: WorkspaceRoleSchema
4063
+ });
4064
+ var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
4065
+
4066
+ // src/workspace/workspace-configuration.ts
4067
+ import { z as z118 } from "zod";
4068
+
4069
+ // src/workspace/workspace.ts
4070
+ import IPCIDR from "ip-cidr";
4071
+ import { z as z117 } from "zod";
4072
+ var isValidCIDR = (value) => {
4073
+ return IPCIDR.isValidAddress(value);
4074
+ };
4075
+ var WorkspaceIpWhitelistEntry = z117.object({
4076
+ isEnabled: z117.boolean(),
4077
+ name: z117.string(),
4078
+ range: z117.string().refine(isValidCIDR, {
4079
+ message: "Invalid IP CIDR"
4080
+ })
4081
+ });
4082
+ var WorkspaceIpSettings = z117.object({
4083
+ isEnabledForCloud: z117.boolean(),
4084
+ isEnabledForDocs: z117.boolean(),
4085
+ entries: z117.array(WorkspaceIpWhitelistEntry)
4086
+ });
4087
+ var WorkspaceProfile = z117.object({
4088
+ name: z117.string(),
4089
+ handle: z117.string(),
4090
+ color: z117.string(),
4091
+ avatar: nullishToOptional(z117.string()),
4092
+ billingDetails: nullishToOptional(BillingDetails)
4093
+ });
4094
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4095
+ avatar: true
4096
+ });
4097
+ var Workspace = z117.object({
4098
+ id: z117.string(),
4099
+ profile: WorkspaceProfile,
4100
+ subscription: Subscription,
4101
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4102
+ sso: nullishToOptional(SsoProvider),
4103
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4104
+ });
4105
+ var WorkspaceWithDesignSystems = z117.object({
4106
+ workspace: Workspace,
4107
+ designSystems: z117.array(DesignSystem)
4108
+ });
4109
+
4110
+ // src/workspace/workspace-configuration.ts
4111
+ var WorkspaceConfigurationUpdate = z118.object({
4112
+ id: z118.string(),
4113
+ ipWhitelist: WorkspaceIpSettings.optional(),
4114
+ sso: SsoProvider.optional(),
4115
+ npmRegistrySettings: NpmRegistryConfig.optional(),
4116
+ profile: WorkspaceProfileUpdate.optional()
4117
+ });
4118
+
4119
+ // src/workspace/workspace-context.ts
4120
+ import { z as z119 } from "zod";
4121
+ var WorkspaceContext = z119.object({
4122
+ workspaceId: z119.string(),
4123
+ product: ProductCodeSchema,
4124
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4125
+ publicDesignSystem: z119.boolean().optional()
4126
+ });
4127
+
4128
+ // src/workspace/workspace-create.ts
4129
+ import { z as z120 } from "zod";
4130
+ var WORKSPACE_NAME_MIN_LENGTH = 2;
4131
+ var WORKSPACE_NAME_MAX_LENGTH = 64;
4132
+ var HANDLE_MIN_LENGTH = 2;
4133
+ var HANDLE_MAX_LENGTH = 64;
4134
+ var CreateWorkspaceInput = z120.object({
4135
+ name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4136
+ handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4137
+ });
4138
+
4139
+ // src/workspace/workspace-invitations.ts
4140
+ import { z as z121 } from "zod";
4141
+ var WorkspaceInvitation = z121.object({
4142
+ id: z121.string(),
4143
+ email: z121.string().email(),
4144
+ createdAt: z121.coerce.date(),
4145
+ resentAt: z121.coerce.date().nullish(),
4146
+ role: z121.nativeEnum(WorkspaceRole),
4147
+ workspaceId: z121.string(),
4148
+ invitedBy: z121.string()
4149
+ });
4150
+
4151
+ // src/users/linked-integrations.ts
4152
+ import { z as z122 } from "zod";
4153
+ var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
4154
+ var ExternalServiceType = z122.union([
4155
+ z122.literal("figma"),
4156
+ z122.literal("github"),
4157
+ z122.literal("azure"),
4158
+ z122.literal("gitlab"),
4159
+ z122.literal("bitbucket")
4160
+ ]);
4161
+ var IntegrationUserInfo = z122.object({
4162
+ id: z122.string(),
4163
+ handle: z122.string().optional(),
4164
+ avatarUrl: z122.string().optional(),
4165
+ email: z122.string().optional(),
4166
+ authType: IntegrationAuthType.optional(),
4167
+ customUrl: z122.string().optional()
4168
+ });
4169
+ var UserLinkedIntegrations = z122.object({
4170
+ figma: IntegrationUserInfo.optional(),
4171
+ github: IntegrationUserInfo.array().optional(),
4172
+ azure: IntegrationUserInfo.array().optional(),
4173
+ gitlab: IntegrationUserInfo.array().optional(),
4174
+ bitbucket: IntegrationUserInfo.array().optional()
4175
+ });
4176
+
4177
+ // src/users/user-analytics-cleanup-schedule.ts
4178
+ import { z as z123 } from "zod";
4179
+ var UserAnalyticsCleanupSchedule = z123.object({
4180
+ userId: z123.string(),
4181
+ createdAt: z123.coerce.date(),
4182
+ deleteAt: z123.coerce.date()
4183
+ });
4184
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4185
+ createdAt: true
4186
+ });
4187
+
4188
+ // src/users/user-identity.ts
4189
+ import { z as z124 } from "zod";
4190
+ var UserIdentity = z124.object({
4191
+ id: z124.string(),
4192
+ userId: z124.string()
4193
+ });
4194
+
4195
+ // src/users/user-minified.ts
4196
+ import { z as z125 } from "zod";
4197
+ var UserMinified = z125.object({
4198
+ id: z125.string(),
4199
+ name: z125.string(),
4200
+ email: z125.string(),
4201
+ avatar: z125.string().optional()
4202
+ });
4203
+
4204
+ // src/users/user-notification-settings.ts
4205
+ import { z as z126 } from "zod";
4206
+ var LiveblocksNotificationSettings = z126.object({
4207
+ sendCommentNotificationEmails: z126.boolean()
4208
+ });
4209
+ var UserNotificationSettings = z126.object({
4210
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
4211
+ });
4212
+ var defaultNotificationSettings = {
4213
+ liveblocksNotificationSettings: {
4214
+ sendCommentNotificationEmails: true
4215
+ }
4216
+ };
4217
+
4218
+ // src/users/user-profile.ts
4219
+ import { z as z127 } from "zod";
4220
+ var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4221
+ var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4222
+ var UserOnboarding = z127.object({
4223
+ companyName: z127.string().optional(),
4224
+ numberOfPeopleInOrg: z127.string().optional(),
4225
+ numberOfPeopleInDesignTeam: z127.string().optional(),
4226
+ department: UserOnboardingDepartment.optional(),
4227
+ jobTitle: z127.string().optional(),
4228
+ phase: z127.string().optional(),
4229
+ jobLevel: UserOnboardingJobLevel.optional(),
4230
+ designSystemName: z127.string().optional(),
4231
+ defaultDestination: z127.string().optional(),
4232
+ figmaUrl: z127.string().optional(),
4233
+ isPageDraftOnboardingFinished: z127.boolean().optional(),
4234
+ isApprovalsOnboardingFinished: z127.boolean().optional()
4235
+ });
4236
+ var UserProfile = z127.object({
4237
+ name: z127.string(),
4238
+ avatar: z127.string().optional(),
4239
+ nickname: z127.string().optional(),
4240
+ onboarding: UserOnboarding.optional()
4241
+ });
4242
+ var UserProfileUpdate = UserProfile.partial().omit({
4243
+ avatar: true
4244
+ });
4245
+
4246
+ // src/users/user-test.ts
4247
+ import { z as z128 } from "zod";
4248
+ var UserTest = z128.object({
4249
+ id: z128.string(),
4250
+ email: z128.string()
4251
+ });
4252
+
4253
+ // src/users/user.ts
4254
+ import { z as z129 } from "zod";
4255
+ var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
4256
+ var User = z129.object({
4257
+ id: z129.string(),
4258
+ email: z129.string(),
4259
+ emailVerified: z129.boolean(),
4260
+ createdAt: z129.coerce.date(),
4261
+ trialExpiresAt: z129.coerce.date().optional(),
4262
+ profile: UserProfile,
4263
+ linkedIntegrations: UserLinkedIntegrations.optional(),
4264
+ loggedOutAt: z129.coerce.date().optional(),
4265
+ isProtected: z129.boolean(),
4266
+ source: UserSource.optional()
4267
+ });
4268
+
4269
+ // src/workspace/workspace-membership.ts
4270
+ import { z as z130 } from "zod";
4271
+ var WorkspaceMembership = z130.object({
4272
+ id: z130.string(),
4273
+ userId: z130.string(),
4274
+ workspaceId: z130.string(),
4275
+ workspaceRole: z130.nativeEnum(WorkspaceRole),
4276
+ notificationSettings: UserNotificationSettings
4277
+ });
4278
+ var UpdateMembershipRolesInput = z130.object({
4279
+ members: z130.array(
4280
+ z130.object({
4281
+ userId: z130.string(),
4282
+ role: z130.nativeEnum(WorkspaceRole)
4283
+ })
4284
+ )
4285
+ });
4286
+
4287
+ // src/dsm/membership/invitations.ts
4288
+ import { z as z131 } from "zod";
4289
+ var DesignSystemInvitation = z131.object({
4290
+ id: z131.string(),
4291
+ designSystemId: z131.string(),
4292
+ workspaceInvitationId: z131.string()
4293
+ });
4294
+
4295
+ // src/dsm/membership/design-system-membership.ts
4296
+ var DesignSystemMembership = z132.object({
4297
+ id: z132.string(),
4298
+ userId: z132.string(),
4299
+ designSystemId: z132.string(),
4300
+ workspaceMembershipId: z132.string()
4301
+ });
4302
+ var DesignSystemMembers = z132.object({
4303
+ members: DesignSystemMembership.array(),
4304
+ invitations: DesignSystemInvitation.array()
4305
+ });
4306
+ var DesignSystemPendingMemberInvitation = z132.object({
4307
+ inviteId: z132.string()
4308
+ });
4309
+ var DesignSystemUserInvitation = z132.object({
4310
+ userId: z132.string()
4311
+ });
4312
+ var DesignSystemInvite = z132.object({
4313
+ email: z132.string(),
4314
+ workspaceRole: WorkspaceRoleSchema
4315
+ });
4316
+ var DesignSystemMembershipUpdates = z132.object({
4317
+ usersToInvite: DesignSystemUserInvitation.array().optional(),
4318
+ invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4319
+ emailsToInvite: DesignSystemInvite.array().optional(),
4320
+ removeUserIds: z132.string().array().optional(),
4321
+ deleteInvitationIds: z132.string().array().optional()
4322
+ });
4323
+
4324
+ // src/dsm/views/column.ts
4325
+ import { z as z133 } from "zod";
4326
+ var ElementViewBaseColumnType = z133.enum(["Name", "Description", "Value", "UpdatedAt"]);
4327
+ var ElementViewColumnType = z133.union([
4328
+ z133.literal("BaseProperty"),
4329
+ z133.literal("PropertyDefinition"),
4330
+ z133.literal("Theme")
4013
4331
  ]);
4014
- var ElementViewColumnSharedAttributes = z114.object({
4015
- id: z114.string(),
4016
- persistentId: z114.string(),
4017
- elementDataViewId: z114.string(),
4018
- sortPosition: z114.number(),
4019
- width: z114.number()
4332
+ var ElementViewColumnSharedAttributes = z133.object({
4333
+ id: z133.string(),
4334
+ persistentId: z133.string(),
4335
+ elementDataViewId: z133.string(),
4336
+ sortPosition: z133.number(),
4337
+ width: z133.number()
4020
4338
  });
4021
4339
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4022
- type: z114.literal("BaseProperty"),
4340
+ type: z133.literal("BaseProperty"),
4023
4341
  basePropertyType: ElementViewBaseColumnType
4024
4342
  });
4025
4343
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4026
- type: z114.literal("PropertyDefinition"),
4027
- propertyDefinitionId: z114.string()
4344
+ type: z133.literal("PropertyDefinition"),
4345
+ propertyDefinitionId: z133.string()
4028
4346
  });
4029
4347
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4030
- type: z114.literal("Theme"),
4031
- themeId: z114.string()
4348
+ type: z133.literal("Theme"),
4349
+ themeId: z133.string()
4032
4350
  });
4033
- var ElementViewColumn = z114.discriminatedUnion("type", [
4351
+ var ElementViewColumn = z133.discriminatedUnion("type", [
4034
4352
  ElementViewBasePropertyColumn,
4035
4353
  ElementViewPropertyDefinitionColumn,
4036
4354
  ElementViewThemeColumn
4037
4355
  ]);
4038
4356
 
4039
4357
  // src/dsm/views/view.ts
4040
- import { z as z115 } from "zod";
4041
- var ElementView = z115.object({
4042
- id: z115.string(),
4043
- persistentId: z115.string(),
4044
- designSystemVersionId: z115.string(),
4045
- name: z115.string(),
4046
- description: z115.string(),
4358
+ import { z as z134 } from "zod";
4359
+ var ElementView = z134.object({
4360
+ id: z134.string(),
4361
+ persistentId: z134.string(),
4362
+ designSystemVersionId: z134.string(),
4363
+ name: z134.string(),
4364
+ description: z134.string(),
4047
4365
  targetElementType: ElementPropertyTargetType,
4048
- isDefault: z115.boolean()
4366
+ isDefault: z134.boolean()
4049
4367
  });
4050
4368
 
4051
4369
  // src/dsm/brand.ts
4052
- import { z as z116 } from "zod";
4053
- var Brand = z116.object({
4054
- id: z116.string(),
4055
- designSystemVersionId: z116.string(),
4056
- persistentId: z116.string(),
4057
- name: z116.string(),
4058
- description: z116.string()
4370
+ import { z as z135 } from "zod";
4371
+ var Brand = z135.object({
4372
+ id: z135.string(),
4373
+ designSystemVersionId: z135.string(),
4374
+ persistentId: z135.string(),
4375
+ name: z135.string(),
4376
+ description: z135.string()
4059
4377
  });
4060
4378
 
4061
4379
  // src/dsm/design-system.ts
4062
- import { z as z117 } from "zod";
4063
- var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
4064
- var DesignSystemSwitcher = z117.object({
4065
- isEnabled: z117.boolean(),
4066
- designSystemIds: z117.array(z117.string())
4067
- });
4068
- var DesignSystem = z117.object({
4069
- id: z117.string(),
4070
- workspaceId: z117.string(),
4071
- name: z117.string(),
4072
- description: z117.string(),
4073
- docExporterId: nullishToOptional(z117.string()),
4074
- docSlug: z117.string(),
4075
- docUserSlug: nullishToOptional(z117.string()),
4076
- docSlugDeprecated: z117.string(),
4077
- isPublic: z117.boolean(),
4078
- isMultibrand: z117.boolean(),
4079
- docViewUrl: nullishToOptional(z117.string()),
4080
- basePrefixes: z117.array(z117.string()),
4380
+ import { z as z136 } from "zod";
4381
+ var DesignSystemAccessMode = z136.enum(["Open", "InviteOnly"]);
4382
+ var DesignSystemSwitcher = z136.object({
4383
+ isEnabled: z136.boolean(),
4384
+ designSystemIds: z136.array(z136.string())
4385
+ });
4386
+ var DesignSystem = z136.object({
4387
+ id: z136.string(),
4388
+ workspaceId: z136.string(),
4389
+ name: z136.string(),
4390
+ description: z136.string(),
4391
+ docExporterId: nullishToOptional(z136.string()),
4392
+ docSlug: z136.string(),
4393
+ docUserSlug: nullishToOptional(z136.string()),
4394
+ docSlugDeprecated: z136.string(),
4395
+ isPublic: z136.boolean(),
4396
+ isMultibrand: z136.boolean(),
4397
+ docViewUrl: nullishToOptional(z136.string()),
4398
+ basePrefixes: z136.array(z136.string()),
4081
4399
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4082
- isApprovalFeatureEnabled: z117.boolean(),
4083
- approvalRequiredForPublishing: z117.boolean(),
4400
+ isApprovalFeatureEnabled: z136.boolean(),
4401
+ approvalRequiredForPublishing: z136.boolean(),
4084
4402
  accessMode: DesignSystemAccessMode,
4085
- membersGenerated: z117.boolean(),
4086
- createdAt: z117.coerce.date(),
4087
- updatedAt: z117.coerce.date()
4403
+ membersGenerated: z136.boolean(),
4404
+ createdAt: z136.coerce.date(),
4405
+ updatedAt: z136.coerce.date()
4088
4406
  });
4089
4407
 
4090
4408
  // src/dsm/exporter-property-values-collection.ts
4091
- import { z as z118 } from "zod";
4092
- var ExporterPropertyImageValue = z118.object({
4409
+ import { z as z137 } from "zod";
4410
+ var ExporterPropertyImageValue = z137.object({
4093
4411
  asset: PageBlockAsset.optional(),
4094
- assetId: z118.string().optional(),
4095
- assetUrl: z118.string().optional()
4096
- });
4097
- var ExporterPropertyValue = z118.object({
4098
- key: z118.string(),
4099
- value: z118.union([
4100
- z118.number(),
4101
- z118.string(),
4102
- z118.boolean(),
4412
+ assetId: z137.string().optional(),
4413
+ assetUrl: z137.string().optional()
4414
+ });
4415
+ var ExporterPropertyValue = z137.object({
4416
+ key: z137.string(),
4417
+ value: z137.union([
4418
+ z137.number(),
4419
+ z137.string(),
4420
+ z137.boolean(),
4103
4421
  ExporterPropertyImageValue,
4104
4422
  ColorTokenData,
4105
4423
  TypographyTokenData
4106
4424
  ])
4107
4425
  });
4108
- var ExporterPropertyValuesCollection = z118.object({
4109
- id: z118.string(),
4110
- designSystemId: z118.string(),
4111
- exporterId: z118.string(),
4112
- values: z118.array(ExporterPropertyValue)
4426
+ var ExporterPropertyValuesCollection = z137.object({
4427
+ id: z137.string(),
4428
+ designSystemId: z137.string(),
4429
+ exporterId: z137.string(),
4430
+ values: z137.array(ExporterPropertyValue)
4113
4431
  });
4114
4432
 
4115
4433
  // src/dsm/published-doc-page.ts
4116
- import { z as z119 } from "zod";
4434
+ import { z as z138 } from "zod";
4117
4435
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4118
4436
  function tryParseShortPersistentId(url = "/") {
4119
4437
  const lastUrlPart = url.split("/").pop() || "";
4120
4438
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4121
4439
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4122
4440
  }
4123
- var PublishedDocPage = z119.object({
4124
- id: z119.string(),
4125
- publishedDocId: z119.string(),
4126
- pageShortPersistentId: z119.string(),
4127
- pathV1: z119.string(),
4128
- pathV2: z119.string(),
4129
- storagePath: z119.string(),
4130
- locale: z119.string().optional(),
4131
- isPrivate: z119.boolean(),
4132
- isHidden: z119.boolean(),
4133
- createdAt: z119.coerce.date(),
4134
- updatedAt: z119.coerce.date()
4441
+ var PublishedDocPage = z138.object({
4442
+ id: z138.string(),
4443
+ publishedDocId: z138.string(),
4444
+ pageShortPersistentId: z138.string(),
4445
+ pathV1: z138.string(),
4446
+ pathV2: z138.string(),
4447
+ storagePath: z138.string(),
4448
+ locale: z138.string().optional(),
4449
+ isPrivate: z138.boolean(),
4450
+ isHidden: z138.boolean(),
4451
+ createdAt: z138.coerce.date(),
4452
+ updatedAt: z138.coerce.date()
4135
4453
  });
4136
4454
 
4137
4455
  // src/dsm/published-doc.ts
4138
- import { z as z120 } from "zod";
4456
+ import { z as z139 } from "zod";
4139
4457
  var publishedDocEnvironments = ["Live", "Preview"];
4140
- var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
4141
- var PublishedDocsChecksums = z120.record(z120.string());
4142
- var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
4143
- var PublishedDoc = z120.object({
4144
- id: z120.string(),
4145
- designSystemVersionId: z120.string(),
4146
- createdAt: z120.coerce.date(),
4147
- updatedAt: z120.coerce.date(),
4148
- lastPublishedAt: z120.coerce.date(),
4149
- isDefault: z120.boolean(),
4150
- isPublic: z120.boolean(),
4458
+ var PublishedDocEnvironment = z139.enum(publishedDocEnvironments);
4459
+ var PublishedDocsChecksums = z139.record(z139.string());
4460
+ var PublishedDocRoutingVersion = z139.enum(["1", "2"]);
4461
+ var PublishedDoc = z139.object({
4462
+ id: z139.string(),
4463
+ designSystemVersionId: z139.string(),
4464
+ createdAt: z139.coerce.date(),
4465
+ updatedAt: z139.coerce.date(),
4466
+ lastPublishedAt: z139.coerce.date(),
4467
+ isDefault: z139.boolean(),
4468
+ isPublic: z139.boolean(),
4151
4469
  environment: PublishedDocEnvironment,
4152
4470
  checksums: PublishedDocsChecksums,
4153
- storagePath: z120.string(),
4154
- wasMigrated: z120.boolean(),
4471
+ storagePath: z139.string(),
4472
+ wasMigrated: z139.boolean(),
4155
4473
  routingVersion: PublishedDocRoutingVersion,
4156
- usesLocalizations: z120.boolean(),
4157
- wasPublishedWithLocalizations: z120.boolean(),
4158
- tokenCount: z120.number(),
4159
- assetCount: z120.number()
4474
+ usesLocalizations: z139.boolean(),
4475
+ wasPublishedWithLocalizations: z139.boolean(),
4476
+ tokenCount: z139.number(),
4477
+ assetCount: z139.number()
4160
4478
  });
4161
4479
 
4162
4480
  // src/dsm/version.ts
4163
- import { z as z121 } from "zod";
4164
- var DesignSystemVersion = z121.object({
4165
- id: z121.string(),
4166
- version: z121.string(),
4167
- createdAt: z121.coerce.date(),
4168
- designSystemId: z121.string(),
4169
- name: z121.string(),
4170
- comment: z121.string(),
4171
- isReadonly: z121.boolean(),
4172
- changeLog: z121.string(),
4173
- parentId: z121.string().optional(),
4174
- isDraftsFeatureAdopted: z121.boolean()
4175
- });
4176
- var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
4177
- var VersionCreationJob = z121.object({
4178
- id: z121.string(),
4179
- version: z121.string(),
4180
- designSystemId: z121.string(),
4181
- designSystemVersionId: nullishToOptional(z121.string()),
4481
+ import { z as z140 } from "zod";
4482
+ var DesignSystemVersion = z140.object({
4483
+ id: z140.string(),
4484
+ version: z140.string(),
4485
+ createdAt: z140.coerce.date(),
4486
+ designSystemId: z140.string(),
4487
+ name: z140.string(),
4488
+ comment: z140.string(),
4489
+ isReadonly: z140.boolean(),
4490
+ changeLog: z140.string(),
4491
+ parentId: z140.string().optional(),
4492
+ isDraftsFeatureAdopted: z140.boolean()
4493
+ });
4494
+ var VersionCreationJobStatus = z140.enum(["Success", "InProgress", "Error"]);
4495
+ var VersionCreationJob = z140.object({
4496
+ id: z140.string(),
4497
+ version: z140.string(),
4498
+ designSystemId: z140.string(),
4499
+ designSystemVersionId: nullishToOptional(z140.string()),
4182
4500
  status: VersionCreationJobStatus,
4183
- errorMessage: nullishToOptional(z121.string())
4501
+ errorMessage: nullishToOptional(z140.string())
4184
4502
  });
4185
4503
 
4186
4504
  // src/export/export-destinations.ts
4187
4505
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4188
4506
  var BITBUCKET_MAX_LENGTH = 64;
4189
- var ExportJobDocumentationChanges = z122.object({
4190
- pagePersistentIds: z122.string().array(),
4191
- groupPersistentIds: z122.string().array()
4507
+ var ExportJobDocumentationChanges = z141.object({
4508
+ pagePersistentIds: z141.string().array(),
4509
+ groupPersistentIds: z141.string().array()
4192
4510
  });
4193
- var ExporterDestinationDocs = z122.object({
4511
+ var ExporterDestinationDocs = z141.object({
4194
4512
  environment: PublishedDocEnvironment,
4195
4513
  changes: nullishToOptional(ExportJobDocumentationChanges)
4196
4514
  });
4197
- var ExporterDestinationS3 = z122.object({});
4198
- var ExporterDestinationGithub = z122.object({
4199
- credentialId: z122.string().optional(),
4515
+ var ExporterDestinationS3 = z141.object({});
4516
+ var ExporterDestinationGithub = z141.object({
4517
+ credentialId: z141.string().optional(),
4200
4518
  // Repository
4201
- url: z122.string(),
4519
+ url: z141.string(),
4202
4520
  // Location
4203
- branch: z122.string(),
4204
- relativePath: nullishToOptional(z122.string()),
4521
+ branch: z141.string(),
4522
+ relativePath: nullishToOptional(z141.string()),
4205
4523
  // Commit metadata
4206
- commitAuthorName: nullishToOptional(z122.string()),
4207
- commitAuthorEmail: nullishToOptional(z122.string()),
4524
+ commitAuthorName: nullishToOptional(z141.string()),
4525
+ commitAuthorEmail: nullishToOptional(z141.string()),
4208
4526
  // Legacy deprecated fields. Use `credentialId` instead
4209
- connectionId: nullishToOptional(z122.string()),
4210
- userId: nullishToOptional(z122.number())
4527
+ connectionId: nullishToOptional(z141.string()),
4528
+ userId: nullishToOptional(z141.number())
4211
4529
  });
4212
- var ExporterDestinationAzure = z122.object({
4213
- credentialId: z122.string().optional(),
4530
+ var ExporterDestinationAzure = z141.object({
4531
+ credentialId: z141.string().optional(),
4214
4532
  // Repository
4215
- organizationId: z122.string(),
4216
- projectId: z122.string(),
4217
- repositoryId: z122.string(),
4533
+ organizationId: z141.string(),
4534
+ projectId: z141.string(),
4535
+ repositoryId: z141.string(),
4218
4536
  // Commit metadata
4219
- commitAuthorName: nullishToOptional(z122.string()),
4220
- commitAuthorEmail: nullishToOptional(z122.string()),
4537
+ commitAuthorName: nullishToOptional(z141.string()),
4538
+ commitAuthorEmail: nullishToOptional(z141.string()),
4221
4539
  // Location
4222
- branch: z122.string(),
4223
- relativePath: nullishToOptional(z122.string()),
4540
+ branch: z141.string(),
4541
+ relativePath: nullishToOptional(z141.string()),
4224
4542
  // Maybe not needed
4225
- url: nullishToOptional(z122.string()),
4543
+ url: nullishToOptional(z141.string()),
4226
4544
  // Legacy deprecated fields. Use `credentialId` instead
4227
- connectionId: nullishToOptional(z122.string()),
4228
- userId: nullishToOptional(z122.number())
4545
+ connectionId: nullishToOptional(z141.string()),
4546
+ userId: nullishToOptional(z141.number())
4229
4547
  });
4230
- var ExporterDestinationGitlab = z122.object({
4231
- credentialId: z122.string().optional(),
4548
+ var ExporterDestinationGitlab = z141.object({
4549
+ credentialId: z141.string().optional(),
4232
4550
  // Repository
4233
- projectId: z122.string(),
4551
+ projectId: z141.string(),
4234
4552
  // Commit metadata
4235
- commitAuthorName: nullishToOptional(z122.string()),
4236
- commitAuthorEmail: nullishToOptional(z122.string()),
4553
+ commitAuthorName: nullishToOptional(z141.string()),
4554
+ commitAuthorEmail: nullishToOptional(z141.string()),
4237
4555
  // Location
4238
- branch: z122.string(),
4239
- relativePath: nullishToOptional(z122.string()),
4556
+ branch: z141.string(),
4557
+ relativePath: nullishToOptional(z141.string()),
4240
4558
  // Maybe not needed
4241
- url: nullishToOptional(z122.string()),
4559
+ url: nullishToOptional(z141.string()),
4242
4560
  // Legacy deprecated fields. Use `credentialId` instead
4243
- connectionId: nullishToOptional(z122.string()),
4244
- userId: nullishToOptional(z122.number())
4561
+ connectionId: nullishToOptional(z141.string()),
4562
+ userId: nullishToOptional(z141.number())
4245
4563
  });
4246
- var ExporterDestinationBitbucket = z122.object({
4247
- credentialId: z122.string().optional(),
4564
+ var ExporterDestinationBitbucket = z141.object({
4565
+ credentialId: z141.string().optional(),
4248
4566
  // Repository
4249
- workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4250
- projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4251
- repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4567
+ workspaceSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4568
+ projectKey: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4569
+ repoSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4252
4570
  // Commit metadata
4253
- commitAuthorName: nullishToOptional(z122.string()),
4254
- commitAuthorEmail: nullishToOptional(z122.string()),
4571
+ commitAuthorName: nullishToOptional(z141.string()),
4572
+ commitAuthorEmail: nullishToOptional(z141.string()),
4255
4573
  // Location
4256
- branch: z122.string(),
4257
- relativePath: nullishToOptional(z122.string()),
4574
+ branch: z141.string(),
4575
+ relativePath: nullishToOptional(z141.string()),
4258
4576
  // Legacy deprecated fields. Use `credentialId` instead
4259
- connectionId: nullishToOptional(z122.string()),
4260
- userId: nullishToOptional(z122.number())
4577
+ connectionId: nullishToOptional(z141.string()),
4578
+ userId: nullishToOptional(z141.number())
4261
4579
  });
4262
- var ExportDestinationsMap = z122.object({
4263
- webhookUrl: z122.string().optional(),
4580
+ var ExportDestinationsMap = z141.object({
4581
+ webhookUrl: z141.string().optional(),
4264
4582
  destinationSnDocs: ExporterDestinationDocs.optional(),
4265
4583
  destinationS3: ExporterDestinationS3.optional(),
4266
4584
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4270,149 +4588,149 @@ var ExportDestinationsMap = z122.object({
4270
4588
  });
4271
4589
 
4272
4590
  // src/export/pipeline.ts
4273
- var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4274
- var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4275
- var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
4276
- var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4277
- var Pipeline = z123.object({
4278
- id: z123.string(),
4279
- name: z123.string(),
4591
+ var PipelineEventType = z142.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4592
+ var PipelineDestinationGitType = z142.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4593
+ var PipelineDestinationExtraType = z142.enum(["WebhookUrl", "S3", "Documentation"]);
4594
+ var PipelineDestinationType = z142.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4595
+ var Pipeline = z142.object({
4596
+ id: z142.string(),
4597
+ name: z142.string(),
4280
4598
  eventType: PipelineEventType,
4281
- isEnabled: z123.boolean(),
4282
- workspaceId: z123.string(),
4283
- designSystemId: z123.string(),
4284
- exporterId: z123.string(),
4285
- brandPersistentId: z123.string().optional(),
4286
- themePersistentId: z123.string().optional(),
4287
- themePersistentIds: z123.string().array().optional(),
4599
+ isEnabled: z142.boolean(),
4600
+ workspaceId: z142.string(),
4601
+ designSystemId: z142.string(),
4602
+ exporterId: z142.string(),
4603
+ brandPersistentId: z142.string().optional(),
4604
+ themePersistentId: z142.string().optional(),
4605
+ themePersistentIds: z142.string().array().optional(),
4288
4606
  // Destinations
4289
4607
  ...ExportDestinationsMap.shape
4290
4608
  });
4291
4609
 
4292
4610
  // src/data-dumps/code-integration-dump.ts
4293
- var ExportJobDump = z124.object({
4294
- id: z124.string(),
4295
- createdAt: z124.coerce.date(),
4296
- finishedAt: z124.coerce.date(),
4297
- exportArtefacts: z124.string()
4611
+ var ExportJobDump = z143.object({
4612
+ id: z143.string(),
4613
+ createdAt: z143.coerce.date(),
4614
+ finishedAt: z143.coerce.date(),
4615
+ exportArtefacts: z143.string()
4298
4616
  });
4299
- var CodeIntegrationDump = z124.object({
4617
+ var CodeIntegrationDump = z143.object({
4300
4618
  exporters: Exporter.array(),
4301
4619
  pipelines: Pipeline.array(),
4302
4620
  exportJobs: ExportJobDump.array()
4303
4621
  });
4304
4622
 
4305
4623
  // src/data-dumps/design-system-dump.ts
4306
- import { z as z131 } from "zod";
4624
+ import { z as z150 } from "zod";
4307
4625
 
4308
4626
  // src/data-dumps/design-system-version-dump.ts
4309
- import { z as z130 } from "zod";
4627
+ import { z as z149 } from "zod";
4310
4628
 
4311
4629
  // src/liveblocks/rooms/design-system-version-room.ts
4312
- import { z as z125 } from "zod";
4630
+ import { z as z144 } from "zod";
4313
4631
  var DesignSystemVersionRoom = Entity.extend({
4314
- designSystemVersionId: z125.string(),
4315
- liveblocksId: z125.string()
4316
- });
4317
- var DesignSystemVersionRoomInternalSettings = z125.object({
4318
- routingVersion: z125.string(),
4319
- isDraftFeatureAdopted: z125.boolean(),
4320
- isApprovalFeatureEnabled: z125.boolean(),
4321
- approvalRequiredForPublishing: z125.boolean()
4322
- });
4323
- var DesignSystemVersionRoomInitialState = z125.object({
4324
- pages: z125.array(DocumentationPageV2),
4325
- groups: z125.array(ElementGroup),
4326
- pageSnapshots: z125.array(DocumentationPageSnapshot),
4327
- groupSnapshots: z125.array(ElementGroupSnapshot),
4328
- pageApprovals: z125.array(DocumentationPageApproval),
4632
+ designSystemVersionId: z144.string(),
4633
+ liveblocksId: z144.string()
4634
+ });
4635
+ var DesignSystemVersionRoomInternalSettings = z144.object({
4636
+ routingVersion: z144.string(),
4637
+ isDraftFeatureAdopted: z144.boolean(),
4638
+ isApprovalFeatureEnabled: z144.boolean(),
4639
+ approvalRequiredForPublishing: z144.boolean()
4640
+ });
4641
+ var DesignSystemVersionRoomInitialState = z144.object({
4642
+ pages: z144.array(DocumentationPageV2),
4643
+ groups: z144.array(ElementGroup),
4644
+ pageSnapshots: z144.array(DocumentationPageSnapshot),
4645
+ groupSnapshots: z144.array(ElementGroupSnapshot),
4646
+ pageApprovals: z144.array(DocumentationPageApproval),
4329
4647
  internalSettings: DesignSystemVersionRoomInternalSettings
4330
4648
  });
4331
- var DesignSystemVersionRoomUpdate = z125.object({
4332
- pages: z125.array(DocumentationPageV2),
4333
- groups: z125.array(ElementGroup),
4334
- pageIdsToDelete: z125.array(z125.string()),
4335
- groupIdsToDelete: z125.array(z125.string()),
4336
- pageSnapshots: z125.array(DocumentationPageSnapshot),
4337
- groupSnapshots: z125.array(ElementGroupSnapshot),
4338
- pageSnapshotIdsToDelete: z125.array(z125.string()),
4339
- groupSnapshotIdsToDelete: z125.array(z125.string()),
4340
- pageHashesToUpdate: z125.record(z125.string(), z125.string()),
4341
- pageApprovals: z125.array(DocumentationPageApproval),
4342
- pageApprovalIdsToDelete: z125.array(z125.string())
4649
+ var DesignSystemVersionRoomUpdate = z144.object({
4650
+ pages: z144.array(DocumentationPageV2),
4651
+ groups: z144.array(ElementGroup),
4652
+ pageIdsToDelete: z144.array(z144.string()),
4653
+ groupIdsToDelete: z144.array(z144.string()),
4654
+ pageSnapshots: z144.array(DocumentationPageSnapshot),
4655
+ groupSnapshots: z144.array(ElementGroupSnapshot),
4656
+ pageSnapshotIdsToDelete: z144.array(z144.string()),
4657
+ groupSnapshotIdsToDelete: z144.array(z144.string()),
4658
+ pageHashesToUpdate: z144.record(z144.string(), z144.string()),
4659
+ pageApprovals: z144.array(DocumentationPageApproval),
4660
+ pageApprovalIdsToDelete: z144.array(z144.string())
4343
4661
  });
4344
4662
 
4345
4663
  // src/liveblocks/rooms/documentation-page-room.ts
4346
- import { z as z126 } from "zod";
4664
+ import { z as z145 } from "zod";
4347
4665
  var DocumentationPageRoom = Entity.extend({
4348
- designSystemVersionId: z126.string(),
4349
- documentationPageId: z126.string(),
4350
- liveblocksId: z126.string(),
4351
- isDirty: z126.boolean()
4666
+ designSystemVersionId: z145.string(),
4667
+ documentationPageId: z145.string(),
4668
+ liveblocksId: z145.string(),
4669
+ isDirty: z145.boolean()
4352
4670
  });
4353
- var DocumentationPageRoomState = z126.object({
4354
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4671
+ var DocumentationPageRoomState = z145.object({
4672
+ pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4355
4673
  itemConfiguration: DocumentationItemConfigurationV2
4356
4674
  });
4357
- var DocumentationPageRoomRoomUpdate = z126.object({
4675
+ var DocumentationPageRoomRoomUpdate = z145.object({
4358
4676
  page: DocumentationPageV2,
4359
4677
  pageParent: ElementGroup
4360
4678
  });
4361
4679
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4362
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4363
- blockDefinitions: z126.array(PageBlockDefinition)
4680
+ pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4681
+ blockDefinitions: z145.array(PageBlockDefinition)
4364
4682
  });
4365
- var RestoredDocumentationPage = z126.object({
4683
+ var RestoredDocumentationPage = z145.object({
4366
4684
  page: DocumentationPageV2,
4367
4685
  pageParent: ElementGroup,
4368
4686
  pageContent: DocumentationPageContentData,
4369
- contentHash: z126.string(),
4370
- snapshotId: z126.string(),
4371
- roomId: z126.string().optional()
4687
+ contentHash: z145.string(),
4688
+ snapshotId: z145.string(),
4689
+ roomId: z145.string().optional()
4372
4690
  });
4373
- var RestoredDocumentationGroup = z126.object({
4691
+ var RestoredDocumentationGroup = z145.object({
4374
4692
  group: ElementGroup,
4375
4693
  parent: ElementGroup
4376
4694
  });
4377
4695
 
4378
4696
  // src/liveblocks/rooms/room-type.ts
4379
- import { z as z127 } from "zod";
4697
+ import { z as z146 } from "zod";
4380
4698
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4381
4699
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4382
4700
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4383
4701
  RoomTypeEnum2["Workspace"] = "workspace";
4384
4702
  return RoomTypeEnum2;
4385
4703
  })(RoomTypeEnum || {});
4386
- var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
4704
+ var RoomTypeSchema = z146.nativeEnum(RoomTypeEnum);
4387
4705
  var RoomType = RoomTypeSchema.enum;
4388
4706
 
4389
4707
  // src/liveblocks/rooms/workspace-room.ts
4390
- import { z as z128 } from "zod";
4708
+ import { z as z147 } from "zod";
4391
4709
  var WorkspaceRoom = Entity.extend({
4392
- workspaceId: z128.string(),
4393
- liveblocksId: z128.string()
4710
+ workspaceId: z147.string(),
4711
+ liveblocksId: z147.string()
4394
4712
  });
4395
4713
 
4396
4714
  // src/data-dumps/published-docs-dump.ts
4397
- import { z as z129 } from "zod";
4398
- var PublishedDocsDump = z129.object({
4715
+ import { z as z148 } from "zod";
4716
+ var PublishedDocsDump = z148.object({
4399
4717
  documentation: PublishedDoc,
4400
4718
  pages: PublishedDocPage.array()
4401
4719
  });
4402
4720
 
4403
4721
  // src/data-dumps/design-system-version-dump.ts
4404
- var DocumentationThreadDump = z130.object({
4722
+ var DocumentationThreadDump = z149.object({
4405
4723
  thread: DocumentationCommentThread,
4406
4724
  comments: DocumentationComment.array()
4407
4725
  });
4408
- var DocumentationPageRoomDump = z130.object({
4726
+ var DocumentationPageRoomDump = z149.object({
4409
4727
  room: DocumentationPageRoom,
4410
4728
  threads: DocumentationThreadDump.array()
4411
4729
  });
4412
- var DesignSystemVersionMultiplayerDump = z130.object({
4730
+ var DesignSystemVersionMultiplayerDump = z149.object({
4413
4731
  documentationPages: DocumentationPageRoomDump.array()
4414
4732
  });
4415
- var DesignSystemVersionDump = z130.object({
4733
+ var DesignSystemVersionDump = z149.object({
4416
4734
  version: DesignSystemVersion,
4417
4735
  brands: Brand.array(),
4418
4736
  elements: DesignElement.array(),
@@ -4427,7 +4745,7 @@ var DesignSystemVersionDump = z130.object({
4427
4745
  });
4428
4746
 
4429
4747
  // src/data-dumps/design-system-dump.ts
4430
- var DesignSystemDump = z131.object({
4748
+ var DesignSystemDump = z150.object({
4431
4749
  designSystem: DesignSystem,
4432
4750
  dataSources: DataSource.array(),
4433
4751
  versions: DesignSystemVersionDump.array(),
@@ -4436,168 +4754,50 @@ var DesignSystemDump = z131.object({
4436
4754
  });
4437
4755
 
4438
4756
  // src/data-dumps/user-data-dump.ts
4439
- import { z as z145 } from "zod";
4440
-
4441
- // src/users/linked-integrations.ts
4442
- import { z as z132 } from "zod";
4443
- var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
4444
- var ExternalServiceType = z132.union([
4445
- z132.literal("figma"),
4446
- z132.literal("github"),
4447
- z132.literal("azure"),
4448
- z132.literal("gitlab"),
4449
- z132.literal("bitbucket")
4450
- ]);
4451
- var IntegrationUserInfo = z132.object({
4452
- id: z132.string(),
4453
- handle: z132.string().optional(),
4454
- avatarUrl: z132.string().optional(),
4455
- email: z132.string().optional(),
4456
- authType: IntegrationAuthType.optional(),
4457
- customUrl: z132.string().optional()
4458
- });
4459
- var UserLinkedIntegrations = z132.object({
4460
- figma: IntegrationUserInfo.optional(),
4461
- github: IntegrationUserInfo.array().optional(),
4462
- azure: IntegrationUserInfo.array().optional(),
4463
- gitlab: IntegrationUserInfo.array().optional(),
4464
- bitbucket: IntegrationUserInfo.array().optional()
4465
- });
4466
-
4467
- // src/users/user-analytics-cleanup-schedule.ts
4468
- import { z as z133 } from "zod";
4469
- var UserAnalyticsCleanupSchedule = z133.object({
4470
- userId: z133.string(),
4471
- createdAt: z133.coerce.date(),
4472
- deleteAt: z133.coerce.date()
4473
- });
4474
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4475
- createdAt: true
4476
- });
4477
-
4478
- // src/users/user-identity.ts
4479
- import { z as z134 } from "zod";
4480
- var UserIdentity = z134.object({
4481
- id: z134.string(),
4482
- userId: z134.string()
4483
- });
4484
-
4485
- // src/users/user-minified.ts
4486
- import { z as z135 } from "zod";
4487
- var UserMinified = z135.object({
4488
- id: z135.string(),
4489
- name: z135.string(),
4490
- email: z135.string(),
4491
- avatar: z135.string().optional()
4492
- });
4493
-
4494
- // src/users/user-notification-settings.ts
4495
- import { z as z136 } from "zod";
4496
- var LiveblocksNotificationSettings = z136.object({
4497
- sendCommentNotificationEmails: z136.boolean()
4498
- });
4499
- var UserNotificationSettings = z136.object({
4500
- liveblocksNotificationSettings: LiveblocksNotificationSettings
4501
- });
4502
- var defaultNotificationSettings = {
4503
- liveblocksNotificationSettings: {
4504
- sendCommentNotificationEmails: true
4505
- }
4506
- };
4507
-
4508
- // src/users/user-profile.ts
4509
- import { z as z137 } from "zod";
4510
- var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4511
- var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4512
- var UserOnboarding = z137.object({
4513
- companyName: z137.string().optional(),
4514
- numberOfPeopleInOrg: z137.string().optional(),
4515
- numberOfPeopleInDesignTeam: z137.string().optional(),
4516
- department: UserOnboardingDepartment.optional(),
4517
- jobTitle: z137.string().optional(),
4518
- phase: z137.string().optional(),
4519
- jobLevel: UserOnboardingJobLevel.optional(),
4520
- designSystemName: z137.string().optional(),
4521
- defaultDestination: z137.string().optional(),
4522
- figmaUrl: z137.string().optional(),
4523
- isPageDraftOnboardingFinished: z137.boolean().optional(),
4524
- isApprovalsOnboardingFinished: z137.boolean().optional()
4525
- });
4526
- var UserProfile = z137.object({
4527
- name: z137.string(),
4528
- avatar: z137.string().optional(),
4529
- nickname: z137.string().optional(),
4530
- onboarding: UserOnboarding.optional()
4531
- });
4532
- var UserProfileUpdate = UserProfile.partial().omit({
4533
- avatar: true
4534
- });
4535
-
4536
- // src/users/user-test.ts
4537
- import { z as z138 } from "zod";
4538
- var UserTest = z138.object({
4539
- id: z138.string(),
4540
- email: z138.string()
4541
- });
4542
-
4543
- // src/users/user.ts
4544
- import { z as z139 } from "zod";
4545
- var UserSource = z139.enum(["SignUp", "Invite", "SSO"]);
4546
- var User = z139.object({
4547
- id: z139.string(),
4548
- email: z139.string(),
4549
- emailVerified: z139.boolean(),
4550
- createdAt: z139.coerce.date(),
4551
- trialExpiresAt: z139.coerce.date().optional(),
4552
- profile: UserProfile,
4553
- linkedIntegrations: UserLinkedIntegrations.optional(),
4554
- loggedOutAt: z139.coerce.date().optional(),
4555
- isProtected: z139.boolean(),
4556
- source: UserSource.optional()
4557
- });
4757
+ import { z as z153 } from "zod";
4558
4758
 
4559
4759
  // src/data-dumps/workspace-dump.ts
4560
- import { z as z144 } from "zod";
4760
+ import { z as z152 } from "zod";
4561
4761
 
4562
4762
  // src/integrations/integration.ts
4563
- import { z as z140 } from "zod";
4564
- var IntegrationDesignSystem = z140.object({
4565
- designSystemId: z140.string(),
4566
- brandId: z140.string(),
4567
- title: z140.string().optional(),
4568
- userId: z140.string().optional(),
4569
- date: z140.coerce.date().optional()
4570
- });
4571
- var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
4572
- var IntegrationCredentialsState = z140.enum(["Active", "Inactive"]);
4573
- var IntegrationCredentialsProfile = z140.object({
4574
- id: nullishToOptional(z140.string()),
4575
- email: nullishToOptional(z140.string()),
4576
- handle: nullishToOptional(z140.string()),
4577
- type: nullishToOptional(z140.string()),
4578
- avatarUrl: nullishToOptional(z140.string()),
4579
- organization: nullishToOptional(z140.string()),
4580
- collection: nullishToOptional(z140.string())
4581
- });
4582
- var IntegrationCredentials = z140.object({
4583
- id: z140.string(),
4763
+ import { z as z151 } from "zod";
4764
+ var IntegrationDesignSystem = z151.object({
4765
+ designSystemId: z151.string(),
4766
+ brandId: z151.string(),
4767
+ title: z151.string().optional(),
4768
+ userId: z151.string().optional(),
4769
+ date: z151.coerce.date().optional()
4770
+ });
4771
+ var IntegrationCredentialsType = z151.enum(["OAuth2", "PAT", "GithubApp"]);
4772
+ var IntegrationCredentialsState = z151.enum(["Active", "Inactive"]);
4773
+ var IntegrationCredentialsProfile = z151.object({
4774
+ id: nullishToOptional(z151.string()),
4775
+ email: nullishToOptional(z151.string()),
4776
+ handle: nullishToOptional(z151.string()),
4777
+ type: nullishToOptional(z151.string()),
4778
+ avatarUrl: nullishToOptional(z151.string()),
4779
+ organization: nullishToOptional(z151.string()),
4780
+ collection: nullishToOptional(z151.string())
4781
+ });
4782
+ var IntegrationCredentials = z151.object({
4783
+ id: z151.string(),
4584
4784
  type: IntegrationCredentialsType,
4585
- integrationId: z140.string(),
4586
- accessToken: z140.string(),
4587
- userId: z140.string(),
4588
- createdAt: z140.coerce.date(),
4589
- refreshToken: z140.string().optional(),
4590
- tokenName: z140.string().optional(),
4591
- expiresAt: z140.coerce.date().optional(),
4592
- refreshedAt: z140.coerce.date().optional(),
4593
- username: z140.string().optional(),
4594
- appInstallationId: z140.string().optional(),
4785
+ integrationId: z151.string(),
4786
+ accessToken: z151.string(),
4787
+ userId: z151.string(),
4788
+ createdAt: z151.coerce.date(),
4789
+ refreshToken: z151.string().optional(),
4790
+ tokenName: z151.string().optional(),
4791
+ expiresAt: z151.coerce.date().optional(),
4792
+ refreshedAt: z151.coerce.date().optional(),
4793
+ username: z151.string().optional(),
4794
+ appInstallationId: z151.string().optional(),
4595
4795
  profile: IntegrationCredentialsProfile.optional(),
4596
- customUrl: z140.string().optional(),
4796
+ customUrl: z151.string().optional(),
4597
4797
  state: IntegrationCredentialsState,
4598
4798
  user: UserMinified.optional()
4599
4799
  });
4600
- var ExtendedIntegrationType = z140.enum([
4800
+ var ExtendedIntegrationType = z151.enum([
4601
4801
  "Figma",
4602
4802
  "Github",
4603
4803
  "Gitlab",
@@ -4608,26 +4808,26 @@ var ExtendedIntegrationType = z140.enum([
4608
4808
  ]);
4609
4809
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4610
4810
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4611
- var Integration = z140.object({
4612
- id: z140.string(),
4613
- workspaceId: z140.string(),
4811
+ var Integration = z151.object({
4812
+ id: z151.string(),
4813
+ workspaceId: z151.string(),
4614
4814
  type: IntegrationType,
4615
- createdAt: z140.coerce.date(),
4616
- integrationCredentials: z140.array(IntegrationCredentials).optional()
4617
- });
4618
- var IntegrationToken = z140.object({
4619
- access_token: z140.string(),
4620
- refresh_token: z140.string().optional(),
4621
- expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
4622
- token_type: z140.string().optional(),
4623
- token_name: z140.string().optional(),
4624
- token_azure_organization_name: z140.string().optional(),
4815
+ createdAt: z151.coerce.date(),
4816
+ integrationCredentials: z151.array(IntegrationCredentials).optional()
4817
+ });
4818
+ var IntegrationToken = z151.object({
4819
+ access_token: z151.string(),
4820
+ refresh_token: z151.string().optional(),
4821
+ expires_in: z151.union([z151.number().optional(), z151.string().optional()]),
4822
+ token_type: z151.string().optional(),
4823
+ token_name: z151.string().optional(),
4824
+ token_azure_organization_name: z151.string().optional(),
4625
4825
  // Azure Cloud PAT only
4626
- token_azure_collection_name: z140.string().optional(),
4826
+ token_azure_collection_name: z151.string().optional(),
4627
4827
  // Azure Server PAT only
4628
- token_bitbucket_username: z140.string().optional(),
4828
+ token_bitbucket_username: z151.string().optional(),
4629
4829
  // Bitbucket only
4630
- custom_url: z140.string().optional().transform((value) => {
4830
+ custom_url: z151.string().optional().transform((value) => {
4631
4831
  if (!value?.trim())
4632
4832
  return void 0;
4633
4833
  return formatCustomUrl(value);
@@ -4664,101 +4864,8 @@ function formatCustomUrl(url) {
4664
4864
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4665
4865
  }
4666
4866
 
4667
- // src/workspace/workspace.ts
4668
- import IPCIDR from "ip-cidr";
4669
- import { z as z143 } from "zod";
4670
-
4671
- // src/workspace/npm-registry-settings.ts
4672
- import { z as z141 } from "zod";
4673
- var NpmRegistryAuthType = z141.enum(["Basic", "Bearer", "None", "Custom"]);
4674
- var NpmRegistryType = z141.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4675
- var NpmRegistryBasicAuthConfig = z141.object({
4676
- authType: z141.literal(NpmRegistryAuthType.Enum.Basic),
4677
- username: z141.string(),
4678
- password: z141.string()
4679
- });
4680
- var NpmRegistryBearerAuthConfig = z141.object({
4681
- authType: z141.literal(NpmRegistryAuthType.Enum.Bearer),
4682
- accessToken: z141.string()
4683
- });
4684
- var NpmRegistryNoAuthConfig = z141.object({
4685
- authType: z141.literal(NpmRegistryAuthType.Enum.None)
4686
- });
4687
- var NpmRegistrCustomAuthConfig = z141.object({
4688
- authType: z141.literal(NpmRegistryAuthType.Enum.Custom),
4689
- authHeaderName: z141.string(),
4690
- authHeaderValue: z141.string()
4691
- });
4692
- var NpmRegistryAuthConfig = z141.discriminatedUnion("authType", [
4693
- NpmRegistryBasicAuthConfig,
4694
- NpmRegistryBearerAuthConfig,
4695
- NpmRegistryNoAuthConfig,
4696
- NpmRegistrCustomAuthConfig
4697
- ]);
4698
- var NpmRegistryConfigBase = z141.object({
4699
- registryType: NpmRegistryType,
4700
- enabledScopes: z141.array(z141.string()),
4701
- customRegistryUrl: z141.string().optional(),
4702
- bypassProxy: z141.boolean().default(false),
4703
- npmProxyRegistryConfigId: z141.string().optional(),
4704
- npmProxyVersion: z141.number().optional()
4705
- });
4706
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4707
-
4708
- // src/workspace/sso-provider.ts
4709
- import { z as z142 } from "zod";
4710
- var SsoProvider = z142.object({
4711
- providerId: z142.string(),
4712
- defaultAutoInviteValue: z142.boolean(),
4713
- autoInviteDomains: z142.record(z142.string(), z142.boolean()),
4714
- skipDocsSupernovaLogin: z142.boolean(),
4715
- areInvitesDisabled: z142.boolean(),
4716
- isTestMode: z142.boolean(),
4717
- emailDomains: z142.array(z142.string()),
4718
- metadataXml: z142.string().nullish()
4719
- });
4720
-
4721
- // src/workspace/workspace.ts
4722
- var isValidCIDR = (value) => {
4723
- return IPCIDR.isValidAddress(value);
4724
- };
4725
- var WorkspaceIpWhitelistEntry = z143.object({
4726
- isEnabled: z143.boolean(),
4727
- name: z143.string(),
4728
- range: z143.string().refine(isValidCIDR, {
4729
- message: "Invalid IP CIDR"
4730
- })
4731
- });
4732
- var WorkspaceIpSettings = z143.object({
4733
- isEnabledForCloud: z143.boolean(),
4734
- isEnabledForDocs: z143.boolean(),
4735
- entries: z143.array(WorkspaceIpWhitelistEntry)
4736
- });
4737
- var WorkspaceProfile = z143.object({
4738
- name: z143.string(),
4739
- handle: z143.string(),
4740
- color: z143.string(),
4741
- avatar: nullishToOptional(z143.string()),
4742
- billingDetails: nullishToOptional(BillingDetails)
4743
- });
4744
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4745
- avatar: true
4746
- });
4747
- var Workspace = z143.object({
4748
- id: z143.string(),
4749
- profile: WorkspaceProfile,
4750
- subscription: Subscription,
4751
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4752
- sso: nullishToOptional(SsoProvider),
4753
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4754
- });
4755
- var WorkspaceWithDesignSystems = z143.object({
4756
- workspace: Workspace,
4757
- designSystems: z143.array(DesignSystem)
4758
- });
4759
-
4760
4867
  // src/data-dumps/workspace-dump.ts
4761
- var WorkspaceDump = z144.object({
4868
+ var WorkspaceDump = z152.object({
4762
4869
  workspace: Workspace,
4763
4870
  designSystems: DesignSystemDump.array(),
4764
4871
  codeIntegration: CodeIntegrationDump,
@@ -4766,94 +4873,94 @@ var WorkspaceDump = z144.object({
4766
4873
  });
4767
4874
 
4768
4875
  // src/data-dumps/user-data-dump.ts
4769
- var UserDump = z145.object({
4876
+ var UserDump = z153.object({
4770
4877
  user: User,
4771
4878
  workspaces: WorkspaceDump.array()
4772
4879
  });
4773
4880
 
4774
4881
  // src/docs-server/session.ts
4775
- import { z as z146 } from "zod";
4776
- var NpmProxyToken = z146.object({
4777
- access: z146.string(),
4778
- expiresAt: z146.number()
4882
+ import { z as z154 } from "zod";
4883
+ var NpmProxyToken = z154.object({
4884
+ access: z154.string(),
4885
+ expiresAt: z154.number()
4779
4886
  });
4780
- var SessionData = z146.object({
4781
- returnToUrl: z146.string().optional(),
4887
+ var SessionData = z154.object({
4888
+ returnToUrl: z154.string().optional(),
4782
4889
  npmProxyToken: NpmProxyToken.optional()
4783
4890
  });
4784
- var Session = z146.object({
4785
- id: z146.string(),
4786
- expiresAt: z146.coerce.date(),
4787
- userId: z146.string().nullable(),
4891
+ var Session = z154.object({
4892
+ id: z154.string(),
4893
+ expiresAt: z154.coerce.date(),
4894
+ userId: z154.string().nullable(),
4788
4895
  data: SessionData
4789
4896
  });
4790
- var AuthTokens = z146.object({
4791
- access: z146.string(),
4792
- refresh: z146.string()
4897
+ var AuthTokens = z154.object({
4898
+ access: z154.string(),
4899
+ refresh: z154.string()
4793
4900
  });
4794
- var UserSession = z146.object({
4901
+ var UserSession = z154.object({
4795
4902
  session: Session,
4796
4903
  user: User.nullable()
4797
4904
  });
4798
4905
 
4799
4906
  // src/events/base.ts
4800
- import { z as z149 } from "zod";
4907
+ import { z as z157 } from "zod";
4801
4908
 
4802
4909
  // src/events/data-source-imported.ts
4803
- import { z as z147 } from "zod";
4804
- var EventDataSourceImported = z147.object({
4805
- type: z147.literal("DataSourceImported"),
4806
- workspaceId: z147.string(),
4807
- designSystemId: z147.string()
4910
+ import { z as z155 } from "zod";
4911
+ var EventDataSourceImported = z155.object({
4912
+ type: z155.literal("DataSourceImported"),
4913
+ workspaceId: z155.string(),
4914
+ designSystemId: z155.string()
4808
4915
  });
4809
4916
 
4810
4917
  // src/events/version-released.ts
4811
- import { z as z148 } from "zod";
4812
- var EventVersionReleased = z148.object({
4813
- type: z148.literal("DesignSystemVersionReleased"),
4814
- workspaceId: z148.string(),
4815
- designSystemId: z148.string(),
4816
- versionId: z148.string()
4918
+ import { z as z156 } from "zod";
4919
+ var EventVersionReleased = z156.object({
4920
+ type: z156.literal("DesignSystemVersionReleased"),
4921
+ workspaceId: z156.string(),
4922
+ designSystemId: z156.string(),
4923
+ versionId: z156.string()
4817
4924
  });
4818
4925
 
4819
4926
  // src/events/base.ts
4820
- var Event = z149.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4927
+ var Event = z157.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4821
4928
 
4822
4929
  // src/export/export-runner/export-context.ts
4823
- import { z as z150 } from "zod";
4824
- var ExportJobDocumentationContext = z150.object({
4825
- isSingleVersionDocs: z150.boolean(),
4826
- versionSlug: z150.string(),
4930
+ import { z as z158 } from "zod";
4931
+ var ExportJobDocumentationContext = z158.object({
4932
+ isSingleVersionDocs: z158.boolean(),
4933
+ versionSlug: z158.string(),
4827
4934
  environment: PublishedDocEnvironment
4828
4935
  });
4829
- var ExportJobContext = z150.object({
4830
- apiUrl: z150.string(),
4831
- accessToken: z150.string(),
4832
- designSystemId: z150.string(),
4833
- designSystemName: z150.string(),
4834
- exporterId: z150.string(),
4835
- versionId: z150.string(),
4836
- brandId: z150.string().optional(),
4837
- themeId: z150.string().optional(),
4838
- themePersistentIds: z150.string().array().optional(),
4839
- exporterName: z150.string(),
4840
- exporterPackageUrl: z150.string(),
4936
+ var ExportJobContext = z158.object({
4937
+ apiUrl: z158.string(),
4938
+ accessToken: z158.string(),
4939
+ designSystemId: z158.string(),
4940
+ designSystemName: z158.string(),
4941
+ exporterId: z158.string(),
4942
+ versionId: z158.string(),
4943
+ brandId: z158.string().optional(),
4944
+ themeId: z158.string().optional(),
4945
+ themePersistentIds: z158.string().array().optional(),
4946
+ exporterName: z158.string(),
4947
+ exporterPackageUrl: z158.string(),
4841
4948
  exporterPropertyValues: ExporterPropertyValue.array(),
4842
4949
  documentation: ExportJobDocumentationContext.optional()
4843
4950
  });
4844
4951
 
4845
4952
  // src/export/export-runner/exporter-payload.ts
4846
- import { z as z151 } from "zod";
4847
- var ExporterFunctionPayload = z151.object({
4848
- exportJobId: z151.string(),
4849
- exportContextId: z151.string(),
4850
- designSystemId: z151.string(),
4851
- workspaceId: z151.string()
4953
+ import { z as z159 } from "zod";
4954
+ var ExporterFunctionPayload = z159.object({
4955
+ exportJobId: z159.string(),
4956
+ exportContextId: z159.string(),
4957
+ designSystemId: z159.string(),
4958
+ workspaceId: z159.string()
4852
4959
  });
4853
4960
 
4854
4961
  // src/export/export-jobs.ts
4855
- import { z as z152 } from "zod";
4856
- var ExportJobDestinationType = z152.enum([
4962
+ import { z as z160 } from "zod";
4963
+ var ExportJobDestinationType = z160.enum([
4857
4964
  "s3",
4858
4965
  "webhookUrl",
4859
4966
  "github",
@@ -4862,30 +4969,30 @@ var ExportJobDestinationType = z152.enum([
4862
4969
  "gitlab",
4863
4970
  "bitbucket"
4864
4971
  ]);
4865
- var ExportJobStatus = z152.enum(["InProgress", "Success", "Failed", "Timeout"]);
4866
- var ExportJobLogEntryType = z152.enum(["success", "info", "warning", "error", "user"]);
4867
- var ExportJobLogEntry = z152.object({
4868
- id: z152.string().optional(),
4869
- time: z152.coerce.date(),
4972
+ var ExportJobStatus = z160.enum(["InProgress", "Success", "Failed", "Timeout"]);
4973
+ var ExportJobLogEntryType = z160.enum(["success", "info", "warning", "error", "user"]);
4974
+ var ExportJobLogEntry = z160.object({
4975
+ id: z160.string().optional(),
4976
+ time: z160.coerce.date(),
4870
4977
  type: ExportJobLogEntryType,
4871
- message: z152.string()
4978
+ message: z160.string()
4872
4979
  });
4873
- var ExportJobPullRequestDestinationResult = z152.object({
4874
- pullRequestUrl: z152.string()
4980
+ var ExportJobPullRequestDestinationResult = z160.object({
4981
+ pullRequestUrl: z160.string()
4875
4982
  });
4876
- var ExportJobS3DestinationResult = z152.object({
4877
- bucket: z152.string(),
4878
- urlPrefix: z152.string().optional(),
4879
- path: z152.string(),
4880
- files: z152.array(z152.string()),
4881
- url: nullishToOptional(z152.string()),
4882
- urls: nullishToOptional(z152.string().array())
4983
+ var ExportJobS3DestinationResult = z160.object({
4984
+ bucket: z160.string(),
4985
+ urlPrefix: z160.string().optional(),
4986
+ path: z160.string(),
4987
+ files: z160.array(z160.string()),
4988
+ url: nullishToOptional(z160.string()),
4989
+ urls: nullishToOptional(z160.string().array())
4883
4990
  });
4884
- var ExportJobDocsDestinationResult = z152.object({
4885
- url: z152.string()
4991
+ var ExportJobDocsDestinationResult = z160.object({
4992
+ url: z160.string()
4886
4993
  });
4887
- var ExportJobResult = z152.object({
4888
- error: z152.string().optional(),
4994
+ var ExportJobResult = z160.object({
4995
+ error: z160.string().optional(),
4889
4996
  s3: nullishToOptional(ExportJobS3DestinationResult),
4890
4997
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4891
4998
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4894,22 +5001,22 @@ var ExportJobResult = z152.object({
4894
5001
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4895
5002
  logs: nullishToOptional(ExportJobLogEntry.array())
4896
5003
  });
4897
- var ExportJob = z152.object({
4898
- id: z152.string(),
4899
- createdAt: z152.coerce.date(),
4900
- finishedAt: z152.coerce.date().optional(),
4901
- designSystemId: z152.string(),
4902
- designSystemVersionId: z152.string(),
4903
- workspaceId: z152.string(),
4904
- scheduleId: z152.string().nullish(),
4905
- exporterId: z152.string(),
4906
- brandId: z152.string().optional(),
4907
- themeId: z152.string().optional(),
4908
- themePersistentIds: z152.string().array().optional(),
4909
- estimatedExecutionTime: z152.number().optional(),
5004
+ var ExportJob = z160.object({
5005
+ id: z160.string(),
5006
+ createdAt: z160.coerce.date(),
5007
+ finishedAt: z160.coerce.date().optional(),
5008
+ designSystemId: z160.string(),
5009
+ designSystemVersionId: z160.string(),
5010
+ workspaceId: z160.string(),
5011
+ scheduleId: z160.string().nullish(),
5012
+ exporterId: z160.string(),
5013
+ brandId: z160.string().optional(),
5014
+ themeId: z160.string().optional(),
5015
+ themePersistentIds: z160.string().array().optional(),
5016
+ estimatedExecutionTime: z160.number().optional(),
4910
5017
  status: ExportJobStatus,
4911
5018
  result: ExportJobResult.optional(),
4912
- createdByUserId: z152.string().optional(),
5019
+ createdByUserId: z160.string().optional(),
4913
5020
  // Destinations
4914
5021
  ...ExportDestinationsMap.shape
4915
5022
  });
@@ -4923,40 +5030,40 @@ var ExportJobFindByFilter = ExportJob.pick({
4923
5030
  themeId: true,
4924
5031
  brandId: true
4925
5032
  }).extend({
4926
- destinations: z152.array(ExportJobDestinationType),
5033
+ destinations: z160.array(ExportJobDestinationType),
4927
5034
  docsEnvironment: PublishedDocEnvironment
4928
5035
  }).partial();
4929
5036
 
4930
5037
  // src/export/exporter-workspace-membership-role.ts
4931
- import { z as z153 } from "zod";
4932
- var ExporterWorkspaceMembershipRole = z153.enum(["Owner", "OwnerArchived", "User"]);
5038
+ import { z as z161 } from "zod";
5039
+ var ExporterWorkspaceMembershipRole = z161.enum(["Owner", "OwnerArchived", "User"]);
4933
5040
 
4934
5041
  // src/export/exporter-workspace-membership.ts
4935
- import { z as z154 } from "zod";
4936
- var ExporterWorkspaceMembership = z154.object({
4937
- id: z154.string(),
4938
- workspaceId: z154.string(),
4939
- exporterId: z154.string(),
5042
+ import { z as z162 } from "zod";
5043
+ var ExporterWorkspaceMembership = z162.object({
5044
+ id: z162.string(),
5045
+ workspaceId: z162.string(),
5046
+ exporterId: z162.string(),
4940
5047
  role: ExporterWorkspaceMembershipRole
4941
5048
  });
4942
5049
 
4943
5050
  // src/feature-flags/feature-flags.ts
4944
- import { z as z155 } from "zod";
4945
- var FlaggedFeature = z155.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4946
- var FeatureFlagMap = z155.record(FlaggedFeature, z155.boolean());
4947
- var FeatureFlag = z155.object({
4948
- id: z155.string(),
5051
+ import { z as z163 } from "zod";
5052
+ var FlaggedFeature = z163.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
5053
+ var FeatureFlagMap = z163.record(FlaggedFeature, z163.boolean());
5054
+ var FeatureFlag = z163.object({
5055
+ id: z163.string(),
4949
5056
  feature: FlaggedFeature,
4950
- createdAt: z155.coerce.date(),
4951
- enabled: z155.boolean(),
4952
- designSystemId: z155.string().optional()
5057
+ createdAt: z163.coerce.date(),
5058
+ enabled: z163.boolean(),
5059
+ designSystemId: z163.string().optional()
4953
5060
  });
4954
5061
 
4955
5062
  // src/integrations/external-oauth-request.ts
4956
- import { z as z157 } from "zod";
5063
+ import { z as z165 } from "zod";
4957
5064
 
4958
5065
  // src/integrations/oauth-providers.ts
4959
- import { z as z156 } from "zod";
5066
+ import { z as z164 } from "zod";
4960
5067
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4961
5068
  OAuthProviderNames2["Figma"] = "figma";
4962
5069
  OAuthProviderNames2["Azure"] = "azure";
@@ -4965,218 +5072,127 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4965
5072
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4966
5073
  return OAuthProviderNames2;
4967
5074
  })(OAuthProviderNames || {});
4968
- var OAuthProviderSchema = z156.nativeEnum(OAuthProviderNames);
5075
+ var OAuthProviderSchema = z164.nativeEnum(OAuthProviderNames);
4969
5076
  var OAuthProvider = OAuthProviderSchema.enum;
4970
5077
 
4971
5078
  // src/integrations/external-oauth-request.ts
4972
- var ExternalOAuthRequest = z157.object({
4973
- id: z157.string(),
5079
+ var ExternalOAuthRequest = z165.object({
5080
+ id: z165.string(),
4974
5081
  provider: OAuthProviderSchema,
4975
- userId: z157.string(),
4976
- state: z157.string(),
4977
- createdAt: z157.coerce.date()
5082
+ userId: z165.string(),
5083
+ state: z165.string(),
5084
+ createdAt: z165.coerce.date()
4978
5085
  });
4979
5086
 
4980
5087
  // src/integrations/git.ts
4981
- import { z as z158 } from "zod";
4982
- var GitObjectsQuery = z158.object({
4983
- organization: z158.string().optional(),
5088
+ import { z as z166 } from "zod";
5089
+ var GitObjectsQuery = z166.object({
5090
+ organization: z166.string().optional(),
4984
5091
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4985
- project: z158.string().optional(),
5092
+ project: z166.string().optional(),
4986
5093
  // Only for Bitbucket and Azure
4987
- repository: z158.string().optional(),
5094
+ repository: z166.string().optional(),
4988
5095
  // For all providers. For Gitlab, it's called "project".
4989
- branch: z158.string().optional(),
5096
+ branch: z166.string().optional(),
4990
5097
  // For all providers.
4991
- user: z158.string().optional()
5098
+ user: z166.string().optional()
4992
5099
  // Gitlab user
4993
5100
  });
4994
- var GitOrganization = z158.object({
4995
- id: z158.string(),
4996
- name: z158.string(),
4997
- url: z158.string(),
4998
- slug: z158.string()
4999
- });
5000
- var GitProject = z158.object({
5001
- id: z158.string(),
5002
- name: z158.string(),
5003
- url: z158.string(),
5004
- slug: z158.string()
5005
- });
5006
- var GitRepository = z158.object({
5007
- id: z158.string(),
5008
- name: z158.string(),
5009
- url: z158.string(),
5010
- slug: z158.string(),
5101
+ var GitOrganization = z166.object({
5102
+ id: z166.string(),
5103
+ name: z166.string(),
5104
+ url: z166.string(),
5105
+ slug: z166.string()
5106
+ });
5107
+ var GitProject = z166.object({
5108
+ id: z166.string(),
5109
+ name: z166.string(),
5110
+ url: z166.string(),
5111
+ slug: z166.string()
5112
+ });
5113
+ var GitRepository = z166.object({
5114
+ id: z166.string(),
5115
+ name: z166.string(),
5116
+ url: z166.string(),
5117
+ slug: z166.string(),
5011
5118
  /**
5012
5119
  * Can be undefined when:
5013
5120
  * - there are no branches in the repository yet
5014
5121
  * - Git provider doesn't expose this information on a repository via their API
5015
5122
  */
5016
- defaultBranch: z158.string().optional()
5123
+ defaultBranch: z166.string().optional()
5017
5124
  });
5018
- var GitBranch = z158.object({
5019
- name: z158.string(),
5020
- lastCommitId: z158.string()
5125
+ var GitBranch = z166.object({
5126
+ name: z166.string(),
5127
+ lastCommitId: z166.string()
5021
5128
  });
5022
5129
 
5023
5130
  // src/integrations/oauth-token.ts
5024
- import { z as z159 } from "zod";
5025
- var IntegrationTokenSchemaOld = z159.object({
5026
- id: z159.string(),
5131
+ import { z as z167 } from "zod";
5132
+ var IntegrationTokenSchemaOld = z167.object({
5133
+ id: z167.string(),
5027
5134
  provider: OAuthProviderSchema,
5028
- scope: z159.string(),
5029
- userId: z159.string(),
5030
- accessToken: z159.string(),
5031
- refreshToken: z159.string(),
5032
- expiresAt: z159.coerce.date(),
5033
- externalUserId: z159.string().nullish()
5135
+ scope: z167.string(),
5136
+ userId: z167.string(),
5137
+ accessToken: z167.string(),
5138
+ refreshToken: z167.string(),
5139
+ expiresAt: z167.coerce.date(),
5140
+ externalUserId: z167.string().nullish()
5034
5141
  });
5035
5142
 
5036
5143
  // src/integrations/workspace-oauth-requests.ts
5037
- import { z as z160 } from "zod";
5038
- var WorkspaceOAuthRequestSchema = z160.object({
5039
- id: z160.string(),
5040
- workspaceId: z160.string(),
5144
+ import { z as z168 } from "zod";
5145
+ var WorkspaceOAuthRequestSchema = z168.object({
5146
+ id: z168.string(),
5147
+ workspaceId: z168.string(),
5041
5148
  provider: OAuthProviderSchema,
5042
- userId: z160.string(),
5043
- createdAt: z160.coerce.date()
5149
+ userId: z168.string(),
5150
+ createdAt: z168.coerce.date()
5044
5151
  });
5045
5152
 
5046
5153
  // src/npm/npm-package.ts
5047
- import { z as z161 } from "zod";
5048
- var AnyRecord = z161.record(z161.any());
5154
+ import { z as z169 } from "zod";
5155
+ var AnyRecord = z169.record(z169.any());
5049
5156
  var NpmPackageVersionDist = AnyRecord.and(
5050
- z161.object({
5051
- tarball: z161.string()
5157
+ z169.object({
5158
+ tarball: z169.string()
5052
5159
  })
5053
5160
  );
5054
5161
  var NpmPackageVersion = AnyRecord.and(
5055
- z161.object({
5162
+ z169.object({
5056
5163
  dist: NpmPackageVersionDist
5057
5164
  })
5058
5165
  );
5059
5166
  var NpmPackage = AnyRecord.and(
5060
- z161.object({
5061
- _id: z161.string(),
5062
- name: z161.string(),
5167
+ z169.object({
5168
+ _id: z169.string(),
5169
+ name: z169.string(),
5063
5170
  // e.g. "latest": "1.2.3"
5064
- "dist-tags": z161.record(z161.string(), z161.string()),
5171
+ "dist-tags": z169.record(z169.string(), z169.string()),
5065
5172
  // "1.2.3": {...}
5066
- versions: z161.record(NpmPackageVersion)
5173
+ versions: z169.record(NpmPackageVersion)
5067
5174
  })
5068
5175
  );
5069
5176
 
5070
5177
  // src/npm/npm-proxy-token-payload.ts
5071
- import { z as z162 } from "zod";
5072
- var NpmProxyTokenPayload = z162.object({
5073
- npmProxyRegistryConfigId: z162.string()
5074
- });
5075
-
5076
- // src/tokens/personal-access-token.ts
5077
5178
  import { z as z170 } from "zod";
5078
-
5079
- // src/workspace/user-invite.ts
5080
- import { z as z164 } from "zod";
5081
-
5082
- // src/workspace/workspace-role.ts
5083
- import { z as z163 } from "zod";
5084
- var WorkspaceRoleSchema = z163.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5085
- var WorkspaceRole = WorkspaceRoleSchema.enum;
5086
-
5087
- // src/workspace/user-invite.ts
5088
- var MAX_MEMBERS_COUNT = 100;
5089
- var UserInvite = z164.object({
5090
- email: z164.string().email().trim().transform((value) => value.toLowerCase()),
5091
- role: WorkspaceRoleSchema
5092
- });
5093
- var UserInvites = z164.array(UserInvite).max(MAX_MEMBERS_COUNT);
5094
-
5095
- // src/workspace/workspace-configuration.ts
5096
- import { z as z165 } from "zod";
5097
- var WorkspaceConfigurationUpdate = z165.object({
5098
- id: z165.string(),
5099
- ipWhitelist: WorkspaceIpSettings.optional(),
5100
- sso: SsoProvider.optional(),
5101
- npmRegistrySettings: NpmRegistryConfig.optional(),
5102
- profile: WorkspaceProfileUpdate.optional()
5103
- });
5104
-
5105
- // src/workspace/workspace-context.ts
5106
- import { z as z166 } from "zod";
5107
- var WorkspaceContext = z166.object({
5108
- workspaceId: z166.string(),
5109
- product: ProductCodeSchema,
5110
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5111
- publicDesignSystem: z166.boolean().optional()
5112
- });
5113
-
5114
- // src/workspace/workspace-create.ts
5115
- import { z as z167 } from "zod";
5116
- var WORKSPACE_NAME_MIN_LENGTH = 2;
5117
- var WORKSPACE_NAME_MAX_LENGTH = 64;
5118
- var HANDLE_MIN_LENGTH = 2;
5119
- var HANDLE_MAX_LENGTH = 64;
5120
- var CreateWorkspaceInput = z167.object({
5121
- name: z167.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5122
- product: ProductCodeSchema,
5123
- priceId: z167.string(),
5124
- billingEmail: z167.string().email().optional(),
5125
- handle: z167.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5126
- invites: UserInvites.optional(),
5127
- promoCode: z167.string().optional(),
5128
- status: InternalStatusSchema.optional(),
5129
- planInterval: BillingIntervalSchema.optional(),
5130
- seats: z167.number().optional(),
5131
- seatLimit: z167.number().optional(),
5132
- card: CardSchema.optional(),
5133
- sso: SsoProvider.optional(),
5134
- npmRegistrySettings: NpmRegistryConfig.optional(),
5135
- ipWhitelist: WorkspaceIpSettings.optional()
5136
- });
5137
-
5138
- // src/workspace/workspace-invitations.ts
5139
- import { z as z168 } from "zod";
5140
- var WorkspaceInvitation = z168.object({
5141
- id: z168.string(),
5142
- email: z168.string().email(),
5143
- createdAt: z168.coerce.date(),
5144
- resentAt: z168.coerce.date().nullish(),
5145
- role: z168.nativeEnum(WorkspaceRole),
5146
- workspaceId: z168.string(),
5147
- invitedBy: z168.string()
5148
- });
5149
-
5150
- // src/workspace/workspace-membership.ts
5151
- import { z as z169 } from "zod";
5152
- var WorkspaceMembership = z169.object({
5153
- id: z169.string(),
5154
- userId: z169.string(),
5155
- workspaceId: z169.string(),
5156
- workspaceRole: z169.nativeEnum(WorkspaceRole),
5157
- notificationSettings: UserNotificationSettings
5158
- });
5159
- var UpdateMembershipRolesInput = z169.object({
5160
- members: z169.array(
5161
- z169.object({
5162
- userId: z169.string(),
5163
- role: z169.nativeEnum(WorkspaceRole)
5164
- })
5165
- )
5179
+ var NpmProxyTokenPayload = z170.object({
5180
+ npmProxyRegistryConfigId: z170.string()
5166
5181
  });
5167
5182
 
5168
5183
  // src/tokens/personal-access-token.ts
5169
- var PersonalAccessToken = z170.object({
5170
- id: z170.string(),
5171
- userId: z170.string(),
5172
- workspaceId: z170.string().optional(),
5184
+ import { z as z171 } from "zod";
5185
+ var PersonalAccessToken = z171.object({
5186
+ id: z171.string(),
5187
+ userId: z171.string(),
5188
+ workspaceId: z171.string().optional(),
5173
5189
  workspaceRole: WorkspaceRoleSchema.optional(),
5174
- name: z170.string(),
5175
- hidden: z170.boolean(),
5176
- token: z170.string(),
5177
- scope: z170.string().optional(),
5178
- createdAt: z170.coerce.date(),
5179
- expireAt: z170.coerce.date().optional()
5190
+ name: z171.string(),
5191
+ hidden: z171.boolean(),
5192
+ token: z171.string(),
5193
+ scope: z171.string().optional(),
5194
+ createdAt: z171.coerce.date(),
5195
+ expireAt: z171.coerce.date().optional()
5180
5196
  });
5181
5197
  export {
5182
5198
  Address,
@@ -5260,8 +5276,14 @@ export {
5260
5276
  DesignSystemAccessMode,
5261
5277
  DesignSystemDump,
5262
5278
  DesignSystemElementExportProps,
5279
+ DesignSystemInvitation,
5280
+ DesignSystemInvite,
5281
+ DesignSystemMembers,
5263
5282
  DesignSystemMembership,
5283
+ DesignSystemMembershipUpdates,
5284
+ DesignSystemPendingMemberInvitation,
5264
5285
  DesignSystemSwitcher,
5286
+ DesignSystemUserInvitation,
5265
5287
  DesignSystemVersion,
5266
5288
  DesignSystemVersionDump,
5267
5289
  DesignSystemVersionMultiplayerDump,