@supernova-studio/client 1.41.0 → 1.41.2

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
@@ -5813,7 +5813,8 @@ var PageScreenshotInput = z214.object({
5813
5813
  });
5814
5814
  var PageScreenshotOutput = z214.discriminatedUnion("success", [
5815
5815
  z214.object({
5816
- success: z214.literal(true)
5816
+ success: z214.literal(true),
5817
+ fileSize: z214.number()
5817
5818
  }),
5818
5819
  z214.object({
5819
5820
  success: z214.literal(false),
@@ -9125,30 +9126,74 @@ var DTOFigmaNodeResponse = z309.object({
9125
9126
  nodes: FigmaExporterAnyDesignNodeSchema
9126
9127
  });
9127
9128
 
9129
+ // src/api/dto/files/files.ts
9130
+ import z310 from "zod";
9131
+ var DTOFile = z310.object({
9132
+ id: z310.string(),
9133
+ name: z310.string(),
9134
+ deduplicationKey: z310.string(),
9135
+ pendingUpload: z310.boolean().optional(),
9136
+ storagePath: z310.string(),
9137
+ url: z310.string(),
9138
+ size: z310.number()
9139
+ });
9140
+ var DTOFileReference = z310.object({
9141
+ fileId: z310.string(),
9142
+ fileUrl: z310.string()
9143
+ });
9144
+ var DTOFileUploadTargetUser = z310.object({
9145
+ uploadTo: z310.literal("User")
9146
+ });
9147
+ var DTOFileUploadTargetWorkspace = z310.object({
9148
+ uploadTo: z310.literal("Workspace"),
9149
+ workspaceId: z310.string()
9150
+ });
9151
+ var DTOFileUploadTarget = z310.discriminatedUnion("uploadTo", [DTOFileUploadTargetUser, DTOFileUploadTargetWorkspace]);
9152
+ var DTOFileUploadInput = z310.object({
9153
+ size: z310.number(),
9154
+ name: z310.string(),
9155
+ checksum: z310.string()
9156
+ });
9157
+ var DTOFileUploadBulkInput = z310.object({
9158
+ files: DTOFileUploadInput.array()
9159
+ }).and(DTOFileUploadTarget);
9160
+ var DTOFileListResponse = z310.object({
9161
+ files: DTOFile.array()
9162
+ });
9163
+ var DTOFileUploadBulkResponse = z310.object({
9164
+ files: z310.array(DTOFile),
9165
+ uploadUrls: z310.array(
9166
+ z310.object({
9167
+ fileId: z310.string(),
9168
+ uploadUrl: z310.string()
9169
+ })
9170
+ )
9171
+ });
9172
+
9128
9173
  // src/api/dto/forge/agent.ts
9129
- import { z as z310 } from "zod";
9174
+ import { z as z311 } from "zod";
9130
9175
  var DTOForgeAgent = ForgeAgent;
9131
9176
  var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
9132
9177
  var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
9133
- var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z310.string() });
9134
- var DTOCreateForgeAgentResponse = z310.object({
9178
+ var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z311.string() });
9179
+ var DTOCreateForgeAgentResponse = z311.object({
9135
9180
  agent: DTOForgeAgent
9136
9181
  });
9137
- var DTOUGetForgeAgentResponse = z310.object({
9182
+ var DTOUGetForgeAgentResponse = z311.object({
9138
9183
  agent: DTOForgeAgent.nullable()
9139
9184
  });
9140
- var DTOUpdateForgeAgentResponse = z310.object({
9185
+ var DTOUpdateForgeAgentResponse = z311.object({
9141
9186
  agent: DTOForgeAgent.nullable()
9142
9187
  });
9143
- var DTOForgeAgentsListResponse = z310.object({
9144
- agents: z310.array(DTOForgeAgent)
9188
+ var DTOForgeAgentsListResponse = z311.object({
9189
+ agents: z311.array(DTOForgeAgent)
9145
9190
  });
9146
- var DTODeleteForgeAgentResponse = z310.object({
9147
- ok: z310.literal(true)
9191
+ var DTODeleteForgeAgentResponse = z311.object({
9192
+ ok: z311.literal(true)
9148
9193
  });
9149
9194
 
9150
9195
  // src/api/dto/forge/artifact.ts
9151
- import { z as z311 } from "zod";
9196
+ import { z as z312 } from "zod";
9152
9197
  var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
9153
9198
  id: true,
9154
9199
  createdAt: true,
@@ -9169,72 +9214,72 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
9169
9214
  createdAt: true,
9170
9215
  projectIterationId: true
9171
9216
  });
9172
- var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z311.string() });
9173
- var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z311.string() });
9174
- var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z311.string() });
9175
- var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z311.string() });
9217
+ var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z312.string() });
9218
+ var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z312.string() });
9219
+ var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z312.string() });
9220
+ var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z312.string() });
9176
9221
  var DTOForgeArtifact = ForgeArtifact;
9177
9222
  var DTOForgeBuildArtifact = ForgeBuildArtifact;
9178
9223
  var DTOForgeFileArtifact = ForgeFileArtifact;
9179
9224
  var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
9180
9225
  var DTOForgeSpecArtifact = ForgeSpecArtifact;
