@supernova-studio/model 1.48.6 → 1.48.8

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
@@ -351,7 +351,7 @@ var CustomDomain = z17.object({
351
351
  });
352
352
 
353
353
  // src/data-dumps/code-integration-dump.ts
354
- import { z as z163 } from "zod";
354
+ import { z as z180 } from "zod";
355
355
 
356
356
  // src/export/exporter.ts
357
357
  import { z as z21 } from "zod";
@@ -526,10 +526,10 @@ var Exporter = z21.object({
526
526
  });
527
527
 
528
528
  // src/export/pipeline.ts
529
- import { z as z162 } from "zod";
529
+ import { z as z179 } from "zod";
530
530
 
531
531
  // src/export/export-destinations.ts
532
- import { z as z161 } from "zod";
532
+ import { z as z178 } from "zod";
533
533
 
534
534
  // src/dsm/assets/asset-dynamo-record.ts
535
535
  import { z as z22 } from "zod";
@@ -4902,7 +4902,7 @@ var FigmaNodeStructureV2 = z127.object({
4902
4902
  });
4903
4903
 
4904
4904
  // src/dsm/membership/design-system-membership.ts
4905
- import { z as z149 } from "zod";
4905
+ import { z as z166 } from "zod";
4906
4906
 
4907
4907
  // src/workspace/npm-registry-settings.ts
4908
4908
  import { z as z128 } from "zod";
