@supernova-studio/client 1.14.3 → 1.15.0

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
@@ -169,44 +169,44 @@ import { z as z158 } from "zod";
169
169
  import { z as z159 } from "zod";
170
170
  import { z as z160 } from "zod";
171
171
  import { z as z161 } from "zod";
172
- import { z as z173 } from "zod";
173
- import { z as z172 } from "zod";
172
+ import { z as z187 } from "zod";
173
+ import { z as z186 } from "zod";
174
174
  import { z as z165 } from "zod";
175
175
  import { z as z166 } from "zod";
176
176
  import { z as z167 } from "zod";
177
+ import { z as z182 } from "zod";
177
178
  import { z as z168 } from "zod";
178
179
  import { z as z169 } from "zod";
179
180
  import { z as z170 } from "zod";
181
+ import { z as z172 } from "zod";
180
182
  import { z as z171 } from "zod";
181
- import { z as z176 } from "zod";
182
- import { z as z175 } from "zod";
183
+ import { z as z173 } from "zod";
183
184
  import { z as z174 } from "zod";
185
+ import { z as z175 } from "zod";
186
+ import { z as z176 } from "zod";
184
187
  import { z as z177 } from "zod";
185
- import { z as z178 } from "zod";
186
188
  import { z as z179 } from "zod";
187
- import { z as z183 } from "zod";
189
+ import { z as z178 } from "zod";
188
190
  import { z as z180 } from "zod";
189
191
  import { z as z181 } from "zod";
190
- import { z as z182 } from "zod";
192
+ import { z as z183 } from "zod";
191
193
  import { z as z184 } from "zod";
192
194
  import { z as z185 } from "zod";
193
- import { z as z186 } from "zod";
194
- import { z as z187 } from "zod";
195
- import { z as z188 } from "zod";
196
- import { z as z189 } from "zod";
197
195
  import { z as z190 } from "zod";
196
+ import { z as z189 } from "zod";
197
+ import { z as z188 } from "zod";
198
198
  import { z as z191 } from "zod";
199
199
  import { z as z192 } from "zod";
200
200
  import { z as z193 } from "zod";
201
- import { z as z195 } from "zod";
201
+ import { z as z197 } from "zod";
202
202
  import { z as z194 } from "zod";
203
+ import { z as z195 } from "zod";
203
204
  import { z as z196 } from "zod";
204
- import { z as z197 } from "zod";
205
205
  import { z as z198 } from "zod";
206
206
  import { z as z199 } from "zod";
207
207
  import { z as z200 } from "zod";
208
- import { z as z202 } from "zod";
209
208
  import { z as z201 } from "zod";
209
+ import { z as z202 } from "zod";
210
210
  import { z as z203 } from "zod";
211
211
  import { z as z204 } from "zod";
212
212
  import { z as z206 } from "zod";
@@ -5052,9 +5052,208 @@ var ForgeProjectArtifactRoom = Entity.extend({
5052
5052
  liveblocksId: z167.string(),
5053
5053
  isDirty: z167.boolean()
5054
5054
  });