9181
- var DTOCreateForgeArtifact = z311.union([
9226
+ var DTOCreateForgeArtifact = z312.union([
9182
9227
  DTOCreateForgeBuildArtifact,
9183
9228
  DTOCreateForgeFileArtifact,
9184
9229
  DTOCreateForgeFigmaArtifact,
9185
9230
  DTOCreateForgeSpecArtifact
9186
9231
  ]);
9187
- var DTOUpdateForgeArtifact = z311.union([
9232
+ var DTOUpdateForgeArtifact = z312.union([
9188
9233
  DTOUpdateForgeFileArtifact,
9189
9234
  DTOUpdateForgeBuildArtifact,
9190
9235
  DTOUpdateForgeSpecArtifact,
9191
9236
  DTOUpdateForgeFigmaArtifact
9192
9237
  ]);
9193
- var DTOCreateForgeArtifactResponse = z311.object({
9238
+ var DTOCreateForgeArtifactResponse = z312.object({
9194
9239
  artifact: DTOForgeArtifact
9195
9240
  });
9196
- var DTOUpdateForgeArtifactResponse = z311.object({
9241
+ var DTOUpdateForgeArtifactResponse = z312.object({
9197
9242
  artifact: DTOForgeArtifact.nullable()
9198
9243
  });
9199
- var DTODeleteForgeArtifactResponse = z311.object({
9200
- ok: z311.literal(true)
9244
+ var DTODeleteForgeArtifactResponse = z312.object({
9245
+ ok: z312.literal(true)
9201
9246
  });
9202
- var DTOForgeArtifactsListResponse = z311.object({
9203
- artifacts: z311.array(DTOForgeArtifact)
9247
+ var DTOForgeArtifactsListResponse = z312.object({
9248
+ artifacts: z312.array(DTOForgeArtifact)
9204
9249
  });
9205
- var DTOForgeArtifactGetResponse = z311.object({
9250
+ var DTOForgeArtifactGetResponse = z312.object({
9206
9251
  artifact: DTOForgeArtifact.nullable()
9207
9252
  });
9208
9253
 
9209
9254
  // src/api/dto/forge/feature-messages.ts
9210
- import z312 from "zod";
9211
- var DTOFeatureMessageUserSender = z312.object({
9212
- type: z312.literal("User"),
9213
- userId: z312.string()
9255
+ import z313 from "zod";
9256
+ var DTOFeatureMessageUserSender = z313.object({
9257
+ type: z313.literal("User"),
9258
+ userId: z313.string()
9214
9259
  });
9215
- var DTOFeatureMessageAgentSender = z312.object({
9216
- type: z312.literal("Agent")
9260
+ var DTOFeatureMessageAgentSender = z313.object({
9261
+ type: z313.literal("Agent")
9217
9262
  });
9218
- var DTOFeatureMessageSystemSender = z312.object({
9219
- type: z312.literal("System"),
9220
- onBehalfOfUserId: z312.string()
9263
+ var DTOFeatureMessageSystemSender = z313.object({
9264
+ type: z313.literal("System"),
9265
+ onBehalfOfUserId: z313.string()
9221
9266
  });
9222
- var DTOFeatureMessageSender = z312.discriminatedUnion("type", [
9267
+ var DTOFeatureMessageSender = z313.discriminatedUnion("type", [
9223
9268
  DTOFeatureMessageUserSender,
9224
9269
  DTOFeatureMessageAgentSender,
9225
9270
  DTOFeatureMessageSystemSender
9226
9271
  ]);
9227
- var DTOFeatureMessageReaction = z312.object({
9272
+ var DTOFeatureMessageReaction = z313.object({
9228
9273
  messageId: Id,
9229
- userId: z312.string(),
9230
- emoji: z312.string(),
9231
- createdAt: z312.string()
9274
+ userId: z313.string(),
9275
+ emoji: z313.string(),
9276
+ createdAt: z313.string()
9232
9277
  });
9233
- var DTOFeatureMessageAttachments = z312.object({
9278
+ var DTOFeatureMessageAttachments = z313.object({
9234
9279
  iterationId: Id.optional()
9235
9280
  // TODO Artem: files, etc
9236
9281
  });
9237
- var DTOFeatureMessage = z312.object({
9282
+ var DTOFeatureMessage = z313.object({
9238
9283
  id: Id,
9239
9284
  /**
9240
9285
  * Describes where the message came from
@@ -9243,16 +9288,16 @@ var DTOFeatureMessage = z312.object({
9243
9288
  /**
9244
9289
  * Content of the message
9245
9290
  */
9246
- body: z312.string(),
9291
+ body: z313.string(),
9247
9292
  /**
9248
9293
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
9249
9294
  * AI agent to generate a response and perform an action within the feature
9250
9295
  */
9251
- isPrompt: z312.boolean().optional(),
9296
+ isPrompt: z313.boolean().optional(),
9252
9297
  /**
9253
9298
  * Indicates if the sender requested agent to reply in a thread
9254
9299
  */
9255
- startsNewThread: z312.boolean().optional(),
9300
+ startsNewThread: z313.boolean().optional(),
9256
9301
  /**
9257
9302
  * If defined, this message is considered to be a reply in a thread under parent message id
9258
9303
  */
@@ -9266,23 +9311,23 @@ var DTOFeatureMessage = z312.object({
9266
9311
  * If defined, this message is considered to be a reply to different message
9267
9312
  */
9268
9313
  replyToMessageId: Id.optional(),
9269
- createdAt: z312.string(),
9270
- updatedAt: z312.string().optional()
9314
+ createdAt: z313.string(),
9315
+ updatedAt: z313.string().optional()
9271
9316
  });
9272
- var DTOFeatureAgentResponseTracker = z312.object({
9317
+ var DTOFeatureAgentResponseTracker = z313.object({
9273
9318
  id: Id,
9274
- currentBody: z312.string().default("")
9319
+ currentBody: z313.string().default("")
9275
9320
  });
9276
- var DTOFeatureArtifact = z312.object({
9321
+ var DTOFeatureArtifact = z313.object({
9277
9322
  id: Id,
9278
9323
  /**
9279
9324
  * Key of the artifact, can include path like `src/components/button.tsx`
9280
9325
  */
9281
- key: z312.string(),
9326
+ key: z313.string(),
9282
9327
  /**
9283
9328
  * Id of the project file that holds content of this artifact
9284
9329
  */
9285
- fileId: z312.string().optional(),
9330
+ fileId: z313.string().optional(),
9286
9331
  /**
9287
9332
  * Id of the Iteration that this artifact belongs to
9288
9333
  */
@@ -9290,54 +9335,56 @@ var DTOFeatureArtifact = z312.object({
9290
9335
  /**
9291
9336
  * URL of the feature artifact's contents
9292
9337
  */
9293
- url: z312.string(),
9338
+ url: z313.string(),
9294
9339
  /**
9295
9340
  * Relative file path of the artifact (without domain/base URL)
9296
9341
  */
9297
- filePath: z312.string().optional(),
9298
- createdAt: z312.string(),
9299
- updatedAt: z312.string()
9342
+ filePath: z313.string().optional(),
9343
+ createdAt: z313.string(),
9344
+ updatedAt: z313.string()
9300
9345
  });
9301
- var DTOFeatureIterationArtifactsDiff = z312.object({
9302
- created: z312.array(DTOFeatureArtifact.shape.key).optional().default([]),
9303
- updated: z312.array(DTOFeatureArtifact.shape.key).optional().default([]),
9304
- deleted: z312.array(DTOFeatureArtifact.shape.key).optional().default([])
9346
+ var DTOFeatureIterationArtifactsDiff = z313.object({
9347
+ created: z313.array(DTOFeatureArtifact.shape.key).optional().default([]),
9348
+ updated: z313.array(DTOFeatureArtifact.shape.key).optional().default([]),
9349
+ deleted: z313.array(DTOFeatureArtifact.shape.key).optional().default([])
9305
9350
  });
9306
- var DTOFeatureIteration = z312.object({
9351
+ var DTOFeatureIteration = z313.object({
9307
9352
  id: Id,
9308
9353
  /**
9309
9354
  * Name of the iteration
9310
9355
  */
9311
- name: z312.string(),
9356
+ name: z313.string(),
9312
9357
  /**
9313
9358
  * ID of the iteration that this iteration is based on
9314
9359
  */
9315
- baseIterationId: z312.string().optional(),
9360
+ baseIterationId: z313.string().optional(),
9316
9361
  /**
9317
9362
  * Message ID that triggered creation of the iteration
9318
9363
  */
9319
- startedFromMessageId: z312.string(),
9364
+ startedFromMessageId: z313.string(),
9320
9365
  /**
9321
9366
  * Indicates whether the iteration is currently being generated by an agent
9322
9367
  */
9323
- isInProgress: z312.boolean().optional(),
9368
+ isInProgress: z313.boolean().optional(),
9324
9369
  /**
9325
9370
  * URL of a static preview of the feature
9326
9371
  */
9327
- staticPreviewUrl: z312.string().optional(),
9372
+ staticPreviewUrl: z313.string().optional(),
9328
9373
  /**
9329
9374
  * Indicates whether the iteration is bookmarked by user
9330
9375
  */
9331
- isBookmarked: z312.boolean().optional(),
9376
+ isBookmarked: z313.boolean().optional(),
9332
9377
  /**
9378
+ * @deprecated use thumbnail.fileUrl
9333
9379
  * URL of a static thumbnail of the feature iteration
9334
9380
  */
9335
- thumbnailUrl: z312.string().optional(),
9336
- createdAt: z312.string(),
9337
- updatedAt: z312.string().optional(),
9381
+ thumbnailUrl: z313.string().optional(),
9382
+ thumbnail: DTOFileReference.optional(),
9383
+ createdAt: z313.string(),
9384
+ updatedAt: z313.string().optional(),
9338
9385
  artifactsDiff: DTOFeatureIterationArtifactsDiff.optional().nullable()
9339
9386
  });
9340
- var DTOFeatureIterationTag = z312.object({
9387
+ var DTOFeatureIterationTag = z313.object({
9341
9388
  id: Id,
9342
9389
  featureId: Id,
9343
9390
  /**
@@ -9350,12 +9397,12 @@ var DTOFeatureIterationTag = z312.object({
9350
9397
  */
9351
9398
  iterationId: Id
9352
9399
  });
9353
- var DTOFeatureSandbox = z312.object({
9354
- id: z312.string(),
9355
- url: z312.string(),
9400
+ var DTOFeatureSandbox = z313.object({
9401
+ id: z313.string(),
9402
+ url: z313.string(),
9356
9403
  parentMessageId: Id.optional(),
9357
9404
  currentIterationId: Id,
9358
- expiresAt: z312.string().optional()
9405
+ expiresAt: z313.string().optional()
9359
9406
  });
9360
9407
  var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9361
9408
  id: true,
@@ -9366,119 +9413,119 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9366
9413
  attachments: true
9367
9414
  });
9368
9415
  var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
9369
- var DTOFeatureMessageReactionCreateInput = z312.object({
9416
+ var DTOFeatureMessageReactionCreateInput = z313.object({
9370
9417
  messageId: Id,
9371
- emoji: z312.string()
9418
+ emoji: z313.string()
9372
9419
  });
9373
- var DTOFeatureMessageReactionDeleteInput = z312.object({
9420
+ var DTOFeatureMessageReactionDeleteInput = z313.object({
9374
9421
  messageId: Id,
9375
- emoji: z312.string()
9422
+ emoji: z313.string()
9376
9423
  });
9377
- var DTOFeatureArtifactCreateInput = z312.object({
9424
+ var DTOFeatureArtifactCreateInput = z313.object({
9378
9425
  id: Id,
9379
- key: z312.string(),
9380
- fileId: z312.string(),
9426
+ key: z313.string(),
9427
+ fileId: z313.string(),
9381
9428
  iterationId: Id.optional()
9382
9429
  });
9383
- var DTOFeatureArtifactDeleteInput = z312.object({
9430
+ var DTOFeatureArtifactDeleteInput = z313.object({
9384
9431
  id: Id
9385
9432
  });
9386
9433
  var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
9387
9434
  id: true,
9388
9435
  startedFromMessageId: true
9389
9436
  });
9390
- var DTOFeatureIterationPromoteInput = z312.object({
9437
+ var DTOFeatureIterationPromoteInput = z313.object({
9391
9438
  id: Id
9392
9439
  });
9393
- var DTOFeatureIterationSetLatestInput = z312.object({
9440
+ var DTOFeatureIterationSetLatestInput = z313.object({
9394
9441
  id: Id
9395
9442
  });
9396
- var DTOFeatureIterationUpdateInput = z312.object({
9443
+ var DTOFeatureIterationUpdateInput = z313.object({
9397
9444
  id: Id,
9398
- isBookmarked: z312.boolean().optional()
9445
+ isBookmarked: z313.boolean().optional()
9399
9446
  });
9400
- var DTOFeatureIterationTagCreateInput = z312.object({
9447
+ var DTOFeatureIterationTagCreateInput = z313.object({
9401
9448
  featureId: Id,
9402
9449
  iterationId: Id,
9403
9450
  messageId: Id.optional()
9404
9451
  });
9405
- var DTOFeatureIterationArtifactDiff = z312.object({
9452
+ var DTOFeatureIterationArtifactDiff = z313.object({
9406
9453
  /**
9407
9454
  * Map of artifact key -> new key that describes artifacts that will be moved in this iteration
9408
9455
  */
9409
- move: z312.record(
9410
- z312.object({
9411
- newKey: z312.string()
9456
+ move: z313.record(
9457
+ z313.object({
9458
+ newKey: z313.string()
9412
9459
  })
9413
9460
  ),
9414
9461
  /**
9415
9462
  * Map of artifact key -> artifact content that describes artifacts that will be
9416
9463
  * create or updated in this iteration
9417
9464
  */
9418
- upsert: z312.record(
9419
- z312.object({
9420
- artifactContent: z312.string()
9465
+ upsert: z313.record(
9466
+ z313.object({
9467
+ artifactContent: z313.string()
9421
9468
  })
9422
9469
  ),
9423
9470
  /**
9424
9471
  * List artifact keys to remove from this iteration
9425
9472
  */
9426
- remove: z312.array(z312.string())
9473
+ remove: z313.array(z313.string())
9427
9474
  });
9428
- var DTOFeatureIterationUpdateArtifactsInput = z312.object({
9475
+ var DTOFeatureIterationUpdateArtifactsInput = z313.object({
9429
9476
  id: Id,
9430
- name: z312.string().optional(),
9477
+ name: z313.string().optional(),
9431
9478
  artifactDiff: DTOFeatureIterationArtifactDiff
9432
9479
  });
9433
- var DTOFeatureAgentWorkFinalizeInput = z312.object({
9480
+ var DTOFeatureAgentWorkFinalizeInput = z313.object({
9434
9481
  messageId: Id
9435
9482
  });
9436
- var DTOFeatureMessageResponse = z312.object({
9483
+ var DTOFeatureMessageResponse = z313.object({
9437
9484
  message: DTOFeatureMessage
9438
9485
  });
9439
- var DTOFeatureMessageReactionResponse = z312.object({
9486
+ var DTOFeatureMessageReactionResponse = z313.object({
9440
9487
  reaction: DTOFeatureMessageReaction
9441
9488
  });
9442
- var DTOFeatureMessageListResponse = z312.object({
9489
+ var DTOFeatureMessageListResponse = z313.object({
9443
9490
  messages: DTOFeatureMessage.array(),
9444
9491
  reactions: DTOFeatureMessageReaction.array(),
9445
- lastSeenMessageId: z312.string().optional()
9492
+ lastSeenMessageId: z313.string().optional()
9446
9493
  });
9447
- var DTOFeatureArtifactResponse = z312.object({
9494
+ var DTOFeatureArtifactResponse = z313.object({
9448
9495
  artifact: DTOFeatureArtifact
9449
9496
  });
9450
- var DTOFeatureArtifactListResponse = z312.object({
9497
+ var DTOFeatureArtifactListResponse = z313.object({
9451
9498
  artifacts: DTOFeatureArtifact.array()
9452
9499
  });
9453
- var DTOFeatureIterationResponse = z312.object({
9500
+ var DTOFeatureIterationResponse = z313.object({
9454
9501
  iteration: DTOFeatureIteration
9455
9502
  });
9456
- var DTOFeatureIterationListResponse = z312.object({
9503
+ var DTOFeatureIterationListResponse = z313.object({
9457
9504
  iterations: DTOFeatureIteration.array()
9458
9505
  });
9459
- var DTOFeatureIterationTagResponse = z312.object({
9506
+ var DTOFeatureIterationTagResponse = z313.object({
9460
9507
  tag: DTOFeatureIterationTag
9461
9508
  });
9462
- var DTOFeatureIterationTagListResponse = z312.object({
9509
+ var DTOFeatureIterationTagListResponse = z313.object({
9463
9510
  tags: DTOFeatureIterationTag.array()
9464
9511
  });
9465
- var DTOFeatureEventMessagesSent = z312.object({
9466
- type: z312.literal("MessagesSent"),
9512
+ var DTOFeatureEventMessagesSent = z313.object({
9513
+ type: z313.literal("MessagesSent"),
9467
9514
  data: DTOFeatureMessage.array()
9468
9515
  });
9469
- var DTOFeatureEventReactionsSent = z312.object({
9470
- type: z312.literal("ReactionsSent"),
9516
+ var DTOFeatureEventReactionsSent = z313.object({
9517
+ type: z313.literal("ReactionsSent"),
9471
9518
  data: DTOFeatureMessageReaction.array()
9472
9519
  });
9473
- var DTOFeatureEventReactionsDeleted = z312.object({
9474
- type: z312.literal("ReactionsDeleted"),
9520
+ var DTOFeatureEventReactionsDeleted = z313.object({
9521
+ type: z313.literal("ReactionsDeleted"),
9475
9522
  data: DTOFeatureMessageReaction
9476
9523
  });
9477
- var DTOFeatureEventAgentResponseFinished = z312.object({
9478
- type: z312.literal("AgentResponseFinished"),
9524
+ var DTOFeatureEventAgentResponseFinished = z313.object({
9525
+ type: z313.literal("AgentResponseFinished"),
9479
9526
  data: DTOFeatureMessage
9480
9527
  });
9481
- var DTOFeatureEvent = z312.discriminatedUnion("type", [
9528
+ var DTOFeatureEvent = z313.discriminatedUnion("type", [
9482
9529
  DTOFeatureEventMessagesSent,
9483
9530
  DTOFeatureEventReactionsSent,
9484
9531
  DTOFeatureEventReactionsDeleted,
@@ -9486,19 +9533,19 @@ var DTOFeatureEvent = z312.discriminatedUnion("type", [
9486
9533
  ]);
9487
9534
 
9488
9535
  // src/api/dto/forge/feature-room.ts
9489
- import { z as z313 } from "zod";
9490
- var DTOForgeFeatureRoom = z313.object({
9491
- id: z313.string()
9536
+ import { z as z314 } from "zod";
9537
+ var DTOForgeFeatureRoom = z314.object({
9538
+ id: z314.string()
9492
9539
  });
9493
- var DTOForgeFeatureRoomResponse = z313.object({
9540
+ var DTOForgeFeatureRoomResponse = z314.object({
9494
9541
  room: DTOForgeFeatureRoom
9495
9542
  });
9496
9543
 
9497
9544
  // src/api/dto/forge/iteration-message-old.ts
9498
- import { z as z315 } from "zod";
9545
+ import { z as z316 } from "zod";
9499
9546
 
9500
9547
  // src/api/dto/forge/participant.ts
9501
- import { z as z314 } from "zod";
9548
+ import { z as z315 } from "zod";
9502
9549
  var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
9503
9550
  agent: DTOForgeAgent.optional(),
9504
9551
  user: DTOUser.optional()
@@ -9508,20 +9555,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
9508
9555
  agent: true,
9509
9556
  user: true
9510
9557
  });
9511
- var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z314.string() });
9512
- var DTOCreateForgeParticipantResponse = z314.object({
9558
+ var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z315.string() });
9559
+ var DTOCreateForgeParticipantResponse = z315.object({
9513
9560
  participant: DTOForgeParticipant
9514
9561
  });
9515
- var DTOUpdateForgeParticipantResponse = z314.object({
9562
+ var DTOUpdateForgeParticipantResponse = z315.object({
9516
9563
  participant: DTOForgeParticipant.nullable()
9517
9564
  });
9518
- var DTODeleteForgeParticipantResponse = z314.object({
9519
- ok: z314.literal(true)
9565
+ var DTODeleteForgeParticipantResponse = z315.object({
9566
+ ok: z315.literal(true)
9520
9567
  });
9521
- var DTOForgeParticipantsListResponse = z314.object({
9522
- participants: z314.array(DTOForgeParticipant)
9568
+ var DTOForgeParticipantsListResponse = z315.object({
9569
+ participants: z315.array(DTOForgeParticipant)
9523
9570
  });
9524
- var DTOForgeParticipantGetResponse = z314.object({
9571
+ var DTOForgeParticipantGetResponse = z315.object({
9525
9572
  participant: DTOForgeParticipant.nullable()
9526
9573
  });
9527
9574
 
@@ -9533,32 +9580,174 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
9533
9580
  projectIterationId: true,
9534
9581
  participant: true
9535
9582
  });
9536
- var DTOGetForgeIterationMessageResponse = z315.object({
9583
+ var DTOGetForgeIterationMessageResponse = z316.object({
9537
9584
  message: DTOForgeIterationMessage.nullable()
9538
9585
  });
9539
- var DTOForgeIterationMessagesListResponse = z315.object({
9540
- messages: z315.array(DTOForgeIterationMessage)
9586
+ var DTOForgeIterationMessagesListResponse = z316.object({
9587
+ messages: z316.array(DTOForgeIterationMessage)
9541
9588
  });
9542
- var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z315.string() });
9543
- var DTOCreateForgeIterationMessageResponse = z315.object({
9589
+ var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z316.string() });
9590
+ var DTOCreateForgeIterationMessageResponse = z316.object({
9544
9591
  message: DTOForgeIterationMessage
9545
9592
  });
9546
- var DTOUpdateForgeIterationMessageResponse = z315.object({
9593
+ var DTOUpdateForgeIterationMessageResponse = z316.object({
9547
9594
  message: DTOForgeIterationMessage.nullable()
9548
9595
  });
9549
- var DTODeleteForgeIterationMessageResponse = z315.object({
9550
- ok: z315.literal(true)
9596
+ var DTODeleteForgeIterationMessageResponse = z316.object({
9597
+ ok: z316.literal(true)
9551
9598
  });
9552
9599
 
9553
9600
  // src/api/dto/forge/project-action.ts
9554
- import z319 from "zod";
9601
+ import z321 from "zod";
9555
9602
 
9556
9603
  // src/api/dto/forge/project-artifact.ts
9557
- import { z as z317 } from "zod";
9604
+ import { z as z319 } from "zod";
9605
+
9606
+ // src/api/dto/threads/threads.ts
9607
+ import z317 from "zod";
9608
+ var DTOThreadSubjectType = z317.enum(["ForgeDocument", "ForgeFeature"]);
9609
+ var DTOThreadAgentType = z317.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
9610
+ var DTOThread = z317.object({
9611
+ id: z317.string(),
9612
+ liveblocksRoomId: z317.string(),
9613
+ defaultAgentType: DTOThreadAgentType,
9614
+ subjectId: z317.string(),
9615
+ subjectType: DTOThreadSubjectType,
9616
+ createdAt: z317.string(),
9617
+ updatedAt: z317.string()
9618
+ });
9619
+ var DTOThreadMessageUserSender = z317.object({
9620
+ type: z317.literal("User"),
9621
+ userId: z317.string()
9622
+ });
9623
+ var DTOThreadMessageAgentSender = z317.object({
9624
+ type: z317.literal("Agent"),
9625
+ agentType: DTOThreadAgentType
9626
+ });
9627
+ var DTOThreadMessageSystemSender = z317.object({
9628
+ type: z317.literal("System"),
9629
+ onBehalfOfUserId: z317.string()
9630
+ });
9631
+ var DTOThreadMessageSender = z317.discriminatedUnion("type", [
9632
+ DTOThreadMessageUserSender,
9633
+ DTOThreadMessageAgentSender,
9634
+ DTOThreadMessageSystemSender
9635
+ ]);
9636
+ var DTOThreadReaction = z317.object({
9637
+ messageId: Id,
9638
+ userId: z317.string(),
9639
+ emoji: z317.string(),
9640
+ createdAt: z317.string()
9641
+ });
9642
+ var DTOThreadMessageAttachments = z317.object({
9643
+ iterationId: Id.optional()
9644
+ // TODO Artem: files, etc
9645
+ });
9646
+ var DTOThreadMessage = z317.object({
9647
+ id: Id,
9648
+ threadId: z317.string(),
9649
+ /**
9650
+ * Describes where the message came from
9651
+ */
9652
+ sender: DTOThreadMessageSender,
9653
+ /**
9654
+ * Content of the message
9655
+ */
9656
+ body: z317.string(),
9657
+ /**
9658
+ * Indicates if the message was sent in the agentic mode, if so this message will cause an
9659
+ * AI agent to generate a response and perform an action within the feature
9660
+ */
9661
+ isPrompt: z317.boolean().optional(),
9662
+ /**
9663
+ * Indicates if the sender requested agent to reply in a thread
9664
+ */
9665
+ startsNewThread: z317.boolean().optional(),
9666
+ /**
9667
+ * If defined, this message is considered to be a reply in a thread under parent message id
9668
+ */
9669
+ parentMessageId: Id.optional(),
9670
+ /**
9671
+ * Link agent response object describing current state of
9672
+ */
9673
+ agentResponseTrackerId: Id.optional().nullable(),
9674
+ attachments: DTOThreadMessageAttachments.optional(),
9675
+ /**
9676
+ * If defined, this message is considered to be a reply to different message
9677
+ */
9678
+ replyToMessageId: Id.optional(),
9679
+ createdAt: z317.string(),
9680
+ updatedAt: z317.string().optional()
9681
+ });
9682
+ var DTOThreadAgentResponseTracker = z317.object({
9683
+ id: Id,
9684
+ currentBody: z317.string().default("")
9685
+ });
9686
+ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9687
+ id: true,
9688
+ body: true,
9689
+ isPrompt: true,
9690
+ startsNewThread: true,
9691
+ parentMessageId: true,
9692
+ attachments: true
9693
+ });
9694
+ var DTOThreadMessageFinalizeInput = z317.object({
9695
+ messageId: Id
9696
+ });
9697
+ var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
9698
+ id: true
9699
+ }).merge(
9700
+ z317.object({
9701
+ body: DTOThreadMessage.shape.body,
9702
+ attachments: DTOThreadMessage.shape.attachments,
9703
+ agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
9704
+ }).partial()
9705
+ );
9706
+ var DTOThreadReactionCreateInput = z317.object({
9707
+ messageId: Id,
9708
+ emoji: z317.string()
9709
+ });
9710
+ var DTOThreadReactionDeleteInput = z317.object({
9711
+ messageId: Id,
9712
+ emoji: z317.string()
9713
+ });
9714
+ var DTOThreadMessageResponse = z317.object({
9715
+ message: DTOThreadMessage
9716
+ });
9717
+ var DTOThreadReactionResponse = z317.object({
9718
+ reaction: DTOThreadReaction
9719
+ });
9720
+ var DTOThreadMessageListResponse = z317.object({
9721
+ messages: DTOThreadMessage.array(),
9722
+ reactions: DTOThreadReaction.array(),
9723
+ lastSeenMessageId: z317.string().optional()
9724
+ });
9725
+ var DTOThreadEventMessagesSent = z317.object({
9726
+ type: z317.literal("MessagesSent"),
9727
+ data: DTOThreadMessage.array()
9728
+ });
9729
+ var DTOThreadEventMessagesUpdated = z317.object({
9730
+ type: z317.literal("MessagesUpdated"),
9731
+ data: DTOThreadMessage.array()
9732
+ });
9733
+ var DTOThreadEventReactionsSent = z317.object({
9734
+ type: z317.literal("ReactionsSent"),
9735
+ data: DTOThreadReaction.array()
9736
+ });
9737
+ var DTOThreadEventReactionsDeleted = z317.object({
9738
+ type: z317.literal("ReactionsDeleted"),
9739
+ data: DTOThreadReaction.array()
9740
+ });
9741
+ var DTOThreadEvent = z317.discriminatedUnion("type", [
9742
+ DTOThreadEventMessagesSent,
9743
+ DTOThreadEventMessagesUpdated,
9744
+ DTOThreadEventReactionsSent,
9745
+ DTOThreadEventReactionsDeleted
9746
+ ]);
9558
9747
 
9559
9748
  // src/api/dto/forge/project-section.ts
9560
- import z316 from "zod";
9561
- var AfterSectionId = z316.string().uuid().nullish().optional();
9749
+ import z318 from "zod";
9750
+ var AfterSectionId = z318.string().uuid().nullish().optional();
9562
9751
  var DTOForgeSection = ForgeSection;
9563
9752
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9564
9753
  id: true,
@@ -9569,12 +9758,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9569
9758
  });
9570
9759
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
9571
9760
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
9572
- deleteChildren: z316.boolean().default(false)
9761
+ deleteChildren: z318.boolean().default(false)
9573
9762
  });
9574
9763
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
9575
9764
  afterSectionId: AfterSectionId
9576
9765
  });
9577
- var DTOForgeSectionItemMoveInput = z316.object({
9766
+ var DTOForgeSectionItemMoveInput = z318.object({
9578
9767
  id: Id,
9579
9768
  sectionId: Id.nullish().optional(),
9580
9769
  // undefined=stay, null=no section, string=move to section
@@ -9584,118 +9773,119 @@ var DTOForgeSectionItemMoveInput = z316.object({
9584
9773
 
9585
9774
  // src/api/dto/forge/project-artifact.ts
9586
9775
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
9587
- var DTOForgeProjectArtifactUpdateInput = z317.object({
9588
- id: z317.string(),
9589
- title: z317.string().optional()
9590
- });
9591
- var DTOForgeProjectArtifactCreateInput = z317.object({
9592
- id: z317.string(),
9593
- title: z317.string(),
9594
- sectionId: z317.string().optional(),
9595
- afterArtifactId: z317.string().optional().nullable()
9596
- });
9597
- var DTOForgeProjectArtifactDeleteInput = z317.object({
9776
+ var DTOForgeProjectArtifactUpdateInput = z319.object({
9777
+ id: z319.string(),
9778
+ title: z319.string().optional()
9779
+ });
9780
+ var DTOForgeProjectArtifactCreateInput = z319.object({
9781
+ id: z319.string(),
9782
+ title: z319.string(),
9783
+ sectionId: z319.string().optional(),
9784
+ afterArtifactId: z319.string().optional().nullable(),
9785
+ initialMessage: DTOThreadMessageCreateInput.optional()
9786
+ });
9787
+ var DTOForgeProjectArtifactDeleteInput = z319.object({
9598
9788
  id: Id
9599
9789
  });
9600
9790
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
9601
- var DTOForgeProjectArtifactGetResponse = z317.object({
9791
+ var DTOForgeProjectArtifactGetResponse = z319.object({
9602
9792
  artifact: DTOForgeProjectArtifact
9603
9793
  });
9604
- var DTOForgeProjectArtifactCreateResponse = z317.object({
9794
+ var DTOForgeProjectArtifactCreateResponse = z319.object({
9605
9795
  artifact: DTOForgeProjectArtifact
9606
9796
  });
9607
- var DTOForgeProjectArtifactUpdateResponse = z317.object({
9797
+ var DTOForgeProjectArtifactUpdateResponse = z319.object({
9608
9798
  artifact: DTOForgeProjectArtifact
9609
9799
  });
9610
- var DTOForgeProjectArtifactDeleteResponse = z317.object({
9611
- ok: z317.literal(true)
9800
+ var DTOForgeProjectArtifactDeleteResponse = z319.object({
9801
+ ok: z319.literal(true)
9612
9802
  });
9613
- var DTOForgeProjectArtifactMoveResponse = z317.object({
9803
+ var DTOForgeProjectArtifactMoveResponse = z319.object({
9614
9804
  artifact: DTOForgeProjectArtifact
9615
9805
  });
9616
- var DTOForgeProjectArtifactsListResponse = z317.object({
9617
- artifacts: z317.array(DTOForgeProjectArtifact)
9806
+ var DTOForgeProjectArtifactsListResponse = z319.object({
9807
+ artifacts: z319.array(DTOForgeProjectArtifact)
9618
9808
  });
9619
9809
 
9620
9810
  // src/api/dto/forge/project-feature.ts
9621
- import z318 from "zod";
9811
+ import z320 from "zod";
9622
9812
  var DTOForgeProjectFeature = ProjectFeature;
9623
- var DTOForgeProjectFeatureListResponse = z318.object({
9813
+ var DTOForgeProjectFeatureListResponse = z320.object({
9624
9814
  features: DTOForgeProjectFeature.array()
9625
9815
  });
9626
- var DTOForgeProjectFeatureGetResponse = z318.object({
9816
+ var DTOForgeProjectFeatureGetResponse = z320.object({
9627
9817
  feature: DTOForgeProjectFeature
9628
9818
  });
9629
- var DTOForgeProjectFeatureCreateInput = z318.object({
9819
+ var DTOForgeProjectFeatureCreateInput = z320.object({
9630
9820
  id: Id,
9631
- name: z318.string().optional(),
9632
- description: z318.string(),
9821
+ name: z320.string().optional(),
9822
+ description: z320.string(),
9633
9823
  sectionId: Id.optional(),
9634
9824
  afterFeatureId: Id.nullable().optional(),
9635
9825
  initialMessage: DTOFeatureMessageCreateInput
9636
9826
  });
9637
- var DTOForgeProjectFeatureUpdateInput = z318.object({
9827
+ var DTOForgeProjectFeatureUpdateInput = z320.object({
9638
9828
  id: Id,
9639
- name: z318.string().optional(),
9640
- description: z318.string().optional(),
9641
- isArchived: z318.boolean().optional(),
9829
+ name: z320.string().optional(),
9830
+ description: z320.string().optional(),
9831
+ isArchived: z320.boolean().optional(),
9642
9832
  status: ProjectFeatureStatus.optional()
9643
9833
  });
9644
- var DTOForgeProjectFeatureDeleteInput = z318.object({
9834
+ var DTOForgeProjectFeatureDeleteInput = z320.object({
9645
9835
  id: Id
9646
9836
  });
9647
9837
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9648
9838
 
9649
9839
  // src/api/dto/forge/project-action.ts
9650
- var DTOForgeProjectActionFeatureCreate = z319.object({
9651
- type: z319.literal("FeatureCreate"),
9840
+ var DTOForgeProjectActionFeatureCreate = z321.object({
9841
+ type: z321.literal("FeatureCreate"),
9652
9842
  input: DTOForgeProjectFeatureCreateInput
9653
9843
  });
9654
- var DTOForgeProjectActionFeatureUpdate = z319.object({
9655
- type: z319.literal("FeatureUpdate"),
9844
+ var DTOForgeProjectActionFeatureUpdate = z321.object({
9845
+ type: z321.literal("FeatureUpdate"),
9656
9846
  input: DTOForgeProjectFeatureUpdateInput
9657
9847
  });
9658
- var DTOForgeProjectActionFeatureMove = z319.object({
9659
- type: z319.literal("FeatureMove"),
9848
+ var DTOForgeProjectActionFeatureMove = z321.object({
9849
+ type: z321.literal("FeatureMove"),
9660
9850
  input: DTOForgeProjectFeatureMoveInput
9661
9851
  });
9662
- var DTOForgeProjectActionFeatureDelete = z319.object({
9663
- type: z319.literal("FeatureDelete"),
9852
+ var DTOForgeProjectActionFeatureDelete = z321.object({
9853
+ type: z321.literal("FeatureDelete"),
9664
9854
  input: DTOForgeProjectFeatureDeleteInput
9665
9855
  });
9666
- var DTOForgeProjectActionArtifactCreate = z319.object({
9667
- type: z319.literal("ArtifactCreate"),
9856
+ var DTOForgeProjectActionArtifactCreate = z321.object({
9857
+ type: z321.literal("ArtifactCreate"),
9668
9858
  input: DTOForgeProjectArtifactCreateInput
9669
9859
  });
9670
- var DTOForgeProjectActionArtifactUpdate = z319.object({
9671
- type: z319.literal("ArtifactUpdate"),
9860
+ var DTOForgeProjectActionArtifactUpdate = z321.object({
9861
+ type: z321.literal("ArtifactUpdate"),
9672
9862
  input: DTOForgeProjectArtifactUpdateInput
9673
9863
  });
9674
- var DTOForgeProjectActionArtifactDelete = z319.object({
9675
- type: z319.literal("ArtifactDelete"),
9864
+ var DTOForgeProjectActionArtifactDelete = z321.object({
9865
+ type: z321.literal("ArtifactDelete"),
9676
9866
  input: DTOForgeProjectArtifactDeleteInput
9677
9867
  });
9678
- var DTOForgeProjectActionArtifactMove = z319.object({
9679
- type: z319.literal("ArtifactMove"),
9868
+ var DTOForgeProjectActionArtifactMove = z321.object({
9869
+ type: z321.literal("ArtifactMove"),
9680
9870
  input: DTOForgeProjectArtifactMoveInput
9681
9871
  });
9682
- var DTOForgeProjectActionSectionCreate = z319.object({
9683
- type: z319.literal("SectionCreate"),
9872
+ var DTOForgeProjectActionSectionCreate = z321.object({
9873
+ type: z321.literal("SectionCreate"),
9684
9874
  input: DTOForgeSectionCreateInput
9685
9875
  });
9686
- var DTOForgeProjectActionSectionUpdate = z319.object({
9687
- type: z319.literal("SectionUpdate"),
9876
+ var DTOForgeProjectActionSectionUpdate = z321.object({
9877
+ type: z321.literal("SectionUpdate"),
9688
9878
  input: DTOForgeSectionUpdateInput
9689
9879
  });
9690
- var DTOForgeProjectActionSectionDelete = z319.object({
9691
- type: z319.literal("SectionDelete"),
9880
+ var DTOForgeProjectActionSectionDelete = z321.object({
9881
+ type: z321.literal("SectionDelete"),
9692
9882
  input: DTOForgeSectionDeleteInput
9693
9883
  });
9694
- var DTOForgeProjectActionSectionMove = z319.object({
9695
- type: z319.literal("SectionMove"),
9884
+ var DTOForgeProjectActionSectionMove = z321.object({
9885
+ type: z321.literal("SectionMove"),
9696
9886
  input: DTOForgeSectionMoveInput
9697
9887
  });
9698
- var DTOForgeProjectAction = z319.discriminatedUnion("type", [
9888
+ var DTOForgeProjectAction = z321.discriminatedUnion("type", [
9699
9889
  //features
9700
9890
  DTOForgeProjectActionFeatureCreate,
9701
9891
  DTOForgeProjectActionFeatureUpdate,
@@ -9712,33 +9902,33 @@ var DTOForgeProjectAction = z319.discriminatedUnion("type", [
9712
9902
  DTOForgeProjectActionSectionDelete,
9713
9903
  DTOForgeProjectActionSectionMove
9714
9904
  ]).and(
9715
- z319.object({
9716
- tId: z319.string().optional()
9905
+ z321.object({
9906
+ tId: z321.string().optional()
9717
9907
  })
9718
9908
  );
9719
9909
 
9720
9910
  // src/api/dto/forge/project-artifact-room.ts
9721
- import { z as z320 } from "zod";
9722
- var DTOForgeProjectArtifactRoom = z320.object({
9723
- id: z320.string()
9911
+ import { z as z322 } from "zod";
9912
+ var DTOForgeProjectArtifactRoom = z322.object({
9913
+ id: z322.string()
9724
9914
  });
9725
- var DTOForgeProjectArtifactRoomResponse = z320.object({
9915
+ var DTOForgeProjectArtifactRoomResponse = z322.object({
9726
9916
  room: DTOForgeProjectArtifactRoom
9727
9917
  });
9728
9918
 
9729
9919
  // src/api/dto/forge/project-context-v2.ts
9730
- import { z as z321 } from "zod";
9731
- var DTOForgeComponentSetTypeV2 = z321.enum(["Shadcn"]);
9732
- var DTOForgeComponentSet = z321.object({
9920
+ import { z as z323 } from "zod";
9921
+ var DTOForgeComponentSetTypeV2 = z323.enum(["Shadcn"]);
9922
+ var DTOForgeComponentSet = z323.object({
9733
9923
  type: DTOForgeComponentSetTypeV2
9734
9924
  });
9735
- var DTOForgeIconSetTypeV2 = z321.enum(["Phosphor", "Lucide", "Tabler"]);
9736
- var DTOForgeThemePreset = z321.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9737
- var DTOForgeIconSet = z321.object({
9925
+ var DTOForgeIconSetTypeV2 = z323.enum(["Phosphor", "Lucide", "Tabler"]);
9926
+ var DTOForgeThemePreset = z323.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9927
+ var DTOForgeIconSet = z323.object({
9738
9928
  type: DTOForgeIconSetTypeV2,
9739
- variant: z321.string().optional()
9929
+ variant: z323.string().optional()
9740
9930
  });
9741
- var DTOForgeProjectTheme = z321.object({
9931
+ var DTOForgeProjectTheme = z323.object({
9742
9932
  // Colors
9743
9933
  background: ColorTokenData,
9744
9934
  foreground: ColorTokenData,
@@ -9823,21 +10013,21 @@ var DTOForgeProjectTheme = z321.object({
9823
10013
  shadowXl: ShadowTokenData,
9824
10014
  shadow2xl: ShadowTokenData
9825
10015
  });
9826
- var DTOForgeProjectContextV2 = z321.object({
9827
- id: z321.string(),
9828
- name: z321.string(),
9829
- workspaceId: z321.string(),
9830
- designSystemId: z321.string().optional(),
9831
- description: z321.string().optional(),
9832
- productContext: z321.string().optional(),
9833
- additionalContext: z321.string().optional(),
9834
- isArchived: z321.boolean(),
10016
+ var DTOForgeProjectContextV2 = z323.object({
10017
+ id: z323.string(),
10018
+ name: z323.string(),
10019
+ workspaceId: z323.string(),
10020
+ designSystemId: z323.string().optional(),
10021
+ description: z323.string().optional(),
10022
+ productContext: z323.string().optional(),
10023
+ additionalContext: z323.string().optional(),
10024
+ isArchived: z323.boolean(),
9835
10025
  themePreset: DTOForgeThemePreset.optional(),
9836
10026
  componentSet: DTOForgeComponentSet,
9837
10027
  iconSet: DTOForgeIconSet,
9838
10028
  theme: DTOForgeProjectTheme,
9839
- createdAt: z321.coerce.date(),
9840
- updatedAt: z321.coerce.date()
10029
+ createdAt: z323.coerce.date(),
10030
+ updatedAt: z323.coerce.date()
9841
10031
  });
9842
10032
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9843
10033
  id: true,
@@ -9846,38 +10036,38 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9846
10036
  isArchived: true
9847
10037
  });
9848
10038
  var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true, workspaceId: true }).partial();
9849
- var DTOForgeProjectContextResponseV2 = z321.object({ context: DTOForgeProjectContextV2 });
9850
- var DTOForgeProjectContextListQueryV2 = z321.object({ workspaceId: z321.string() });
9851
- var DTOForgeProjectContextListResponseV2 = z321.object({ contexts: z321.array(DTOForgeProjectContextV2) });
10039
+ var DTOForgeProjectContextResponseV2 = z323.object({ context: DTOForgeProjectContextV2 });
10040
+ var DTOForgeProjectContextListQueryV2 = z323.object({ workspaceId: z323.string() });
10041
+ var DTOForgeProjectContextListResponseV2 = z323.object({ contexts: z323.array(DTOForgeProjectContextV2) });
9852
10042
 
9853
10043
  // src/api/dto/forge/project-context.ts
9854
- import { z as z322 } from "zod";
9855
- var DTOForgeProjectContext = z322.object({
9856
- definition: z322.string(),
9857
- dependencies: z322.array(
9858
- z322.object({
9859
- packageName: z322.string(),
9860
- type: z322.literal("npm"),
9861
- version: z322.string().default("latest")
10044
+ import { z as z324 } from "zod";
10045
+ var DTOForgeProjectContext = z324.object({
10046
+ definition: z324.string(),
10047
+ dependencies: z324.array(
10048
+ z324.object({
10049
+ packageName: z324.string(),
10050
+ type: z324.literal("npm"),
10051
+ version: z324.string().default("latest")
9862
10052
  })
9863
10053
  ),
9864
- designSystemId: z322.string(),
9865
- id: z322.string(),
9866
- meta: z322.object({
9867
- name: z322.string(),
9868
- description: z322.string().optional()
10054
+ designSystemId: z324.string(),
10055
+ id: z324.string(),
10056
+ meta: z324.object({
10057
+ name: z324.string(),
10058
+ description: z324.string().optional()
9869
10059
  }),
9870
- name: z322.string(),
10060
+ name: z324.string(),
9871
10061
  npmProxySettings: DTONpmRegistryConfig.optional(),
9872
- platform: z322.enum(["React", "Vue", "Angular"]),
9873
- styling: z322.enum(["CSS", "Tailwind"]),
9874
- tailwindConfig: z322.object({
9875
- content: z322.string(),
9876
- version: z322.string()
10062
+ platform: z324.enum(["React", "Vue", "Angular"]),
10063
+ styling: z324.enum(["CSS", "Tailwind"]),
10064
+ tailwindConfig: z324.object({
10065
+ content: z324.string(),
10066
+ version: z324.string()
9877
10067
  }).optional(),
9878
- createdAt: z322.coerce.date(),
9879
- updatedAt: z322.coerce.date(),
9880
- workspaceId: z322.string()
10068
+ createdAt: z324.coerce.date(),
10069
+ updatedAt: z324.coerce.date(),
10070
+ workspaceId: z324.string()
9881
10071
  });
9882
10072
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9883
10073
  definition: true,
@@ -9889,13 +10079,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9889
10079
  tailwindConfig: true,
9890
10080
  styling: true
9891
10081
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
9892
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z322.string() });
9893
- var DTOForgeProjectContextGetResponse = z322.object({ context: DTOForgeProjectContext });
9894
- var DTOForgeProjectContextListResponse = z322.object({ contexts: z322.array(DTOForgeProjectContext) });
9895
- var DTOForgeProjectContextCreateResponse = z322.object({ context: DTOForgeProjectContext });
9896
- var DTOForgeProjectContextUpdateResponse = z322.object({ context: DTOForgeProjectContext });
9897
- var DTOForgeProjectContextRemoveResponse = z322.object({
9898
- ok: z322.literal(true)
10082
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z324.string() });
10083
+ var DTOForgeProjectContextGetResponse = z324.object({ context: DTOForgeProjectContext });
10084
+ var DTOForgeProjectContextListResponse = z324.object({ contexts: z324.array(DTOForgeProjectContext) });
10085
+ var DTOForgeProjectContextCreateResponse = z324.object({ context: DTOForgeProjectContext });
10086
+ var DTOForgeProjectContextUpdateResponse = z324.object({ context: DTOForgeProjectContext });
10087
+ var DTOForgeProjectContextRemoveResponse = z324.object({
10088
+ ok: z324.literal(true)
9899
10089
  });
9900
10090
 
9901
10091
  // src/api/dto/forge/project-figma-node.ts
@@ -9903,42 +10093,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
9903
10093
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
9904
10094
 
9905
10095
  // src/api/dto/forge/project-file.ts
9906
- import { z as z323 } from "zod";
9907
- var DTOForgeProjectFile = z323.object({
9908
- id: z323.string(),
9909
- name: z323.string(),
9910
- checksum: z323.string(),
9911
- pendingUpload: z323.boolean().optional(),
9912
- url: z323.string(),
9913
- size: z323.number()
9914
- });
9915
- var DTOForgeProjectFileListResponse = z323.object({
9916
- files: z323.array(DTOForgeProjectFile)
9917
- });
9918
- var DTOForgeProjectFileUploadPayloadItem = z323.object({
9919
- size: z323.number(),
9920
- name: z323.string(),
9921
- checksum: z323.string()
9922
- });
9923
- var DTOForgeProjectFileUploadPayload = z323.object({
9924
- files: z323.array(DTOForgeProjectFileUploadPayloadItem)
9925
- });
9926
- var DTOForgeProjectFileUploadResponse = z323.object({
9927
- files: z323.array(DTOForgeProjectFile),
9928
- uploadUrls: z323.array(
9929
- z323.object({
9930
- fileId: z323.string(),
9931
- uploadUrl: z323.string()
10096
+ import { z as z325 } from "zod";
10097
+ var DTOForgeProjectFile = z325.object({
10098
+ id: z325.string(),
10099
+ name: z325.string(),
10100
+ checksum: z325.string(),
10101
+ pendingUpload: z325.boolean().optional(),
10102
+ url: z325.string(),
10103
+ size: z325.number()
10104
+ });
10105
+ var DTOForgeProjectFileListResponse = z325.object({
10106
+ files: z325.array(DTOForgeProjectFile)
10107
+ });
10108
+ var DTOForgeProjectFileUploadPayloadItem = z325.object({
10109
+ size: z325.number(),
10110
+ name: z325.string(),
10111
+ checksum: z325.string()
10112
+ });
10113
+ var DTOForgeProjectFileUploadPayload = z325.object({
10114
+ files: z325.array(DTOForgeProjectFileUploadPayloadItem)
10115
+ });
10116
+ var DTOForgeProjectFileUploadResponse = z325.object({
10117
+ files: z325.array(DTOForgeProjectFile),
10118
+ uploadUrls: z325.array(
10119
+ z325.object({
10120
+ fileId: z325.string(),
10121
+ uploadUrl: z325.string()
9932
10122
  })
9933
10123
  )
9934
10124
  });
9935
- var DTOForgeProjectFileUploadFinalizePayload = z323.object({
9936
- fileIds: z323.array(z323.string())
10125
+ var DTOForgeProjectFileUploadFinalizePayload = z325.object({
10126
+ fileIds: z325.array(z325.string())
9937
10127
  });
9938
- var DTOForgeProjectFileUploadFinalizeResponse = z323.object({ ok: z323.literal(true) });
10128
+ var DTOForgeProjectFileUploadFinalizeResponse = z325.object({ ok: z325.literal(true) });
9939
10129
 
9940
10130
  // src/api/dto/forge/project-invitation.ts
9941
- import { z as z324 } from "zod";
10131
+ import { z as z326 } from "zod";
9942
10132
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
9943
10133
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9944
10134
  email: true,
@@ -9952,24 +10142,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9952
10142
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9953
10143
  email: true
9954
10144
  });
9955
- var DTOForgeProjectInvitationsListResponse = z324.object({
9956
- invitations: z324.array(DTOForgeProjectInvitation)
10145
+ var DTOForgeProjectInvitationsListResponse = z326.object({
10146
+ invitations: z326.array(DTOForgeProjectInvitation)
9957
10147
  });
9958
- var DTOForgeProjectInvitationGetResponse = z324.object({
10148
+ var DTOForgeProjectInvitationGetResponse = z326.object({
9959
10149
  invitation: DTOForgeProjectInvitation
9960
10150
  });
9961
- var DTOForgeProjectInvitationCreateResponse = z324.object({
10151
+ var DTOForgeProjectInvitationCreateResponse = z326.object({
9962
10152
  invitation: DTOForgeProjectInvitation
9963
10153
  });
9964
- var DTOForgeProjectInvitationUpdateResponse = z324.object({
10154
+ var DTOForgeProjectInvitationUpdateResponse = z326.object({
9965
10155
  invitation: DTOForgeProjectInvitation.nullable()
9966
10156
  });
9967
- var DTOForgeProjectInvitationRemoveResponse = z324.object({
9968
- ok: z324.literal(true)
10157
+ var DTOForgeProjectInvitationRemoveResponse = z326.object({
10158
+ ok: z326.literal(true)
9969
10159
  });
9970
10160
 
9971
10161
  // src/api/dto/forge/project-iteration-old.ts
9972
- import { z as z325 } from "zod";
10162
+ import { z as z327 } from "zod";
9973
10163
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
9974
10164
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9975
10165
  artifacts: true,
@@ -9980,7 +10170,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9980
10170
  messages: DTOForgeIterationMessage.array(),
9981
10171
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
9982
10172
  });
9983
- var DTOGetForgeProjectIterationResponse = z325.object({
10173
+ var DTOGetForgeProjectIterationResponse = z327.object({
9984
10174
  iteration: DTOForgeProjectIteration.nullable()
9985
10175
  });
9986
10176
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -9990,20 +10180,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
9990
10180
  mergeMeta: true,
9991
10181
  createdAt: true
9992
10182
  });
9993
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z325.string() });
9994
- var DTOCreateForgeProjectIterationResponse = z325.object({
10183
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z327.string() });
10184
+ var DTOCreateForgeProjectIterationResponse = z327.object({
9995
10185
  iteration: DTOForgeProjectIteration
9996
10186
  });
9997
- var DTOUpdateForgeProjectIterationResponse = z325.object({
10187
+ var DTOUpdateForgeProjectIterationResponse = z327.object({
9998
10188
  iteration: DTOForgeProjectIteration.nullable()
9999
10189
  });
10000
- var DTODeleteForgeProjectIterationResponse = z325.object({
10001
- ok: z325.literal(true)
10190
+ var DTODeleteForgeProjectIterationResponse = z327.object({
10191
+ ok: z327.literal(true)
10002
10192
  });
10003
- var DTOForgeProjectIterationListResponse = z325.object({ iterations: z325.array(DTOForgeProjectIteration) });
10193
+ var DTOForgeProjectIterationListResponse = z327.object({ iterations: z327.array(DTOForgeProjectIteration) });
10004
10194
 
10005
10195
  // src/api/dto/forge/project-member.ts
10006
- import { z as z326 } from "zod";
10196
+ import { z as z328 } from "zod";
10007
10197
  var DTOForgeProjectMemberRole = ForgeProjectRole;
10008
10198
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
10009
10199
  user: DTOUser,
@@ -10017,37 +10207,37 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
10017
10207
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
10018
10208
  userId: true
10019
10209
  });
10020
- var DTOForgeProjectMembersListResponse = z326.object({
10021
- members: z326.array(DTOForgeProjectMember),
10022
- invitations: z326.array(DTOForgeProjectInvitation)
10210
+ var DTOForgeProjectMembersListResponse = z328.object({
10211
+ members: z328.array(DTOForgeProjectMember),
10212
+ invitations: z328.array(DTOForgeProjectInvitation)
10023
10213
  });
10024
- var DTOForgeProjectMemberGetResponse = z326.object({
10214
+ var DTOForgeProjectMemberGetResponse = z328.object({
10025
10215
  member: DTOForgeProjectMember
10026
10216
  });
10027
- var DTOForgeProjectMemberCreateResponse = z326.object({
10217
+ var DTOForgeProjectMemberCreateResponse = z328.object({
10028
10218
  member: DTOForgeProjectMember
10029
10219
  });
10030
- var DTOForgeProjectMemberUpdateResponse = z326.object({
10220
+ var DTOForgeProjectMemberUpdateResponse = z328.object({
10031
10221
  member: DTOForgeProjectMember.nullable()
10032
10222
  });
10033
- var DTOForgeProjectMemberRemoveResponse = z326.object({
10034
- ok: z326.literal(true)
10223
+ var DTOForgeProjectMemberRemoveResponse = z328.object({
10224
+ ok: z328.literal(true)
10035
10225
  });
10036
- var DTOAddMembersToForgeProject = z326.object({
10226
+ var DTOAddMembersToForgeProject = z328.object({
10037
10227
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
10038
10228
  });
10039
10229
 
10040
10230
  // src/api/dto/forge/project-room.ts
10041
- import { z as z327 } from "zod";
10042
- var DTOForgeProjectRoom = z327.object({
10043
- id: z327.string()
10231
+ import { z as z329 } from "zod";
10232
+ var DTOForgeProjectRoom = z329.object({
10233
+ id: z329.string()
10044
10234
  });
10045
- var DTOForgeProjectRoomResponse = z327.object({
10235
+ var DTOForgeProjectRoomResponse = z329.object({
10046
10236
  room: DTOForgeProjectRoom
10047
10237
  });
10048
10238
 
10049
10239
  // src/api/dto/forge/project.ts
10050
- import { z as z328 } from "zod";
10240
+ import { z as z330 } from "zod";
10051
10241
  var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
10052
10242
  context: DTOForgeProjectContextV2
10053
10243
  });
@@ -10063,300 +10253,158 @@ var DTOForgeProjectCreate = ForgeProject.pick({
10063
10253
  emoji: true
10064
10254
  }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
10065
10255
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10066
- id: z328.string()
10256
+ id: z330.string()
10067
10257
  });
10068
- var DTOForgeProjectGetResponse = z328.object({ project: DTOForgeProject.nullable() });
10069
- var DTOForgeProjectListResponse = z328.object({ projects: z328.array(DTOForgeProject) });
10070
- var DTOForgeProjectCreateResponse = z328.object({
10258
+ var DTOForgeProjectGetResponse = z330.object({ project: DTOForgeProject.nullable() });
10259
+ var DTOForgeProjectListResponse = z330.object({ projects: z330.array(DTOForgeProject) });
10260
+ var DTOForgeProjectCreateResponse = z330.object({
10071
10261
  project: DTOForgeProject
10072
10262
  });
10073
- var DTOForgeProjectUpdateResponse = z328.object({
10263
+ var DTOForgeProjectUpdateResponse = z330.object({
10074
10264
  project: DTOForgeProject
10075
10265
  });
10076
- var DTOForgeProjectRemoveResponse = z328.object({ ok: z328.literal(true) });
10266
+ var DTOForgeProjectRemoveResponse = z330.object({ ok: z330.literal(true) });
10077
10267
 
10078
10268
  // src/api/dto/forge/threads.ts
10079
- import { z as z329 } from "zod";
10269
+ import { z as z331 } from "zod";
10080
10270
  var DTOForgeChatMessage = ForgeChatMessage;
10081
10271
  var DTOForgeChatThread = ForgeChatThread;
10082
10272
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
10083
10273
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
10084
- var DTOForgeChatThreadCreateInput = z329.object({
10085
- title: z329.string().optional()
10274
+ var DTOForgeChatThreadCreateInput = z331.object({
10275
+ title: z331.string().optional()
10086
10276
  });
10087
- var DTOForgeChatThreadCreateResponse = z329.object({
10277
+ var DTOForgeChatThreadCreateResponse = z331.object({
10088
10278
  thread: DTOForgeChatThread
10089
10279
  });
10090
- var DTOForgeChatThreadUpdateInput = z329.object({
10091
- title: z329.string()
10280
+ var DTOForgeChatThreadUpdateInput = z331.object({
10281
+ title: z331.string()
10092
10282
  });
10093
- var DTOForgeChatThreadUpdateResponse = z329.object({
10283
+ var DTOForgeChatThreadUpdateResponse = z331.object({
10094
10284
  thread: DTOForgeChatThread
10095
10285
  });
10096
- var DTOForgeChatThreadDeleteResponse = z329.object({
10097
- success: z329.boolean()
10286
+ var DTOForgeChatThreadDeleteResponse = z331.object({
10287
+ success: z331.boolean()
10098
10288
  });
10099
- var DTOForgeChatThreadListQuery = z329.object({
10100
- limit: z329.number().optional(),
10101
- offset: z329.number().optional()
10289
+ var DTOForgeChatThreadListQuery = z331.object({
10290
+ limit: z331.number().optional(),
10291
+ offset: z331.number().optional()
10102
10292
  });
10103
- var DTOForgeChatThreadListResponse = z329.object({
10104
- threads: z329.array(DTOForgeChatThread),
10105
- pagination: z329.object({
10106
- offset: z329.number(),
10107
- limit: z329.number(),
10108
- total: z329.number()
10293
+ var DTOForgeChatThreadListResponse = z331.object({
10294
+ threads: z331.array(DTOForgeChatThread),
10295
+ pagination: z331.object({
10296
+ offset: z331.number(),
10297
+ limit: z331.number(),
10298
+ total: z331.number()
10109
10299
  })
10110
10300
  });
10111
- var DTOForgeChatMessageCreateInput = z329.object({
10112
- payload: z329.string(),
10301
+ var DTOForgeChatMessageCreateInput = z331.object({
10302
+ payload: z331.string(),
10113
10303
  sender: DTOForgeChatMessageSender.optional(),
10114
- opikTraceId: z329.string().optional()
10304
+ opikTraceId: z331.string().optional()
10115
10305
  });
10116
- var DTOForgeChatMessageCreateResponse = z329.object({
10306
+ var DTOForgeChatMessageCreateResponse = z331.object({
10117
10307
  message: DTOForgeChatMessage
10118
10308
  });
10119
- var DTOForgeChatMessageListQuery = z329.object({
10120
- limit: z329.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10121
- offset: z329.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10309
+ var DTOForgeChatMessageListQuery = z331.object({
10310
+ limit: z331.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10311
+ offset: z331.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10122
10312
  });
10123
- var DTOForgeChatMessageListResponse = z329.object({
10124
- messages: z329.array(DTOForgeChatMessage),
10125
- totalCount: z329.number(),
10126
- hasMore: z329.boolean()
10313
+ var DTOForgeChatMessageListResponse = z331.object({
10314
+ messages: z331.array(DTOForgeChatMessage),
10315
+ totalCount: z331.number(),
10316
+ hasMore: z331.boolean()
10127
10317
  });
10128
- var DTOForgeChatExportResponse = z329.object({
10129
- csvDownloadUrl: z329.string().nullable()
10318
+ var DTOForgeChatExportResponse = z331.object({
10319
+ csvDownloadUrl: z331.string().nullable()
10130
10320
  });
10131
- var DTOForgeChatMessageScoreInput = z329.object({
10132
- messageId: z329.string(),
10133
- name: z329.string(),
10134
- value: z329.number(),
10135
- categoryName: z329.string().optional(),
10136
- reason: z329.string().optional()
10321
+ var DTOForgeChatMessageScoreInput = z331.object({
10322
+ messageId: z331.string(),
10323
+ name: z331.string(),
10324
+ value: z331.number(),
10325
+ categoryName: z331.string().optional(),
10326
+ reason: z331.string().optional()
10137
10327
  });
10138
- var DTOForgeChatMessageTagInput = z329.object({
10139
- messageId: z329.string(),
10140
- tags: z329.array(z329.string())
10328
+ var DTOForgeChatMessageTagInput = z331.object({
10329
+ messageId: z331.string(),
10330
+ tags: z331.array(z331.string())
10141
10331
  });
10142
- var DTOForgeChatMessageScoreRequest = z329.object({
10332
+ var DTOForgeChatMessageScoreRequest = z331.object({
10143
10333
  scores: DTOForgeChatMessageScoreInput.array(),
10144
10334
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
10145
10335
  });
10146
10336
 
10147
10337
  // src/api/dto/liveblocks/auth-response.ts
10148
- import { z as z330 } from "zod";
10149
- var DTOLiveblocksAuthResponse = z330.object({
10150
- token: z330.string()
10338
+ import { z as z332 } from "zod";
10339
+ var DTOLiveblocksAuthResponse = z332.object({
10340
+ token: z332.string()
10151
10341
  });
10152
10342
 
10153
10343
  // src/api/dto/portal/portal-settings.ts
10154
- import { z as z331 } from "zod";
10344
+ import { z as z333 } from "zod";
10155
10345
  var DTOPortalSettingsTheme = PortalSettingsTheme;
10156
10346
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
10157
10347
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
10158
10348
  var DTOPortalSettingsSidebar = PortalSettingsSidebar;
10159
- var DTOPortalSettings = z331.object({
10160
- id: z331.string(),
10161
- workspaceId: z331.string(),
10162
- enabledDesignSystemIds: z331.array(z331.string()),
10163
- enabledBrandPersistentIds: z331.array(z331.string()),
10349
+ var DTOPortalSettings = z333.object({
10350
+ id: z333.string(),
10351
+ workspaceId: z333.string(),
10352
+ enabledDesignSystemIds: z333.array(z333.string()),
10353
+ enabledBrandPersistentIds: z333.array(z333.string()),
10164
10354
  theme: DTOPortalSettingsTheme.nullish(),
10165
10355
  sidebar: DTOPortalSettingsSidebar.nullish(),
10166
- createdAt: z331.coerce.date(),
10167
- updatedAt: z331.coerce.date()
10356
+ createdAt: z333.coerce.date(),
10357
+ updatedAt: z333.coerce.date()
10168
10358
  });
10169
- var DTOPortalSettingsGetResponse = z331.object({
10359
+ var DTOPortalSettingsGetResponse = z333.object({
10170
10360
  portalSettings: DTOPortalSettings
10171
10361
  });
10172
- var DTOPortalSettingsUpdatePayload = z331.object({
10173
- enabledDesignSystemIds: z331.array(z331.string()).optional(),
10174
- enabledBrandPersistentIds: z331.array(z331.string()).optional(),
10362
+ var DTOPortalSettingsUpdatePayload = z333.object({
10363
+ enabledDesignSystemIds: z333.array(z333.string()).optional(),
10364
+ enabledBrandPersistentIds: z333.array(z333.string()).optional(),
10175
10365
  theme: DTOPortalSettingsTheme.nullish(),
10176
10366
  sidebar: DTOPortalSettingsSidebar.nullish()
10177
10367
  });
10178
10368
 
10179
10369
  // src/api/dto/themes/override.ts
10180
- import { z as z332 } from "zod";
10370
+ import { z as z334 } from "zod";
10181
10371
  var DTOThemeOverride = DesignTokenTypedData.and(
10182
- z332.object({
10183
- tokenPersistentId: z332.string(),
10372
+ z334.object({
10373
+ tokenPersistentId: z334.string(),
10184
10374
  origin: ThemeOverrideOrigin.optional()
10185
10375
  })
10186
10376
  );
10187
10377
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
10188
- z332.object({
10189
- tokenPersistentId: z332.string()
10378
+ z334.object({
10379
+ tokenPersistentId: z334.string()
10190
10380
  })
10191
10381
  );
10192
10382
 
10193
10383
  // src/api/dto/themes/theme.ts
10194
- import { z as z333 } from "zod";
10195
- var DTOTheme = z333.object({
10196
- id: z333.string(),
10197
- persistentId: z333.string(),
10198
- designSystemVersionId: z333.string(),
10199
- brandId: z333.string(),
10384
+ import { z as z335 } from "zod";
10385
+ var DTOTheme = z335.object({
10386
+ id: z335.string(),
10387
+ persistentId: z335.string(),
10388
+ designSystemVersionId: z335.string(),
10389
+ brandId: z335.string(),
10200
10390
  meta: ObjectMeta,
10201
- codeName: z333.string(),
10391
+ codeName: z335.string(),
10202
10392
  overrides: DTOThemeOverride.array()
10203
10393
  });
10204
- var DTOThemeResponse = z333.object({
10394
+ var DTOThemeResponse = z335.object({
10205
10395
  theme: DTOTheme
10206
10396
  });
10207
- var DTOThemeListResponse = z333.object({
10397
+ var DTOThemeListResponse = z335.object({
10208
10398
  themes: DTOTheme.array()
10209
10399
  });
10210
- var DTOThemeCreatePayload = z333.object({
10400
+ var DTOThemeCreatePayload = z335.object({
10211
10401
  meta: ObjectMeta,
10212
- persistentId: z333.string(),
10213
- brandId: z333.string(),
10214
- codeName: z333.string(),
10402
+ persistentId: z335.string(),
10403
+ brandId: z335.string(),
10404
+ codeName: z335.string(),
10215
10405
  overrides: DTOThemeOverride.array()
10216
10406
  });
10217
10407
 
10218
- // src/api/dto/threads/threads.ts
10219
- import z334 from "zod";
10220
- var DTOThreadSubjectType = z334.enum(["ForgeDocument", "ForgeFeature"]);
10221
- var DTOThreadAgentType = z334.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10222
- var DTOThread = z334.object({
10223
- id: z334.string(),
10224
- liveblocksRoomId: z334.string(),
10225
- defaultAgentType: DTOThreadAgentType,
10226
- subjectId: z334.string(),
10227
- subjectType: DTOThreadSubjectType,
10228
- createdAt: z334.string(),
10229
- updatedAt: z334.string()
10230
- });
10231
- var DTOThreadMessageUserSender = z334.object({
10232
- type: z334.literal("User"),
10233
- userId: z334.string()
10234
- });
10235
- var DTOThreadMessageAgentSender = z334.object({
10236
- type: z334.literal("Agent"),
10237
- agentType: DTOThreadAgentType
10238
- });
10239
- var DTOThreadMessageSystemSender = z334.object({
10240
- type: z334.literal("System"),
10241
- onBehalfOfUserId: z334.string()
10242
- });
10243
- var DTOThreadMessageSender = z334.discriminatedUnion("type", [
10244
- DTOThreadMessageUserSender,
10245
- DTOThreadMessageAgentSender,
10246
- DTOThreadMessageSystemSender
10247
- ]);
10248
- var DTOThreadReaction = z334.object({
10249
- messageId: Id,
10250
- userId: z334.string(),
10251
- emoji: z334.string(),
10252
- createdAt: z334.string()
10253
- });
10254
- var DTOThreadMessageAttachments = z334.object({
10255
- iterationId: Id.optional()
10256
- // TODO Artem: files, etc
10257
- });
10258
- var DTOThreadMessage = z334.object({
10259
- id: Id,
10260
- threadId: z334.string(),
10261
- /**
10262
- * Describes where the message came from
10263
- */
10264
- sender: DTOThreadMessageSender,
10265
- /**
10266
- * Content of the message
10267
- */
10268
- body: z334.string(),
10269
- /**
10270
- * Indicates if the message was sent in the agentic mode, if so this message will cause an
10271
- * AI agent to generate a response and perform an action within the feature
10272
- */
10273
- isPrompt: z334.boolean().optional(),
10274
- /**
10275
- * Indicates if the sender requested agent to reply in a thread
10276
- */
10277
- startsNewThread: z334.boolean().optional(),
10278
- /**
10279
- * If defined, this message is considered to be a reply in a thread under parent message id
10280
- */
10281
- parentMessageId: Id.optional(),
10282
- /**
10283
- * Link agent response object describing current state of
10284
- */
10285
- agentResponseTrackerId: Id.optional().nullable(),
10286
- attachments: DTOThreadMessageAttachments.optional(),
10287
- /**
10288
- * If defined, this message is considered to be a reply to different message
10289
- */
10290
- replyToMessageId: Id.optional(),
10291
- createdAt: z334.string(),
10292
- updatedAt: z334.string().optional()
10293
- });
10294
- var DTOThreadAgentResponseTracker = z334.object({
10295
- id: Id,
10296
- currentBody: z334.string().default("")
10297
- });
10298
- var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10299
- id: true,
10300
- body: true,
10301
- isPrompt: true,
10302
- startsNewThread: true,
10303
- parentMessageId: true,
10304
- attachments: true
10305
- });
10306
- var DTOThreadMessageFinalizeInput = z334.object({
10307
- messageId: Id
10308
- });
10309
- var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10310
- id: true
10311
- }).merge(
10312
- z334.object({
10313
- body: DTOThreadMessage.shape.body,
10314
- attachments: DTOThreadMessage.shape.attachments,
10315
- agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
10316
- }).partial()
10317
- );
10318
- var DTOThreadReactionCreateInput = z334.object({
10319
- messageId: Id,
10320
- emoji: z334.string()
10321
- });
10322
- var DTOThreadReactionDeleteInput = z334.object({
10323
- messageId: Id,
10324
- emoji: z334.string()
10325
- });
10326
- var DTOThreadMessageResponse = z334.object({
10327
- message: DTOThreadMessage
10328
- });
10329
- var DTOThreadReactionResponse = z334.object({
10330
- reaction: DTOThreadReaction
10331
- });
10332
- var DTOThreadMessageListResponse = z334.object({
10333
- messages: DTOThreadMessage.array(),
10334
- reactions: DTOThreadReaction.array(),
10335
- lastSeenMessageId: z334.string().optional()
10336
- });
10337
- var DTOThreadEventMessagesSent = z334.object({
10338
- type: z334.literal("MessagesSent"),
10339
- data: DTOThreadMessage.array()
10340
- });
10341
- var DTOThreadEventMessagesUpdated = z334.object({
10342
- type: z334.literal("MessagesUpdated"),
10343
- data: DTOThreadMessage.array()
10344
- });
10345
- var DTOThreadEventReactionsSent = z334.object({
10346
- type: z334.literal("ReactionsSent"),
10347
- data: DTOThreadReaction.array()
10348
- });
10349
- var DTOThreadEventReactionsDeleted = z334.object({
10350
- type: z334.literal("ReactionsDeleted"),
10351
- data: DTOThreadReaction.array()
10352
- });
10353
- var DTOThreadEvent = z334.discriminatedUnion("type", [
10354
- DTOThreadEventMessagesSent,
10355
- DTOThreadEventMessagesUpdated,
10356
- DTOThreadEventReactionsSent,
10357
- DTOThreadEventReactionsDeleted
10358
- ]);
10359
-
10360
10408
  // src/utils/figma.ts
10361
10409
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
10362
10410
  var nodeIdRegex = /^\d+-\d+$/;
@@ -10589,13 +10637,13 @@ var ExportersEndpoint = class {
10589
10637
  };
10590
10638
 
10591
10639
  // src/api/endpoints/codegen/jobs.ts
10592
- import { z as z335 } from "zod";
10640
+ import { z as z336 } from "zod";
10593
10641
  var ExporterJobsEndpoint = class {
10594
10642
  constructor(requestExecutor) {
10595
10643
  this.requestExecutor = requestExecutor;
10596
10644
  }
10597
10645
  list(workspaceId) {
10598
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z335.any());
10646
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z336.any());
10599
10647
  }
10600
10648
  get(workspaceId, jobId) {
10601
10649
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -10653,7 +10701,7 @@ var CodegenEndpoint = class {
10653
10701
  };
10654
10702
 
10655
10703
  // src/api/endpoints/design-system/versions/brands.ts
10656
- import { z as z336 } from "zod";
10704
+ import { z as z337 } from "zod";
10657
10705
  var BrandsEndpoint = class {
10658
10706
  constructor(requestExecutor) {
10659
10707
  this.requestExecutor = requestExecutor;
@@ -10687,7 +10735,7 @@ var BrandsEndpoint = class {
10687
10735
  });
10688
10736
  }
10689
10737
  delete(dsId, vId, brandId) {
10690
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z336.any(), {
10738
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z337.any(), {
10691
10739
  method: "DELETE"
10692
10740
  });
10693
10741
  }
@@ -10963,7 +11011,7 @@ var ImportJobsEndpoint = class {
10963
11011
  };
10964
11012
 
10965
11013
  // src/api/endpoints/design-system/versions/overrides.ts
10966
- import { z as z337 } from "zod";
11014
+ import { z as z338 } from "zod";
10967
11015
  var OverridesEndpoint = class {
10968
11016
  constructor(requestExecutor) {
10969
11017
  this.requestExecutor = requestExecutor;
@@ -10971,7 +11019,7 @@ var OverridesEndpoint = class {
10971
11019
  create(dsId, versionId, themeId, body) {
10972
11020
  return this.requestExecutor.json(
10973
11021
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
10974
- z337.any(),
11022
+ z338.any(),
10975
11023
  {
10976
11024
  method: "POST",
10977
11025
  body
@@ -10981,7 +11029,7 @@ var OverridesEndpoint = class {
10981
11029
  };
10982
11030
 
10983
11031
  // src/api/endpoints/design-system/versions/property-definitions.ts
10984
- import { z as z338 } from "zod";
11032
+ import { z as z339 } from "zod";
10985
11033
  var ElementPropertyDefinitionsEndpoint = class {
10986
11034
  constructor(requestExecutor) {
10987
11035
  this.requestExecutor = requestExecutor;
@@ -11009,7 +11057,7 @@ var ElementPropertyDefinitionsEndpoint = class {
11009
11057
  delete(designSystemId, versionId, defId) {
11010
11058
  return this.requestExecutor.json(
11011
11059
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
11012
- z338.any(),
11060
+ z339.any(),
11013
11061
  { method: "DELETE" }
11014
11062
  );
11015
11063
  }
@@ -11048,7 +11096,7 @@ var VersionStatsEndpoint = class {
11048
11096
  };
11049
11097
 
11050
11098
  // src/api/endpoints/design-system/versions/themes.ts
11051
- import { z as z339 } from "zod";
11099
+ import { z as z340 } from "zod";
11052
11100
  var ThemesEndpoint = class {
11053
11101
  constructor(requestExecutor) {
11054
11102
  this.requestExecutor = requestExecutor;
@@ -11071,7 +11119,7 @@ var ThemesEndpoint = class {
11071
11119
  });
11072
11120
  }
11073
11121
  delete(dsId, versionId, themeId) {
11074
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z339.any(), {
11122
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z340.any(), {
11075
11123
  method: "DELETE"
11076
11124
  });
11077
11125
  }
@@ -11244,7 +11292,7 @@ var DesignSystemContactsEndpoint = class {
11244
11292
  };
11245
11293
 
11246
11294
  // src/api/endpoints/design-system/design-systems.ts
11247
- import { z as z343 } from "zod";
11295
+ import { z as z344 } from "zod";
11248
11296
 
11249
11297
  // src/api/endpoints/design-system/figma-node-structures.ts
11250
11298
  var FigmaNodeStructuresEndpoint = class {
@@ -11321,7 +11369,7 @@ var DesignSystemPageRedirectsEndpoint = class {
11321
11369
  };
11322
11370
 
11323
11371
  // src/api/endpoints/design-system/sources.ts
11324
- import { z as z340 } from "zod";
11372
+ import { z as z341 } from "zod";
11325
11373
  var DesignSystemSourcesEndpoint = class {
11326
11374
  constructor(requestExecutor) {
11327
11375
  this.requestExecutor = requestExecutor;
@@ -11339,7 +11387,7 @@ var DesignSystemSourcesEndpoint = class {
11339
11387
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
11340
11388
  }
11341
11389
  delete(dsId, sourceId) {
11342
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z340.any(), { method: "DELETE" });
11390
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z341.any(), { method: "DELETE" });
11343
11391
  }
11344
11392
  updateFigmaSource(dsId, sourceId, payload) {
11345
11393
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -11382,7 +11430,7 @@ var DesignSystemSourcesEndpoint = class {
11382
11430
  };
11383
11431
 
11384
11432
  // src/api/endpoints/design-system/storybook.ts
11385
- import { z as z341 } from "zod";
11433
+ import { z as z342 } from "zod";
11386
11434
  var StorybookEntriesEndpoint = class {
11387
11435
  constructor(requestExecutor) {
11388
11436
  this.requestExecutor = requestExecutor;
@@ -11400,14 +11448,14 @@ var StorybookEntriesEndpoint = class {
11400
11448
  );
11401
11449
  }
11402
11450
  delete(dsId, entryId) {
11403
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z341.any(), {
11451
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z342.any(), {
11404
11452
  method: "DELETE"
11405
11453
  });
11406
11454
  }
11407
11455
  };
11408
11456
 
11409
11457
  // src/api/endpoints/design-system/storybook-hosting.ts
11410
- import { z as z342 } from "zod";
11458
+ import { z as z343 } from "zod";
11411
11459
  var StorybookHostingEndpoint = class {
11412
11460
  constructor(requestExecutor) {
11413
11461
  this.requestExecutor = requestExecutor;
@@ -11421,7 +11469,7 @@ var StorybookHostingEndpoint = class {
11421
11469
  delete(dsId, storybookUploadId) {
11422
11470
  return this.requestExecutor.json(
11423
11471
  `/design-systems/${dsId}/storybook/${storybookUploadId}`,
11424
- z342.object({ ok: z342.boolean() }),
11472
+ z343.object({ ok: z343.boolean() }),
11425
11473
  {
11426
11474
  method: "DELETE"
11427
11475
  }
@@ -11479,7 +11527,7 @@ var DesignSystemsEndpoint = class {
11479
11527
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
11480
11528
  }
11481
11529
  delete(dsId) {
11482
- return this.requestExecutor.json(`/design-systems/${dsId}`, z343.any(), { method: "DELETE" });
11530
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z344.any(), { method: "DELETE" });
11483
11531
  }
11484
11532
  update(dsId, body) {
11485
11533
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -11602,7 +11650,7 @@ var ForgeFeatureArtifactsEndpoint = class {
11602
11650
  };
11603
11651
 
11604
11652
  // src/api/endpoints/forge/feature-iterations.ts
11605
- import z344 from "zod";
11653
+ import z345 from "zod";
11606
11654
  var ForgeFeatureIterationsEndpoint = class {
11607
11655
  constructor(requestExecutor) {
11608
11656
  this.requestExecutor = requestExecutor;
@@ -11619,7 +11667,7 @@ var ForgeFeatureIterationsEndpoint = class {
11619
11667
  updateArtifacts(workspaceId, projectId, featureId, body) {
11620
11668
  return this.requestExecutor.json(
11621
11669
  `/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
11622
- z344.any(),
11670
+ z345.any(),
11623
11671
  {
11624
11672
  body,
11625
11673
  method: "POST"
@@ -11854,7 +11902,7 @@ var ForgeProjectMembersEndpoint = class {
11854
11902
  };
11855
11903
 
11856
11904
  // src/api/endpoints/forge/projects.ts
11857
- import z345 from "zod";
11905
+ import z346 from "zod";
11858
11906
  var ForgeProjectsEndpoint = class {
11859
11907
  constructor(requestExecutor) {
11860
11908
  this.requestExecutor = requestExecutor;
@@ -11899,7 +11947,7 @@ var ForgeProjectsEndpoint = class {
11899
11947
  );
11900
11948
  }
11901
11949
  action(workspaceId, projectId, body) {
11902
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z345.any(), {
11950
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z346.any(), {
11903
11951
  body,
11904
11952
  method: "POST"
11905
11953
  });
@@ -11982,7 +12030,7 @@ var ForgeProjectIterationsEndpoint = class {
11982
12030
  };
11983
12031
 
11984
12032
  // src/api/endpoints/workspaces/chat-threads.ts
11985
- import { z as z346 } from "zod";
12033
+ import { z as z347 } from "zod";
11986
12034
  var WorkspaceChatThreadsEndpoint = class {
11987
12035
  constructor(requestExecutor) {
11988
12036
  this.requestExecutor = requestExecutor;
@@ -12014,7 +12062,7 @@ var WorkspaceChatThreadsEndpoint = class {
12014
12062
  );
12015
12063
  }
12016
12064
  delete(workspaceId, threadId) {
12017
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z346.any(), {
12065
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z347.any(), {
12018
12066
  method: "DELETE"
12019
12067
  });
12020
12068
  }
@@ -12046,7 +12094,7 @@ var ChatThreadMessagesEndpoint = class {
12046
12094
  );
12047
12095
  }
12048
12096
  score(workspaceId, threadId, body) {
12049
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z346.any(), {
12097
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z347.any(), {
12050
12098
  method: "POST",
12051
12099
  body
12052
12100
  });
@@ -12054,7 +12102,7 @@ var ChatThreadMessagesEndpoint = class {
12054
12102
  };
12055
12103
 
12056
12104
  // src/api/endpoints/workspaces/integrations.ts
12057
- import { z as z347 } from "zod";
12105
+ import { z as z348 } from "zod";
12058
12106
  var WorkspaceIntegrationsEndpoint = class {
12059
12107
  constructor(requestExecutor) {
12060
12108
  this.requestExecutor = requestExecutor;
@@ -12063,7 +12111,7 @@ var WorkspaceIntegrationsEndpoint = class {
12063
12111
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
12064
12112
  }
12065
12113
  delete(wsId, iId) {
12066
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z347.unknown(), { method: "DELETE" });
12114
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z348.unknown(), { method: "DELETE" });
12067
12115
  }
12068
12116
  };
12069
12117
 
@@ -12095,7 +12143,7 @@ var WorkspaceInvitationsEndpoint = class {
12095
12143
  };
12096
12144
 
12097
12145
  // src/api/endpoints/workspaces/members.ts
12098
- import { z as z348 } from "zod";
12146
+ import { z as z349 } from "zod";
12099
12147
  var WorkspaceMembersEndpoint = class {
12100
12148
  constructor(requestExecutor) {
12101
12149
  this.requestExecutor = requestExecutor;
@@ -12112,7 +12160,7 @@ var WorkspaceMembersEndpoint = class {
12112
12160
  });
12113
12161
  }
12114
12162
  invite(workspaceId, body) {
12115
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z348.any(), { method: "POST", body });
12163
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z349.any(), { method: "POST", body });
12116
12164
  }
12117
12165
  delete(workspaceId, userId) {
12118
12166
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -12141,7 +12189,7 @@ var WorkspaceNpmRegistryEndpoint = class {
12141
12189
  };
12142
12190
 
12143
12191
  // src/api/endpoints/workspaces/workspaces.ts
12144
- import { z as z349 } from "zod";
12192
+ import { z as z350 } from "zod";
12145
12193
  var WorkspacesEndpoint = class {
12146
12194
  constructor(requestExecutor) {
12147
12195
  this.requestExecutor = requestExecutor;
@@ -12173,10 +12221,10 @@ var WorkspacesEndpoint = class {
12173
12221
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
12174
12222
  }
12175
12223
  delete(workspaceId) {
12176
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z349.any(), { method: "DELETE" });
12224
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z350.any(), { method: "DELETE" });
12177
12225
  }
12178
12226
  subscription(workspaceId) {
12179
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z349.any(), { method: "GET" });
12227
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z350.any(), { method: "GET" });
12180
12228
  }
12181
12229
  getPortalSettings(workspaceId) {
12182
12230
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -12287,9 +12335,9 @@ ${bodyText}`,
12287
12335
 
12288
12336
  // src/api/transport/request-executor.ts
12289
12337
  import fetch from "node-fetch";
12290
- import { z as z350 } from "zod";
12291
- var ResponseWrapper = z350.object({
12292
- result: z350.record(z350.any())
12338
+ import { z as z351 } from "zod";
12339
+ var ResponseWrapper = z351.object({
12340
+ result: z351.record(z351.any())
12293
12341
  });
12294
12342
  var RequestExecutor = class {
12295
12343
  constructor(testServerConfig) {
@@ -12366,25 +12414,25 @@ var SupernovaApiClient = class {
12366
12414
  };
12367
12415
 
12368
12416
  // src/events/design-system.ts
12369
- import { z as z351 } from "zod";
12370
- var DTOEventFigmaNodesRendered = z351.object({
12371
- type: z351.literal("DesignSystem.FigmaNodesRendered"),
12372
- designSystemId: z351.string(),
12373
- versionId: z351.string(),
12374
- figmaNodePersistentIds: z351.string().array()
12375
- });
12376
- var DTOEventDataSourcesImported = z351.object({
12377
- type: z351.literal("DesignSystem.ImportJobFinished"),
12378
- designSystemId: z351.string(),
12379
- versionId: z351.string(),
12380
- importJobId: z351.string(),
12417
+ import { z as z352 } from "zod";
12418
+ var DTOEventFigmaNodesRendered = z352.object({
12419
+ type: z352.literal("DesignSystem.FigmaNodesRendered"),
12420
+ designSystemId: z352.string(),
12421
+ versionId: z352.string(),
12422
+ figmaNodePersistentIds: z352.string().array()
12423
+ });
12424
+ var DTOEventDataSourcesImported = z352.object({
12425
+ type: z352.literal("DesignSystem.ImportJobFinished"),
12426
+ designSystemId: z352.string(),
12427
+ versionId: z352.string(),
12428
+ importJobId: z352.string(),
12381
12429
  dataSourceType: DataSourceRemoteType,
12382
- dataSourceIds: z351.string().array()
12430
+ dataSourceIds: z352.string().array()
12383
12431
  });
12384
12432
 
12385
12433
  // src/events/event.ts
12386
- import { z as z352 } from "zod";
12387
- var DTOEvent = z352.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12434
+ import { z as z353 } from "zod";
12435
+ var DTOEvent = z353.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12388
12436
 
12389
12437
  // src/sync/docs-local-action-executor.ts
12390
12438
  function applyActionsLocally(input) {
@@ -12680,7 +12728,7 @@ var LocalDocsElementActionExecutor = class {
12680
12728
  import PQueue from "p-queue";
12681
12729
 
12682
12730
  // src/yjs/design-system-content/documentation-hierarchy.ts
12683
- import { z as z353 } from "zod";
12731
+ import { z as z354 } from "zod";
12684
12732
 
12685
12733
  // src/yjs/version-room/base.ts
12686
12734
  var VersionRoomBaseYDoc = class {
@@ -13230,24 +13278,24 @@ var FrontendVersionRoomYDoc = class {
13230
13278
  };
13231
13279
 
13232
13280
  // src/yjs/design-system-content/documentation-hierarchy.ts
13233
- var DocumentationHierarchySettings = z353.object({
13234
- routingVersion: z353.string(),
13235
- isDraftFeatureAdopted: z353.boolean(),
13236
- isApprovalFeatureEnabled: z353.boolean(),
13237
- approvalRequiredForPublishing: z353.boolean()
13281
+ var DocumentationHierarchySettings = z354.object({
13282
+ routingVersion: z354.string(),
13283
+ isDraftFeatureAdopted: z354.boolean(),
13284
+ isApprovalFeatureEnabled: z354.boolean(),
13285
+ approvalRequiredForPublishing: z354.boolean()
13238
13286
  });
13239
13287
  function yjsToDocumentationHierarchy(doc) {
13240
13288
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
13241
13289
  }
13242
13290
 
13243
13291
  // src/yjs/design-system-content/item-configuration.ts
13244
- import { z as z354 } from "zod";
13245
- var DTODocumentationPageRoomHeaderData = z354.object({
13246
- title: z354.string(),
13292
+ import { z as z355 } from "zod";
13293
+ var DTODocumentationPageRoomHeaderData = z355.object({
13294
+ title: z355.string(),
13247
13295
  configuration: DTODocumentationItemConfigurationV2
13248
13296
  });
13249
- var DTODocumentationPageRoomHeaderDataUpdate = z354.object({
13250
- title: z354.string().optional(),
13297
+ var DTODocumentationPageRoomHeaderDataUpdate = z355.object({
13298
+ title: z355.string().optional(),
13251
13299
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
13252
13300
  });
13253
13301
  function itemConfigurationToYjs(yDoc, item) {
@@ -13282,9 +13330,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
13282
13330
  var PageSectionEditorModel = PageSectionEditorModelV2;
13283
13331
 
13284
13332
  // src/yjs/docs-editor/model/page.ts
13285
- import { z as z355 } from "zod";
13286
- var DocumentationPageEditorModel = z355.object({
13287
- blocks: z355.array(DocumentationPageContentItem)
13333
+ import { z as z356 } from "zod";
13334
+ var DocumentationPageEditorModel = z356.object({
13335
+ blocks: z356.array(DocumentationPageContentItem)
13288
13336
  });
13289
13337
 
13290
13338
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -16961,7 +17009,7 @@ var blocks = [
16961
17009
 
16962
17010
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
16963
17011
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
16964
- import { z as z356 } from "zod";
17012
+ import { z as z357 } from "zod";
16965
17013
  function yDocToPage(yDoc, definitions) {
16966
17014
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
16967
17015
  }
@@ -17037,7 +17085,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
17037
17085
  if (!id) return null;
17038
17086
  return {
17039
17087
  id,
17040
- title: getProsemirrorAttribute(prosemirrorNode, "title", z356.string()) ?? "",
17088
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z357.string()) ?? "",
17041
17089
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
17042
17090
  };
17043
17091
  }
@@ -17071,7 +17119,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
17071
17119
  });
17072
17120
  }
17073
17121
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
17074
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z356.string());
17122
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z357.string());
17075
17123
  if (!definitionId) {
17076
17124
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
17077
17125
  return [];
@@ -17112,7 +17160,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
17112
17160
  const id = getProsemirrorBlockId(prosemirrorNode);
17113
17161
  if (!id) return null;
17114
17162
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17115
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z356.string().optional()));
17163
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z357.string().optional()));
17116
17164
  return {
17117
17165
  id,
17118
17166
  type: "Block",
@@ -17235,9 +17283,9 @@ function parseRichTextAttribute(mark) {
17235
17283
  return null;
17236
17284
  }
17237
17285
  function parseProsemirrorLink(mark) {
17238
- const href = getProsemirrorAttribute(mark, "href", z356.string().optional());
17286
+ const href = getProsemirrorAttribute(mark, "href", z357.string().optional());
17239
17287
  if (!href) return null;
17240
- const target = getProsemirrorAttribute(mark, "target", z356.string().optional());
17288
+ const target = getProsemirrorAttribute(mark, "target", z357.string().optional());
17241
17289
  const openInNewTab = target === "_blank";
17242
17290
  if (href.startsWith("@")) {
17243
17291
  return {
@@ -17256,9 +17304,9 @@ function parseProsemirrorLink(mark) {
17256
17304
  }
17257
17305
  }
17258
17306
  function parseProsemirrorCommentHighlight(mark) {
17259
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z356.string().optional());
17307
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z357.string().optional());
17260
17308
  if (!highlightId) return null;
17261
- const isResolved = getProsemirrorAttribute(mark, "resolved", z356.boolean().optional()) ?? false;
17309
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z357.boolean().optional()) ?? false;
17262
17310
  return {
17263
17311
  type: "Comment",
17264
17312
  commentHighlightId: highlightId,
@@ -17269,7 +17317,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
17269
17317
  const id = getProsemirrorBlockId(prosemirrorNode);
17270
17318
  if (!id) return null;
17271
17319
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17272
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z356.boolean().optional()) !== false;
17320
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z357.boolean().optional()) !== false;
17273
17321
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
17274
17322
  if (!tableChild) {
17275
17323
  return emptyTable(id, variantId, 0);
@@ -17315,9 +17363,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
17315
17363
  function parseAsTableCell(prosemirrorNode) {
17316
17364
  const id = getProsemirrorBlockId(prosemirrorNode);
17317
17365
  if (!id) return null;
17318
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z356.string().optional());
17366
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z357.string().optional());
17319
17367
  let columnWidth;
17320
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z356.array(z356.number()).nullish());
17368
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z357.array(z357.number()).nullish());
17321
17369
  if (columnWidthArray) {
17322
17370
  columnWidth = roundDimension(columnWidthArray[0]);
17323
17371
  }
@@ -17353,7 +17401,7 @@ function parseAsTableNode(prosemirrorNode) {
17353
17401
  value: parseRichText(prosemirrorNode.content ?? [])
17354
17402
  };
17355
17403
  case "image":
17356
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z356.string());
17404
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
17357
17405
  if (!items) return null;
17358
17406
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
17359
17407
  if (!parsedItems.success) return null;
@@ -17467,7 +17515,7 @@ function definitionExpectsPlaceholderItem(definition) {
17467
17515
  );
17468
17516
  }
17469
17517
  function parseBlockItems(prosemirrorNode, definition) {
17470
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z356.string());
17518
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
17471
17519
  if (!itemsString) return null;
17472
17520
  const itemsJson = JSON.parse(itemsString);
17473
17521
  if (!Array.isArray(itemsJson)) {
@@ -17478,18 +17526,18 @@ function parseBlockItems(prosemirrorNode, definition) {
17478
17526
  }
17479
17527
  function parseAppearance(prosemirrorNode) {
17480
17528
  let appearance = {};
17481
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z356.string().optional());
17529
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z357.string().optional());
17482
17530
  if (rawAppearanceString) {
17483
17531
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
17484
17532
  if (parsedAppearance.success) {
17485
17533
  appearance = parsedAppearance.data;
17486
17534
  }
17487
17535
  }
17488
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z356.number().optional());
17536
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z357.number().optional());
17489
17537
  if (columns) {
17490
17538
  appearance.numberOfColumns = columns;
17491
17539
  }
17492
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z356.string().optional());
17540
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z357.string().optional());
17493
17541
  if (backgroundColor) {
17494
17542
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
17495
17543
  if (parsedColor.success) {
@@ -17590,12 +17638,12 @@ function valueSchemaForPropertyType(type) {
17590
17638
  }
17591
17639
  }
17592
17640
  function getProsemirrorBlockId(prosemirrorNode) {
17593
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z356.string());
17641
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z357.string());
17594
17642
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
17595
17643
  return id;
17596
17644
  }
17597
17645
  function getProsemirrorBlockVariantId(prosemirrorNode) {
17598
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z356.string()));
17646
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z357.string()));
17599
17647
  }
17600
17648
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
17601
17649
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -19097,7 +19145,11 @@ export {
19097
19145
  DTOFigmaNodeStructureListResponse,
19098
19146
  DTOFigmaNodeV2,
19099
19147
  DTOFigmaSourceUpdatePayload,
19148
+ DTOFile,
19149
+ DTOFileListResponse,
19150
+ DTOFileReference,
19100
19151
  DTOFileResponseItem,
19152
+ DTOFileUploadBulkResponse,
19101
19153
  DTOFileUploadFinalizePayload,
19102
19154
  DTOFileUploadFinalizeResponse,
19103
19155
  DTOFileUploadItem,