@supernova-studio/model 0.54.32 → 0.54.33

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