5055
+ var ForgeAvatarBuilder = z168.object({
5056
+ headType: z168.string(),
5057
+ hairType: z168.string(),
5058
+ accessory1Type: z168.string(),
5059
+ accessory2Type: z168.string()
5060
+ });
5061
+ var ForgeAgent = z168.object({
5062
+ avatar: z168.union([z168.string(), ForgeAvatarBuilder]),
5063
+ avatarUrl: z168.string().optional(),
5064
+ behavior: z168.enum(["Coder", "Writer", "Designer"]),
5065
+ id: z168.string(),
5066
+ name: z168.string(),
5067
+ personality: z168.enum(["Neutral", "Assertive", "Crazy"]),
5068
+ projectId: z168.string()
5069
+ });
5070
+ var Artifact = z169.object({
5071
+ id: z169.string(),
5072
+ createdAt: z169.coerce.date(),
5073
+ projectIterationId: z169.string()
5074
+ });
5075
+ var ForgeFileArtifact = Artifact.extend({
5076
+ type: z169.enum(["file/text", "file/pdf", "file/image"]),
5077
+ fileName: z169.string(),
5078
+ uploadedFileUrl: z169.string()
5079
+ });
5080
+ var ForgeFigmaArtifact = Artifact.extend({
5081
+ type: z169.literal("figma/node"),
5082
+ figmaFileUrl: z169.string(),
5083
+ figmaNodeId: z169.string(),
5084
+ figmaFileName: z169.string().optional(),
5085
+ previewUrl: z169.string().optional()
5086
+ });
5087
+ var ForgeSpecArtifact = Artifact.extend({
5088
+ type: z169.literal("spec"),
5089
+ fileName: z169.string(),
5090
+ yjsDocId: z169.string(),
5091
+ markdownText: z169.string()
5092
+ });
5093
+ var ForgeBuildArtifactFiles = z169.array(
5094
+ z169.object({
5095
+ path: z169.string(),
5096
+ content: z169.string(),
5097
+ isVisibleToUser: z169.boolean().optional()
5098
+ })
5099
+ );
5100
+ var ForgeBuildArtifactEnvironment = z169.object({
5101
+ dependencies: z169.record(z169.string())
5102
+ });
5103
+ var ForgeBuildArtifact = Artifact.extend({
5104
+ type: z169.literal("build"),
5105
+ participantId: z169.string(),
5106
+ files: ForgeBuildArtifactFiles,
5107
+ environment: ForgeBuildArtifactEnvironment
5108
+ });
5109
+ var ForgeArtifact = z169.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5110
+ var Id = z170.string().uuid();
5111
+ var ForgeParticipant = z171.object({
5112
+ id: z171.string(),
5113
+ agentId: z171.string().optional(),
5114
+ agent: ForgeAgent.optional(),
5115
+ projectIterationId: z171.string(),
5116
+ role: z171.enum(["Editor", "Viewer"]),
5117
+ type: z171.enum(["Agent", "User"]),
5118
+ userId: z171.string().optional(),
5119
+ user: User.optional()
5120
+ });
5121
+ var ForgeIterationMessageStep = z172.object({
5122
+ name: z172.string(),
5123
+ text: z172.string(),
5124
+ status: z172.enum(["pending", "started", "completed", "error"])
5125
+ });
5126
+ var ForgeIterationMessage = z172.object({
5127
+ id: z172.string(),
5128
+ createdAt: z172.coerce.date(),
5129
+ participantId: z172.string(),
5130
+ participant: ForgeParticipant,
5131
+ projectIterationId: z172.string(),
5132
+ steps: z172.array(ForgeIterationMessageStep).optional(),
5133
+ type: z172.enum(["Note", "Action", "Steps"]),
5134
+ text: z172.string()
5135
+ });
5136
+ var ForgeMeta = z173.object({
5137
+ name: z173.string(),
5138
+ description: z173.string().optional()
5139
+ });
5140
+ var ForgeProjectArtifactContentData = DocumentationPageContentData;
5141
+ var ForgeProjectArtifactContent = z174.object({
5142
+ id: z174.string(),
5143
+ artifactId: z174.string(),
5144
+ projectId: z174.string(),
5145
+ createdAt: z174.coerce.date(),
5146
+ updatedAt: z174.coerce.date(),
5147
+ data: ForgeProjectArtifactContentData
5148
+ });
5149
+ var ForgeProjectArtifact = z175.object({
5150
+ id: z175.string(),
5151
+ projectId: z175.string(),
5152
+ iterationId: z175.string().nullish(),
5153
+ title: z175.string(),
5154
+ previewUrl: z175.string().nullish(),
5155
+ path: z175.string(),
5156
+ sortOrder: z175.number().default(0),
5157
+ createdAt: z175.coerce.date(),
5158
+ updatedAt: z175.coerce.date(),
5159
+ createdByUserId: z175.string()
5160
+ });
5161
+ var ForgeProjectContextDependency = z176.object({
5162
+ packageName: z176.string(),
5163
+ type: z176.literal("npm"),
5164
+ version: z176.string().default("latest")
5165
+ });
5166
+ var ForgeProjectContextTailwindConfig = z176.object({
5167
+ content: z176.string(),
5168
+ version: z176.string()
5169
+ });
5170
+ var ForgeProjectContext = z176.object({
5171
+ createdAt: z176.coerce.date(),
5172
+ definition: z176.string(),
5173
+ dependencies: z176.array(ForgeProjectContextDependency),
5174
+ designSystemId: z176.string(),
5175
+ id: z176.string(),
5176
+ meta: ForgeMeta,
5177
+ name: z176.string(),
5178
+ npmProxySettings: NpmRegistryConfig,
5179
+ platform: z176.enum(["React", "Vue", "Angular"]),
5180
+ styling: z176.enum(["CSS", "Tailwind"]),
5181
+ tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
5182
+ updatedAt: z176.coerce.date(),
5183
+ workspaceId: z176.string()
5184
+ });
5185
+ var ProjectFeature = z177.object({
5186
+ createdAt: z177.coerce.date(),
5187
+ createdByUserId: z177.string(),
5188
+ description: z177.string(),
5189
+ id: Id,
5190
+ isArchived: z177.boolean().optional(),
5191
+ name: Id,
5192
+ projectId: z177.string(),
5193
+ sectionId: Id.optional(),
5194
+ sortOrder: z177.number().int().min(0),
5195
+ updatedAt: z177.coerce.date().optional()
5196
+ });
5197
+ var ForgeProjectRole = z178.enum(["Viewer", "Editor", "Admin"]);
5198
+ var ForgeProjectMembership = z178.object({
5199
+ userId: z178.string(),
5200
+ forgeProjectId: z178.string(),
5201
+ workspaceMembershipId: z178.string(),
5202
+ workspaceRole: WorkspaceRoleSchema,
5203
+ role: ForgeProjectRole
5204
+ });
5205
+ var ForgeProjectInvitation = z179.object({
5206
+ email: z179.string().email(),
5207
+ forgeProjectId: z179.string(),
5208
+ workspaceInvitationId: z179.string(),
5209
+ role: ForgeProjectRole,
5210
+ createdAt: z179.coerce.date(),
5211
+ updatedAt: z179.coerce.date(),
5212
+ createdById: z179.string()
5213
+ });
5214
+ var ForgeProjectIterationMergeMeta = z180.object({ mergeByUserId: z180.string(), mergeAt: z180.date() });
5215
+ var ForgeProjectIteration = z180.object({
5216
+ branchId: z180.string().optional(),
5217
+ buildArtifactId: z180.string(),
5218
+ createdAt: z180.coerce.date(),
5219
+ forgeProjectId: z180.string(),
5220
+ id: z180.string(),
5221
+ locked: z180.boolean(),
5222
+ messages: z180.array(ForgeIterationMessage),
5223
+ artifacts: z180.array(ForgeArtifact),
5224
+ previousIterationId: z180.string().optional(),
5225
+ mergeMeta: ForgeProjectIterationMergeMeta.optional()
5226
+ });
5227
+ var ForgeProjectTag = z181.array(z181.string()).default([]);
5228
+ var ForgeProjectAccessMode = z181.enum(["InviteOnly", "Open"]);
5229
+ var ForgeProject = z181.object({
5230
+ createdAt: z181.coerce.date(),
5231
+ createdByUserId: z181.string().optional(),
5232
+ fpContextId: z181.string(),
5233
+ id: z181.string(),
5234
+ instruction: z181.string().nullable(),
5235
+ meta: ForgeMeta,
5236
+ name: z181.string(),
5237
+ tags: ForgeProjectTag,
5238
+ updatedAt: z181.coerce.date().optional(),
5239
+ workspaceId: z181.string(),
5240
+ accessMode: ForgeProjectAccessMode,
5241
+ isArchived: z181.boolean().optional(),
5242
+ emoji: z181.string().optional()
5243
+ });
5055
5244
  var ForgeProjectRoom = Entity.extend({
5056
- projectId: z168.string(),
5057
- liveblocksId: z168.string()
5245
+ projectId: z182.string(),
5246
+ liveblocksId: z182.string()
5247
+ });
5248
+ var ForgeProjectRoomInitialState = z182.object({
5249
+ artifacts: z182.array(ForgeProjectArtifact),
5250
+ features: z182.array(ProjectFeature)
5251
+ });
5252
+ var ForgeProjectRoomUpdate = z182.object({
5253
+ artifacts: z182.array(ForgeProjectArtifact).optional(),
5254
+ artifactIdsToDelete: z182.array(z182.string()).optional(),
5255
+ features: z182.array(ProjectFeature).optional(),
5256
+ featureIdsToDelete: z182.array(z182.string()).optional()
5058
5257
  });