@@ -5014,122 +5014,102 @@ var UserInvite = z132.object({
5014
5014
  var UserInvites = z132.array(UserInvite).max(MAX_MEMBERS_COUNT);
5015
5015
 
5016
5016
  // src/workspace/workspace-configuration.ts
5017
- import { z as z134 } from "zod";
5017
+ import { z as z159 } from "zod";
5018
5018
 
5019
5019
  // src/workspace/workspace.ts
5020
5020
  import IPCIDR from "ip-cidr";
5021
+ import { z as z158 } from "zod";
5022
+
5023
+ // src/forge/agent.ts
5021
5024
  import { z as z133 } from "zod";
5022
- var isValidCIDR = (value) => {
5023
- return IPCIDR.isValidAddress(value);
5024
- };
5025
- var WorkspaceIpWhitelistEntry = z133.object({
5026
- isEnabled: z133.boolean(),
5025
+ var ForgeAvatarBuilder = z133.object({
5026
+ headType: z133.string(),
5027
+ hairType: z133.string(),
5028
+ accessory1Type: z133.string(),
5029
+ accessory2Type: z133.string()
5030
+ });
5031
+ var ForgeAgent = z133.object({
5032
+ avatar: z133.union([z133.string(), ForgeAvatarBuilder]),
5033
+ avatarUrl: z133.string().optional(),
5034
+ behavior: z133.enum(["Coder", "Writer", "Designer"]),
5035
+ id: z133.string(),
5027
5036
  name: z133.string(),
5028
- range: z133.string().refine(isValidCIDR, {
5029
- message: "Invalid IP CIDR"
5030
- })
5031
- });
5032
- var WorkspaceIpSettings = z133.object({
5033
- isEnabledForCloud: z133.boolean(),
5034
- isEnabledForDocs: z133.boolean(),
5035
- entries: z133.array(WorkspaceIpWhitelistEntry)
5037
+ personality: z133.enum(["Neutral", "Assertive", "Crazy"]),
5038
+ projectId: z133.string()
5036
5039
  });
5037
- var WorkspaceProfile = z133.object({
5038
- name: z133.string(),
5039
- handle: z133.string(),
5040
- color: z133.string(),
5041
- avatar: nullishToOptional(z133.string()),
5042
- billingDetails: nullishToOptional(BillingDetails)
5040
+
5041
+ // src/forge/artifact.ts
5042
+ import { z as z134 } from "zod";
5043
+ var Artifact = z134.object({
5044
+ id: z134.string(),
5045
+ createdAt: z134.coerce.date(),
5046
+ projectIterationId: z134.string()
5043
5047
  });
5044
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
5045
- avatar: true
5048
+ var ForgeFileArtifact = Artifact.extend({
5049
+ type: z134.enum(["file/text", "file/pdf", "file/image"]),
5050
+ fileName: z134.string(),
5051
+ uploadedFileUrl: z134.string()
5046
5052
  });
5047
- var Workspace = z133.object({
5048
- id: z133.string(),
5049
- profile: WorkspaceProfile,
5050
- subscription: Subscription,
5051
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5052
- sso: nullishToOptional(SsoProvider),
5053
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
5054
- aiFeaturesEnabled: z133.boolean().default(false),
5055
- projectsEnabled: z133.boolean().default(false),
5056
- aiAskFeaturesEnabled: z133.boolean().default(false),
5057
- aiCustomInstruction: z133.string().optional(),
5058
- hasOpenMeterSubject: z133.boolean()
5053
+ var ForgeFigmaArtifact = Artifact.extend({
5054
+ type: z134.literal("figma/node"),
5055
+ figmaFileUrl: z134.string(),
5056
+ figmaNodeId: z134.string(),
5057
+ figmaFileName: z134.string().optional(),
5058
+ previewUrl: z134.string().optional()
5059
5059
  });
5060
- var WorkspaceWithDesignSystems = z133.object({
5061
- workspace: Workspace,
5062
- designSystems: z133.array(DesignSystem)
5060
+ var ForgeSpecArtifact = Artifact.extend({
5061
+ type: z134.literal("spec"),
5062
+ fileName: z134.string(),
5063
+ yjsDocId: z134.string(),
5064
+ markdownText: z134.string()
5065
+ });
5066
+ var ForgeBuildArtifactFiles = z134.array(
5067
+ z134.object({
5068
+ path: z134.string(),
5069
+ content: z134.string(),
5070
+ isVisibleToUser: z134.boolean().optional()
5071
+ })
5072
+ );
5073
+ var ForgeBuildArtifactEnvironment = z134.object({
5074
+ dependencies: z134.record(z134.string())
5063
5075
  });
5064
-
5065
- // src/workspace/workspace-configuration.ts
5066
- var WorkspaceConfigurationUpdate = z134.object({
5067
- id: z134.string(),
5068
- ipWhitelist: WorkspaceIpSettings.optional(),
5069
- sso: SsoProvider.optional(),
5070
- npmRegistrySettings: NpmRegistryConfig.optional(),
5071
- profile: WorkspaceProfileUpdate.optional(),
5072
- aiFeaturesEnabled: z134.boolean().optional(),
5073
- projectsEnabled: z134.boolean().optional(),
5074
- aiAskFeaturesEnabled: z134.boolean().optional(),
5075
- aiCustomInstruction: z134.string().optional()
5076
+ var ForgeBuildArtifact = Artifact.extend({
5077
+ type: z134.literal("build"),
5078
+ participantId: z134.string(),
5079
+ files: ForgeBuildArtifactFiles,
5080
+ environment: ForgeBuildArtifactEnvironment
5076
5081
  });
5082
+ var ForgeArtifact = z134.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5077
5083
 
5078
- // src/workspace/workspace-context.ts
5084
+ // src/forge/id.ts
5079
5085
  import { z as z135 } from "zod";
5080
- var WorkspaceContext = z135.object({
5081
- workspaceId: z135.string(),
5082
- product: ProductCodeSchema,
5083
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5084
- publicDesignSystem: z135.boolean().optional()
5085
- });
5086
-
5087
- // src/workspace/workspace-create.ts
5088
- import { z as z136 } from "zod";
5089
- var WORKSPACE_NAME_MIN_LENGTH = 2;
5090
- var WORKSPACE_NAME_MAX_LENGTH = 64;
5091
- var HANDLE_MIN_LENGTH = 2;
5092
- var HANDLE_MAX_LENGTH = 64;
5093
- var CreateWorkspaceInput = z136.object({
5094
- name: z136.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5095
- handle: z136.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
5096
- });
5086
+ var Id = z135.string().uuid();
5097
5087
 
5098
- // src/workspace/workspace-invitations.ts
5099
- import { z as z137 } from "zod";
5100
- var WorkspaceInvitation = z137.object({
5101
- id: z137.string(),
5102
- email: z137.string().email(),
5103
- createdAt: z137.coerce.date(),
5104
- resentAt: z137.coerce.date().nullish(),
5105
- role: z137.nativeEnum(WorkspaceRole),
5106
- seatType: WorkspaceSeatType,
5107
- workspaceId: z137.string(),
5108
- invitedBy: z137.string()
5109
- });
5088
+ // src/forge/iteration-message.ts
5089
+ import { z as z145 } from "zod";
5110
5090
 
5111
- // src/workspace/workspace-membership.ts
5112
- import { z as z146 } from "zod";
5091
+ // src/forge/participant.ts
5092
+ import { z as z144 } from "zod";
5113
5093
 
5114
5094
  // src/users/linked-integrations.ts
5115
- import { z as z138 } from "zod";
5116
- var IntegrationAuthType = z138.union([z138.literal("OAuth2"), z138.literal("PAT")]);
5117
- var ExternalServiceType = z138.union([
5118
- z138.literal("figma"),
5119
- z138.literal("github"),
5120
- z138.literal("azure"),
5121
- z138.literal("gitlab"),
5122
- z138.literal("bitbucket")
5095
+ import { z as z136 } from "zod";
5096
+ var IntegrationAuthType = z136.union([z136.literal("OAuth2"), z136.literal("PAT")]);
5097
+ var ExternalServiceType = z136.union([
5098
+ z136.literal("figma"),
5099
+ z136.literal("github"),
5100
+ z136.literal("azure"),
5101
+ z136.literal("gitlab"),
5102
+ z136.literal("bitbucket")
5123
5103
  ]);
5124
- var IntegrationUserInfo = z138.object({
5125
- id: z138.string(),
5126
- handle: z138.string().optional(),
5127
- avatarUrl: z138.string().optional(),
5128
- email: z138.string().optional(),
5104
+ var IntegrationUserInfo = z136.object({
5105
+ id: z136.string(),
5106
+ handle: z136.string().optional(),
5107
+ avatarUrl: z136.string().optional(),
5108
+ email: z136.string().optional(),
5129
5109
  authType: IntegrationAuthType.optional(),
5130
- customUrl: z138.string().optional()
5110
+ customUrl: z136.string().optional()
5131
5111
  });
5132
- var UserLinkedIntegrations = z138.object({
5112
+ var UserLinkedIntegrations = z136.object({
5133
5113
  figma: IntegrationUserInfo.optional(),
5134
5114
  github: IntegrationUserInfo.array().optional(),
5135
5115
  azure: IntegrationUserInfo.array().optional(),
@@ -5138,38 +5118,38 @@ var UserLinkedIntegrations = z138.object({
5138
5118
  });
5139
5119
 
5140
5120
  // src/users/user-analytics-cleanup-schedule.ts
5141
- import { z as z139 } from "zod";
5142
- var UserAnalyticsCleanupSchedule = z139.object({
5143
- userId: z139.string(),
5144
- createdAt: z139.coerce.date(),
5145
- deleteAt: z139.coerce.date()
5121
+ import { z as z137 } from "zod";
5122
+ var UserAnalyticsCleanupSchedule = z137.object({
5123
+ userId: z137.string(),
5124
+ createdAt: z137.coerce.date(),
5125
+ deleteAt: z137.coerce.date()
5146
5126
  });
5147
5127
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
5148
5128
  createdAt: true
5149
5129
  });
5150
5130
 
5151
5131
  // src/users/user-identity.ts
5152
- import { z as z140 } from "zod";
5153
- var UserIdentity = z140.object({
5154
- id: z140.string(),
5155
- userId: z140.string()
5132
+ import { z as z138 } from "zod";
5133
+ var UserIdentity = z138.object({
5134
+ id: z138.string(),
5135
+ userId: z138.string()
5156
5136
  });
5157
5137
 
5158
5138
  // src/users/user-minified.ts
5159
- import { z as z141 } from "zod";
5160
- var UserMinified = z141.object({
5161
- id: z141.string(),
5162
- name: z141.string(),
5163
- email: z141.string(),
5164
- avatar: z141.string().optional()
5139
+ import { z as z139 } from "zod";
5140
+ var UserMinified = z139.object({
5141
+ id: z139.string(),
5142
+ name: z139.string(),
5143
+ email: z139.string(),
5144
+ avatar: z139.string().optional()
5165
5145
  });
5166
5146
 
5167
5147
  // src/users/user-notification-settings.ts
5168
- import { z as z142 } from "zod";
5169
- var LiveblocksNotificationSettings = z142.object({
5170
- sendCommentNotificationEmails: z142.boolean()
5148
+ import { z as z140 } from "zod";
5149
+ var LiveblocksNotificationSettings = z140.object({
5150
+ sendCommentNotificationEmails: z140.boolean()
5171
5151
  });
5172
- var UserNotificationSettings = z142.object({
5152
+ var UserNotificationSettings = z140.object({
5173
5153
  liveblocksNotificationSettings: LiveblocksNotificationSettings
5174
5154
  });
5175
5155
  var defaultNotificationSettings = {
@@ -5179,9 +5159,9 @@ var defaultNotificationSettings = {
5179
5159
  };
5180
5160
 
5181
5161
  // src/users/user-profile.ts
5182
- import { z as z143 } from "zod";
5183
- var UserOnboardingDepartment = z143.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5184
- var UserOnboardingJobLevel = z143.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5162
+ import { z as z141 } from "zod";
5163
+ var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5164
+ var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5185
5165
  var userThemePresets = [
5186
5166
  "Custom",
5187
5167
  "Default",
@@ -5194,16 +5174,16 @@ var userThemePresets = [
5194
5174
  "Sepia"
5195
5175
  ];
5196
5176
  var portalThemePresets = [...userThemePresets, "DefaultPortal"];
5197
- var PortalThemePreset = z143.enum(portalThemePresets);
5198
- var UserThemePreset = z143.enum(userThemePresets);
5199
- var BaseTheme = z143.object({
5200
- backgroundColor: z143.string().optional(),
5201
- accentColor: z143.string().optional(),
5202
- contrast: z143.number().min(16).max(100).optional(),
5203
- isSecondaryEnabled: z143.boolean().optional(),
5204
- secondaryBackgroundColor: z143.string().optional(),
5205
- secondaryContrast: z143.number().min(16).max(100).optional(),
5206
- isEditorWhite: z143.boolean().optional()
5177
+ var PortalThemePreset = z141.enum(portalThemePresets);
5178
+ var UserThemePreset = z141.enum(userThemePresets);
5179
+ var BaseTheme = z141.object({
5180
+ backgroundColor: z141.string().optional(),
5181
+ accentColor: z141.string().optional(),
5182
+ contrast: z141.number().min(16).max(100).optional(),
5183
+ isSecondaryEnabled: z141.boolean().optional(),
5184
+ secondaryBackgroundColor: z141.string().optional(),
5185
+ secondaryContrast: z141.number().min(16).max(100).optional(),
5186
+ isEditorWhite: z141.boolean().optional()
5207
5187
  });
5208
5188
  var UserTheme = BaseTheme.extend({
5209
5189
  preset: UserThemePreset.optional()
@@ -5211,464 +5191,786 @@ var UserTheme = BaseTheme.extend({
5211
5191
  var PortalTheme = BaseTheme.extend({
5212
5192
  preset: PortalThemePreset.optional()
5213
5193
  });
5214
- var UserOnboarding = z143.object({
5215
- companyName: z143.string().optional(),
5216
- numberOfPeopleInOrg: z143.string().optional(),
5217
- numberOfPeopleInDesignTeam: z143.string().optional(),
5194
+ var UserOnboarding = z141.object({
5195
+ companyName: z141.string().optional(),
5196
+ numberOfPeopleInOrg: z141.string().optional(),
5197
+ numberOfPeopleInDesignTeam: z141.string().optional(),
5218
5198
  department: UserOnboardingDepartment.optional(),
5219
- jobTitle: z143.string().optional(),
5220
- phase: z143.string().optional(),
5199
+ jobTitle: z141.string().optional(),
5200
+ phase: z141.string().optional(),
5221
5201
  jobLevel: UserOnboardingJobLevel.optional(),
5222
- designSystemName: z143.string().optional(),
5223
- defaultDestination: z143.string().optional(),
5224
- figmaUrl: z143.string().optional(),
5225
- isPageDraftOnboardingFinished: z143.boolean().optional(),
5226
- isApprovalsOnboardingFinished: z143.boolean().optional()
5227
- });
5228
- var UserProfile = z143.object({
5229
- name: z143.string(),
5230
- avatar: nullishToOptional(z143.string()),
5231
- nickname: nullishToOptional(z143.string()),
5202
+ designSystemName: z141.string().optional(),
5203
+ defaultDestination: z141.string().optional(),
5204
+ figmaUrl: z141.string().optional(),
5205
+ isPageDraftOnboardingFinished: z141.boolean().optional(),
5206
+ isApprovalsOnboardingFinished: z141.boolean().optional()
5207
+ });
5208
+ var UserProfile = z141.object({
5209
+ name: z141.string(),
5210
+ avatar: nullishToOptional(z141.string()),
5211
+ nickname: nullishToOptional(z141.string()),
5232
5212
  onboarding: nullishToOptional(UserOnboarding),
5233
5213
  theme: nullishToOptional(UserTheme),
5234
5214
  portalTheme: nullishToOptional(PortalTheme)
5235
5215
  });
5236
5216
 
5237
5217
  // src/users/user-test.ts
5238
- import { z as z144 } from "zod";
5239
- var UserTest = z144.object({
5240
- id: z144.string(),
5241
- email: z144.string()
5218
+ import { z as z142 } from "zod";
5219
+ var UserTest = z142.object({
5220
+ id: z142.string(),
5221
+ email: z142.string()
5242
5222
  });
5243
5223
 
5244
5224
  // src/users/user.ts
5245
- import { z as z145 } from "zod";
5246
- var UserSource = z145.enum(["SignUp", "Invite", "SSO"]);
5247
- var UserEmailSettings = z145.object({
5248
- marketingEmails: z145.boolean()
5249
- });
5250
- var User = z145.object({
5251
- id: z145.string(),
5252
- email: z145.string(),
5253
- createdAt: z145.coerce.date(),
5225
+ import { z as z143 } from "zod";
5226
+ var UserSource = z143.enum(["SignUp", "Invite", "SSO"]);
5227
+ var UserEmailSettings = z143.object({
5228
+ marketingEmails: z143.boolean()
5229
+ });
5230
+ var User = z143.object({
5231
+ id: z143.string(),
5232
+ email: z143.string(),
5233
+ createdAt: z143.coerce.date(),
5254
5234
  profile: UserProfile,
5255
- loggedOutAt: z145.coerce.date().optional(),
5256
- isProtected: z145.boolean(),
5235
+ loggedOutAt: z143.coerce.date().optional(),
5236
+ isProtected: z143.boolean(),
5257
5237
  source: UserSource.optional(),
5258
5238
  emailSettings: UserEmailSettings.optional()
5259
5239
  });
5260
5240
 
5261
- // src/workspace/workspace-membership.ts
5262
- var WorkspaceMembership = z146.object({
5263
- id: z146.string(),
5264
- userId: z146.string(),
5265
- workspaceId: z146.string(),
5266
- workspaceRole: z146.nativeEnum(WorkspaceRole),
5267
- seatType: WorkspaceSeatType,
5268
- notificationSettings: UserNotificationSettings,
5269
- isPrimaryOwner: z146.boolean().nullish()
5270
- });
5271
- var UpdateMembershipRolesInput = z146.object({
5272
- members: z146.array(
5273
- z146.object({
5274
- userId: z146.string(),
5275
- role: z146.nativeEnum(WorkspaceRole),
5276
- seatType: WorkspaceSeatType.optional(),
5277
- isPrimaryOwner: z146.boolean().optional()
5278
- })
5279
- )
5280
- });
5281
-
5282
- // src/dsm/membership/ds-role.ts
5283
- import { z as z147 } from "zod";
5284
- var DesignSystemRole = z147.enum([
5285
- WorkspaceRole.Admin,
5286
- WorkspaceRole.Contributor,
5287
- WorkspaceRole.Creator,
5288
- WorkspaceRole.Viewer
5289
- ]);
5290
- function workspaceRoleToDesignSystemRole(role) {
5291
- switch (role) {
5292
- case "Owner":
5293
- case "Admin":
5294
- return "Admin";
5295
- case "Creator":
5296
- return "Creator";
5297
- case "Contributor":
5298
- return "Contributor";
5299
- case "Billing":
5300
- case "Viewer":
5301
- return "Viewer";
5302
- case "Guest":
5303
- throw SupernovaException.shouldNotHappen(`Illegal role ${role}`);
5304
- }
5305
- }
5306
-
5307
- // src/dsm/membership/invitations.ts
5308
- import { z as z148 } from "zod";
5309
- var DesignSystemInvitation = z148.object({
5310
- id: z148.string(),
5311
- designSystemId: z148.string(),
5312
- workspaceInvitationId: z148.string(),
5313
- designSystemRole: DesignSystemRole.optional(),
5314
- workspaceRole: WorkspaceRoleSchema
5241
+ // src/forge/participant.ts
5242
+ var ForgeParticipant = z144.object({
5243
+ id: z144.string(),
5244
+ agentId: z144.string().optional(),
5245
+ agent: ForgeAgent.optional(),
5246
+ projectIterationId: z144.string(),
5247
+ role: z144.enum(["Editor", "Viewer"]),
5248
+ type: z144.enum(["Agent", "User"]),
5249
+ userId: z144.string().optional(),
5250
+ user: User.optional()
5315
5251
  });
5316
5252
 
5317
- // src/dsm/membership/design-system-membership.ts
5318
- var DesignSystemMembership = z149.object({
5319
- id: z149.string(),
5320
- userId: z149.string(),
5321
- designSystemId: z149.string(),
5322
- designSystemRole: DesignSystemRole.optional(),
5323
- workspaceMembershipId: z149.string(),
5324
- workspaceRole: WorkspaceRoleSchema
5253
+ // src/forge/iteration-message.ts
5254
+ var ForgeIterationMessageStep = z145.object({
5255
+ name: z145.string(),
5256
+ text: z145.string(),
5257
+ status: z145.enum(["pending", "started", "completed", "error"])
5325
5258
  });
5326
- var DesignSystemMembers = z149.object({
5327
- members: DesignSystemMembership.array(),
5328
- invitations: DesignSystemInvitation.array()
5259
+ var ForgeIterationMessage = z145.object({
5260
+ id: z145.string(),
5261
+ createdAt: z145.coerce.date(),
5262
+ participantId: z145.string(),
5263
+ participant: ForgeParticipant,
5264
+ projectIterationId: z145.string(),
5265
+ steps: z145.array(ForgeIterationMessageStep).optional(),
5266
+ type: z145.enum(["Note", "Action", "Steps"]),
5267
+ text: z145.string()
5329
5268
  });
5330
- var DesignSystemPendingMemberInvitation = z149.object({
5331
- inviteId: z149.string(),
5332
- /**
5333
- * Role that the user will have in the design system, undefined
5334
- * if it should be inherited from the workspace
5335
- */
5336
- designSystemRole: DesignSystemRole.optional()
5269
+
5270
+ // src/forge/project-artifact-content.ts
5271
+ import { z as z146 } from "zod";
5272
+ var ForgeProjectArtifactContentData = DocumentationPageContentData;
5273
+ var ForgeProjectArtifactContent = z146.object({
5274
+ id: z146.string(),
5275
+ artifactId: z146.string(),
5276
+ projectId: z146.string(),
5277
+ createdAt: z146.coerce.date(),
5278
+ updatedAt: z146.coerce.date(),
5279
+ data: ForgeProjectArtifactContentData
5337
5280
  });
5338
- var DesignSystemUserInvitation = z149.object({
5339
- userId: z149.string(),
5340
- /**
5341
- * Role that the user will have in the design system, undefined
5342
- * if it should be inherited from the workspace
5343
- */
5344
- designSystemRole: DesignSystemRole.optional()
5281
+
5282
+ // src/forge/project-artifact.ts
5283
+ import { z as z149 } from "zod";
5284
+
5285
+ // src/files/files.ts
5286
+ import z147 from "zod";
5287
+ var FileFigmaRenderMode = z147.enum(["Image", "HTML", "JSON"]);
5288
+ var FileSourceUpload = z147.object({
5289
+ type: z147.literal("UserUpload"),
5290
+ userId: z147.string()
5291
+ });
5292
+ var FileSourceFigma = z147.object({
5293
+ type: z147.literal("Figma"),
5294
+ renderMode: FileFigmaRenderMode
5345
5295
  });
5346
- var DesignSystemInvite = z149.object({
5347
- email: z149.string(),
5348
- workspaceRole: WorkspaceRoleSchema,
5296
+ var FileSource = z147.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5297
+ var File = z147.object({
5298
+ id: z147.string(),
5299
+ name: z147.string(),
5300
+ deduplicationKey: z147.string(),
5301
+ pendingUpload: z147.boolean().optional(),
5302
+ storagePath: z147.string(),
5303
+ url: z147.string(),
5304
+ size: z147.number(),
5349
5305
  /**
5350
- * Role that the user will have in the design system, undefined
5351
- * if it should be inherited from the workspace
5306
+ * Object describing where did the file come from. Undefined source indicates a file produced by the
5307
+ * system (e.g. thumbnails, etc)
5352
5308
  */
5353
- designSystemRole: DesignSystemRole.optional()
5309
+ source: FileSource.optional()
5354
5310
  });
5355
- var DesignSystemMemberUpdate = z149.object({
5356
- userId: z149.string(),
5357
- designSystemRole: DesignSystemRole.nullable()
5311
+ var FileReference = File.pick({
5312
+ id: true,
5313
+ url: true,
5314
+ source: true
5315
+ }).extend({
5316
+ name: File.shape.name.optional()
5358
5317
  });
5359
- var DesignSystemInviteUpdate = z149.object({
5360
- /**
5361
- * Workspace invitation id
5362
- */
5363
- inviteId: z149.string(),
5364
- designSystemRole: DesignSystemRole.nullable()
5318
+
5319
+ // src/forge/project-section.ts
5320
+ import { z as z148 } from "zod";
5321
+ var ForgeProjectSectionChildType = z148.enum(["Artifact", "Feature"]);
5322
+ var SortOrder = z148.number().int();
5323
+ var ForgeSection = z148.object({
5324
+ id: Id,
5325
+ projectId: z148.string(),
5326
+ name: z148.string(),
5327
+ sortOrder: SortOrder.default(0),
5328
+ createdAt: z148.coerce.date(),
5329
+ updatedAt: z148.coerce.date(),
5330
+ childType: ForgeProjectSectionChildType
5365
5331
  });
5366
- var DesignSystemMembershipUpdates = z149.object({
5367
- usersToInvite: DesignSystemUserInvitation.array().optional(),
5368
- invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
5369
- emailsToInvite: DesignSystemInvite.array().optional(),
5370
- usersToUpdate: DesignSystemMemberUpdate.array().optional(),
5371
- invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
5372
- removeUserIds: z149.string().array().optional(),
5373
- deleteInvitationIds: z149.string().array().optional()
5332
+
5333
+ // src/forge/project-artifact.ts
5334
+ var ForgeProjectArtifact = z149.object({
5335
+ id: Id,
5336
+ projectId: z149.string(),
5337
+ iterationId: z149.string().nullish(),
5338
+ title: z149.string(),
5339
+ previewUrl: z149.string().nullish(),
5340
+ sortOrder: SortOrder.default(0),
5341
+ createdAt: z149.coerce.date(),
5342
+ updatedAt: z149.coerce.date(),
5343
+ createdByUserId: z149.string(),
5344
+ sectionId: Id.optional(),
5345
+ threadId: z149.string().optional(),
5346
+ thumbnail: FileReference.optional(),
5347
+ // Default value here is important for backward compatibility for parsing artifacts
5348
+ // from project rooms!
5349
+ isArchived: z149.boolean().default(false)
5374
5350
  });
5375
5351
 
5376
- // src/dsm/views/column.ts
5352
+ // src/forge/project-feature.ts
5377
5353
  import { z as z150 } from "zod";
5378
- var ElementViewBaseColumnType = z150.enum(["Name", "Description", "Value", "UpdatedAt"]);
5379
- var ElementViewColumnType = z150.union([
5380
- z150.literal("BaseProperty"),
5381
- z150.literal("PropertyDefinition"),
5382
- z150.literal("Theme")
5383
- ]);
5384
- var ElementViewColumnSharedAttributes = z150.object({
5385
- id: z150.string(),
5386
- persistentId: z150.string(),
5387
- elementDataViewId: z150.string(),
5388
- sortPosition: z150.number(),
5389
- width: z150.number()
5390
- });
5391
- var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5392
- type: z150.literal("BaseProperty"),
5393
- basePropertyType: ElementViewBaseColumnType
5394
- });
5395
- var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5396
- type: z150.literal("PropertyDefinition"),
5397
- propertyDefinitionId: z150.string()
5398
- });
5399
- var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5400
- type: z150.literal("Theme"),
5401
- themeId: z150.string()
5354
+ var ProjectFeatureStatus = z150.enum(["Draft", "ReadyForDevelopment"]);
5355
+ var ProjectFeature = z150.object({
5356
+ createdAt: z150.coerce.date(),
5357
+ createdByUserId: z150.string(),
5358
+ description: z150.string(),
5359
+ id: Id,
5360
+ isArchived: z150.boolean(),
5361
+ name: z150.string(),
5362
+ projectId: z150.string(),
5363
+ sectionId: Id.optional(),
5364
+ e2bTemplateId: z150.string().nullish(),
5365
+ e2bIterationId: z150.string().nullish(),
5366
+ sortOrder: SortOrder.default(0),
5367
+ status: ProjectFeatureStatus.default("Draft"),
5368
+ updatedAt: z150.coerce.date().optional(),
5369
+ numberOfIterations: z150.number().min(0).default(0),
5370
+ numberOfBookmarkedIterations: z150.number().min(0).default(0),
5371
+ lastReplyTimestamp: z150.coerce.date().optional(),
5372
+ threadId: z150.string().optional(),
5373
+ thumbnail: FileReference.optional()
5402
5374
  });
5403
- var ElementViewColumn = z150.discriminatedUnion("type", [
5404
- ElementViewBasePropertyColumn,
5405
- ElementViewPropertyDefinitionColumn,
5406
- ElementViewThemeColumn
5407
- ]);
5408
5375
 
5409
- // src/dsm/views/view.ts
5376
+ // src/forge/project-figma-node.ts
5410
5377
  import { z as z151 } from "zod";
5411
- var ElementView = z151.object({
5412
- id: z151.string(),
5413
- persistentId: z151.string(),
5414
- designSystemVersionId: z151.string(),
5415
- name: z151.string(),
5416
- description: z151.string(),
5417
- targetElementType: ElementPropertyTargetType,
5418
- isDefault: z151.boolean()
5378
+ var ForgeProjectFigmaNode = z151.object({
5379
+ id: z151.string().uuid(),
5380
+ projectId: z151.string(),
5381
+ sceneNodeId: z151.string(),
5382
+ format: FigmaNodeRenderFormat,
5383
+ scale: z151.number().optional(),
5384
+ renderState: FigmaNodeRenderState,
5385
+ renderedImage: FigmaNodeRenderedImage.optional(),
5386
+ renderError: FigmaNodeRenderError.optional()
5387
+ });
5388
+ var ForgeProjectFigmaNodeRenderInput = z151.object({
5389
+ url: z151.string(),
5390
+ format: FigmaNodeRenderFormat,
5391
+ scale: z151.number()
5419
5392
  });
5420
5393
 
5421
- // src/dsm/brand.ts
5394
+ // src/forge/project-file.ts
5422
5395
  import { z as z152 } from "zod";
5423
- var Brand = z152.object({
5396
+ var ForgeProjectFile = z152.object({
5424
5397
  id: z152.string(),
5425
- designSystemVersionId: z152.string(),
5426
- persistentId: z152.string(),
5398
+ projectId: Id,
5427
5399
  name: z152.string(),
5428
- description: z152.string()
5400
+ filePath: z152.string(),
5401
+ createdAt: z152.coerce.date().optional(),
5402
+ pendingUpload: z152.boolean().optional(),
5403
+ size: z152.number().int().positive().optional(),
5404
+ checksum: z152.string()
5429
5405
  });
5430
5406
 
5431
- // src/dsm/design-system.ts
5407
+ // src/forge/project.ts
5432
5408
  import { z as z153 } from "zod";
5433
- var DesignSystemAccessMode = z153.enum(["Open", "InviteOnly"]);
5434
- var DesignSystemSwitcher = z153.object({
5435
- isEnabled: z153.boolean(),
5436
- designSystemIds: z153.array(z153.string())
5437
- });
5438
- var DesignSystem = z153.object({
5439
- id: z153.string(),
5440
- workspaceId: z153.string(),
5441
- name: z153.string(),
5442
- description: z153.string(),
5443
- docExporterId: nullishToOptional(z153.string()),
5444
- docSlug: z153.string(),
5445
- docUserSlug: nullishToOptional(z153.string()),
5446
- docSlugDeprecated: z153.string(),
5447
- isMultibrand: z153.boolean(),
5448
- docViewUrl: nullishToOptional(z153.string()),
5449
- basePrefixes: z153.array(z153.string()),
5450
- designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5451
- isApprovalFeatureEnabled: z153.boolean(),
5452
- approvalRequiredForPublishing: z153.boolean(),
5453
- accessMode: DesignSystemAccessMode,
5454
- membersGenerated: z153.boolean(),
5455
- createdAt: z153.coerce.date(),
5456
- updatedAt: z153.coerce.date()
5457
- });
5409
+ var ForgeProjectAccessMode = z153.enum(["InviteOnly", "Open", "Unlisted"]);
5458
5410
 
5459
- // src/dsm/exporter-property-values-collection.ts
5411
+ // src/forge/project-invitation.ts
5412
+ import { z as z155 } from "zod";
5413
+
5414
+ // src/forge/project-membership.ts
5460
5415
  import { z as z154 } from "zod";
5461
- var ExporterPropertyImageValue = z154.object({
5462
- asset: PageBlockAsset.optional(),
5463
- assetId: z154.string().optional(),
5464
- assetUrl: z154.string().optional()
5465
- });
5466
- var ExporterConfigurationPropertyValue = z154.object({
5467
- key: z154.string(),
5468
- value: z154.union([
5469
- z154.number(),
5470
- z154.string(),
5471
- z154.boolean(),
5472
- ExporterPropertyImageValue,
5473
- ColorTokenData,
5474
- TypographyTokenData
5475
- ])
5416
+ var ForgeProjectRole = z154.enum(["Viewer", "Builder", "Admin"]);
5417
+ var ForgeDefaultProjectRole = ForgeProjectRole.exclude(["Admin"]);
5418
+ var ForgeProjectMembership = z154.object({
5419
+ userId: z154.string(),
5420
+ forgeProjectId: z154.string(),
5421
+ workspaceMembershipId: z154.string(),
5422
+ workspaceRole: WorkspaceRoleSchema,
5423
+ role: ForgeProjectRole
5476
5424
  });
5477
- var ExporterPropertyValuesCollection = z154.object({
5478
- id: z154.string(),
5479
- designSystemId: z154.string(),
5480
- exporterId: z154.string(),
5481
- values: z154.array(ExporterConfigurationPropertyValue)
5425
+
5426
+ // src/forge/project-invitation.ts
5427
+ var ForgeProjectInvitation = z155.object({
5428
+ email: z155.string().email(),
5429
+ forgeProjectId: z155.string(),
5430
+ workspaceInvitationId: z155.string(),
5431
+ role: ForgeProjectRole,
5432
+ createdAt: z155.coerce.date(),
5433
+ updatedAt: z155.coerce.date(),
5434
+ createdById: z155.string()
5435
+ });
5436
+
5437
+ // src/forge/project-iteration.ts
5438
+ import { z as z156 } from "zod";
5439
+ var ForgeProjectIterationMergeMeta = z156.object({ mergeByUserId: z156.string(), mergeAt: z156.date() });
5440
+ var ForgeProjectIteration = z156.object({
5441
+ branchId: z156.string().optional(),
5442
+ buildArtifactId: z156.string(),
5443
+ createdAt: z156.coerce.date(),
5444
+ forgeProjectId: z156.string(),
5445
+ id: z156.string(),
5446
+ locked: z156.boolean(),
5447
+ messages: z156.array(ForgeIterationMessage),
5448
+ artifacts: z156.array(ForgeArtifact),
5449
+ previousIterationId: z156.string().optional(),
5450
+ mergeMeta: ForgeProjectIterationMergeMeta.optional()
5451
+ });
5452
+
5453
+ // src/forge/relation.ts
5454
+ import { z as z157 } from "zod";
5455
+ var ForgeRelationType = z157.enum(["Feature", "Document"]);
5456
+ var ForgeRelation = z157.object({
5457
+ id: z157.string(),
5458
+ projectId: z157.string(),
5459
+ sourceItemId: z157.string().uuid(),
5460
+ sourceItemType: ForgeRelationType,
5461
+ targetItemId: z157.string().uuid(),
5462
+ targetItemType: ForgeRelationType,
5463
+ createdAt: z157.string()
5464
+ });
5465
+
5466
+ // src/workspace/workspace.ts
5467
+ var isValidCIDR = (value) => {
5468
+ return IPCIDR.isValidAddress(value);
5469
+ };
5470
+ var WorkspaceDefaultProjectAccessMode = ForgeProjectAccessMode;
5471
+ var WorkspaceDefaultProjectRole = ForgeDefaultProjectRole;
5472
+ var WorkspaceIpWhitelistEntry = z158.object({
5473
+ isEnabled: z158.boolean(),
5474
+ name: z158.string(),
5475
+ range: z158.string().refine(isValidCIDR, {
5476
+ message: "Invalid IP CIDR"
5477
+ })
5478
+ });
5479
+ var WorkspaceIpSettings = z158.object({
5480
+ isEnabledForCloud: z158.boolean(),
5481
+ isEnabledForDocs: z158.boolean(),
5482
+ entries: z158.array(WorkspaceIpWhitelistEntry)
5483
+ });
5484
+ var WorkspaceProfile = z158.object({
5485
+ name: z158.string(),
5486
+ handle: z158.string(),
5487
+ color: z158.string(),
5488
+ avatar: nullishToOptional(z158.string()),
5489
+ billingDetails: nullishToOptional(BillingDetails)
5490
+ });
5491
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
5492
+ avatar: true
5493
+ });
5494
+ var Workspace = z158.object({
5495
+ id: z158.string(),
5496
+ profile: WorkspaceProfile,
5497
+ subscription: Subscription,
5498
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5499
+ sso: nullishToOptional(SsoProvider),
5500
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
5501
+ aiFeaturesEnabled: z158.boolean().default(false),
5502
+ projectsEnabled: z158.boolean().default(false),
5503
+ defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode,
5504
+ defaultProjectRole: WorkspaceDefaultProjectRole,
5505
+ aiAskFeaturesEnabled: z158.boolean().default(false),
5506
+ aiCustomInstruction: z158.string().optional(),
5507
+ hasOpenMeterSubject: z158.boolean()
5508
+ });
5509
+ var WorkspaceWithDesignSystems = z158.object({
5510
+ workspace: Workspace,
5511
+ designSystems: z158.array(DesignSystem)
5512
+ });
5513
+
5514
+ // src/workspace/workspace-configuration.ts
5515
+ var WorkspaceConfigurationUpdate = z159.object({
5516
+ id: z159.string(),
5517
+ ipWhitelist: WorkspaceIpSettings.optional(),
5518
+ sso: SsoProvider.optional(),
5519
+ npmRegistrySettings: NpmRegistryConfig.optional(),
5520
+ profile: WorkspaceProfileUpdate.optional(),
5521
+ aiFeaturesEnabled: z159.boolean().optional(),
5522
+ projectsEnabled: z159.boolean().optional(),
5523
+ defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
5524
+ defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
5525
+ aiAskFeaturesEnabled: z159.boolean().optional(),
5526
+ aiCustomInstruction: z159.string().optional()
5527
+ });
5528
+
5529
+ // src/workspace/workspace-context.ts
5530
+ import { z as z160 } from "zod";
5531
+ var WorkspaceContext = z160.object({
5532
+ workspaceId: z160.string(),
5533
+ product: ProductCodeSchema,
5534
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5535
+ publicDesignSystem: z160.boolean().optional()
5536
+ });
5537
+
5538
+ // src/workspace/workspace-create.ts
5539
+ import { z as z161 } from "zod";
5540
+ var WORKSPACE_NAME_MIN_LENGTH = 2;
5541
+ var WORKSPACE_NAME_MAX_LENGTH = 64;
5542
+ var HANDLE_MIN_LENGTH = 2;
5543
+ var HANDLE_MAX_LENGTH = 64;
5544
+ var CreateWorkspaceInput = z161.object({
5545
+ name: z161.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5546
+ handle: z161.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
5547
+ });
5548
+
5549
+ // src/workspace/workspace-invitations.ts
5550
+ import { z as z162 } from "zod";
5551
+ var WorkspaceInvitation = z162.object({
5552
+ id: z162.string(),
5553
+ email: z162.string().email(),
5554
+ createdAt: z162.coerce.date(),
5555
+ resentAt: z162.coerce.date().nullish(),
5556
+ role: z162.nativeEnum(WorkspaceRole),
5557
+ seatType: WorkspaceSeatType,
5558
+ workspaceId: z162.string(),
5559
+ invitedBy: z162.string()
5560
+ });
5561
+
5562
+ // src/workspace/workspace-membership.ts
5563
+ import { z as z163 } from "zod";
5564
+ var WorkspaceMembership = z163.object({
5565
+ id: z163.string(),
5566
+ userId: z163.string(),
5567
+ workspaceId: z163.string(),
5568
+ workspaceRole: z163.nativeEnum(WorkspaceRole),
5569
+ seatType: WorkspaceSeatType,
5570
+ notificationSettings: UserNotificationSettings,
5571
+ isPrimaryOwner: z163.boolean().nullish()
5572
+ });
5573
+ var UpdateMembershipRolesInput = z163.object({
5574
+ members: z163.array(
5575
+ z163.object({
5576
+ userId: z163.string(),
5577
+ role: z163.nativeEnum(WorkspaceRole),
5578
+ seatType: WorkspaceSeatType.optional(),
5579
+ isPrimaryOwner: z163.boolean().optional()
5580
+ })
5581
+ )
5582
+ });
5583
+
5584
+ // src/dsm/membership/ds-role.ts
5585
+ import { z as z164 } from "zod";
5586
+ var DesignSystemRole = z164.enum([
5587
+ WorkspaceRole.Admin,
5588
+ WorkspaceRole.Contributor,
5589
+ WorkspaceRole.Creator,
5590
+ WorkspaceRole.Viewer
5591
+ ]);
5592
+ function workspaceRoleToDesignSystemRole(role) {
5593
+ switch (role) {
5594
+ case "Owner":
5595
+ case "Admin":
5596
+ return "Admin";
5597
+ case "Creator":
5598
+ return "Creator";
5599
+ case "Contributor":
5600
+ return "Contributor";
5601
+ case "Billing":
5602
+ case "Viewer":
5603
+ return "Viewer";
5604
+ case "Guest":
5605
+ throw SupernovaException.shouldNotHappen(`Illegal role ${role}`);
5606
+ }
5607
+ }
5608
+
5609
+ // src/dsm/membership/invitations.ts
5610
+ import { z as z165 } from "zod";
5611
+ var DesignSystemInvitation = z165.object({
5612
+ id: z165.string(),
5613
+ designSystemId: z165.string(),
5614
+ workspaceInvitationId: z165.string(),
5615
+ designSystemRole: DesignSystemRole.optional(),
5616
+ workspaceRole: WorkspaceRoleSchema
5617
+ });
5618
+
5619
+ // src/dsm/membership/design-system-membership.ts
5620
+ var DesignSystemMembership = z166.object({
5621
+ id: z166.string(),
5622
+ userId: z166.string(),
5623
+ designSystemId: z166.string(),
5624
+ designSystemRole: DesignSystemRole.optional(),
5625
+ workspaceMembershipId: z166.string(),
5626
+ workspaceRole: WorkspaceRoleSchema
5627
+ });
5628
+ var DesignSystemMembers = z166.object({
5629
+ members: DesignSystemMembership.array(),
5630
+ invitations: DesignSystemInvitation.array()
5631
+ });
5632
+ var DesignSystemPendingMemberInvitation = z166.object({
5633
+ inviteId: z166.string(),
5634
+ /**
5635
+ * Role that the user will have in the design system, undefined
5636
+ * if it should be inherited from the workspace
5637
+ */
5638
+ designSystemRole: DesignSystemRole.optional()
5639
+ });
5640
+ var DesignSystemUserInvitation = z166.object({
5641
+ userId: z166.string(),
5642
+ /**
5643
+ * Role that the user will have in the design system, undefined
5644
+ * if it should be inherited from the workspace
5645
+ */
5646
+ designSystemRole: DesignSystemRole.optional()
5647
+ });
5648
+ var DesignSystemInvite = z166.object({
5649
+ email: z166.string(),
5650
+ workspaceRole: WorkspaceRoleSchema,
5651
+ /**
5652
+ * Role that the user will have in the design system, undefined
5653
+ * if it should be inherited from the workspace
5654
+ */
5655
+ designSystemRole: DesignSystemRole.optional()
5656
+ });
5657
+ var DesignSystemMemberUpdate = z166.object({
5658
+ userId: z166.string(),
5659
+ designSystemRole: DesignSystemRole.nullable()
5660
+ });
5661
+ var DesignSystemInviteUpdate = z166.object({
5662
+ /**
5663
+ * Workspace invitation id
5664
+ */
5665
+ inviteId: z166.string(),
5666
+ designSystemRole: DesignSystemRole.nullable()
5667
+ });
5668
+ var DesignSystemMembershipUpdates = z166.object({
5669
+ usersToInvite: DesignSystemUserInvitation.array().optional(),
5670
+ invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
5671
+ emailsToInvite: DesignSystemInvite.array().optional(),
5672
+ usersToUpdate: DesignSystemMemberUpdate.array().optional(),
5673
+ invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
5674
+ removeUserIds: z166.string().array().optional(),
5675
+ deleteInvitationIds: z166.string().array().optional()
5676
+ });
5677
+
5678
+ // src/dsm/views/column.ts
5679
+ import { z as z167 } from "zod";
5680
+ var ElementViewBaseColumnType = z167.enum(["Name", "Description", "Value", "UpdatedAt"]);
5681
+ var ElementViewColumnType = z167.union([
5682
+ z167.literal("BaseProperty"),
5683
+ z167.literal("PropertyDefinition"),
5684
+ z167.literal("Theme")
5685
+ ]);
5686
+ var ElementViewColumnSharedAttributes = z167.object({
5687
+ id: z167.string(),
5688
+ persistentId: z167.string(),
5689
+ elementDataViewId: z167.string(),
5690
+ sortPosition: z167.number(),
5691
+ width: z167.number()
5692
+ });
5693
+ var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5694
+ type: z167.literal("BaseProperty"),
5695
+ basePropertyType: ElementViewBaseColumnType
5696
+ });
5697
+ var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5698
+ type: z167.literal("PropertyDefinition"),
5699
+ propertyDefinitionId: z167.string()
5700
+ });
5701
+ var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5702
+ type: z167.literal("Theme"),
5703
+ themeId: z167.string()
5704
+ });
5705
+ var ElementViewColumn = z167.discriminatedUnion("type", [
5706
+ ElementViewBasePropertyColumn,
5707
+ ElementViewPropertyDefinitionColumn,
5708
+ ElementViewThemeColumn
5709
+ ]);
5710
+
5711
+ // src/dsm/views/view.ts
5712
+ import { z as z168 } from "zod";
5713
+ var ElementView = z168.object({
5714
+ id: z168.string(),
5715
+ persistentId: z168.string(),
5716
+ designSystemVersionId: z168.string(),
5717
+ name: z168.string(),
5718
+ description: z168.string(),
5719
+ targetElementType: ElementPropertyTargetType,
5720
+ isDefault: z168.boolean()
5721
+ });
5722
+
5723
+ // src/dsm/brand.ts
5724
+ import { z as z169 } from "zod";
5725
+ var Brand = z169.object({
5726
+ id: z169.string(),
5727
+ designSystemVersionId: z169.string(),
5728
+ persistentId: z169.string(),
5729
+ name: z169.string(),
5730
+ description: z169.string()
5731
+ });
5732
+
5733
+ // src/dsm/design-system.ts
5734
+ import { z as z170 } from "zod";
5735
+ var DesignSystemAccessMode = z170.enum(["Open", "InviteOnly"]);
5736
+ var DesignSystemSwitcher = z170.object({
5737
+ isEnabled: z170.boolean(),
5738
+ designSystemIds: z170.array(z170.string())
5739
+ });
5740
+ var DesignSystem = z170.object({
5741
+ id: z170.string(),
5742
+ workspaceId: z170.string(),
5743
+ name: z170.string(),
5744
+ description: z170.string(),
5745
+ docExporterId: nullishToOptional(z170.string()),
5746
+ docSlug: z170.string(),
5747
+ docUserSlug: nullishToOptional(z170.string()),
5748
+ docSlugDeprecated: z170.string(),
5749
+ isMultibrand: z170.boolean(),
5750
+ docViewUrl: nullishToOptional(z170.string()),
5751
+ basePrefixes: z170.array(z170.string()),
5752
+ designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5753
+ isApprovalFeatureEnabled: z170.boolean(),
5754
+ approvalRequiredForPublishing: z170.boolean(),
5755
+ accessMode: DesignSystemAccessMode,
5756
+ membersGenerated: z170.boolean(),
5757
+ createdAt: z170.coerce.date(),
5758
+ updatedAt: z170.coerce.date()
5759
+ });
5760
+
5761
+ // src/dsm/exporter-property-values-collection.ts
5762
+ import { z as z171 } from "zod";
5763
+ var ExporterPropertyImageValue = z171.object({
5764
+ asset: PageBlockAsset.optional(),
5765
+ assetId: z171.string().optional(),
5766
+ assetUrl: z171.string().optional()
5767
+ });
5768
+ var ExporterConfigurationPropertyValue = z171.object({
5769
+ key: z171.string(),
5770
+ value: z171.union([
5771
+ z171.number(),
5772
+ z171.string(),
5773
+ z171.boolean(),
5774
+ ExporterPropertyImageValue,
5775
+ ColorTokenData,
5776
+ TypographyTokenData
5777
+ ])
5778
+ });
5779
+ var ExporterPropertyValuesCollection = z171.object({
5780
+ id: z171.string(),
5781
+ designSystemId: z171.string(),
5782
+ exporterId: z171.string(),
5783
+ values: z171.array(ExporterConfigurationPropertyValue)
5482
5784
  });
5483
5785
 
5484
5786
  // src/dsm/published-doc-page-visits.ts
5485
- import { z as z155 } from "zod";
5486
- var PublishedDocPageVisitsEntry = z155.object({
5487
- id: z155.string(),
5488
- versionId: z155.string(),
5489
- pagePersistentId: z155.string(),
5490
- locale: z155.string().optional(),
5491
- timestamp: z155.coerce.date(),
5492
- visits: z155.number(),
5493
- userId: nullishToOptional(z155.string()),
5494
- anonymousId: nullishToOptional(z155.string())
5787
+ import { z as z172 } from "zod";
5788
+ var PublishedDocPageVisitsEntry = z172.object({
5789
+ id: z172.string(),
5790
+ versionId: z172.string(),
5791
+ pagePersistentId: z172.string(),
5792
+ locale: z172.string().optional(),
5793
+ timestamp: z172.coerce.date(),
5794
+ visits: z172.number(),
5795
+ userId: nullishToOptional(z172.string()),
5796
+ anonymousId: nullishToOptional(z172.string())
5495
5797
  });
5496
5798
 
5497
5799
  // src/dsm/published-doc-page.ts
5498
- import { z as z156 } from "zod";
5800
+ import { z as z173 } from "zod";
5499
5801
  var SHORT_PERSISTENT_ID_LENGTH = 8;
5500
5802
  function tryParseShortPersistentId(url = "/") {
5501
5803
  const lastUrlPart = url.split("/").pop() || "";
5502
5804
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
5503
5805
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
5504
5806
  }
5505
- var PublishedDocPage = z156.object({
5506
- id: z156.string(),
5507
- publishedDocId: z156.string(),
5508
- pageShortPersistentId: z156.string(),
5509
- pagePersistentId: z156.string().optional(),
5510
- pathV1: z156.string(),
5511
- pathV2: z156.string(),
5512
- storagePath: z156.string(),
5513
- locale: z156.string().optional(),
5514
- isPrivate: z156.boolean(),
5515
- isHidden: z156.boolean(),
5516
- createdAt: z156.coerce.date(),
5517
- updatedAt: z156.coerce.date()
5807
+ var PublishedDocPage = z173.object({
5808
+ id: z173.string(),
5809
+ publishedDocId: z173.string(),
5810
+ pageShortPersistentId: z173.string(),
5811
+ pagePersistentId: z173.string().optional(),
5812
+ pathV1: z173.string(),
5813
+ pathV2: z173.string(),
5814
+ storagePath: z173.string(),
5815
+ locale: z173.string().optional(),
5816
+ isPrivate: z173.boolean(),
5817
+ isHidden: z173.boolean(),
5818
+ createdAt: z173.coerce.date(),
5819
+ updatedAt: z173.coerce.date()
5518
5820
  });
5519
5821
 
5520
5822
  // src/dsm/published-doc.ts
5521
- import { z as z157 } from "zod";
5823
+ import { z as z174 } from "zod";
5522
5824
  var publishedDocEnvironments = ["Live", "Preview"];
5523
- var PublishedDocEnvironment = z157.enum(publishedDocEnvironments);
5524
- var PublishedDocsChecksums = z157.record(z157.string());
5525
- var PublishedDocRoutingVersion = z157.enum(["1", "2"]);
5526
- var PublishedDoc = z157.object({
5527
- id: z157.string(),
5528
- designSystemVersionId: z157.string(),
5529
- createdAt: z157.coerce.date(),
5530
- updatedAt: z157.coerce.date(),
5531
- lastPublishedAt: z157.coerce.date(),
5532
- isDefault: z157.boolean(),
5533
- isPublic: z157.boolean(),
5825
+ var PublishedDocEnvironment = z174.enum(publishedDocEnvironments);
5826
+ var PublishedDocsChecksums = z174.record(z174.string());
5827
+ var PublishedDocRoutingVersion = z174.enum(["1", "2"]);
5828
+ var PublishedDoc = z174.object({
5829
+ id: z174.string(),
5830
+ designSystemVersionId: z174.string(),
5831
+ createdAt: z174.coerce.date(),
5832
+ updatedAt: z174.coerce.date(),
5833
+ lastPublishedAt: z174.coerce.date(),
5834
+ isDefault: z174.boolean(),
5835
+ isPublic: z174.boolean(),
5534
5836
  environment: PublishedDocEnvironment,
5535
5837
  checksums: PublishedDocsChecksums,
5536
- storagePath: z157.string(),
5537
- wasMigrated: z157.boolean(),
5838
+ storagePath: z174.string(),
5839
+ wasMigrated: z174.boolean(),
5538
5840
  routingVersion: PublishedDocRoutingVersion,
5539
- usesLocalizations: z157.boolean(),
5540
- wasPublishedWithLocalizations: z157.boolean(),
5541
- tokenCount: z157.number(),
5542
- assetCount: z157.number()
5841
+ usesLocalizations: z174.boolean(),
5842
+ wasPublishedWithLocalizations: z174.boolean(),
5843
+ tokenCount: z174.number(),
5844
+ assetCount: z174.number()
5543
5845
  });
5544
5846
 
5545
5847
  // src/dsm/storybook-entry.ts
5546
- import { z as z158 } from "zod";
5547
- var StorybookEntryOrigin = z158.object({
5548
- id: z158.string(),
5549
- type: z158.enum(["story", "docs"]),
5550
- name: z158.string(),
5551
- title: z158.string(),
5848
+ import { z as z175 } from "zod";
5849
+ var StorybookEntryOrigin = z175.object({
5850
+ id: z175.string(),
5851
+ type: z175.enum(["story", "docs"]),
5852
+ name: z175.string(),
5853
+ title: z175.string(),
5552
5854
  // Same as 'kind' for v3
5553
- index: z158.number().optional()
5554
- });
5555
- var StorybookEntry = z158.object({
5556
- id: z158.string(),
5557
- storyId: z158.string(),
5558
- designSystemId: z158.string(),
5559
- sourceId: z158.string(),
5560
- aliases: z158.array(z158.string()).optional(),
5561
- url: z158.string(),
5562
- isDeleted: z158.boolean().optional(),
5855
+ index: z175.number().optional()
5856
+ });
5857
+ var StorybookEntry = z175.object({
5858
+ id: z175.string(),
5859
+ storyId: z175.string(),
5860
+ designSystemId: z175.string(),
5861
+ sourceId: z175.string(),
5862
+ aliases: z175.array(z175.string()).optional(),
5863
+ url: z175.string(),
5864
+ isDeleted: z175.boolean().optional(),
5563
5865
  origin: StorybookEntryOrigin,
5564
- createdAt: z158.coerce.date(),
5565
- updatedAt: z158.coerce.date()
5866
+ createdAt: z175.coerce.date(),
5867
+ updatedAt: z175.coerce.date()
5566
5868
  });
5567
5869
 
5568
5870
  // src/dsm/storybook-payload.ts
5569
- import { z as z159 } from "zod";
5570
- var StorybookPayload = z159.object({
5571
- id: z159.string(),
5572
- designSystemId: z159.string(),
5573
- sourceId: z159.string(),
5574
- payload: z159.any(),
5575
- createdAt: z159.coerce.date(),
5576
- updatedAt: z159.coerce.date()
5871
+ import { z as z176 } from "zod";
5872
+ var StorybookPayload = z176.object({
5873
+ id: z176.string(),
5874
+ designSystemId: z176.string(),
5875
+ sourceId: z176.string(),
5876
+ payload: z176.any(),
5877
+ createdAt: z176.coerce.date(),
5878
+ updatedAt: z176.coerce.date()
5577
5879
  });
5578
5880
 
5579
5881
  // src/dsm/version.ts
5580
- import { z as z160 } from "zod";
5581
- var DesignSystemVersion = z160.object({
5582
- id: z160.string(),
5583
- version: z160.string(),
5584
- createdAt: z160.coerce.date(),
5585
- designSystemId: z160.string(),
5586
- name: z160.string(),
5587
- comment: z160.string(),
5588
- isReadonly: z160.boolean(),
5589
- changeLog: z160.string(),
5590
- parentId: z160.string().optional(),
5591
- isDraftsFeatureAdopted: z160.boolean()
5592
- });
5593
- var VersionCreationJobStatus = z160.enum(["Success", "InProgress", "Error"]);
5594
- var VersionCreationJob = z160.object({
5595
- id: z160.string(),
5596
- version: z160.string(),
5597
- designSystemId: z160.string(),
5598
- designSystemVersionId: nullishToOptional(z160.string()),
5882
+ import { z as z177 } from "zod";
5883
+ var DesignSystemVersion = z177.object({
5884
+ id: z177.string(),
5885
+ version: z177.string(),
5886
+ createdAt: z177.coerce.date(),
5887
+ designSystemId: z177.string(),
5888
+ name: z177.string(),
5889
+ comment: z177.string(),
5890
+ isReadonly: z177.boolean(),
5891
+ changeLog: z177.string(),
5892
+ parentId: z177.string().optional(),
5893
+ isDraftsFeatureAdopted: z177.boolean()
5894
+ });
5895
+ var VersionCreationJobStatus = z177.enum(["Success", "InProgress", "Error"]);
5896
+ var VersionCreationJob = z177.object({
5897
+ id: z177.string(),
5898
+ version: z177.string(),
5899
+ designSystemId: z177.string(),
5900
+ designSystemVersionId: nullishToOptional(z177.string()),
5599
5901
  status: VersionCreationJobStatus,
5600
- errorMessage: nullishToOptional(z160.string())
5902
+ errorMessage: nullishToOptional(z177.string())
5601
5903
  });
5602
5904
 
5603
5905
  // src/export/export-destinations.ts
5604
5906
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5605
5907
  var BITBUCKET_MAX_LENGTH = 64;
5606
- var ExportJobDocumentationChanges = z161.object({
5607
- pagePersistentIds: z161.string().array(),
5608
- groupPersistentIds: z161.string().array(),
5609
- selectivePublishing: z161.boolean().optional()
5908
+ var ExportJobDocumentationChanges = z178.object({
5909
+ pagePersistentIds: z178.string().array(),
5910
+ groupPersistentIds: z178.string().array(),
5911
+ selectivePublishing: z178.boolean().optional()
5610
5912
  });
5611
- var ExporterDestinationDocs = z161.object({
5913
+ var ExporterDestinationDocs = z178.object({
5612
5914
  environment: PublishedDocEnvironment,
5613
5915
  changes: nullishToOptional(ExportJobDocumentationChanges)
5614
5916
  });
5615
- var GitCommonDestinationOptions = z161.object({
5616
- branch: z161.string(),
5617
- relativePath: nullishToOptional(z161.string()),
5618
- purgeDirectory: nullishToOptional(z161.boolean()),
5619
- commitAuthorName: nullishToOptional(z161.string()),
5620
- commitAuthorEmail: nullishToOptional(z161.string()),
5621
- commitMessage: nullishToOptional(z161.string()),
5622
- pullRequestTitle: nullishToOptional(z161.string()),
5623
- pullRequestDescription: nullishToOptional(z161.string()),
5624
- checkoutNoTags: nullishToOptional(z161.boolean()),
5625
- checkoutNoBlobs: nullishToOptional(z161.boolean()),
5626
- checkoutSparse: nullishToOptional(z161.boolean())
5627
- });
5628
- var ExporterDestinationS3 = z161.object({});
5629
- var ExporterDestinationGithub = z161.object({
5630
- credentialId: z161.string().optional(),
5917
+ var GitCommonDestinationOptions = z178.object({
5918
+ branch: z178.string(),
5919
+ relativePath: nullishToOptional(z178.string()),
5920
+ purgeDirectory: nullishToOptional(z178.boolean()),
5921
+ commitAuthorName: nullishToOptional(z178.string()),
5922
+ commitAuthorEmail: nullishToOptional(z178.string()),
5923
+ commitMessage: nullishToOptional(z178.string()),
5924
+ pullRequestTitle: nullishToOptional(z178.string()),
5925
+ pullRequestDescription: nullishToOptional(z178.string()),
5926
+ checkoutNoTags: nullishToOptional(z178.boolean()),
5927
+ checkoutNoBlobs: nullishToOptional(z178.boolean()),
5928
+ checkoutSparse: nullishToOptional(z178.boolean())
5929
+ });
5930
+ var ExporterDestinationS3 = z178.object({});
5931
+ var ExporterDestinationGithub = z178.object({
5932
+ credentialId: z178.string().optional(),
5631
5933
  // Repository
5632
- url: z161.string(),
5934
+ url: z178.string(),
5633
5935
  // Legacy deprecated fields. Use `credentialId` instead
5634
- connectionId: nullishToOptional(z161.string()),
5635
- userId: nullishToOptional(z161.number())
5936
+ connectionId: nullishToOptional(z178.string()),
5937
+ userId: nullishToOptional(z178.number())
5636
5938
  }).extend(GitCommonDestinationOptions.shape);
5637
- var ExporterDestinationAzure = z161.object({
5638
- credentialId: z161.string().optional(),
5939
+ var ExporterDestinationAzure = z178.object({
5940
+ credentialId: z178.string().optional(),
5639
5941
  // Repository
5640
- organizationId: z161.string(),
5641
- projectId: z161.string(),
5642
- repositoryId: z161.string(),
5942
+ organizationId: z178.string(),
5943
+ projectId: z178.string(),
5944
+ repositoryId: z178.string(),
5643
5945
  // Maybe not needed
5644
- url: nullishToOptional(z161.string()),
5946
+ url: nullishToOptional(z178.string()),
5645
5947
  // Legacy deprecated fields. Use `credentialId` instead
5646
- connectionId: nullishToOptional(z161.string()),
5647
- userId: nullishToOptional(z161.number())
5948
+ connectionId: nullishToOptional(z178.string()),
5949
+ userId: nullishToOptional(z178.number())
5648
5950
  }).extend(GitCommonDestinationOptions.shape);
5649
- var ExporterDestinationGitlab = z161.object({
5650
- credentialId: z161.string().optional(),
5951
+ var ExporterDestinationGitlab = z178.object({
5952
+ credentialId: z178.string().optional(),
5651
5953
  // Repository
5652
- projectId: z161.string(),
5954
+ projectId: z178.string(),
5653
5955
  // Maybe not needed
5654
- url: nullishToOptional(z161.string()),
5956
+ url: nullishToOptional(z178.string()),
5655
5957
  // Legacy deprecated fields. Use `credentialId` instead
5656
- connectionId: nullishToOptional(z161.string()),
5657
- userId: nullishToOptional(z161.number())
5958
+ connectionId: nullishToOptional(z178.string()),
5959
+ userId: nullishToOptional(z178.number())
5658
5960
  }).extend(GitCommonDestinationOptions.shape);
5659
- var ExporterDestinationBitbucket = z161.object({
5660
- credentialId: z161.string().optional(),
5961
+ var ExporterDestinationBitbucket = z178.object({
5962
+ credentialId: z178.string().optional(),
5661
5963
  // Repository
5662
- workspaceSlug: z161.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5663
- projectKey: z161.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5664
- repoSlug: z161.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5665
- url: nullishToOptional(z161.string()),
5964
+ workspaceSlug: z178.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5965
+ projectKey: z178.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5966
+ repoSlug: z178.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5967
+ url: nullishToOptional(z178.string()),
5666
5968
  // Legacy deprecated fields. Use `credentialId` instead
5667
- connectionId: nullishToOptional(z161.string()),
5668
- userId: nullishToOptional(z161.number())
5969
+ connectionId: nullishToOptional(z178.string()),
5970
+ userId: nullishToOptional(z178.number())
5669
5971
  }).extend(GitCommonDestinationOptions.shape);
5670
- var ExportDestinationsMap = z161.object({
5671
- webhookUrl: z161.string().optional(),
5972
+ var ExportDestinationsMap = z178.object({
5973
+ webhookUrl: z178.string().optional(),
5672
5974
  destinationSnDocs: ExporterDestinationDocs.optional(),
5673
5975
  destinationS3: ExporterDestinationS3.optional(),
5674
5976
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -5676,8 +5978,8 @@ var ExportDestinationsMap = z161.object({
5676
5978
  destinationGitlab: ExporterDestinationGitlab.optional(),
5677
5979
  destinationBitbucket: ExporterDestinationBitbucket.optional()
5678
5980
  });
5679
- var ExportDestinationsMapUpdate = z161.object({
5680
- webhookUrl: z161.string().nullish(),
5981
+ var ExportDestinationsMapUpdate = z178.object({
5982
+ webhookUrl: z178.string().nullish(),
5681
5983
  destinationSnDocs: ExporterDestinationDocs.nullish(),
5682
5984
  destinationS3: ExporterDestinationS3.nullish(),
5683
5985
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -5687,454 +5989,163 @@ var ExportDestinationsMapUpdate = z161.object({
5687
5989
  });
5688
5990
 
5689
5991
  // src/export/pipeline.ts
5690
- var PipelineEventType = z162.enum([
5992
+ var PipelineEventType = z179.enum([
5691
5993
  "OnVersionReleased",
5692
5994
  "OnHeadChanged",
5693
5995
  "OnSourceUpdated",
5694
5996
  "OnDocumentationPublished",
5695
5997
  "None"
5696
5998
  ]);
5697
- var PipelineDestinationGitType = z162.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5698
- var PipelineDestinationExtraType = z162.enum(["WebhookUrl", "S3", "Documentation"]);
5699
- var PipelineDestinationType = z162.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5700
- var Pipeline = z162.object({
5701
- id: z162.string(),
5702
- name: z162.string(),
5999
+ var PipelineDestinationGitType = z179.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
6000
+ var PipelineDestinationExtraType = z179.enum(["WebhookUrl", "S3", "Documentation"]);
6001
+ var PipelineDestinationType = z179.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
6002
+ var Pipeline = z179.object({
6003
+ id: z179.string(),
6004
+ name: z179.string(),
5703
6005
  eventType: PipelineEventType,
5704
- isEnabled: z162.boolean(),
5705
- workspaceId: z162.string(),
5706
- designSystemId: z162.string(),
5707
- exporterId: z162.string(),
5708
- brandPersistentId: z162.string().optional(),
5709
- themePersistentId: z162.string().optional(),
5710
- themePersistentIds: z162.string().array().optional(),
6006
+ isEnabled: z179.boolean(),
6007
+ workspaceId: z179.string(),
6008
+ designSystemId: z179.string(),
6009
+ exporterId: z179.string(),
6010
+ brandPersistentId: z179.string().optional(),
6011
+ themePersistentId: z179.string().optional(),
6012
+ themePersistentIds: z179.string().array().optional(),
5711
6013
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5712
- isExporterDeprecated: z162.boolean(),
6014
+ isExporterDeprecated: z179.boolean(),
5713
6015
  // Destinations
5714
6016
  ...ExportDestinationsMap.shape
5715
6017
  });
5716
6018
 
5717
6019
  // src/data-dumps/code-integration-dump.ts
5718
- var ExportJobDump = z163.object({
5719
- id: z163.string(),
5720
- createdAt: z163.coerce.date(),
5721
- finishedAt: z163.coerce.date(),
5722
- exportArtefacts: z163.string()
6020
+ var ExportJobDump = z180.object({
6021
+ id: z180.string(),
6022
+ createdAt: z180.coerce.date(),
6023
+ finishedAt: z180.coerce.date(),
6024
+ exportArtefacts: z180.string()
5723
6025
  });
5724
- var CodeIntegrationDump = z163.object({
6026
+ var CodeIntegrationDump = z180.object({
5725
6027
  exporters: Exporter.array(),
5726
6028
  pipelines: Pipeline.array(),
5727
6029
  exportJobs: ExportJobDump.array()
5728
6030
  });
5729
6031
 
5730
6032
  // src/data-dumps/design-system-dump.ts
5731
- import { z as z189 } from "zod";
6033
+ import { z as z190 } from "zod";
5732
6034
 
5733
6035
  // src/data-dumps/design-system-version-dump.ts
5734
- import { z as z188 } from "zod";
6036
+ import { z as z189 } from "zod";
5735
6037
 
5736
6038
  // src/liveblocks/rooms/design-system-version-room.ts
5737
- import { z as z164 } from "zod";
6039
+ import { z as z181 } from "zod";
5738
6040
  var DesignSystemVersionRoom = Entity.extend({
5739
- designSystemVersionId: z164.string(),
5740
- liveblocksId: z164.string()
5741
- });
5742
- var DesignSystemVersionRoomInternalSettings = z164.object({
5743
- routingVersion: z164.string(),
5744
- isDraftFeatureAdopted: z164.boolean(),
5745
- isApprovalFeatureEnabled: z164.boolean(),
5746
- approvalRequiredForPublishing: z164.boolean()
5747
- });
5748
- var DesignSystemVersionRoomInitialState = z164.object({
5749
- pages: z164.array(DocumentationPageV2),
5750
- groups: z164.array(ElementGroup),
5751
- pageSnapshots: z164.array(DocumentationPageSnapshot),
5752
- groupSnapshots: z164.array(ElementGroupSnapshot),
5753
- pageApprovals: z164.array(DocumentationPageApproval),
6041
+ designSystemVersionId: z181.string(),
6042
+ liveblocksId: z181.string()
6043
+ });
6044
+ var DesignSystemVersionRoomInternalSettings = z181.object({
6045
+ routingVersion: z181.string(),
6046
+ isDraftFeatureAdopted: z181.boolean(),
6047
+ isApprovalFeatureEnabled: z181.boolean(),
6048
+ approvalRequiredForPublishing: z181.boolean()
6049
+ });
6050
+ var DesignSystemVersionRoomInitialState = z181.object({
6051
+ pages: z181.array(DocumentationPageV2),
6052
+ groups: z181.array(ElementGroup),
6053
+ pageSnapshots: z181.array(DocumentationPageSnapshot),
6054
+ groupSnapshots: z181.array(ElementGroupSnapshot),
6055
+ pageApprovals: z181.array(DocumentationPageApproval),
5754
6056
  internalSettings: DesignSystemVersionRoomInternalSettings,
5755
- pageHashes: z164.record(z164.string()).optional()
5756
- });
5757
- var DesignSystemVersionRoomUpdate = z164.object({
5758
- pages: z164.array(DocumentationPageV2),
5759
- groups: z164.array(ElementGroup),
5760
- pageIdsToDelete: z164.array(z164.string()),
5761
- groupIdsToDelete: z164.array(z164.string()),
5762
- pageSnapshots: z164.array(DocumentationPageSnapshot),
5763
- groupSnapshots: z164.array(ElementGroupSnapshot),
5764
- pageSnapshotIdsToDelete: z164.array(z164.string()),
5765
- groupSnapshotIdsToDelete: z164.array(z164.string()),
5766
- pageHashesToUpdate: z164.record(z164.string(), z164.string()),
5767
- pageApprovals: z164.array(DocumentationPageApproval),
5768
- pageApprovalIdsToDelete: z164.array(z164.string()),
5769
- executedTransactionIds: z164.array(z164.string())
6057
+ pageHashes: z181.record(z181.string()).optional()
6058
+ });
6059
+ var DesignSystemVersionRoomUpdate = z181.object({
6060
+ pages: z181.array(DocumentationPageV2),
6061
+ groups: z181.array(ElementGroup),
6062
+ pageIdsToDelete: z181.array(z181.string()),
6063
+ groupIdsToDelete: z181.array(z181.string()),
6064
+ pageSnapshots: z181.array(DocumentationPageSnapshot),
6065
+ groupSnapshots: z181.array(ElementGroupSnapshot),
6066
+ pageSnapshotIdsToDelete: z181.array(z181.string()),
6067
+ groupSnapshotIdsToDelete: z181.array(z181.string()),
6068
+ pageHashesToUpdate: z181.record(z181.string(), z181.string()),
6069
+ pageApprovals: z181.array(DocumentationPageApproval),
6070
+ pageApprovalIdsToDelete: z181.array(z181.string()),
6071
+ executedTransactionIds: z181.array(z181.string())
5770
6072
  });
5771
6073
 
5772
6074
  // src/liveblocks/rooms/documentation-page-room.ts
5773
- import { z as z165 } from "zod";
6075
+ import { z as z182 } from "zod";
5774
6076
  var DocumentationPageRoom = Entity.extend({
5775
- designSystemVersionId: z165.string(),
5776
- documentationPageId: z165.string(),
5777
- liveblocksId: z165.string(),
5778
- isDirty: z165.boolean()
6077
+ designSystemVersionId: z182.string(),
6078
+ documentationPageId: z182.string(),
6079
+ liveblocksId: z182.string(),
6080
+ isDirty: z182.boolean()
5779
6081
  });
5780
- var DocumentationPageRoomState = z165.object({
5781
- pageItems: z165.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
6082
+ var DocumentationPageRoomState = z182.object({
6083
+ pageItems: z182.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
5782
6084
  });
5783
- var DocumentationPageRoomRoomUpdate = z165.object({
6085
+ var DocumentationPageRoomRoomUpdate = z182.object({
5784
6086
  page: DocumentationPageV2,
5785
6087
  pageParent: ElementGroup
5786
6088
  });
5787
6089
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5788
- pageItems: z165.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5789
- blockDefinitions: z165.array(PageBlockDefinition)
6090
+ pageItems: z182.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
6091
+ blockDefinitions: z182.array(PageBlockDefinition)
5790
6092
  });
5791
- var RestoredDocumentationPage = z165.object({
6093
+ var RestoredDocumentationPage = z182.object({
5792
6094
  page: DocumentationPageV2,
5793
6095
  pageParent: ElementGroup,
5794
6096
  pageContent: DocumentationPageContentData,
5795
- contentHash: z165.string()
6097
+ contentHash: z182.string()
5796
6098
  });
5797
- var RestoredDocumentationGroup = z165.object({
6099
+ var RestoredDocumentationGroup = z182.object({
5798
6100
  group: ElementGroup,
5799
6101
  parent: ElementGroup
5800
6102
  });
5801
6103
 
5802
6104
  // src/liveblocks/rooms/forge-feature-room.ts
5803
- import { z as z166 } from "zod";
6105
+ import { z as z183 } from "zod";
5804
6106
  var ForgeFeatureRoom = Entity.extend({
5805
- featureId: z166.string(),
5806
- projectId: z166.string(),
5807
- liveblocksId: z166.string()
6107
+ featureId: z183.string(),
6108
+ projectId: z183.string(),
6109
+ liveblocksId: z183.string()
5808
6110
  });
5809
6111
 
5810
6112
  // src/liveblocks/rooms/forge-project-artifact-room.ts
5811
- import { z as z167 } from "zod";
5812
- var ForgeProjectArtifactRoom = Entity.extend({
5813
- artifactId: z167.string(),
5814
- projectId: z167.string(),
5815
- liveblocksId: z167.string(),
5816
- isDirty: z167.boolean()
5817
- });
5818
-
5819
- // src/liveblocks/rooms/forge-project-room.ts
5820
6113
  import { z as z184 } from "zod";
5821
-
5822
- // src/forge/agent.ts
5823
- import { z as z168 } from "zod";
5824
- var ForgeAvatarBuilder = z168.object({
5825
- headType: z168.string(),
5826
- hairType: z168.string(),
5827
- accessory1Type: z168.string(),
5828
- accessory2Type: z168.string()
5829
- });
5830
- var ForgeAgent = z168.object({
5831
- avatar: z168.union([z168.string(), ForgeAvatarBuilder]),
5832
- avatarUrl: z168.string().optional(),
5833
- behavior: z168.enum(["Coder", "Writer", "Designer"]),
5834
- id: z168.string(),
5835
- name: z168.string(),
5836
- personality: z168.enum(["Neutral", "Assertive", "Crazy"]),
5837
- projectId: z168.string()
5838
- });
5839
-
5840
- // src/forge/artifact.ts
5841
- import { z as z169 } from "zod";
5842
- var Artifact = z169.object({
5843
- id: z169.string(),
5844
- createdAt: z169.coerce.date(),
5845
- projectIterationId: z169.string()
5846
- });
5847
- var ForgeFileArtifact = Artifact.extend({
5848
- type: z169.enum(["file/text", "file/pdf", "file/image"]),
5849
- fileName: z169.string(),
5850
- uploadedFileUrl: z169.string()
5851
- });
5852
- var ForgeFigmaArtifact = Artifact.extend({
5853
- type: z169.literal("figma/node"),
5854
- figmaFileUrl: z169.string(),
5855
- figmaNodeId: z169.string(),
5856
- figmaFileName: z169.string().optional(),
5857
- previewUrl: z169.string().optional()
5858
- });
5859
- var ForgeSpecArtifact = Artifact.extend({
5860
- type: z169.literal("spec"),
5861
- fileName: z169.string(),
5862
- yjsDocId: z169.string(),
5863
- markdownText: z169.string()
5864
- });
5865
- var ForgeBuildArtifactFiles = z169.array(
5866
- z169.object({
5867
- path: z169.string(),
5868
- content: z169.string(),
5869
- isVisibleToUser: z169.boolean().optional()
5870
- })
5871
- );
5872
- var ForgeBuildArtifactEnvironment = z169.object({
5873
- dependencies: z169.record(z169.string())
5874
- });
5875
- var ForgeBuildArtifact = Artifact.extend({
5876
- type: z169.literal("build"),
5877
- participantId: z169.string(),
5878
- files: ForgeBuildArtifactFiles,
5879
- environment: ForgeBuildArtifactEnvironment
5880
- });
5881
- var ForgeArtifact = z169.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5882
-
5883
- // src/forge/id.ts
5884
- import { z as z170 } from "zod";
5885
- var Id = z170.string().uuid();
5886
-
5887
- // src/forge/iteration-message.ts
5888
- import { z as z172 } from "zod";
5889
-
5890
- // src/forge/participant.ts
5891
- import { z as z171 } from "zod";
5892
- var ForgeParticipant = z171.object({
5893
- id: z171.string(),
5894
- agentId: z171.string().optional(),
5895
- agent: ForgeAgent.optional(),
5896
- projectIterationId: z171.string(),
5897
- role: z171.enum(["Editor", "Viewer"]),
5898
- type: z171.enum(["Agent", "User"]),
5899
- userId: z171.string().optional(),
5900
- user: User.optional()
5901
- });
5902
-
5903
- // src/forge/iteration-message.ts
5904
- var ForgeIterationMessageStep = z172.object({
5905
- name: z172.string(),
5906
- text: z172.string(),
5907
- status: z172.enum(["pending", "started", "completed", "error"])
5908
- });
5909
- var ForgeIterationMessage = z172.object({
5910
- id: z172.string(),
5911
- createdAt: z172.coerce.date(),
5912
- participantId: z172.string(),
5913
- participant: ForgeParticipant,
5914
- projectIterationId: z172.string(),
5915
- steps: z172.array(ForgeIterationMessageStep).optional(),
5916
- type: z172.enum(["Note", "Action", "Steps"]),
5917
- text: z172.string()
5918
- });
5919
-
5920
- // src/forge/project-artifact-content.ts
5921
- import { z as z173 } from "zod";
5922
- var ForgeProjectArtifactContentData = DocumentationPageContentData;
5923
- var ForgeProjectArtifactContent = z173.object({
5924
- id: z173.string(),
5925
- artifactId: z173.string(),
5926
- projectId: z173.string(),
5927
- createdAt: z173.coerce.date(),
5928
- updatedAt: z173.coerce.date(),
5929
- data: ForgeProjectArtifactContentData
5930
- });
5931
-
5932
- // src/forge/project-artifact.ts
5933
- import { z as z176 } from "zod";
5934
-
5935
- // src/files/files.ts
5936
- import z174 from "zod";
5937
- var FileFigmaRenderMode = z174.enum(["Image", "HTML", "JSON"]);
5938
- var FileSourceUpload = z174.object({
5939
- type: z174.literal("UserUpload"),
5940
- userId: z174.string()
5941
- });
5942
- var FileSourceFigma = z174.object({
5943
- type: z174.literal("Figma"),
5944
- renderMode: FileFigmaRenderMode
5945
- });
5946
- var FileSource = z174.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5947
- var File = z174.object({
5948
- id: z174.string(),
5949
- name: z174.string(),
5950
- deduplicationKey: z174.string(),
5951
- pendingUpload: z174.boolean().optional(),
5952
- storagePath: z174.string(),
5953
- url: z174.string(),
5954
- size: z174.number(),
5955
- /**
5956
- * Object describing where did the file come from. Undefined source indicates a file produced by the
5957
- * system (e.g. thumbnails, etc)
5958
- */
5959
- source: FileSource.optional()
5960
- });
5961
- var FileReference = File.pick({
5962
- id: true,
5963
- url: true,
5964
- source: true
5965
- }).extend({
5966
- name: File.shape.name.optional()
5967
- });
5968
-
5969
- // src/forge/project-section.ts
5970
- import { z as z175 } from "zod";
5971
- var ForgeProjectSectionChildType = z175.enum(["Artifact", "Feature"]);
5972
- var SortOrder = z175.number().int();
5973
- var ForgeSection = z175.object({
5974
- id: Id,
5975
- projectId: z175.string(),
5976
- name: z175.string(),
5977
- sortOrder: SortOrder.default(0),
5978
- createdAt: z175.coerce.date(),
5979
- updatedAt: z175.coerce.date(),
5980
- childType: ForgeProjectSectionChildType
5981
- });
5982
-
5983
- // src/forge/project-artifact.ts
5984
- var ForgeProjectArtifact = z176.object({
5985
- id: Id,
5986
- projectId: z176.string(),
5987
- iterationId: z176.string().nullish(),
5988
- title: z176.string(),
5989
- previewUrl: z176.string().nullish(),
5990
- sortOrder: SortOrder.default(0),
5991
- createdAt: z176.coerce.date(),
5992
- updatedAt: z176.coerce.date(),
5993
- createdByUserId: z176.string(),
5994
- sectionId: Id.optional(),
5995
- threadId: z176.string().optional(),
5996
- thumbnail: FileReference.optional(),
5997
- // Default value here is important for backward compatibility for parsing artifacts
5998
- // from project rooms!
5999
- isArchived: z176.boolean().default(false)
6000
- });
6001
-
6002
- // src/forge/project-feature.ts
6003
- import { z as z177 } from "zod";
6004
- var ProjectFeatureStatus = z177.enum(["Draft", "ReadyForDevelopment"]);
6005
- var ProjectFeature = z177.object({
6006
- createdAt: z177.coerce.date(),
6007
- createdByUserId: z177.string(),
6008
- description: z177.string(),
6009
- id: Id,
6010
- isArchived: z177.boolean(),
6011
- name: z177.string(),
6012
- projectId: z177.string(),
6013
- sectionId: Id.optional(),
6014
- e2bTemplateId: z177.string().nullish(),
6015
- e2bIterationId: z177.string().nullish(),
6016
- sortOrder: SortOrder.default(0),
6017
- status: ProjectFeatureStatus.default("Draft"),
6018
- updatedAt: z177.coerce.date().optional(),
6019
- numberOfIterations: z177.number().min(0).default(0),
6020
- numberOfBookmarkedIterations: z177.number().min(0).default(0),
6021
- lastReplyTimestamp: z177.coerce.date().optional(),
6022
- threadId: z177.string().optional(),
6023
- thumbnail: FileReference.optional()
6024
- });
6025
-
6026
- // src/forge/project-figma-node.ts
6027
- import { z as z178 } from "zod";
6028
- var ForgeProjectFigmaNode = z178.object({
6029
- id: z178.string().uuid(),
6030
- projectId: z178.string(),
6031
- sceneNodeId: z178.string(),
6032
- format: FigmaNodeRenderFormat,
6033
- scale: z178.number().optional(),
6034
- renderState: FigmaNodeRenderState,
6035
- renderedImage: FigmaNodeRenderedImage.optional(),
6036
- renderError: FigmaNodeRenderError.optional()
6037
- });
6038
- var ForgeProjectFigmaNodeRenderInput = z178.object({
6039
- url: z178.string(),
6040
- format: FigmaNodeRenderFormat,
6041
- scale: z178.number()
6042
- });
6043
-
6044
- // src/forge/project-file.ts
6045
- import { z as z179 } from "zod";
6046
- var ForgeProjectFile = z179.object({
6047
- id: z179.string(),
6048
- projectId: Id,
6049
- name: z179.string(),
6050
- filePath: z179.string(),
6051
- createdAt: z179.coerce.date().optional(),
6052
- pendingUpload: z179.boolean().optional(),
6053
- size: z179.number().int().positive().optional(),
6054
- checksum: z179.string()
6055
- });
6056
-
6057
- // src/forge/project-invitation.ts
6058
- import { z as z181 } from "zod";
6059
-
6060
- // src/forge/project-membership.ts
6061
- import { z as z180 } from "zod";
6062
- var ForgeProjectRole = z180.enum(["Viewer", "Builder", "Admin"]);
6063
- var ForgeProjectMembership = z180.object({
6064
- userId: z180.string(),
6065
- forgeProjectId: z180.string(),
6066
- workspaceMembershipId: z180.string(),
6067
- workspaceRole: WorkspaceRoleSchema,
6068
- role: ForgeProjectRole
6069
- });
6070
-
6071
- // src/forge/project-invitation.ts
6072
- var ForgeProjectInvitation = z181.object({
6073
- email: z181.string().email(),
6074
- forgeProjectId: z181.string(),
6075
- workspaceInvitationId: z181.string(),
6076
- role: ForgeProjectRole,
6077
- createdAt: z181.coerce.date(),
6078
- updatedAt: z181.coerce.date(),
6079
- createdById: z181.string()
6080
- });
6081
-
6082
- // src/forge/project-iteration.ts
6083
- import { z as z182 } from "zod";
6084
- var ForgeProjectIterationMergeMeta = z182.object({ mergeByUserId: z182.string(), mergeAt: z182.date() });
6085
- var ForgeProjectIteration = z182.object({
6086
- branchId: z182.string().optional(),
6087
- buildArtifactId: z182.string(),
6088
- createdAt: z182.coerce.date(),
6089
- forgeProjectId: z182.string(),
6090
- id: z182.string(),
6091
- locked: z182.boolean(),
6092
- messages: z182.array(ForgeIterationMessage),
6093
- artifacts: z182.array(ForgeArtifact),
6094
- previousIterationId: z182.string().optional(),
6095
- mergeMeta: ForgeProjectIterationMergeMeta.optional()
6096
- });
6097
-
6098
- // src/forge/relation.ts
6099
- import { z as z183 } from "zod";
6100
- var ForgeRelationType = z183.enum(["Feature", "Document"]);
6101
- var ForgeRelation = z183.object({
6102
- id: z183.string(),
6103
- projectId: z183.string(),
6104
- sourceItemId: z183.string().uuid(),
6105
- sourceItemType: ForgeRelationType,
6106
- targetItemId: z183.string().uuid(),
6107
- targetItemType: ForgeRelationType,
6108
- createdAt: z183.string()
6114
+ var ForgeProjectArtifactRoom = Entity.extend({
6115
+ artifactId: z184.string(),
6116
+ projectId: z184.string(),
6117
+ liveblocksId: z184.string(),
6118
+ isDirty: z184.boolean()
6109
6119
  });
6110
6120
 
6111
6121
  // src/liveblocks/rooms/forge-project-room.ts
6122
+ import { z as z185 } from "zod";
6112
6123
  var ForgeProjectRoom = Entity.extend({
6113
- projectId: z184.string(),
6114
- liveblocksId: z184.string()
6115
- });
6116
- var ForgeProjectRoomInitialState = z184.object({
6117
- artifacts: z184.array(ForgeProjectArtifact),
6118
- features: z184.array(ProjectFeature),
6119
- artifactSections: z184.array(ForgeSection),
6120
- featureSections: z184.array(ForgeSection),
6121
- relations: z184.array(ForgeRelation)
6122
- });
6123
- var ForgeProjectRoomUpdate = z184.object({
6124
- artifacts: z184.array(ForgeProjectArtifact).optional(),
6125
- artifactIdsToDelete: z184.array(z184.string()).optional(),
6126
- features: z184.array(ProjectFeature).optional(),
6127
- featureIdsToDelete: z184.array(z184.string()).optional(),
6128
- artifactSections: z184.array(ForgeSection).optional(),
6129
- artifactSectionIdsToDelete: z184.array(z184.string()).optional(),
6130
- featureSections: z184.array(ForgeSection).optional(),
6131
- featureSectionIdsToDelete: z184.array(z184.string()).optional(),
6132
- relations: z184.array(ForgeRelation).optional(),
6133
- executedTransactionIds: z184.string().array().optional()
6124
+ projectId: z185.string(),
6125
+ liveblocksId: z185.string()
6126
+ });
6127
+ var ForgeProjectRoomInitialState = z185.object({
6128
+ artifacts: z185.array(ForgeProjectArtifact),
6129
+ features: z185.array(ProjectFeature),
6130
+ artifactSections: z185.array(ForgeSection),
6131
+ featureSections: z185.array(ForgeSection),
6132
+ relations: z185.array(ForgeRelation)
6133
+ });
6134
+ var ForgeProjectRoomUpdate = z185.object({
6135
+ artifacts: z185.array(ForgeProjectArtifact).optional(),
6136
+ artifactIdsToDelete: z185.array(z185.string()).optional(),
6137
+ features: z185.array(ProjectFeature).optional(),
6138
+ featureIdsToDelete: z185.array(z185.string()).optional(),
6139
+ artifactSections: z185.array(ForgeSection).optional(),
6140
+ artifactSectionIdsToDelete: z185.array(z185.string()).optional(),
6141
+ featureSections: z185.array(ForgeSection).optional(),
6142
+ featureSectionIdsToDelete: z185.array(z185.string()).optional(),
6143
+ relations: z185.array(ForgeRelation).optional(),
6144
+ executedTransactionIds: z185.string().array().optional()
6134
6145
  });
6135
6146
 
6136
6147
  // src/liveblocks/rooms/room-type.ts
6137
- import { z as z185 } from "zod";
6148
+ import { z as z186 } from "zod";
6138
6149
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6139
6150
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
6140
6151
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -6145,36 +6156,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6145
6156
  RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
6146
6157
  return RoomTypeEnum2;
6147
6158
  })(RoomTypeEnum || {});
6148
- var RoomTypeSchema = z185.nativeEnum(RoomTypeEnum);
6159
+ var RoomTypeSchema = z186.nativeEnum(RoomTypeEnum);
6149
6160
  var RoomType = RoomTypeSchema.enum;
6150
6161
 
6151
6162
  // src/liveblocks/rooms/workspace-room.ts
6152
- import { z as z186 } from "zod";
6163
+ import { z as z187 } from "zod";
6153
6164
  var WorkspaceRoom = Entity.extend({
6154
- workspaceId: z186.string(),
6155
- liveblocksId: z186.string()
6165
+ workspaceId: z187.string(),
6166
+ liveblocksId: z187.string()
6156
6167
  });
6157
6168
 
6158
6169
  // src/data-dumps/published-docs-dump.ts
6159
- import { z as z187 } from "zod";
6160
- var PublishedDocsDump = z187.object({
6170
+ import { z as z188 } from "zod";
6171
+ var PublishedDocsDump = z188.object({
6161
6172
  documentation: PublishedDoc,
6162
6173
  pages: PublishedDocPage.array()
6163
6174
  });
6164
6175
 
6165
6176
  // src/data-dumps/design-system-version-dump.ts
6166
- var DocumentationThreadDump = z188.object({
6177
+ var DocumentationThreadDump = z189.object({
6167
6178
  thread: DocumentationCommentThread,
6168
6179
  comments: DocumentationComment.array()
6169
6180
  });
6170
- var DocumentationPageRoomDump = z188.object({
6181
+ var DocumentationPageRoomDump = z189.object({
6171
6182
  room: DocumentationPageRoom,
6172
6183
  threads: DocumentationThreadDump.array()
6173
6184
  });
6174
- var DesignSystemVersionMultiplayerDump = z188.object({
6185
+ var DesignSystemVersionMultiplayerDump = z189.object({
6175
6186
  documentationPages: DocumentationPageRoomDump.array()
6176
6187
  });
6177
- var DesignSystemVersionDump = z188.object({
6188
+ var DesignSystemVersionDump = z189.object({
6178
6189
  version: DesignSystemVersion,
6179
6190
  brands: Brand.array(),
6180
6191
  elements: DesignElement.array(),
@@ -6189,7 +6200,7 @@ var DesignSystemVersionDump = z188.object({
6189
6200
  });
6190
6201
 
6191
6202
  // src/data-dumps/design-system-dump.ts
6192
- var DesignSystemDump = z189.object({
6203
+ var DesignSystemDump = z190.object({
6193
6204
  designSystem: DesignSystem,
6194
6205
  dataSources: DataSource.array(),
6195
6206
  versions: DesignSystemVersionDump.array(),
@@ -6198,50 +6209,50 @@ var DesignSystemDump = z189.object({
6198
6209
  });
6199
6210
 
6200
6211
  // src/data-dumps/user-data-dump.ts
6201
- import { z as z192 } from "zod";
6212
+ import { z as z193 } from "zod";
6202
6213
 
6203
6214
  // src/data-dumps/workspace-dump.ts
6204
- import { z as z191 } from "zod";
6215
+ import { z as z192 } from "zod";
6205
6216
 
6206
6217
  // src/integrations/integration.ts
6207
- import { z as z190 } from "zod";
6208
- var IntegrationDesignSystem = z190.object({
6209
- designSystemId: z190.string(),
6210
- brandId: z190.string(),
6211
- title: z190.string().optional(),
6212
- userId: z190.string().optional(),
6213
- date: z190.coerce.date().optional()
6214
- });
6215
- var IntegrationCredentialsType = z190.enum(["OAuth2", "PAT"]);
6216
- var IntegrationCredentialsState = z190.enum(["Active", "Inactive"]);
6217
- var IntegrationCredentialsProfile = z190.object({
6218
- id: nullishToOptional(z190.string()),
6219
- email: nullishToOptional(z190.string()),
6220
- handle: nullishToOptional(z190.string()),
6221
- type: nullishToOptional(z190.string()),
6222
- avatarUrl: nullishToOptional(z190.string()),
6223
- organization: nullishToOptional(z190.string()),
6224
- collection: nullishToOptional(z190.string())
6225
- });
6226
- var IntegrationCredentials = z190.object({
6227
- id: z190.string(),
6218
+ import { z as z191 } from "zod";
6219
+ var IntegrationDesignSystem = z191.object({
6220
+ designSystemId: z191.string(),
6221
+ brandId: z191.string(),
6222
+ title: z191.string().optional(),
6223
+ userId: z191.string().optional(),
6224
+ date: z191.coerce.date().optional()
6225
+ });
6226
+ var IntegrationCredentialsType = z191.enum(["OAuth2", "PAT"]);
6227
+ var IntegrationCredentialsState = z191.enum(["Active", "Inactive"]);
6228
+ var IntegrationCredentialsProfile = z191.object({
6229
+ id: nullishToOptional(z191.string()),
6230
+ email: nullishToOptional(z191.string()),
6231
+ handle: nullishToOptional(z191.string()),
6232
+ type: nullishToOptional(z191.string()),
6233
+ avatarUrl: nullishToOptional(z191.string()),
6234
+ organization: nullishToOptional(z191.string()),
6235
+ collection: nullishToOptional(z191.string())
6236
+ });
6237
+ var IntegrationCredentials = z191.object({
6238
+ id: z191.string(),
6228
6239
  type: IntegrationCredentialsType,
6229
- integrationId: z190.string(),
6230
- accessToken: z190.string(),
6231
- userId: z190.string(),
6232
- createdAt: z190.coerce.date(),
6233
- refreshToken: z190.string().optional(),
6234
- tokenName: z190.string().optional(),
6235
- expiresAt: z190.coerce.date().optional(),
6236
- refreshedAt: z190.coerce.date().optional(),
6237
- username: z190.string().optional(),
6238
- appInstallationId: z190.string().optional(),
6240
+ integrationId: z191.string(),
6241
+ accessToken: z191.string(),
6242
+ userId: z191.string(),
6243
+ createdAt: z191.coerce.date(),
6244
+ refreshToken: z191.string().optional(),
6245
+ tokenName: z191.string().optional(),
6246
+ expiresAt: z191.coerce.date().optional(),
6247
+ refreshedAt: z191.coerce.date().optional(),
6248
+ username: z191.string().optional(),
6249
+ appInstallationId: z191.string().optional(),
6239
6250
  profile: IntegrationCredentialsProfile.optional(),
6240
- customUrl: z190.string().optional(),
6251
+ customUrl: z191.string().optional(),
6241
6252
  state: IntegrationCredentialsState,
6242
6253
  user: UserMinified.optional()
6243
6254
  });
6244
- var ExtendedIntegrationType = z190.enum([
6255
+ var ExtendedIntegrationType = z191.enum([
6245
6256
  "Figma",
6246
6257
  "Github",
6247
6258
  "Gitlab",
@@ -6252,26 +6263,26 @@ var ExtendedIntegrationType = z190.enum([
6252
6263
  ]);
6253
6264
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
6254
6265
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
6255
- var Integration = z190.object({
6256
- id: z190.string(),
6257
- workspaceId: z190.string(),
6266
+ var Integration = z191.object({
6267
+ id: z191.string(),
6268
+ workspaceId: z191.string(),
6258
6269
  type: IntegrationType,
6259
- createdAt: z190.coerce.date(),
6260
- integrationCredentials: z190.array(IntegrationCredentials).optional()
6261
- });
6262
- var IntegrationToken = z190.object({
6263
- access_token: z190.string(),
6264
- refresh_token: z190.string().optional(),
6265
- expires_in: z190.union([z190.number().optional(), z190.string().optional()]),
6266
- token_type: z190.string().optional(),
6267
- token_name: z190.string().optional(),
6268
- token_azure_organization_name: z190.string().optional(),
6270
+ createdAt: z191.coerce.date(),
6271
+ integrationCredentials: z191.array(IntegrationCredentials).optional()
6272
+ });
6273
+ var IntegrationToken = z191.object({
6274
+ access_token: z191.string(),
6275
+ refresh_token: z191.string().optional(),
6276
+ expires_in: z191.union([z191.number().optional(), z191.string().optional()]),
6277
+ token_type: z191.string().optional(),
6278
+ token_name: z191.string().optional(),
6279
+ token_azure_organization_name: z191.string().optional(),
6269
6280
  // Azure Cloud PAT only
6270
- token_azure_collection_name: z190.string().optional(),
6281
+ token_azure_collection_name: z191.string().optional(),
6271
6282
  // Azure Server PAT only
6272
- token_bitbucket_username: z190.string().optional(),
6283
+ token_bitbucket_username: z191.string().optional(),
6273
6284
  // Bitbucket only
6274
- custom_url: z190.string().optional().transform((value) => {
6285
+ custom_url: z191.string().optional().transform((value) => {
6275
6286
  if (!value?.trim()) return void 0;
6276
6287
  return formatCustomUrl(value);
6277
6288
  })
@@ -6308,7 +6319,7 @@ function formatCustomUrl(url) {
6308
6319
  }
6309
6320
 
6310
6321
  // src/data-dumps/workspace-dump.ts
6311
- var WorkspaceDump = z191.object({
6322
+ var WorkspaceDump = z192.object({
6312
6323
  workspace: Workspace,
6313
6324
  designSystems: DesignSystemDump.array(),
6314
6325
  codeIntegration: CodeIntegrationDump,
@@ -6316,148 +6327,148 @@ var WorkspaceDump = z191.object({
6316
6327
  });
6317
6328
 
6318
6329
  // src/data-dumps/user-data-dump.ts
6319
- var UserDump = z192.object({
6330
+ var UserDump = z193.object({
6320
6331
  user: User,
6321
6332
  workspaces: WorkspaceDump.array()
6322
6333
  });
6323
6334
 
6324
6335
  // src/docs-server/session.ts
6325
- import { z as z193 } from "zod";
6326
- var NpmProxyToken = z193.object({
6327
- access: z193.string(),
6328
- expiresAt: z193.number()
6336
+ import { z as z194 } from "zod";
6337
+ var NpmProxyToken = z194.object({
6338
+ access: z194.string(),
6339
+ expiresAt: z194.number()
6329
6340
  });
6330
- var SessionData = z193.object({
6331
- returnToUrl: z193.string().optional(),
6341
+ var SessionData = z194.object({
6342
+ returnToUrl: z194.string().optional(),
6332
6343
  npmProxyToken: NpmProxyToken.optional()
6333
6344
  });
6334
- var Session = z193.object({
6335
- id: z193.string(),
6336
- expiresAt: z193.coerce.date(),
6337
- userId: z193.string().nullable(),
6338
- anonymousId: z193.string().nullable(),
6345
+ var Session = z194.object({
6346
+ id: z194.string(),
6347
+ expiresAt: z194.coerce.date(),
6348
+ userId: z194.string().nullable(),
6349
+ anonymousId: z194.string().nullable(),
6339
6350
  data: SessionData
6340
6351
  });
6341
- var AuthTokens = z193.object({
6342
- access: z193.string(),
6343
- refresh: z193.string()
6352
+ var AuthTokens = z194.object({
6353
+ access: z194.string(),
6354
+ refresh: z194.string()
6344
6355
  });
6345
- var UserSession = z193.object({
6356
+ var UserSession = z194.object({
6346
6357
  session: Session,
6347
6358
  user: User.nullable()
6348
6359
  });
6349
6360
 
6350
6361
  // src/emails/design-system-invite.ts
6351
- import { z as z194 } from "zod";
6352
- var DesignSystemInviteEmailRecipient = z194.object({
6353
- email: z194.string(),
6362
+ import { z as z195 } from "zod";
6363
+ var DesignSystemInviteEmailRecipient = z195.object({
6364
+ email: z195.string(),
6354
6365
  role: WorkspaceRoleSchema
6355
6366
  });
6356
- var DesignSystemInviteEmailData = z194.object({
6367
+ var DesignSystemInviteEmailData = z195.object({
6357
6368
  workspace: Workspace,
6358
6369
  designSystem: DesignSystem,
6359
6370
  invitedBy: User,
6360
- documentationDomain: z194.string().optional()
6371
+ documentationDomain: z195.string().optional()
6361
6372
  });
6362
6373
 
6363
6374
  // src/emails/workspace-invite.ts
6364
- import { z as z195 } from "zod";
6365
- var WorkspaceInviteEmailRecipient = z195.object({
6366
- email: z195.string(),
6375
+ import { z as z196 } from "zod";
6376
+ var WorkspaceInviteEmailRecipient = z196.object({
6377
+ email: z196.string(),
6367
6378
  role: WorkspaceRoleSchema
6368
6379
  });
6369
- var WorkspaceInviteEmailData = z195.object({
6380
+ var WorkspaceInviteEmailData = z196.object({
6370
6381
  workspace: Workspace,
6371
6382
  invitedBy: User,
6372
- documentationDomain: z195.string().optional()
6383
+ documentationDomain: z196.string().optional()
6373
6384
  });
6374
6385
 
6375
6386
  // src/events/base.ts
6376
- import { z as z199 } from "zod";
6387
+ import { z as z200 } from "zod";
6377
6388
 
6378
6389
  // src/events/data-source-imported.ts
6379
- import { z as z196 } from "zod";
6380
- var EventDataSourceImported = z196.object({
6381
- type: z196.literal("DataSourceImported"),
6382
- workspaceId: z196.string(),
6383
- designSystemId: z196.string()
6384
- });
6385
-
6386
- // src/events/version-released.ts
6387
6390
  import { z as z197 } from "zod";
6388
- var EventVersionReleased = z197.object({
6389
- type: z197.literal("DesignSystemVersionReleased"),
6391
+ var EventDataSourceImported = z197.object({
6392
+ type: z197.literal("DataSourceImported"),
6390
6393
  workspaceId: z197.string(),
6391
- designSystemId: z197.string(),
6392
- versionId: z197.string()
6394
+ designSystemId: z197.string()
6393
6395
  });
6394
6396
 
6395
- // src/events/documentation-published.ts
6397
+ // src/events/version-released.ts
6396
6398
  import { z as z198 } from "zod";
6397
- var EventDocumentationPublished = z198.object({
6398
- type: z198.literal("DocumentationPublished"),
6399
+ var EventVersionReleased = z198.object({
6400
+ type: z198.literal("DesignSystemVersionReleased"),
6399
6401
  workspaceId: z198.string(),
6400
6402
  designSystemId: z198.string(),
6401
6403
  versionId: z198.string()
6402
6404
  });
6403
6405
 
6406
+ // src/events/documentation-published.ts
6407
+ import { z as z199 } from "zod";
6408
+ var EventDocumentationPublished = z199.object({
6409
+ type: z199.literal("DocumentationPublished"),
6410
+ workspaceId: z199.string(),
6411
+ designSystemId: z199.string(),
6412
+ versionId: z199.string()
6413
+ });
6414
+
6404
6415
  // src/events/base.ts
6405
- var Event = z199.discriminatedUnion("type", [
6416
+ var Event = z200.discriminatedUnion("type", [
6406
6417
  EventVersionReleased,
6407
6418
  EventDataSourceImported,
6408
6419
  EventDocumentationPublished
6409
6420
  ]);
6410
6421
 
6411
6422
  // src/export/export-runner/export-context.ts
6412
- import { z as z200 } from "zod";
6413
- var ExportJobDocumentationContext = z200.object({
6414
- isSingleVersionDocs: z200.boolean(),
6415
- versionSlug: z200.string(),
6423
+ import { z as z201 } from "zod";
6424
+ var ExportJobDocumentationContext = z201.object({
6425
+ isSingleVersionDocs: z201.boolean(),
6426
+ versionSlug: z201.string(),
6416
6427
  environment: PublishedDocEnvironment
6417
6428
  });
6418
- var ExportJobDebugContext = z200.object({
6419
- debugMode: z200.boolean().optional(),
6420
- concurrency: z200.number().optional(),
6421
- preloadData: z200.string().optional(),
6422
- concurrencyMode: z200.string().optional(),
6423
- cacheSdk: z200.string().optional(),
6424
- logSdkNetwork: z200.boolean().optional(),
6425
- profilerMode: z200.string().optional()
6426
- });
6427
- var ExportJobContext = z200.object({
6428
- apiUrl: z200.string(),
6429
- accessToken: z200.string(),
6430
- designSystemId: z200.string(),
6431
- designSystemName: z200.string(),
6432
- exporterId: z200.string(),
6433
- versionId: z200.string(),
6434
- brandId: z200.string().optional(),
6435
- themeId: z200.string().optional(),
6436
- themePersistentIds: z200.string().array().optional(),
6437
- previewMode: z200.boolean().optional(),
6438
- exporterName: z200.string(),
6429
+ var ExportJobDebugContext = z201.object({
6430
+ debugMode: z201.boolean().optional(),
6431
+ concurrency: z201.number().optional(),
6432
+ preloadData: z201.string().optional(),
6433
+ concurrencyMode: z201.string().optional(),
6434
+ cacheSdk: z201.string().optional(),
6435
+ logSdkNetwork: z201.boolean().optional(),
6436
+ profilerMode: z201.string().optional()
6437
+ });
6438
+ var ExportJobContext = z201.object({
6439
+ apiUrl: z201.string(),
6440
+ accessToken: z201.string(),
6441
+ designSystemId: z201.string(),
6442
+ designSystemName: z201.string(),
6443
+ exporterId: z201.string(),
6444
+ versionId: z201.string(),
6445
+ brandId: z201.string().optional(),
6446
+ themeId: z201.string().optional(),
6447
+ themePersistentIds: z201.string().array().optional(),
6448
+ previewMode: z201.boolean().optional(),
6449
+ exporterName: z201.string(),
6439
6450
  documentation: ExportJobDocumentationContext.optional(),
6440
6451
  debug: ExportJobDebugContext.optional()
6441
6452
  });
6442
- var ExportJobExporterConfiguration = z200.object({
6443
- exporterPackageUrl: z200.string(),
6453
+ var ExportJobExporterConfiguration = z201.object({
6454
+ exporterPackageUrl: z201.string(),
6444
6455
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
6445
6456
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
6446
6457
  });
6447
6458
 
6448
6459
  // src/export/export-runner/exporter-payload.ts
6449
- import { z as z201 } from "zod";
6450
- var ExporterFunctionPayload = z201.object({
6451
- exportJobId: z201.string(),
6452
- exportContextId: z201.string(),
6453
- designSystemId: z201.string(),
6454
- workspaceId: z201.string(),
6455
- exporterId: z201.string()
6460
+ import { z as z202 } from "zod";
6461
+ var ExporterFunctionPayload = z202.object({
6462
+ exportJobId: z202.string(),
6463
+ exportContextId: z202.string(),
6464
+ designSystemId: z202.string(),
6465
+ workspaceId: z202.string(),
6466
+ exporterId: z202.string()
6456
6467
  });
6457
6468
 
6458
6469
  // src/export/export-jobs.ts
6459
- import { z as z202 } from "zod";
6460
- var ExportJobDestinationType = z202.enum([
6470
+ import { z as z203 } from "zod";
6471
+ var ExportJobDestinationType = z203.enum([
6461
6472
  "s3",
6462
6473
  "webhookUrl",
6463
6474
  "github",
@@ -6466,31 +6477,31 @@ var ExportJobDestinationType = z202.enum([
6466
6477
  "gitlab",
6467
6478
  "bitbucket"
6468
6479
  ]);
6469
- var ExportJobStatus = z202.enum(["InProgress", "Success", "Failed", "Timeout"]);
6470
- var ExportJobLogEntryType = z202.enum(["success", "info", "warning", "error", "user"]);
6471
- var ExportJobLogEntry = z202.object({
6472
- id: z202.string().optional(),
6473
- time: z202.coerce.date(),
6480
+ var ExportJobStatus = z203.enum(["InProgress", "Success", "Failed", "Timeout"]);
6481
+ var ExportJobLogEntryType = z203.enum(["success", "info", "warning", "error", "user"]);
6482
+ var ExportJobLogEntry = z203.object({
6483
+ id: z203.string().optional(),
6484
+ time: z203.coerce.date(),
6474
6485
  type: ExportJobLogEntryType,
6475
- message: z202.string()
6486
+ message: z203.string()
6476
6487
  });
6477
- var ExportJobPullRequestDestinationResult = z202.object({
6478
- pullRequestUrl: z202.string(),
6479
- sparseCheckoutUsed: nullishToOptional(z202.boolean())
6488
+ var ExportJobPullRequestDestinationResult = z203.object({
6489
+ pullRequestUrl: z203.string(),
6490
+ sparseCheckoutUsed: nullishToOptional(z203.boolean())
6480
6491
  });
6481
- var ExportJobS3DestinationResult = z202.object({
6482
- bucket: z202.string(),
6483
- urlPrefix: z202.string().optional(),
6484
- path: z202.string(),
6485
- files: z202.array(z202.string()),
6486
- url: nullishToOptional(z202.string()),
6487
- urls: nullishToOptional(z202.string().array())
6492
+ var ExportJobS3DestinationResult = z203.object({
6493
+ bucket: z203.string(),
6494
+ urlPrefix: z203.string().optional(),
6495
+ path: z203.string(),
6496
+ files: z203.array(z203.string()),
6497
+ url: nullishToOptional(z203.string()),
6498
+ urls: nullishToOptional(z203.string().array())
6488
6499
  });
6489
- var ExportJobDocsDestinationResult = z202.object({
6490
- url: z202.string()
6500
+ var ExportJobDocsDestinationResult = z203.object({
6501
+ url: z203.string()
6491
6502
  });
6492
- var ExportJobResult = z202.object({
6493
- error: z202.string().optional(),
6503
+ var ExportJobResult = z203.object({
6504
+ error: z203.string().optional(),
6494
6505
  s3: nullishToOptional(ExportJobS3DestinationResult),
6495
6506
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
6496
6507
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -6499,25 +6510,25 @@ var ExportJobResult = z202.object({
6499
6510
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
6500
6511
  logs: nullishToOptional(ExportJobLogEntry.array())
6501
6512
  });
6502
- var ExportJob = z202.object({
6503
- id: z202.string(),
6504
- createdAt: z202.coerce.date(),
6505
- finishedAt: z202.coerce.date().optional(),
6506
- designSystemId: z202.string(),
6507
- designSystemVersionId: z202.string(),
6508
- workspaceId: z202.string(),
6509
- scheduleId: z202.string().nullish(),
6510
- exporterId: z202.string(),
6511
- brandId: z202.string().optional(),
6512
- themeId: z202.string().optional(),
6513
- themePersistentIds: z202.string().array().optional(),
6514
- estimatedExecutionTime: z202.number().optional(),
6513
+ var ExportJob = z203.object({
6514
+ id: z203.string(),
6515
+ createdAt: z203.coerce.date(),
6516
+ finishedAt: z203.coerce.date().optional(),
6517
+ designSystemId: z203.string(),
6518
+ designSystemVersionId: z203.string(),
6519
+ workspaceId: z203.string(),
6520
+ scheduleId: z203.string().nullish(),
6521
+ exporterId: z203.string(),
6522
+ brandId: z203.string().optional(),
6523
+ themeId: z203.string().optional(),
6524
+ themePersistentIds: z203.string().array().optional(),
6525
+ estimatedExecutionTime: z203.number().optional(),
6515
6526
  status: ExportJobStatus,
6516
6527
  result: ExportJobResult.optional(),
6517
- createdByUserId: z202.string().optional(),
6528
+ createdByUserId: z203.string().optional(),
6518
6529
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6519
- previewMode: z202.boolean().optional(),
6520
- exportContextId: z202.string().optional().nullable(),
6530
+ previewMode: z203.boolean().optional(),
6531
+ exportContextId: z203.string().optional().nullable(),
6521
6532
  // Destinations
6522
6533
  ...ExportDestinationsMap.shape
6523
6534
  });
@@ -6531,37 +6542,37 @@ var ExportJobFindByFilter = ExportJob.pick({
6531
6542
  themeId: true,
6532
6543
  brandId: true
6533
6544
  }).extend({
6534
- destinations: z202.array(ExportJobDestinationType),
6545
+ destinations: z203.array(ExportJobDestinationType),
6535
6546
  docsEnvironment: PublishedDocEnvironment,
6536
- selectivePublishing: z202.boolean().optional()
6547
+ selectivePublishing: z203.boolean().optional()
6537
6548
  }).partial();
6538
6549
 
6539
6550
  // src/export/exporter-list-query.ts
6540
- import { z as z203 } from "zod";
6541
- var ExporterType2 = z203.enum(["documentation", "code"]);
6542
- var ListExporterQuery = z203.object({
6543
- limit: z203.number().optional(),
6544
- offset: z203.number().optional(),
6551
+ import { z as z204 } from "zod";
6552
+ var ExporterType2 = z204.enum(["documentation", "code"]);
6553
+ var ListExporterQuery = z204.object({
6554
+ limit: z204.number().optional(),
6555
+ offset: z204.number().optional(),
6545
6556
  type: ExporterType2.optional(),
6546
- search: z203.string().optional()
6557
+ search: z204.string().optional()
6547
6558
  });
6548
6559
 
6549
6560
  // src/export/exporter-workspace-membership-role.ts
6550
- import { z as z204 } from "zod";
6551
- var ExporterWorkspaceMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
6561
+ import { z as z205 } from "zod";
6562
+ var ExporterWorkspaceMembershipRole = z205.enum(["Owner", "OwnerArchived", "User"]);
6552
6563
 
6553
6564
  // src/export/exporter-workspace-membership.ts
6554
- import { z as z205 } from "zod";
6555
- var ExporterWorkspaceMembership = z205.object({
6556
- id: z205.string(),
6557
- workspaceId: z205.string(),
6558
- exporterId: z205.string(),
6565
+ import { z as z206 } from "zod";
6566
+ var ExporterWorkspaceMembership = z206.object({
6567
+ id: z206.string(),
6568
+ workspaceId: z206.string(),
6569
+ exporterId: z206.string(),
6559
6570
  role: ExporterWorkspaceMembershipRole
6560
6571
  });
6561
6572
 
6562
6573
  // src/feature-flags/feature-flags.ts
6563
- import { z as z206 } from "zod";
6564
- var FlaggedFeature = z206.enum([
6574
+ import { z as z207 } from "zod";
6575
+ var FlaggedFeature = z207.enum([
6565
6576
  "FigmaImporterV2",
6566
6577
  "DisableImporter",
6567
6578
  "VariablesOrder",
@@ -6587,21 +6598,21 @@ var FlaggedFeature = z206.enum([
6587
6598
  var FeatureFlagDefaults = {
6588
6599
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3"
6589
6600
  };
6590
- var FeatureFlagMap = z206.record(FlaggedFeature, z206.boolean());
6591
- var FeatureFlag = z206.object({
6592
- id: z206.string(),
6601
+ var FeatureFlagMap = z207.record(FlaggedFeature, z207.boolean());
6602
+ var FeatureFlag = z207.object({
6603
+ id: z207.string(),
6593
6604
  feature: FlaggedFeature,
6594
- createdAt: z206.coerce.date(),
6595
- enabled: z206.boolean(),
6596
- designSystemId: z206.string().optional(),
6597
- data: z206.record(z206.any()).nullable().optional()
6605
+ createdAt: z207.coerce.date(),
6606
+ enabled: z207.boolean(),
6607
+ designSystemId: z207.string().optional(),
6608
+ data: z207.record(z207.any()).nullable().optional()
6598
6609
  });
6599
6610
 
6600
6611
  // src/integrations/external-oauth-request.ts
6601
- import { z as z208 } from "zod";
6612
+ import { z as z209 } from "zod";
6602
6613
 
6603
6614
  // src/integrations/oauth-providers.ts
6604
- import { z as z207 } from "zod";
6615
+ import { z as z208 } from "zod";
6605
6616
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6606
6617
  OAuthProviderNames2["Figma"] = "figma";
6607
6618
  OAuthProviderNames2["Azure"] = "azure";
@@ -6610,192 +6621,192 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6610
6621
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6611
6622
  return OAuthProviderNames2;
6612
6623
  })(OAuthProviderNames || {});
6613
- var OAuthProviderSchema = z207.nativeEnum(OAuthProviderNames);
6624
+ var OAuthProviderSchema = z208.nativeEnum(OAuthProviderNames);
6614
6625
  var OAuthProvider = OAuthProviderSchema.enum;
6615
6626
 
6616
6627
  // src/integrations/external-oauth-request.ts
6617
- var ExternalOAuthRequest = z208.object({
6618
- id: z208.string(),
6628
+ var ExternalOAuthRequest = z209.object({
6629
+ id: z209.string(),
6619
6630
  provider: OAuthProviderSchema,
6620
- userId: z208.string(),
6621
- state: z208.string(),
6622
- createdAt: z208.coerce.date()
6631
+ userId: z209.string(),
6632
+ state: z209.string(),
6633
+ createdAt: z209.coerce.date()
6623
6634
  });
6624
6635
 
6625
6636
  // src/integrations/git.ts
6626
- import { z as z209 } from "zod";
6627
- var GitObjectsQuery = z209.object({
6628
- organization: z209.string().optional(),
6637
+ import { z as z210 } from "zod";
6638
+ var GitObjectsQuery = z210.object({
6639
+ organization: z210.string().optional(),
6629
6640
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6630
- project: z209.string().optional(),
6641
+ project: z210.string().optional(),
6631
6642
  // Only for Bitbucket and Azure
6632
- repository: z209.string().optional(),
6643
+ repository: z210.string().optional(),
6633
6644
  // For all providers. For Gitlab, it's called "project".
6634
- branch: z209.string().optional(),
6645
+ branch: z210.string().optional(),
6635
6646
  // For all providers.
6636
- user: z209.string().optional()
6647
+ user: z210.string().optional()
6637
6648
  // Gitlab user
6638
6649
  });
6639
- var GitOrganization = z209.object({
6640
- id: z209.string(),
6641
- name: z209.string(),
6642
- url: z209.string(),
6643
- slug: z209.string()
6650
+ var GitOrganization = z210.object({
6651
+ id: z210.string(),
6652
+ name: z210.string(),
6653
+ url: z210.string(),
6654
+ slug: z210.string()
6644
6655
  });
6645
- var GitProject = z209.object({
6646
- id: z209.string(),
6647
- name: z209.string(),
6648
- url: z209.string(),
6649
- slug: z209.string()
6656
+ var GitProject = z210.object({
6657
+ id: z210.string(),
6658
+ name: z210.string(),
6659
+ url: z210.string(),
6660
+ slug: z210.string()
6650
6661
  });
6651
- var GitRepository = z209.object({
6652
- id: z209.string(),
6653
- name: z209.string(),
6654
- url: z209.string(),
6655
- slug: z209.string(),
6662
+ var GitRepository = z210.object({
6663
+ id: z210.string(),
6664
+ name: z210.string(),
6665
+ url: z210.string(),
6666
+ slug: z210.string(),
6656
6667
  /**
6657
6668
  * Can be undefined when:
6658
6669
  * - there are no branches in the repository yet
6659
6670
  * - Git provider doesn't expose this information on a repository via their API
6660
6671
  */
6661
- defaultBranch: z209.string().optional()
6672
+ defaultBranch: z210.string().optional()
6662
6673
  });
6663
- var GitBranch = z209.object({
6664
- name: z209.string(),
6665
- lastCommitId: z209.string()
6674
+ var GitBranch = z210.object({
6675
+ name: z210.string(),
6676
+ lastCommitId: z210.string()
6666
6677
  });
6667
6678
 
6668
6679
  // src/integrations/oauth-token.ts
6669
- import { z as z210 } from "zod";
6670
- var IntegrationTokenSchemaOld = z210.object({
6671
- id: z210.string(),
6680
+ import { z as z211 } from "zod";
6681
+ var IntegrationTokenSchemaOld = z211.object({
6682
+ id: z211.string(),
6672
6683
  provider: OAuthProviderSchema,
6673
- scope: z210.string(),
6674
- userId: z210.string(),
6675
- accessToken: z210.string(),
6676
- refreshToken: z210.string(),
6677
- expiresAt: z210.coerce.date(),
6678
- externalUserId: z210.string().nullish()
6684
+ scope: z211.string(),
6685
+ userId: z211.string(),
6686
+ accessToken: z211.string(),
6687
+ refreshToken: z211.string(),
6688
+ expiresAt: z211.coerce.date(),
6689
+ externalUserId: z211.string().nullish()
6679
6690
  });
6680
6691
 
6681
6692
  // src/integrations/workspace-oauth-requests.ts
6682
- import { z as z211 } from "zod";
6683
- var WorkspaceOAuthRequestSchema = z211.object({
6684
- id: z211.string(),
6685
- workspaceId: z211.string(),
6693
+ import { z as z212 } from "zod";
6694
+ var WorkspaceOAuthRequestSchema = z212.object({
6695
+ id: z212.string(),
6696
+ workspaceId: z212.string(),
6686
6697
  provider: OAuthProviderSchema,
6687
- userId: z211.string(),
6688
- createdAt: z211.coerce.date()
6698
+ userId: z212.string(),
6699
+ createdAt: z212.coerce.date()
6689
6700
  });
6690
6701
 
6691
6702
  // src/npm/npm-package.ts
6692
- import { z as z212 } from "zod";
6693
- var AnyRecord = z212.record(z212.any());
6703
+ import { z as z213 } from "zod";
6704
+ var AnyRecord = z213.record(z213.any());
6694
6705
  var NpmPackageVersionDist = AnyRecord.and(
6695
- z212.object({
6696
- tarball: z212.string()
6706
+ z213.object({
6707
+ tarball: z213.string()
6697
6708
  })
6698
6709
  );
6699
6710
  var NpmPackageVersion = AnyRecord.and(
6700
- z212.object({
6711
+ z213.object({
6701
6712
  dist: NpmPackageVersionDist
6702
6713
  })
6703
6714
  );
6704
6715
  var NpmPackage = AnyRecord.and(
6705
- z212.object({
6706
- _id: z212.string(),
6707
- name: z212.string(),
6716
+ z213.object({
6717
+ _id: z213.string(),
6718
+ name: z213.string(),
6708
6719
  // e.g. "latest": "1.2.3"
6709
- "dist-tags": z212.record(z212.string(), z212.string()),
6720
+ "dist-tags": z213.record(z213.string(), z213.string()),
6710
6721
  // "1.2.3": {...}
6711
- versions: z212.record(NpmPackageVersion)
6722
+ versions: z213.record(NpmPackageVersion)
6712
6723
  })
6713
6724
  );
6714
6725
 
6715
6726
  // src/npm/npm-proxy-token-payload.ts
6716
- import { z as z213 } from "zod";
6717
- var NpmProxyTokenPayload = z213.object({
6718
- npmProxyRegistryConfigId: z213.string()
6727
+ import { z as z214 } from "zod";
6728
+ var NpmProxyTokenPayload = z214.object({
6729
+ npmProxyRegistryConfigId: z214.string()
6719
6730
  });
6720
6731
 
6721
6732
  // src/page-screenshot/page-screenshot.ts
6722
- import { z as z214 } from "zod";
6723
- var PageScreenshotInput = z214.object({
6724
- url: z214.string().url(),
6725
- elementSelector: z214.string(),
6726
- uploadUrl: z214.string().url(),
6727
- viewportSize: z214.object({
6728
- width: z214.number().positive(),
6729
- height: z214.number().positive()
6733
+ import { z as z215 } from "zod";
6734
+ var PageScreenshotInput = z215.object({
6735
+ url: z215.string().url(),
6736
+ elementSelector: z215.string(),
6737
+ uploadUrl: z215.string().url(),
6738
+ viewportSize: z215.object({
6739
+ width: z215.number().positive(),
6740
+ height: z215.number().positive()
6730
6741
  }).optional(),
6731
- imageSize: z214.object({
6732
- width: z214.number().positive(),
6733
- height: z214.number().positive()
6742
+ imageSize: z215.object({
6743
+ width: z215.number().positive(),
6744
+ height: z215.number().positive()
6734
6745
  }).optional(),
6735
- supernovaAuth: z214.object({
6736
- accessToken: z214.string()
6746
+ supernovaAuth: z215.object({
6747
+ accessToken: z215.string()
6737
6748
  }).optional(),
6738
- trace: z214.object({
6739
- sentryTrace: z214.string().optional(),
6740
- baggage: z214.string().optional()
6749
+ trace: z215.object({
6750
+ sentryTrace: z215.string().optional(),
6751
+ baggage: z215.string().optional()
6741
6752
  }).optional()
6742
6753
  });
6743
- var PageScreenshotOutput = z214.discriminatedUnion("success", [
6744
- z214.object({
6745
- success: z214.literal(true),
6746
- fileSize: z214.number()
6754
+ var PageScreenshotOutput = z215.discriminatedUnion("success", [
6755
+ z215.object({
6756
+ success: z215.literal(true),
6757
+ fileSize: z215.number()
6747
6758
  }),
6748
- z214.object({
6749
- success: z214.literal(false),
6750
- error: z214.string()
6759
+ z215.object({
6760
+ success: z215.literal(false),
6761
+ error: z215.string()
6751
6762
  })
6752
6763
  ]);
6753
6764
 
6754
6765
  // src/portal/portal-settings.ts
6755
- import { z as z215 } from "zod";
6766
+ import { z as z216 } from "zod";
6756
6767
  var PortalSettingsTheme = UserTheme;
6757
- var PortalSettingsSidebarLink = z215.object({
6758
- name: z215.string(),
6759
- url: z215.string(),
6760
- emoji: z215.string()
6761
- });
6762
- var PortalSettingsSidebarSection = z215.object({
6763
- sectionName: z215.string(),
6764
- links: z215.array(PortalSettingsSidebarLink)
6765
- });
6766
- var PortalSettingsSidebar = z215.array(PortalSettingsSidebarSection);
6767
- var PortalSettings = z215.object({
6768
- id: z215.string(),
6769
- workspaceId: z215.string(),
6770
- enabledDesignSystemIds: z215.array(z215.string()),
6771
- enabledBrandPersistentIds: z215.array(z215.string()),
6768
+ var PortalSettingsSidebarLink = z216.object({
6769
+ name: z216.string(),
6770
+ url: z216.string(),
6771
+ emoji: z216.string()
6772
+ });
6773
+ var PortalSettingsSidebarSection = z216.object({
6774
+ sectionName: z216.string(),
6775
+ links: z216.array(PortalSettingsSidebarLink)
6776
+ });
6777
+ var PortalSettingsSidebar = z216.array(PortalSettingsSidebarSection);
6778
+ var PortalSettings = z216.object({
6779
+ id: z216.string(),
6780
+ workspaceId: z216.string(),
6781
+ enabledDesignSystemIds: z216.array(z216.string()),
6782
+ enabledBrandPersistentIds: z216.array(z216.string()),
6772
6783
  theme: PortalSettingsTheme.nullish(),
6773
6784
  sidebar: PortalSettingsSidebar.nullish(),
6774
- createdAt: z215.coerce.date(),
6775
- updatedAt: z215.coerce.date()
6785
+ createdAt: z216.coerce.date(),
6786
+ updatedAt: z216.coerce.date()
6776
6787
  });
6777
6788
 
6778
6789
  // src/sentry/headers.ts
6779
- import z216 from "zod";
6780
- var SentryTraceHeaders = z216.object({
6781
- sentryTrace: z216.string(),
6782
- baggage: z216.string()
6790
+ import z217 from "zod";
6791
+ var SentryTraceHeaders = z217.object({
6792
+ sentryTrace: z217.string(),
6793
+ baggage: z217.string()
6783
6794
  });
6784
6795
 
6785
6796
  // src/tokens/personal-access-token.ts
6786
- import { z as z217 } from "zod";
6787
- var PersonalAccessToken = z217.object({
6788
- id: z217.string(),
6789
- userId: z217.string(),
6790
- workspaceId: z217.string().optional(),
6791
- designSystemId: z217.string().optional(),
6797
+ import { z as z218 } from "zod";
6798
+ var PersonalAccessToken = z218.object({
6799
+ id: z218.string(),
6800
+ userId: z218.string(),
6801
+ workspaceId: z218.string().optional(),
6802
+ designSystemId: z218.string().optional(),
6792
6803
  workspaceRole: WorkspaceRoleSchema.optional(),
6793
- name: z217.string(),
6794
- hidden: z217.boolean(),
6795
- token: z217.string(),
6796
- scope: z217.string().optional(),
6797
- createdAt: z217.coerce.date(),
6798
- expireAt: z217.coerce.date().optional()
6804
+ name: z218.string(),
6805
+ hidden: z218.boolean(),
6806
+ token: z218.string(),
6807
+ scope: z218.string().optional(),
6808
+ createdAt: z218.coerce.date(),
6809
+ expireAt: z218.coerce.date().optional()
6799
6810
  });
6800
6811
  export {
6801
6812
  Address,
@@ -7123,12 +7134,14 @@ export {
7123
7134
  ForgeChatMessageUserScore,
7124
7135
  ForgeChatMessageUserScoreType,
7125
7136
  ForgeChatThread,
7137
+ ForgeDefaultProjectRole,
7126
7138
  ForgeFeatureRoom,
7127
7139
  ForgeFigmaArtifact,
7128
7140
  ForgeFileArtifact,
7129
7141
  ForgeIterationMessage,
7130
7142
  ForgeIterationMessageStep,
7131
7143
  ForgeParticipant,
7144
+ ForgeProjectAccessMode,
7132
7145
  ForgeProjectArtifact,
7133
7146
  ForgeProjectArtifactContent,
7134
7147
  ForgeProjectArtifactContentData,
@@ -7517,6 +7530,8 @@ export {
7517
7530
  Workspace,
7518
7531
  WorkspaceConfigurationUpdate,
7519
7532
  WorkspaceContext,
7533
+ WorkspaceDefaultProjectAccessMode,
7534
+ WorkspaceDefaultProjectRole,
7520
7535
  WorkspaceDump,
7521
7536
  WorkspaceInvitation,
7522
7537
  WorkspaceInviteEmailData,