5059
5258
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5060
5259
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
@@ -5065,28 +5264,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5065
5264
  RoomTypeEnum2["ForgeProjectArtifact"] = "forge-project-artifact";
5066
5265
  return RoomTypeEnum2;
5067
5266
  })(RoomTypeEnum || {});
5068
- var RoomTypeSchema = z169.nativeEnum(RoomTypeEnum);
5267
+ var RoomTypeSchema = z183.nativeEnum(RoomTypeEnum);
5069
5268
  var RoomType = RoomTypeSchema.enum;
5070
5269
  var WorkspaceRoom = Entity.extend({
5071
- workspaceId: z170.string(),
5072
- liveblocksId: z170.string()
5270
+ workspaceId: z184.string(),
5271
+ liveblocksId: z184.string()
5073
5272
  });
5074
- var PublishedDocsDump = z171.object({
5273
+ var PublishedDocsDump = z185.object({
5075
5274
  documentation: PublishedDoc,
5076
5275
  pages: PublishedDocPage.array()
5077
5276
  });
5078
- var DocumentationThreadDump = z172.object({
5277
+ var DocumentationThreadDump = z186.object({
5079
5278
  thread: DocumentationCommentThread,
5080
5279
  comments: DocumentationComment.array()
5081
5280
  });
5082
- var DocumentationPageRoomDump = z172.object({
5281
+ var DocumentationPageRoomDump = z186.object({
5083
5282
  room: DocumentationPageRoom,
5084
5283
  threads: DocumentationThreadDump.array()
5085
5284
  });
5086
- var DesignSystemVersionMultiplayerDump = z172.object({
5285
+ var DesignSystemVersionMultiplayerDump = z186.object({
5087
5286
  documentationPages: DocumentationPageRoomDump.array()
5088
5287
  });
5089
- var DesignSystemVersionDump = z172.object({
5288
+ var DesignSystemVersionDump = z186.object({
5090
5289
  version: DesignSystemVersion,
5091
5290
  brands: Brand.array(),
5092
5291
  elements: DesignElement.array(),
@@ -5099,50 +5298,50 @@ var DesignSystemVersionDump = z172.object({
5099
5298
  publishedDocumentations: PublishedDocsDump.array(),
5100
5299
  assetReferences: AssetReference.array()
5101
5300
  });
5102
- var DesignSystemDump = z173.object({
5301
+ var DesignSystemDump = z187.object({
5103
5302
  designSystem: DesignSystem,
5104
5303
  dataSources: DataSource.array(),
5105
5304
  versions: DesignSystemVersionDump.array(),
5106
5305
  customDomain: CustomDomain.optional(),
5107
5306
  files: Asset.array()
5108
5307
  });
5109
- var IntegrationDesignSystem = z174.object({
5110
- designSystemId: z174.string(),
5111
- brandId: z174.string(),
5112
- title: z174.string().optional(),
5113
- userId: z174.string().optional(),
5114
- date: z174.coerce.date().optional()
5115
- });
5116
- var IntegrationCredentialsType = z174.enum(["OAuth2", "PAT"]);
5117
- var IntegrationCredentialsState = z174.enum(["Active", "Inactive"]);
5118
- var IntegrationCredentialsProfile = z174.object({
5119
- id: nullishToOptional(z174.string()),
5120
- email: nullishToOptional(z174.string()),
5121
- handle: nullishToOptional(z174.string()),
5122
- type: nullishToOptional(z174.string()),
5123
- avatarUrl: nullishToOptional(z174.string()),
5124
- organization: nullishToOptional(z174.string()),
5125
- collection: nullishToOptional(z174.string())
5126
- });
5127
- var IntegrationCredentials = z174.object({
5128
- id: z174.string(),
5308
+ var IntegrationDesignSystem = z188.object({
5309
+ designSystemId: z188.string(),
5310
+ brandId: z188.string(),
5311
+ title: z188.string().optional(),
5312
+ userId: z188.string().optional(),
5313
+ date: z188.coerce.date().optional()
5314
+ });
5315
+ var IntegrationCredentialsType = z188.enum(["OAuth2", "PAT"]);
5316
+ var IntegrationCredentialsState = z188.enum(["Active", "Inactive"]);
5317
+ var IntegrationCredentialsProfile = z188.object({
5318
+ id: nullishToOptional(z188.string()),
5319
+ email: nullishToOptional(z188.string()),
5320
+ handle: nullishToOptional(z188.string()),
5321
+ type: nullishToOptional(z188.string()),
5322
+ avatarUrl: nullishToOptional(z188.string()),
5323
+ organization: nullishToOptional(z188.string()),
5324
+ collection: nullishToOptional(z188.string())
5325
+ });
5326
+ var IntegrationCredentials = z188.object({
5327
+ id: z188.string(),
5129
5328
  type: IntegrationCredentialsType,
5130
- integrationId: z174.string(),
5131
- accessToken: z174.string(),
5132
- userId: z174.string(),
5133
- createdAt: z174.coerce.date(),
5134
- refreshToken: z174.string().optional(),
5135
- tokenName: z174.string().optional(),
5136
- expiresAt: z174.coerce.date().optional(),
5137
- refreshedAt: z174.coerce.date().optional(),
5138
- username: z174.string().optional(),
5139
- appInstallationId: z174.string().optional(),
5329
+ integrationId: z188.string(),
5330
+ accessToken: z188.string(),
5331
+ userId: z188.string(),
5332
+ createdAt: z188.coerce.date(),
5333
+ refreshToken: z188.string().optional(),
5334
+ tokenName: z188.string().optional(),
5335
+ expiresAt: z188.coerce.date().optional(),
5336
+ refreshedAt: z188.coerce.date().optional(),
5337
+ username: z188.string().optional(),
5338
+ appInstallationId: z188.string().optional(),
5140
5339
  profile: IntegrationCredentialsProfile.optional(),
5141
- customUrl: z174.string().optional(),
5340
+ customUrl: z188.string().optional(),
5142
5341
  state: IntegrationCredentialsState,
5143
5342
  user: UserMinified.optional()
5144
5343
  });
5145
- var ExtendedIntegrationType = z174.enum([
5344
+ var ExtendedIntegrationType = z188.enum([
5146
5345
  "Figma",
5147
5346
  "Github",
5148
5347
  "Gitlab",
@@ -5153,26 +5352,26 @@ var ExtendedIntegrationType = z174.enum([
5153
5352
  ]);
5154
5353
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5155
5354
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5156
- var Integration = z174.object({
5157
- id: z174.string(),
5158
- workspaceId: z174.string(),
5355
+ var Integration = z188.object({
5356
+ id: z188.string(),
5357
+ workspaceId: z188.string(),
5159
5358
  type: IntegrationType,
5160
- createdAt: z174.coerce.date(),
5161
- integrationCredentials: z174.array(IntegrationCredentials).optional()
5162
- });
5163
- var IntegrationToken = z174.object({
5164
- access_token: z174.string(),
5165
- refresh_token: z174.string().optional(),
5166
- expires_in: z174.union([z174.number().optional(), z174.string().optional()]),
5167
- token_type: z174.string().optional(),
5168
- token_name: z174.string().optional(),
5169
- token_azure_organization_name: z174.string().optional(),
5359
+ createdAt: z188.coerce.date(),
5360
+ integrationCredentials: z188.array(IntegrationCredentials).optional()
5361
+ });
5362
+ var IntegrationToken = z188.object({
5363
+ access_token: z188.string(),
5364
+ refresh_token: z188.string().optional(),
5365
+ expires_in: z188.union([z188.number().optional(), z188.string().optional()]),
5366
+ token_type: z188.string().optional(),
5367
+ token_name: z188.string().optional(),
5368
+ token_azure_organization_name: z188.string().optional(),
5170
5369
  // Azure Cloud PAT only
5171
- token_azure_collection_name: z174.string().optional(),
5370
+ token_azure_collection_name: z188.string().optional(),
5172
5371
  // Azure Server PAT only
5173
- token_bitbucket_username: z174.string().optional(),
5372
+ token_bitbucket_username: z188.string().optional(),
5174
5373
  // Bitbucket only
5175
- custom_url: z174.string().optional().transform((value) => {
5374
+ custom_url: z188.string().optional().transform((value) => {
5176
5375
  if (!value?.trim()) return void 0;
5177
5376
  return formatCustomUrl(value);
5178
5377
  })
@@ -5207,122 +5406,122 @@ function formatCustomUrl(url) {
5207
5406
  }
5208
5407
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
5209
5408
  }
5210
- var WorkspaceDump = z175.object({
5409
+ var WorkspaceDump = z189.object({
5211
5410
  workspace: Workspace,
5212
5411
  designSystems: DesignSystemDump.array(),
5213
5412
  codeIntegration: CodeIntegrationDump,
5214
5413
  integrations: Integration.array()
5215
5414
  });
5216
- var UserDump = z176.object({
5415
+ var UserDump = z190.object({
5217
5416
  user: User,
5218
5417
  workspaces: WorkspaceDump.array()
5219
5418
  });
5220
- var NpmProxyToken = z177.object({
5221
- access: z177.string(),
5222
- expiresAt: z177.number()
5419
+ var NpmProxyToken = z191.object({
5420
+ access: z191.string(),
5421
+ expiresAt: z191.number()
5223
5422
  });
5224
- var SessionData = z177.object({
5225
- returnToUrl: z177.string().optional(),
5423
+ var SessionData = z191.object({
5424
+ returnToUrl: z191.string().optional(),
5226
5425
  npmProxyToken: NpmProxyToken.optional()
5227
5426
  });
5228
- var Session = z177.object({
5229
- id: z177.string(),
5230
- expiresAt: z177.coerce.date(),
5231
- userId: z177.string().nullable(),
5232
- anonymousId: z177.string().nullable(),
5427
+ var Session = z191.object({
5428
+ id: z191.string(),
5429
+ expiresAt: z191.coerce.date(),
5430
+ userId: z191.string().nullable(),
5431
+ anonymousId: z191.string().nullable(),
5233
5432
  data: SessionData
5234
5433
  });
5235
- var AuthTokens = z177.object({
5236
- access: z177.string(),
5237
- refresh: z177.string()
5434
+ var AuthTokens = z191.object({
5435
+ access: z191.string(),
5436
+ refresh: z191.string()
5238
5437
  });
5239
- var UserSession = z177.object({
5438
+ var UserSession = z191.object({
5240
5439
  session: Session,
5241
5440
  user: User.nullable()
5242
5441
  });
5243
- var DesignSystemInviteEmailRecipient = z178.object({
5244
- email: z178.string(),
5442
+ var DesignSystemInviteEmailRecipient = z192.object({
5443
+ email: z192.string(),
5245
5444
  role: WorkspaceRoleSchema
5246
5445
  });
5247
- var DesignSystemInviteEmailData = z178.object({
5446
+ var DesignSystemInviteEmailData = z192.object({
5248
5447
  workspace: Workspace,
5249
5448
  designSystem: DesignSystem,
5250
5449
  invitedBy: User,
5251
- documentationDomain: z178.string().optional()
5450
+ documentationDomain: z192.string().optional()
5252
5451
  });
5253
- var WorkspaceInviteEmailRecipient = z179.object({
5254
- email: z179.string(),
5452
+ var WorkspaceInviteEmailRecipient = z193.object({
5453
+ email: z193.string(),
5255
5454
  role: WorkspaceRoleSchema
5256
5455
  });
5257
- var WorkspaceInviteEmailData = z179.object({
5456
+ var WorkspaceInviteEmailData = z193.object({
5258
5457
  workspace: Workspace,
5259
5458
  invitedBy: User,
5260
- documentationDomain: z179.string().optional()
5261
- });
5262
- var EventDataSourceImported = z180.object({
5263
- type: z180.literal("DataSourceImported"),
5264
- workspaceId: z180.string(),
5265
- designSystemId: z180.string()
5266
- });
5267
- var EventVersionReleased = z181.object({
5268
- type: z181.literal("DesignSystemVersionReleased"),
5269
- workspaceId: z181.string(),
5270
- designSystemId: z181.string(),
5271
- versionId: z181.string()
5272
- });
5273
- var EventDocumentationPublished = z182.object({
5274
- type: z182.literal("DocumentationPublished"),
5275
- workspaceId: z182.string(),
5276
- designSystemId: z182.string(),
5277
- versionId: z182.string()
5278
- });
5279
- var Event = z183.discriminatedUnion("type", [
5459
+ documentationDomain: z193.string().optional()
5460
+ });
5461
+ var EventDataSourceImported = z194.object({
5462
+ type: z194.literal("DataSourceImported"),
5463
+ workspaceId: z194.string(),
5464
+ designSystemId: z194.string()
5465
+ });
5466
+ var EventVersionReleased = z195.object({
5467
+ type: z195.literal("DesignSystemVersionReleased"),
5468
+ workspaceId: z195.string(),
5469
+ designSystemId: z195.string(),
5470
+ versionId: z195.string()
5471
+ });
5472
+ var EventDocumentationPublished = z196.object({
5473
+ type: z196.literal("DocumentationPublished"),
5474
+ workspaceId: z196.string(),
5475
+ designSystemId: z196.string(),
5476
+ versionId: z196.string()
5477
+ });
5478
+ var Event = z197.discriminatedUnion("type", [
5280
5479
  EventVersionReleased,
5281
5480
  EventDataSourceImported,
5282
5481
  EventDocumentationPublished
5283
5482
  ]);
5284
- var ExportJobDocumentationContext = z184.object({
5285
- isSingleVersionDocs: z184.boolean(),
5286
- versionSlug: z184.string(),
5483
+ var ExportJobDocumentationContext = z198.object({
5484
+ isSingleVersionDocs: z198.boolean(),
5485
+ versionSlug: z198.string(),
5287
5486
  environment: PublishedDocEnvironment
5288
5487
  });
5289
- var ExportJobDebugContext = z184.object({
5290
- debugMode: z184.boolean().optional(),
5291
- concurrency: z184.number().optional(),
5292
- preloadData: z184.string().optional(),
5293
- concurrencyMode: z184.string().optional(),
5294
- cacheSdk: z184.string().optional(),
5295
- logSdkNetwork: z184.boolean().optional(),
5296
- profilerMode: z184.string().optional()
5297
- });
5298
- var ExportJobContext = z184.object({
5299
- apiUrl: z184.string(),
5300
- accessToken: z184.string(),
5301
- designSystemId: z184.string(),
5302
- designSystemName: z184.string(),
5303
- exporterId: z184.string(),
5304
- versionId: z184.string(),
5305
- brandId: z184.string().optional(),
5306
- themeId: z184.string().optional(),
5307
- themePersistentIds: z184.string().array().optional(),
5308
- previewMode: z184.boolean().optional(),
5309
- exporterName: z184.string(),
5488
+ var ExportJobDebugContext = z198.object({
5489
+ debugMode: z198.boolean().optional(),
5490
+ concurrency: z198.number().optional(),
5491
+ preloadData: z198.string().optional(),
5492
+ concurrencyMode: z198.string().optional(),
5493
+ cacheSdk: z198.string().optional(),
5494
+ logSdkNetwork: z198.boolean().optional(),
5495
+ profilerMode: z198.string().optional()
5496
+ });
5497
+ var ExportJobContext = z198.object({
5498
+ apiUrl: z198.string(),
5499
+ accessToken: z198.string(),
5500
+ designSystemId: z198.string(),
5501
+ designSystemName: z198.string(),
5502
+ exporterId: z198.string(),
5503
+ versionId: z198.string(),
5504
+ brandId: z198.string().optional(),
5505
+ themeId: z198.string().optional(),
5506
+ themePersistentIds: z198.string().array().optional(),
5507
+ previewMode: z198.boolean().optional(),
5508
+ exporterName: z198.string(),
5310
5509
  documentation: ExportJobDocumentationContext.optional(),
5311
5510
  debug: ExportJobDebugContext.optional()
5312
5511
  });
5313
- var ExportJobExporterConfiguration = z184.object({
5314
- exporterPackageUrl: z184.string(),
5512
+ var ExportJobExporterConfiguration = z198.object({
5513
+ exporterPackageUrl: z198.string(),
5315
5514
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5316
5515
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5317
5516
  });
5318
- var ExporterFunctionPayload = z185.object({
5319
- exportJobId: z185.string(),
5320
- exportContextId: z185.string(),
5321
- designSystemId: z185.string(),
5322
- workspaceId: z185.string(),
5323
- exporterId: z185.string()
5517
+ var ExporterFunctionPayload = z199.object({
5518
+ exportJobId: z199.string(),
5519
+ exportContextId: z199.string(),
5520
+ designSystemId: z199.string(),
5521
+ workspaceId: z199.string(),
5522
+ exporterId: z199.string()
5324
5523
  });
5325
- var ExportJobDestinationType = z186.enum([
5524
+ var ExportJobDestinationType = z200.enum([
5326
5525
  "s3",
5327
5526
  "webhookUrl",
5328
5527
  "github",
@@ -5331,31 +5530,31 @@ var ExportJobDestinationType = z186.enum([
5331
5530
  "gitlab",
5332
5531
  "bitbucket"
5333
5532
  ]);
5334
- var ExportJobStatus = z186.enum(["InProgress", "Success", "Failed", "Timeout"]);
5335
- var ExportJobLogEntryType = z186.enum(["success", "info", "warning", "error", "user"]);
5336
- var ExportJobLogEntry = z186.object({
5337
- id: z186.string().optional(),
5338
- time: z186.coerce.date(),
5533
+ var ExportJobStatus = z200.enum(["InProgress", "Success", "Failed", "Timeout"]);
5534
+ var ExportJobLogEntryType = z200.enum(["success", "info", "warning", "error", "user"]);
5535
+ var ExportJobLogEntry = z200.object({
5536
+ id: z200.string().optional(),
5537
+ time: z200.coerce.date(),
5339
5538
  type: ExportJobLogEntryType,
5340
- message: z186.string()
5539
+ message: z200.string()
5341
5540
  });
5342
- var ExportJobPullRequestDestinationResult = z186.object({
5343
- pullRequestUrl: z186.string(),
5344
- sparseCheckoutUsed: nullishToOptional(z186.boolean())
5541
+ var ExportJobPullRequestDestinationResult = z200.object({
5542
+ pullRequestUrl: z200.string(),
5543
+ sparseCheckoutUsed: nullishToOptional(z200.boolean())
5345
5544
  });
5346
- var ExportJobS3DestinationResult = z186.object({
5347
- bucket: z186.string(),
5348
- urlPrefix: z186.string().optional(),
5349
- path: z186.string(),
5350
- files: z186.array(z186.string()),
5351
- url: nullishToOptional(z186.string()),
5352
- urls: nullishToOptional(z186.string().array())
5545
+ var ExportJobS3DestinationResult = z200.object({
5546
+ bucket: z200.string(),
5547
+ urlPrefix: z200.string().optional(),
5548
+ path: z200.string(),
5549
+ files: z200.array(z200.string()),
5550
+ url: nullishToOptional(z200.string()),
5551
+ urls: nullishToOptional(z200.string().array())
5353
5552
  });
5354
- var ExportJobDocsDestinationResult = z186.object({
5355
- url: z186.string()
5553
+ var ExportJobDocsDestinationResult = z200.object({
5554
+ url: z200.string()
5356
5555
  });
5357
- var ExportJobResult = z186.object({
5358
- error: z186.string().optional(),
5556
+ var ExportJobResult = z200.object({
5557
+ error: z200.string().optional(),
5359
5558
  s3: nullishToOptional(ExportJobS3DestinationResult),
5360
5559
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5361
5560
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5364,25 +5563,25 @@ var ExportJobResult = z186.object({
5364
5563
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5365
5564
  logs: nullishToOptional(ExportJobLogEntry.array())
5366
5565
  });
5367
- var ExportJob = z186.object({
5368
- id: z186.string(),
5369
- createdAt: z186.coerce.date(),
5370
- finishedAt: z186.coerce.date().optional(),
5371
- designSystemId: z186.string(),
5372
- designSystemVersionId: z186.string(),
5373
- workspaceId: z186.string(),
5374
- scheduleId: z186.string().nullish(),
5375
- exporterId: z186.string(),
5376
- brandId: z186.string().optional(),
5377
- themeId: z186.string().optional(),
5378
- themePersistentIds: z186.string().array().optional(),
5379
- estimatedExecutionTime: z186.number().optional(),
5566
+ var ExportJob = z200.object({
5567
+ id: z200.string(),
5568
+ createdAt: z200.coerce.date(),
5569
+ finishedAt: z200.coerce.date().optional(),
5570
+ designSystemId: z200.string(),
5571
+ designSystemVersionId: z200.string(),
5572
+ workspaceId: z200.string(),
5573
+ scheduleId: z200.string().nullish(),
5574
+ exporterId: z200.string(),
5575
+ brandId: z200.string().optional(),
5576
+ themeId: z200.string().optional(),
5577
+ themePersistentIds: z200.string().array().optional(),
5578
+ estimatedExecutionTime: z200.number().optional(),
5380
5579
  status: ExportJobStatus,
5381
5580
  result: ExportJobResult.optional(),
5382
- createdByUserId: z186.string().optional(),
5581
+ createdByUserId: z200.string().optional(),
5383
5582
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5384
- previewMode: z186.boolean().optional(),
5385
- exportContextId: z186.string().optional().nullable(),
5583
+ previewMode: z200.boolean().optional(),
5584
+ exportContextId: z200.string().optional().nullable(),
5386
5585
  // Destinations
5387
5586
  ...ExportDestinationsMap.shape
5388
5587
  });
@@ -5396,25 +5595,25 @@ var ExportJobFindByFilter = ExportJob.pick({
5396
5595
  themeId: true,
5397
5596
  brandId: true
5398
5597
  }).extend({
5399
- destinations: z186.array(ExportJobDestinationType),
5598
+ destinations: z200.array(ExportJobDestinationType),
5400
5599
  docsEnvironment: PublishedDocEnvironment,
5401
- selectivePublishing: z186.boolean().optional()
5600
+ selectivePublishing: z200.boolean().optional()
5402
5601
  }).partial();
5403
- var ExporterType2 = z187.enum(["documentation", "code"]);
5404
- var ListExporterQuery = z187.object({
5405
- limit: z187.number().optional(),
5406
- offset: z187.number().optional(),
5602
+ var ExporterType2 = z201.enum(["documentation", "code"]);
5603
+ var ListExporterQuery = z201.object({
5604
+ limit: z201.number().optional(),
5605
+ offset: z201.number().optional(),
5407
5606
  type: ExporterType2.optional(),
5408
- search: z187.string().optional()
5607
+ search: z201.string().optional()
5409
5608
  });
5410
- var ExporterWorkspaceMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
5411
- var ExporterWorkspaceMembership = z189.object({
5412
- id: z189.string(),
5413
- workspaceId: z189.string(),
5414
- exporterId: z189.string(),
5609
+ var ExporterWorkspaceMembershipRole = z202.enum(["Owner", "OwnerArchived", "User"]);
5610
+ var ExporterWorkspaceMembership = z203.object({
5611
+ id: z203.string(),
5612
+ workspaceId: z203.string(),
5613
+ exporterId: z203.string(),
5415
5614
  role: ExporterWorkspaceMembershipRole
5416
5615
  });
5417
- var FlaggedFeature = z190.enum([
5616
+ var FlaggedFeature = z204.enum([
5418
5617
  "FigmaImporterV2",
5419
5618
  "DisableImporter",
5420
5619
  "VariablesOrder",
@@ -5434,203 +5633,14 @@ var FlaggedFeature = z190.enum([
5434
5633
  "PulsarConcurrency",
5435
5634
  "PulsarProfilerMode"
5436
5635
  ]);
5437
- var FeatureFlagMap = z190.record(FlaggedFeature, z190.boolean());
5438
- var FeatureFlag = z190.object({
5439
- id: z190.string(),
5636
+ var FeatureFlagMap = z204.record(FlaggedFeature, z204.boolean());
5637
+ var FeatureFlag = z204.object({
5638
+ id: z204.string(),
5440
5639
  feature: FlaggedFeature,
5441
- createdAt: z190.coerce.date(),
5442
- enabled: z190.boolean(),
5443
- designSystemId: z190.string().optional(),
5444
- data: z190.record(z190.any()).nullable().optional()
5445
- });
5446
- var ForgeAvatarBuilder = z191.object({
5447
- headType: z191.string(),
5448
- hairType: z191.string(),
5449
- accessory1Type: z191.string(),
5450
- accessory2Type: z191.string()
5451
- });
5452
- var ForgeAgent = z191.object({
5453
- avatar: z191.union([z191.string(), ForgeAvatarBuilder]),
5454
- avatarUrl: z191.string().optional(),
5455
- behavior: z191.enum(["Coder", "Writer", "Designer"]),
5456
- id: z191.string(),
5457
- name: z191.string(),
5458
- personality: z191.enum(["Neutral", "Assertive", "Crazy"]),
5459
- projectId: z191.string()
5460
- });
5461
- var Artifact = z192.object({
5462
- id: z192.string(),
5463
- createdAt: z192.coerce.date(),
5464
- projectIterationId: z192.string()
5465
- });
5466
- var ForgeFileArtifact = Artifact.extend({
5467
- type: z192.enum(["file/text", "file/pdf", "file/image"]),
5468
- fileName: z192.string(),
5469
- uploadedFileUrl: z192.string()
5470
- });
5471
- var ForgeFigmaArtifact = Artifact.extend({
5472
- type: z192.literal("figma/node"),
5473
- figmaFileUrl: z192.string(),
5474
- figmaNodeId: z192.string(),
5475
- figmaFileName: z192.string().optional(),
5476
- previewUrl: z192.string().optional()
5477
- });
5478
- var ForgeSpecArtifact = Artifact.extend({
5479
- type: z192.literal("spec"),
5480
- fileName: z192.string(),
5481
- yjsDocId: z192.string(),
5482
- markdownText: z192.string()
5483
- });
5484
- var ForgeBuildArtifactFiles = z192.array(
5485
- z192.object({
5486
- path: z192.string(),
5487
- content: z192.string(),
5488
- isVisibleToUser: z192.boolean().optional()
5489
- })
5490
- );
5491
- var ForgeBuildArtifactEnvironment = z192.object({
5492
- dependencies: z192.record(z192.string())
5493
- });
5494
- var ForgeBuildArtifact = Artifact.extend({
5495
- type: z192.literal("build"),
5496
- participantId: z192.string(),
5497
- files: ForgeBuildArtifactFiles,
5498
- environment: ForgeBuildArtifactEnvironment
5499
- });
5500
- var ForgeArtifact = z192.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5501
- var Id = z193.string().uuid();
5502
- var ForgeParticipant = z194.object({
5503
- id: z194.string(),
5504
- agentId: z194.string().optional(),
5505
- agent: ForgeAgent.optional(),
5506
- projectIterationId: z194.string(),
5507
- role: z194.enum(["Editor", "Viewer"]),
5508
- type: z194.enum(["Agent", "User"]),
5509
- userId: z194.string().optional(),
5510
- user: User.optional()
5511
- });
5512
- var ForgeIterationMessageStep = z195.object({
5513
- name: z195.string(),
5514
- text: z195.string(),
5515
- status: z195.enum(["pending", "started", "completed", "error"])
5516
- });
5517
- var ForgeIterationMessage = z195.object({
5518
- id: z195.string(),
5519
- createdAt: z195.coerce.date(),
5520
- participantId: z195.string(),
5521
- participant: ForgeParticipant,
5522
- projectIterationId: z195.string(),
5523
- steps: z195.array(ForgeIterationMessageStep).optional(),
5524
- type: z195.enum(["Note", "Action", "Steps"]),
5525
- text: z195.string()
5526
- });
5527
- var ForgeMeta = z196.object({
5528
- name: z196.string(),
5529
- description: z196.string().optional()
5530
- });
5531
- var ForgeProjectArtifactContentData = DocumentationPageContentData;
5532
- var ForgeProjectArtifactContent = z197.object({
5533
- id: z197.string(),
5534
- artifactId: z197.string(),
5535
- projectId: z197.string(),
5536
- createdAt: z197.coerce.date(),
5537
- updatedAt: z197.coerce.date(),
5538
- data: ForgeProjectArtifactContentData
5539
- });
5540
- var ForgeProjectArtifact = z198.object({
5541
- id: z198.string(),
5542
- projectId: z198.string(),
5543
- iterationId: z198.string().nullish(),
5544
- title: z198.string(),
5545
- previewUrl: z198.string().nullish(),
5546
- path: z198.string(),
5547
- sortOrder: z198.number().default(0),
5548
- createdAt: z198.coerce.date(),
5549
- updatedAt: z198.coerce.date(),
5550
- createdByUserId: z198.string()
5551
- });
5552
- var ForgeProjectContextDependency = z199.object({
5553
- packageName: z199.string(),
5554
- type: z199.literal("npm"),
5555
- version: z199.string().default("latest")
5556
- });
5557
- var ForgeProjectContextTailwindConfig = z199.object({
5558
- content: z199.string(),
5559
- version: z199.string()
5560
- });
5561
- var ForgeProjectContext = z199.object({
5562
- createdAt: z199.coerce.date(),
5563
- definition: z199.string(),
5564
- dependencies: z199.array(ForgeProjectContextDependency),
5565
- designSystemId: z199.string(),
5566
- id: z199.string(),
5567
- meta: ForgeMeta,
5568
- name: z199.string(),
5569
- npmProxySettings: NpmRegistryConfig,
5570
- platform: z199.enum(["React", "Vue", "Angular"]),
5571
- styling: z199.enum(["CSS", "Tailwind"]),
5572
- tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
5573
- updatedAt: z199.coerce.date(),
5574
- workspaceId: z199.string()
5575
- });
5576
- var ProjectFeature = z200.object({
5577
- createdAt: z200.coerce.date(),
5578
- createdByUserId: z200.string(),
5579
- description: z200.string(),
5580
- id: z200.string().uuid(),
5581
- isArchived: z200.boolean().optional(),
5582
- name: Id,
5583
- projectId: z200.string(),
5584
- sectionId: Id.optional(),
5585
- sortOrder: z200.number().int().min(0),
5586
- updatedAt: z200.coerce.date().optional()
5587
- });
5588
- var ForgeProjectRole = z201.enum(["Viewer", "Editor", "Admin"]);
5589
- var ForgeProjectMembership = z201.object({
5590
- userId: z201.string(),
5591
- forgeProjectId: z201.string(),
5592
- workspaceMembershipId: z201.string(),
5593
- workspaceRole: WorkspaceRoleSchema,
5594
- role: ForgeProjectRole
5595
- });
5596
- var ForgeProjectInvitation = z202.object({
5597
- email: z202.string().email(),
5598
- forgeProjectId: z202.string(),
5599
- workspaceInvitationId: z202.string(),
5600
- role: ForgeProjectRole,
5601
- createdAt: z202.coerce.date(),
5602
- updatedAt: z202.coerce.date(),
5603
- createdById: z202.string()
5604
- });
5605
- var ForgeProjectIterationMergeMeta = z203.object({ mergeByUserId: z203.string(), mergeAt: z203.date() });
5606
- var ForgeProjectIteration = z203.object({
5607
- branchId: z203.string().optional(),
5608
- buildArtifactId: z203.string(),
5609
- createdAt: z203.coerce.date(),
5610
- forgeProjectId: z203.string(),
5611
- id: z203.string(),
5612
- locked: z203.boolean(),
5613
- messages: z203.array(ForgeIterationMessage),
5614
- artifacts: z203.array(ForgeArtifact),
5615
- previousIterationId: z203.string().optional(),
5616
- mergeMeta: ForgeProjectIterationMergeMeta.optional()
5617
- });
5618
- var ForgeProjectTag = z204.array(z204.string()).default([]);
5619
- var ForgeProjectAccessMode = z204.enum(["InviteOnly", "Open"]);
5620
- var ForgeProject = z204.object({
5621
5640
  createdAt: z204.coerce.date(),
5622
- createdByUserId: z204.string().optional(),
5623
- fpContextId: z204.string(),
5624
- id: z204.string(),
5625
- instruction: z204.string().nullable(),
5626
- meta: ForgeMeta,
5627
- name: z204.string(),
5628
- tags: ForgeProjectTag,
5629
- updatedAt: z204.coerce.date().optional(),
5630
- workspaceId: z204.string(),
5631
- accessMode: ForgeProjectAccessMode,
5632
- isArchived: z204.boolean().optional(),
5633
- emoji: z204.string().optional()
5641
+ enabled: z204.boolean(),
5642
+ designSystemId: z204.string().optional(),
5643
+ data: z204.record(z204.any()).nullable().optional()
5634
5644
  });
5635
5645
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5636
5646
  OAuthProviderNames2["Figma"] = "figma";
@@ -16396,6 +16406,85 @@ function roundDimension(dimension) {
16396
16406
  return Math.round(dimension * 100) / 100;
16397
16407
  }
16398
16408
 
16409
+ // src/yjs/forge-project-room/base.ts
16410
+ var ForgeProjectRoomBaseYDoc = class {
16411
+ constructor(yDoc) {
16412
+ __publicField(this, "yDoc");
16413
+ this.yDoc = yDoc;
16414
+ }
16415
+ getState() {
16416
+ const artifacts = this.getArtifacts();
16417
+ const features = this.getFeatures();
16418
+ const isLoaded = true;
16419
+ return {
16420
+ isLoaded,
16421
+ artifacts,
16422
+ features
16423
+ };
16424
+ }
16425
+ //
16426
+ // Artifacts
16427
+ //
16428
+ getArtifacts() {
16429
+ return this.getObjects(this.artifactsYMap, ForgeProjectArtifact);
16430
+ }
16431
+ updateArtifacts(artifacts) {
16432
+ this.setObjects(this.artifactsYMap, artifacts);
16433
+ }
16434
+ deleteArtifacts(ids) {
16435
+ this.deleteObjects(this.artifactsYMap, ids);
16436
+ }
16437
+ get artifactsYMap() {
16438
+ return this.yDoc.getMap("forgeProjectArtifacts");
16439
+ }
16440
+ //
16441
+ // Features
16442
+ //
16443
+ getFeatures() {
16444
+ return this.getObjects(this.featuresYMap, ProjectFeature);
16445
+ }
16446
+ updateFeatures(features) {
16447
+ this.setObjects(this.featuresYMap, features);
16448
+ }
16449
+ deleteFeatures(ids) {
16450
+ this.deleteObjects(this.featuresYMap, ids);
16451
+ }
16452
+ get featuresYMap() {
16453
+ return this.yDoc.getMap("forgeProjectFeatures");
16454
+ }
16455
+ //
16456
+ // Utility methods
16457
+ //
16458
+ getObjects(map, schema) {
16459
+ const objects = [];
16460
+ map.forEach((value) => objects.push(schema.parse(value)));
16461
+ return objects;
16462
+ }
16463
+ setObjects(map, objects) {
16464
+ objects.forEach((obj) => map.set(obj.id, obj));
16465
+ }
16466
+ deleteObjects(map, ids) {
16467
+ ids.forEach((id) => map.delete(id));
16468
+ }
16469
+ };
16470
+
16471
+ // src/yjs/forge-project-room/backend.ts
16472
+ var BackendForgeProjectRoomYDoc = class {
16473
+ constructor(yDoc) {
16474
+ __publicField(this, "yDoc");
16475
+ this.yDoc = yDoc;
16476
+ }
16477
+ updateWithLists(transaction) {
16478
+ this.yDoc.transact((trx) => {
16479
+ const yDoc = new ForgeProjectRoomBaseYDoc(trx.doc);
16480
+ transaction.artifactIdsToDelete && yDoc.deleteArtifacts(transaction.artifactIdsToDelete);
16481
+ transaction.artifacts && yDoc.updateArtifacts(transaction.artifacts);
16482
+ transaction.featureIdsToDelete && yDoc.deleteFeatures(transaction.featureIdsToDelete);
16483
+ transaction.features && yDoc.updateFeatures(transaction.features);
16484
+ });
16485
+ }
16486
+ };
16487
+
16399
16488
  // src/yjs/version-room/backend.ts
16400
16489
  var BackendVersionRoomYDoc = class {
16401
16490
  constructor(yDoc) {
@@ -16904,6 +16993,7 @@ var TransactionQueue = class {
16904
16993
  }
16905
16994
  };
16906
16995
  export {
16996
+ BackendForgeProjectRoomYDoc,
16907
16997
  BackendVersionRoomYDoc,
16908
16998
  BlockDefinitionUtils,
16909
16999
  BlockParsingUtils,
@@ -17488,6 +17578,7 @@ export {
17488
17578
  ForgeProjectInvitationsEndpoint,
17489
17579
  ForgeProjectIterationsEndpoint,
17490
17580
  ForgeProjectMembersEndpoint,
17581
+ ForgeProjectRoomBaseYDoc,
17491
17582
  ForgeProjectsEndpoint,
17492
17583
  ForgesEndpoint,
17493
17584
  FormattedCollections,