@supernova-studio/client 1.41.0 → 1.41.1

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,32 @@ 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 z320 from "zod";
9555
9602
 
9556
9603
  // src/api/dto/forge/project-artifact.ts
9557
- import { z as z317 } from "zod";
9604
+ import { z as z318 } from "zod";
9558
9605
 
9559
9606
  // src/api/dto/forge/project-section.ts
9560
- import z316 from "zod";
9561
- var AfterSectionId = z316.string().uuid().nullish().optional();
9607
+ import z317 from "zod";
9608
+ var AfterSectionId = z317.string().uuid().nullish().optional();
9562
9609
  var DTOForgeSection = ForgeSection;
9563
9610
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9564
9611
  id: true,
@@ -9569,12 +9616,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9569
9616
  });
9570
9617
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
9571
9618
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
9572
- deleteChildren: z316.boolean().default(false)
9619
+ deleteChildren: z317.boolean().default(false)
9573
9620
  });
9574
9621
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
9575
9622
  afterSectionId: AfterSectionId
9576
9623
  });
9577
- var DTOForgeSectionItemMoveInput = z316.object({
9624
+ var DTOForgeSectionItemMoveInput = z317.object({
9578
9625
  id: Id,
9579
9626
  sectionId: Id.nullish().optional(),
9580
9627
  // undefined=stay, null=no section, string=move to section
@@ -9584,118 +9631,118 @@ var DTOForgeSectionItemMoveInput = z316.object({
9584
9631
 
9585
9632
  // src/api/dto/forge/project-artifact.ts
9586
9633
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
9587
- var DTOForgeProjectArtifactUpdateInput = z317.object({
9588
- id: z317.string(),
9589
- title: z317.string().optional()
9634
+ var DTOForgeProjectArtifactUpdateInput = z318.object({
9635
+ id: z318.string(),
9636
+ title: z318.string().optional()
9590
9637
  });
9591
- var DTOForgeProjectArtifactCreateInput = z317.object({
9592
- id: z317.string(),
9593
- title: z317.string(),
9594
- sectionId: z317.string().optional(),
9595
- afterArtifactId: z317.string().optional().nullable()
9638
+ var DTOForgeProjectArtifactCreateInput = z318.object({
9639
+ id: z318.string(),
9640
+ title: z318.string(),
9641
+ sectionId: z318.string().optional(),
9642
+ afterArtifactId: z318.string().optional().nullable()
9596
9643
  });
9597
- var DTOForgeProjectArtifactDeleteInput = z317.object({
9644
+ var DTOForgeProjectArtifactDeleteInput = z318.object({
9598
9645
  id: Id
9599
9646
  });
9600
9647
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
9601
- var DTOForgeProjectArtifactGetResponse = z317.object({
9648
+ var DTOForgeProjectArtifactGetResponse = z318.object({
9602
9649
  artifact: DTOForgeProjectArtifact
9603
9650
  });
9604
- var DTOForgeProjectArtifactCreateResponse = z317.object({
9651
+ var DTOForgeProjectArtifactCreateResponse = z318.object({
9605
9652
  artifact: DTOForgeProjectArtifact
9606
9653
  });
9607
- var DTOForgeProjectArtifactUpdateResponse = z317.object({
9654
+ var DTOForgeProjectArtifactUpdateResponse = z318.object({
9608
9655
  artifact: DTOForgeProjectArtifact
9609
9656
  });
9610
- var DTOForgeProjectArtifactDeleteResponse = z317.object({
9611
- ok: z317.literal(true)
9657
+ var DTOForgeProjectArtifactDeleteResponse = z318.object({
9658
+ ok: z318.literal(true)
9612
9659
  });
9613
- var DTOForgeProjectArtifactMoveResponse = z317.object({
9660
+ var DTOForgeProjectArtifactMoveResponse = z318.object({
9614
9661
  artifact: DTOForgeProjectArtifact
9615
9662
  });
9616
- var DTOForgeProjectArtifactsListResponse = z317.object({
9617
- artifacts: z317.array(DTOForgeProjectArtifact)
9663
+ var DTOForgeProjectArtifactsListResponse = z318.object({
9664
+ artifacts: z318.array(DTOForgeProjectArtifact)
9618
9665
  });
9619
9666
 
9620
9667
  // src/api/dto/forge/project-feature.ts
9621
- import z318 from "zod";
9668
+ import z319 from "zod";
9622
9669
  var DTOForgeProjectFeature = ProjectFeature;
9623
- var DTOForgeProjectFeatureListResponse = z318.object({
9670
+ var DTOForgeProjectFeatureListResponse = z319.object({
9624
9671
  features: DTOForgeProjectFeature.array()
9625
9672
  });
9626
- var DTOForgeProjectFeatureGetResponse = z318.object({
9673
+ var DTOForgeProjectFeatureGetResponse = z319.object({
9627
9674
  feature: DTOForgeProjectFeature
9628
9675
  });
9629
- var DTOForgeProjectFeatureCreateInput = z318.object({
9676
+ var DTOForgeProjectFeatureCreateInput = z319.object({
9630
9677
  id: Id,
9631
- name: z318.string().optional(),
9632
- description: z318.string(),
9678
+ name: z319.string().optional(),
9679
+ description: z319.string(),
9633
9680
  sectionId: Id.optional(),
9634
9681
  afterFeatureId: Id.nullable().optional(),
9635
9682
  initialMessage: DTOFeatureMessageCreateInput
9636
9683
  });
9637
- var DTOForgeProjectFeatureUpdateInput = z318.object({
9684
+ var DTOForgeProjectFeatureUpdateInput = z319.object({
9638
9685
  id: Id,
9639
- name: z318.string().optional(),
9640
- description: z318.string().optional(),
9641
- isArchived: z318.boolean().optional(),
9686
+ name: z319.string().optional(),
9687
+ description: z319.string().optional(),
9688
+ isArchived: z319.boolean().optional(),
9642
9689
  status: ProjectFeatureStatus.optional()
9643
9690
  });
9644
- var DTOForgeProjectFeatureDeleteInput = z318.object({
9691
+ var DTOForgeProjectFeatureDeleteInput = z319.object({
9645
9692
  id: Id
9646
9693
  });
9647
9694
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9648
9695
 
9649
9696
  // src/api/dto/forge/project-action.ts
9650
- var DTOForgeProjectActionFeatureCreate = z319.object({
9651
- type: z319.literal("FeatureCreate"),
9697
+ var DTOForgeProjectActionFeatureCreate = z320.object({
9698
+ type: z320.literal("FeatureCreate"),
9652
9699
  input: DTOForgeProjectFeatureCreateInput
9653
9700
  });
9654
- var DTOForgeProjectActionFeatureUpdate = z319.object({
9655
- type: z319.literal("FeatureUpdate"),
9701
+ var DTOForgeProjectActionFeatureUpdate = z320.object({
9702
+ type: z320.literal("FeatureUpdate"),
9656
9703
  input: DTOForgeProjectFeatureUpdateInput
9657
9704
  });
9658
- var DTOForgeProjectActionFeatureMove = z319.object({
9659
- type: z319.literal("FeatureMove"),
9705
+ var DTOForgeProjectActionFeatureMove = z320.object({
9706
+ type: z320.literal("FeatureMove"),
9660
9707
  input: DTOForgeProjectFeatureMoveInput
9661
9708
  });
9662
- var DTOForgeProjectActionFeatureDelete = z319.object({
9663
- type: z319.literal("FeatureDelete"),
9709
+ var DTOForgeProjectActionFeatureDelete = z320.object({
9710
+ type: z320.literal("FeatureDelete"),
9664
9711
  input: DTOForgeProjectFeatureDeleteInput
9665
9712
  });
9666
- var DTOForgeProjectActionArtifactCreate = z319.object({
9667
- type: z319.literal("ArtifactCreate"),
9713
+ var DTOForgeProjectActionArtifactCreate = z320.object({
9714
+ type: z320.literal("ArtifactCreate"),
9668
9715
  input: DTOForgeProjectArtifactCreateInput
9669
9716
  });
9670
- var DTOForgeProjectActionArtifactUpdate = z319.object({
9671
- type: z319.literal("ArtifactUpdate"),
9717
+ var DTOForgeProjectActionArtifactUpdate = z320.object({
9718
+ type: z320.literal("ArtifactUpdate"),
9672
9719
  input: DTOForgeProjectArtifactUpdateInput
9673
9720
  });
9674
- var DTOForgeProjectActionArtifactDelete = z319.object({
9675
- type: z319.literal("ArtifactDelete"),
9721
+ var DTOForgeProjectActionArtifactDelete = z320.object({
9722
+ type: z320.literal("ArtifactDelete"),
9676
9723
  input: DTOForgeProjectArtifactDeleteInput
9677
9724
  });
9678
- var DTOForgeProjectActionArtifactMove = z319.object({
9679
- type: z319.literal("ArtifactMove"),
9725
+ var DTOForgeProjectActionArtifactMove = z320.object({
9726
+ type: z320.literal("ArtifactMove"),
9680
9727
  input: DTOForgeProjectArtifactMoveInput
9681
9728
  });
9682
- var DTOForgeProjectActionSectionCreate = z319.object({
9683
- type: z319.literal("SectionCreate"),
9729
+ var DTOForgeProjectActionSectionCreate = z320.object({
9730
+ type: z320.literal("SectionCreate"),
9684
9731
  input: DTOForgeSectionCreateInput
9685
9732
  });
9686
- var DTOForgeProjectActionSectionUpdate = z319.object({
9687
- type: z319.literal("SectionUpdate"),
9733
+ var DTOForgeProjectActionSectionUpdate = z320.object({
9734
+ type: z320.literal("SectionUpdate"),
9688
9735
  input: DTOForgeSectionUpdateInput
9689
9736
  });
9690
- var DTOForgeProjectActionSectionDelete = z319.object({
9691
- type: z319.literal("SectionDelete"),
9737
+ var DTOForgeProjectActionSectionDelete = z320.object({
9738
+ type: z320.literal("SectionDelete"),
9692
9739
  input: DTOForgeSectionDeleteInput
9693
9740
  });
9694
- var DTOForgeProjectActionSectionMove = z319.object({
9695
- type: z319.literal("SectionMove"),
9741
+ var DTOForgeProjectActionSectionMove = z320.object({
9742
+ type: z320.literal("SectionMove"),
9696
9743
  input: DTOForgeSectionMoveInput
9697
9744
  });
9698
- var DTOForgeProjectAction = z319.discriminatedUnion("type", [
9745
+ var DTOForgeProjectAction = z320.discriminatedUnion("type", [
9699
9746
  //features
9700
9747
  DTOForgeProjectActionFeatureCreate,
9701
9748
  DTOForgeProjectActionFeatureUpdate,
@@ -9712,33 +9759,33 @@ var DTOForgeProjectAction = z319.discriminatedUnion("type", [
9712
9759
  DTOForgeProjectActionSectionDelete,
9713
9760
  DTOForgeProjectActionSectionMove
9714
9761
  ]).and(
9715
- z319.object({
9716
- tId: z319.string().optional()
9762
+ z320.object({
9763
+ tId: z320.string().optional()
9717
9764
  })
9718
9765
  );
9719
9766
 
9720
9767
  // src/api/dto/forge/project-artifact-room.ts
9721
- import { z as z320 } from "zod";
9722
- var DTOForgeProjectArtifactRoom = z320.object({
9723
- id: z320.string()
9768
+ import { z as z321 } from "zod";
9769
+ var DTOForgeProjectArtifactRoom = z321.object({
9770
+ id: z321.string()
9724
9771
  });
9725
- var DTOForgeProjectArtifactRoomResponse = z320.object({
9772
+ var DTOForgeProjectArtifactRoomResponse = z321.object({
9726
9773
  room: DTOForgeProjectArtifactRoom
9727
9774
  });
9728
9775
 
9729
9776
  // 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({
9777
+ import { z as z322 } from "zod";
9778
+ var DTOForgeComponentSetTypeV2 = z322.enum(["Shadcn"]);
9779
+ var DTOForgeComponentSet = z322.object({
9733
9780
  type: DTOForgeComponentSetTypeV2
9734
9781
  });
9735
- var DTOForgeIconSetTypeV2 = z321.enum(["Phosphor", "Lucide", "Tabler"]);
9736
- var DTOForgeThemePreset = z321.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9737
- var DTOForgeIconSet = z321.object({
9782
+ var DTOForgeIconSetTypeV2 = z322.enum(["Phosphor", "Lucide", "Tabler"]);
9783
+ var DTOForgeThemePreset = z322.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9784
+ var DTOForgeIconSet = z322.object({
9738
9785
  type: DTOForgeIconSetTypeV2,
9739
- variant: z321.string().optional()
9786
+ variant: z322.string().optional()
9740
9787
  });
9741
- var DTOForgeProjectTheme = z321.object({
9788
+ var DTOForgeProjectTheme = z322.object({
9742
9789
  // Colors
9743
9790
  background: ColorTokenData,
9744
9791
  foreground: ColorTokenData,
@@ -9823,21 +9870,21 @@ var DTOForgeProjectTheme = z321.object({
9823
9870
  shadowXl: ShadowTokenData,
9824
9871
  shadow2xl: ShadowTokenData
9825
9872
  });
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(),
9873
+ var DTOForgeProjectContextV2 = z322.object({
9874
+ id: z322.string(),
9875
+ name: z322.string(),
9876
+ workspaceId: z322.string(),
9877
+ designSystemId: z322.string().optional(),
9878
+ description: z322.string().optional(),
9879
+ productContext: z322.string().optional(),
9880
+ additionalContext: z322.string().optional(),
9881
+ isArchived: z322.boolean(),
9835
9882
  themePreset: DTOForgeThemePreset.optional(),
9836
9883
  componentSet: DTOForgeComponentSet,
9837
9884
  iconSet: DTOForgeIconSet,
9838
9885
  theme: DTOForgeProjectTheme,
9839
- createdAt: z321.coerce.date(),
9840
- updatedAt: z321.coerce.date()
9886
+ createdAt: z322.coerce.date(),
9887
+ updatedAt: z322.coerce.date()
9841
9888
  });
9842
9889
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9843
9890
  id: true,
@@ -9846,38 +9893,38 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9846
9893
  isArchived: true
9847
9894
  });
9848
9895
  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) });
9896
+ var DTOForgeProjectContextResponseV2 = z322.object({ context: DTOForgeProjectContextV2 });
9897
+ var DTOForgeProjectContextListQueryV2 = z322.object({ workspaceId: z322.string() });
9898
+ var DTOForgeProjectContextListResponseV2 = z322.object({ contexts: z322.array(DTOForgeProjectContextV2) });
9852
9899
 
9853
9900
  // 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")
9901
+ import { z as z323 } from "zod";
9902
+ var DTOForgeProjectContext = z323.object({
9903
+ definition: z323.string(),
9904
+ dependencies: z323.array(
9905
+ z323.object({
9906
+ packageName: z323.string(),
9907
+ type: z323.literal("npm"),
9908
+ version: z323.string().default("latest")
9862
9909
  })
9863
9910
  ),
9864
- designSystemId: z322.string(),
9865
- id: z322.string(),
9866
- meta: z322.object({
9867
- name: z322.string(),
9868
- description: z322.string().optional()
9911
+ designSystemId: z323.string(),
9912
+ id: z323.string(),
9913
+ meta: z323.object({
9914
+ name: z323.string(),
9915
+ description: z323.string().optional()
9869
9916
  }),
9870
- name: z322.string(),
9917
+ name: z323.string(),
9871
9918
  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()
9919
+ platform: z323.enum(["React", "Vue", "Angular"]),
9920
+ styling: z323.enum(["CSS", "Tailwind"]),
9921
+ tailwindConfig: z323.object({
9922
+ content: z323.string(),
9923
+ version: z323.string()
9877
9924
  }).optional(),
9878
- createdAt: z322.coerce.date(),
9879
- updatedAt: z322.coerce.date(),
9880
- workspaceId: z322.string()
9925
+ createdAt: z323.coerce.date(),
9926
+ updatedAt: z323.coerce.date(),
9927
+ workspaceId: z323.string()
9881
9928
  });
9882
9929
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9883
9930
  definition: true,
@@ -9889,13 +9936,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9889
9936
  tailwindConfig: true,
9890
9937
  styling: true
9891
9938
  }).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)
9939
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z323.string() });
9940
+ var DTOForgeProjectContextGetResponse = z323.object({ context: DTOForgeProjectContext });
9941
+ var DTOForgeProjectContextListResponse = z323.object({ contexts: z323.array(DTOForgeProjectContext) });
9942
+ var DTOForgeProjectContextCreateResponse = z323.object({ context: DTOForgeProjectContext });
9943
+ var DTOForgeProjectContextUpdateResponse = z323.object({ context: DTOForgeProjectContext });
9944
+ var DTOForgeProjectContextRemoveResponse = z323.object({
9945
+ ok: z323.literal(true)
9899
9946
  });
9900
9947
 
9901
9948
  // src/api/dto/forge/project-figma-node.ts
@@ -9903,42 +9950,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
9903
9950
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
9904
9951
 
9905
9952
  // 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()
9953
+ import { z as z324 } from "zod";
9954
+ var DTOForgeProjectFile = z324.object({
9955
+ id: z324.string(),
9956
+ name: z324.string(),
9957
+ checksum: z324.string(),
9958
+ pendingUpload: z324.boolean().optional(),
9959
+ url: z324.string(),
9960
+ size: z324.number()
9961
+ });
9962
+ var DTOForgeProjectFileListResponse = z324.object({
9963
+ files: z324.array(DTOForgeProjectFile)
9964
+ });
9965
+ var DTOForgeProjectFileUploadPayloadItem = z324.object({
9966
+ size: z324.number(),
9967
+ name: z324.string(),
9968
+ checksum: z324.string()
9969
+ });
9970
+ var DTOForgeProjectFileUploadPayload = z324.object({
9971
+ files: z324.array(DTOForgeProjectFileUploadPayloadItem)
9972
+ });
9973
+ var DTOForgeProjectFileUploadResponse = z324.object({
9974
+ files: z324.array(DTOForgeProjectFile),
9975
+ uploadUrls: z324.array(
9976
+ z324.object({
9977
+ fileId: z324.string(),
9978
+ uploadUrl: z324.string()
9932
9979
  })
9933
9980
  )
9934
9981
  });
9935
- var DTOForgeProjectFileUploadFinalizePayload = z323.object({
9936
- fileIds: z323.array(z323.string())
9982
+ var DTOForgeProjectFileUploadFinalizePayload = z324.object({
9983
+ fileIds: z324.array(z324.string())
9937
9984
  });
9938
- var DTOForgeProjectFileUploadFinalizeResponse = z323.object({ ok: z323.literal(true) });
9985
+ var DTOForgeProjectFileUploadFinalizeResponse = z324.object({ ok: z324.literal(true) });
9939
9986
 
9940
9987
  // src/api/dto/forge/project-invitation.ts
9941
- import { z as z324 } from "zod";
9988
+ import { z as z325 } from "zod";
9942
9989
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
9943
9990
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9944
9991
  email: true,
@@ -9952,24 +9999,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9952
9999
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9953
10000
  email: true
9954
10001
  });
9955
- var DTOForgeProjectInvitationsListResponse = z324.object({
9956
- invitations: z324.array(DTOForgeProjectInvitation)
10002
+ var DTOForgeProjectInvitationsListResponse = z325.object({
10003
+ invitations: z325.array(DTOForgeProjectInvitation)
9957
10004
  });
9958
- var DTOForgeProjectInvitationGetResponse = z324.object({
10005
+ var DTOForgeProjectInvitationGetResponse = z325.object({
9959
10006
  invitation: DTOForgeProjectInvitation
9960
10007
  });
9961
- var DTOForgeProjectInvitationCreateResponse = z324.object({
10008
+ var DTOForgeProjectInvitationCreateResponse = z325.object({
9962
10009
  invitation: DTOForgeProjectInvitation
9963
10010
  });
9964
- var DTOForgeProjectInvitationUpdateResponse = z324.object({
10011
+ var DTOForgeProjectInvitationUpdateResponse = z325.object({
9965
10012
  invitation: DTOForgeProjectInvitation.nullable()
9966
10013
  });
9967
- var DTOForgeProjectInvitationRemoveResponse = z324.object({
9968
- ok: z324.literal(true)
10014
+ var DTOForgeProjectInvitationRemoveResponse = z325.object({
10015
+ ok: z325.literal(true)
9969
10016
  });
9970
10017
 
9971
10018
  // src/api/dto/forge/project-iteration-old.ts
9972
- import { z as z325 } from "zod";
10019
+ import { z as z326 } from "zod";
9973
10020
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
9974
10021
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9975
10022
  artifacts: true,
@@ -9980,7 +10027,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9980
10027
  messages: DTOForgeIterationMessage.array(),
9981
10028
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
9982
10029
  });
9983
- var DTOGetForgeProjectIterationResponse = z325.object({
10030
+ var DTOGetForgeProjectIterationResponse = z326.object({
9984
10031
  iteration: DTOForgeProjectIteration.nullable()
9985
10032
  });
9986
10033
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -9990,20 +10037,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
9990
10037
  mergeMeta: true,
9991
10038
  createdAt: true
9992
10039
  });
9993
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z325.string() });
9994
- var DTOCreateForgeProjectIterationResponse = z325.object({
10040
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z326.string() });
10041
+ var DTOCreateForgeProjectIterationResponse = z326.object({
9995
10042
  iteration: DTOForgeProjectIteration
9996
10043
  });
9997
- var DTOUpdateForgeProjectIterationResponse = z325.object({
10044
+ var DTOUpdateForgeProjectIterationResponse = z326.object({
9998
10045
  iteration: DTOForgeProjectIteration.nullable()
9999
10046
  });
10000
- var DTODeleteForgeProjectIterationResponse = z325.object({
10001
- ok: z325.literal(true)
10047
+ var DTODeleteForgeProjectIterationResponse = z326.object({
10048
+ ok: z326.literal(true)
10002
10049
  });
10003
- var DTOForgeProjectIterationListResponse = z325.object({ iterations: z325.array(DTOForgeProjectIteration) });
10050
+ var DTOForgeProjectIterationListResponse = z326.object({ iterations: z326.array(DTOForgeProjectIteration) });
10004
10051
 
10005
10052
  // src/api/dto/forge/project-member.ts
10006
- import { z as z326 } from "zod";
10053
+ import { z as z327 } from "zod";
10007
10054
  var DTOForgeProjectMemberRole = ForgeProjectRole;
10008
10055
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
10009
10056
  user: DTOUser,
@@ -10017,37 +10064,37 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
10017
10064
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
10018
10065
  userId: true
10019
10066
  });
10020
- var DTOForgeProjectMembersListResponse = z326.object({
10021
- members: z326.array(DTOForgeProjectMember),
10022
- invitations: z326.array(DTOForgeProjectInvitation)
10067
+ var DTOForgeProjectMembersListResponse = z327.object({
10068
+ members: z327.array(DTOForgeProjectMember),
10069
+ invitations: z327.array(DTOForgeProjectInvitation)
10023
10070
  });
10024
- var DTOForgeProjectMemberGetResponse = z326.object({
10071
+ var DTOForgeProjectMemberGetResponse = z327.object({
10025
10072
  member: DTOForgeProjectMember
10026
10073
  });
10027
- var DTOForgeProjectMemberCreateResponse = z326.object({
10074
+ var DTOForgeProjectMemberCreateResponse = z327.object({
10028
10075
  member: DTOForgeProjectMember
10029
10076
  });
10030
- var DTOForgeProjectMemberUpdateResponse = z326.object({
10077
+ var DTOForgeProjectMemberUpdateResponse = z327.object({
10031
10078
  member: DTOForgeProjectMember.nullable()
10032
10079
  });
10033
- var DTOForgeProjectMemberRemoveResponse = z326.object({
10034
- ok: z326.literal(true)
10080
+ var DTOForgeProjectMemberRemoveResponse = z327.object({
10081
+ ok: z327.literal(true)
10035
10082
  });
10036
- var DTOAddMembersToForgeProject = z326.object({
10083
+ var DTOAddMembersToForgeProject = z327.object({
10037
10084
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
10038
10085
  });
10039
10086
 
10040
10087
  // src/api/dto/forge/project-room.ts
10041
- import { z as z327 } from "zod";
10042
- var DTOForgeProjectRoom = z327.object({
10043
- id: z327.string()
10088
+ import { z as z328 } from "zod";
10089
+ var DTOForgeProjectRoom = z328.object({
10090
+ id: z328.string()
10044
10091
  });
10045
- var DTOForgeProjectRoomResponse = z327.object({
10092
+ var DTOForgeProjectRoomResponse = z328.object({
10046
10093
  room: DTOForgeProjectRoom
10047
10094
  });
10048
10095
 
10049
10096
  // src/api/dto/forge/project.ts
10050
- import { z as z328 } from "zod";
10097
+ import { z as z329 } from "zod";
10051
10098
  var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
10052
10099
  context: DTOForgeProjectContextV2
10053
10100
  });
@@ -10063,201 +10110,201 @@ var DTOForgeProjectCreate = ForgeProject.pick({
10063
10110
  emoji: true
10064
10111
  }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
10065
10112
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10066
- id: z328.string()
10113
+ id: z329.string()
10067
10114
  });
10068
- var DTOForgeProjectGetResponse = z328.object({ project: DTOForgeProject.nullable() });
10069
- var DTOForgeProjectListResponse = z328.object({ projects: z328.array(DTOForgeProject) });
10070
- var DTOForgeProjectCreateResponse = z328.object({
10115
+ var DTOForgeProjectGetResponse = z329.object({ project: DTOForgeProject.nullable() });
10116
+ var DTOForgeProjectListResponse = z329.object({ projects: z329.array(DTOForgeProject) });
10117
+ var DTOForgeProjectCreateResponse = z329.object({
10071
10118
  project: DTOForgeProject
10072
10119
  });
10073
- var DTOForgeProjectUpdateResponse = z328.object({
10120
+ var DTOForgeProjectUpdateResponse = z329.object({
10074
10121
  project: DTOForgeProject
10075
10122
  });
10076
- var DTOForgeProjectRemoveResponse = z328.object({ ok: z328.literal(true) });
10123
+ var DTOForgeProjectRemoveResponse = z329.object({ ok: z329.literal(true) });
10077
10124
 
10078
10125
  // src/api/dto/forge/threads.ts
10079
- import { z as z329 } from "zod";
10126
+ import { z as z330 } from "zod";
10080
10127
  var DTOForgeChatMessage = ForgeChatMessage;
10081
10128
  var DTOForgeChatThread = ForgeChatThread;
10082
10129
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
10083
10130
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
10084
- var DTOForgeChatThreadCreateInput = z329.object({
10085
- title: z329.string().optional()
10131
+ var DTOForgeChatThreadCreateInput = z330.object({
10132
+ title: z330.string().optional()
10086
10133
  });
10087
- var DTOForgeChatThreadCreateResponse = z329.object({
10134
+ var DTOForgeChatThreadCreateResponse = z330.object({
10088
10135
  thread: DTOForgeChatThread
10089
10136
  });
10090
- var DTOForgeChatThreadUpdateInput = z329.object({
10091
- title: z329.string()
10137
+ var DTOForgeChatThreadUpdateInput = z330.object({
10138
+ title: z330.string()
10092
10139
  });
10093
- var DTOForgeChatThreadUpdateResponse = z329.object({
10140
+ var DTOForgeChatThreadUpdateResponse = z330.object({
10094
10141
  thread: DTOForgeChatThread
10095
10142
  });
10096
- var DTOForgeChatThreadDeleteResponse = z329.object({
10097
- success: z329.boolean()
10143
+ var DTOForgeChatThreadDeleteResponse = z330.object({
10144
+ success: z330.boolean()
10098
10145
  });
10099
- var DTOForgeChatThreadListQuery = z329.object({
10100
- limit: z329.number().optional(),
10101
- offset: z329.number().optional()
10146
+ var DTOForgeChatThreadListQuery = z330.object({
10147
+ limit: z330.number().optional(),
10148
+ offset: z330.number().optional()
10102
10149
  });
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()
10150
+ var DTOForgeChatThreadListResponse = z330.object({
10151
+ threads: z330.array(DTOForgeChatThread),
10152
+ pagination: z330.object({
10153
+ offset: z330.number(),
10154
+ limit: z330.number(),
10155
+ total: z330.number()
10109
10156
  })
10110
10157
  });
10111
- var DTOForgeChatMessageCreateInput = z329.object({
10112
- payload: z329.string(),
10158
+ var DTOForgeChatMessageCreateInput = z330.object({
10159
+ payload: z330.string(),
10113
10160
  sender: DTOForgeChatMessageSender.optional(),
10114
- opikTraceId: z329.string().optional()
10161
+ opikTraceId: z330.string().optional()
10115
10162
  });
10116
- var DTOForgeChatMessageCreateResponse = z329.object({
10163
+ var DTOForgeChatMessageCreateResponse = z330.object({
10117
10164
  message: DTOForgeChatMessage
10118
10165
  });
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)
10166
+ var DTOForgeChatMessageListQuery = z330.object({
10167
+ limit: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10168
+ offset: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10122
10169
  });
10123
- var DTOForgeChatMessageListResponse = z329.object({
10124
- messages: z329.array(DTOForgeChatMessage),
10125
- totalCount: z329.number(),
10126
- hasMore: z329.boolean()
10170
+ var DTOForgeChatMessageListResponse = z330.object({
10171
+ messages: z330.array(DTOForgeChatMessage),
10172
+ totalCount: z330.number(),
10173
+ hasMore: z330.boolean()
10127
10174
  });
10128
- var DTOForgeChatExportResponse = z329.object({
10129
- csvDownloadUrl: z329.string().nullable()
10175
+ var DTOForgeChatExportResponse = z330.object({
10176
+ csvDownloadUrl: z330.string().nullable()
10130
10177
  });
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()
10178
+ var DTOForgeChatMessageScoreInput = z330.object({
10179
+ messageId: z330.string(),
10180
+ name: z330.string(),
10181
+ value: z330.number(),
10182
+ categoryName: z330.string().optional(),
10183
+ reason: z330.string().optional()
10137
10184
  });
10138
- var DTOForgeChatMessageTagInput = z329.object({
10139
- messageId: z329.string(),
10140
- tags: z329.array(z329.string())
10185
+ var DTOForgeChatMessageTagInput = z330.object({
10186
+ messageId: z330.string(),
10187
+ tags: z330.array(z330.string())
10141
10188
  });
10142
- var DTOForgeChatMessageScoreRequest = z329.object({
10189
+ var DTOForgeChatMessageScoreRequest = z330.object({
10143
10190
  scores: DTOForgeChatMessageScoreInput.array(),
10144
10191
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
10145
10192
  });
10146
10193
 
10147
10194
  // src/api/dto/liveblocks/auth-response.ts
10148
- import { z as z330 } from "zod";
10149
- var DTOLiveblocksAuthResponse = z330.object({
10150
- token: z330.string()
10195
+ import { z as z331 } from "zod";
10196
+ var DTOLiveblocksAuthResponse = z331.object({
10197
+ token: z331.string()
10151
10198
  });
10152
10199
 
10153
10200
  // src/api/dto/portal/portal-settings.ts
10154
- import { z as z331 } from "zod";
10201
+ import { z as z332 } from "zod";
10155
10202
  var DTOPortalSettingsTheme = PortalSettingsTheme;
10156
10203
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
10157
10204
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
10158
10205
  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()),
10206
+ var DTOPortalSettings = z332.object({
10207
+ id: z332.string(),
10208
+ workspaceId: z332.string(),
10209
+ enabledDesignSystemIds: z332.array(z332.string()),
10210
+ enabledBrandPersistentIds: z332.array(z332.string()),
10164
10211
  theme: DTOPortalSettingsTheme.nullish(),
10165
10212
  sidebar: DTOPortalSettingsSidebar.nullish(),
10166
- createdAt: z331.coerce.date(),
10167
- updatedAt: z331.coerce.date()
10213
+ createdAt: z332.coerce.date(),
10214
+ updatedAt: z332.coerce.date()
10168
10215
  });
10169
- var DTOPortalSettingsGetResponse = z331.object({
10216
+ var DTOPortalSettingsGetResponse = z332.object({
10170
10217
  portalSettings: DTOPortalSettings
10171
10218
  });
10172
- var DTOPortalSettingsUpdatePayload = z331.object({
10173
- enabledDesignSystemIds: z331.array(z331.string()).optional(),
10174
- enabledBrandPersistentIds: z331.array(z331.string()).optional(),
10219
+ var DTOPortalSettingsUpdatePayload = z332.object({
10220
+ enabledDesignSystemIds: z332.array(z332.string()).optional(),
10221
+ enabledBrandPersistentIds: z332.array(z332.string()).optional(),
10175
10222
  theme: DTOPortalSettingsTheme.nullish(),
10176
10223
  sidebar: DTOPortalSettingsSidebar.nullish()
10177
10224
  });
10178
10225
 
10179
10226
  // src/api/dto/themes/override.ts
10180
- import { z as z332 } from "zod";
10227
+ import { z as z333 } from "zod";
10181
10228
  var DTOThemeOverride = DesignTokenTypedData.and(
10182
- z332.object({
10183
- tokenPersistentId: z332.string(),
10229
+ z333.object({
10230
+ tokenPersistentId: z333.string(),
10184
10231
  origin: ThemeOverrideOrigin.optional()
10185
10232
  })
10186
10233
  );
10187
10234
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
10188
- z332.object({
10189
- tokenPersistentId: z332.string()
10235
+ z333.object({
10236
+ tokenPersistentId: z333.string()
10190
10237
  })
10191
10238
  );
10192
10239
 
10193
10240
  // 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(),
10241
+ import { z as z334 } from "zod";
10242
+ var DTOTheme = z334.object({
10243
+ id: z334.string(),
10244
+ persistentId: z334.string(),
10245
+ designSystemVersionId: z334.string(),
10246
+ brandId: z334.string(),
10200
10247
  meta: ObjectMeta,
10201
- codeName: z333.string(),
10248
+ codeName: z334.string(),
10202
10249
  overrides: DTOThemeOverride.array()
10203
10250
  });
10204
- var DTOThemeResponse = z333.object({
10251
+ var DTOThemeResponse = z334.object({
10205
10252
  theme: DTOTheme
10206
10253
  });
10207
- var DTOThemeListResponse = z333.object({
10254
+ var DTOThemeListResponse = z334.object({
10208
10255
  themes: DTOTheme.array()
10209
10256
  });
10210
- var DTOThemeCreatePayload = z333.object({
10257
+ var DTOThemeCreatePayload = z334.object({
10211
10258
  meta: ObjectMeta,
10212
- persistentId: z333.string(),
10213
- brandId: z333.string(),
10214
- codeName: z333.string(),
10259
+ persistentId: z334.string(),
10260
+ brandId: z334.string(),
10261
+ codeName: z334.string(),
10215
10262
  overrides: DTOThemeOverride.array()
10216
10263
  });
10217
10264
 
10218
10265
  // 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(),
10266
+ import z335 from "zod";
10267
+ var DTOThreadSubjectType = z335.enum(["ForgeDocument", "ForgeFeature"]);
10268
+ var DTOThreadAgentType = z335.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10269
+ var DTOThread = z335.object({
10270
+ id: z335.string(),
10271
+ liveblocksRoomId: z335.string(),
10225
10272
  defaultAgentType: DTOThreadAgentType,
10226
- subjectId: z334.string(),
10273
+ subjectId: z335.string(),
10227
10274
  subjectType: DTOThreadSubjectType,
10228
- createdAt: z334.string(),
10229
- updatedAt: z334.string()
10275
+ createdAt: z335.string(),
10276
+ updatedAt: z335.string()
10230
10277
  });
10231
- var DTOThreadMessageUserSender = z334.object({
10232
- type: z334.literal("User"),
10233
- userId: z334.string()
10278
+ var DTOThreadMessageUserSender = z335.object({
10279
+ type: z335.literal("User"),
10280
+ userId: z335.string()
10234
10281
  });
10235
- var DTOThreadMessageAgentSender = z334.object({
10236
- type: z334.literal("Agent"),
10282
+ var DTOThreadMessageAgentSender = z335.object({
10283
+ type: z335.literal("Agent"),
10237
10284
  agentType: DTOThreadAgentType
10238
10285
  });
10239
- var DTOThreadMessageSystemSender = z334.object({
10240
- type: z334.literal("System"),
10241
- onBehalfOfUserId: z334.string()
10286
+ var DTOThreadMessageSystemSender = z335.object({
10287
+ type: z335.literal("System"),
10288
+ onBehalfOfUserId: z335.string()
10242
10289
  });
10243
- var DTOThreadMessageSender = z334.discriminatedUnion("type", [
10290
+ var DTOThreadMessageSender = z335.discriminatedUnion("type", [
10244
10291
  DTOThreadMessageUserSender,
10245
10292
  DTOThreadMessageAgentSender,
10246
10293
  DTOThreadMessageSystemSender
10247
10294
  ]);
10248
- var DTOThreadReaction = z334.object({
10295
+ var DTOThreadReaction = z335.object({
10249
10296
  messageId: Id,
10250
- userId: z334.string(),
10251
- emoji: z334.string(),
10252
- createdAt: z334.string()
10297
+ userId: z335.string(),
10298
+ emoji: z335.string(),
10299
+ createdAt: z335.string()
10253
10300
  });
10254
- var DTOThreadMessageAttachments = z334.object({
10301
+ var DTOThreadMessageAttachments = z335.object({
10255
10302
  iterationId: Id.optional()
10256
10303
  // TODO Artem: files, etc
10257
10304
  });
10258
- var DTOThreadMessage = z334.object({
10305
+ var DTOThreadMessage = z335.object({
10259
10306
  id: Id,
10260
- threadId: z334.string(),
10307
+ threadId: z335.string(),
10261
10308
  /**
10262
10309
  * Describes where the message came from
10263
10310
  */
@@ -10265,16 +10312,16 @@ var DTOThreadMessage = z334.object({
10265
10312
  /**
10266
10313
  * Content of the message
10267
10314
  */
10268
- body: z334.string(),
10315
+ body: z335.string(),
10269
10316
  /**
10270
10317
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
10271
10318
  * AI agent to generate a response and perform an action within the feature
10272
10319
  */
10273
- isPrompt: z334.boolean().optional(),
10320
+ isPrompt: z335.boolean().optional(),
10274
10321
  /**
10275
10322
  * Indicates if the sender requested agent to reply in a thread
10276
10323
  */
10277
- startsNewThread: z334.boolean().optional(),
10324
+ startsNewThread: z335.boolean().optional(),
10278
10325
  /**
10279
10326
  * If defined, this message is considered to be a reply in a thread under parent message id
10280
10327
  */
@@ -10288,12 +10335,12 @@ var DTOThreadMessage = z334.object({
10288
10335
  * If defined, this message is considered to be a reply to different message
10289
10336
  */
10290
10337
  replyToMessageId: Id.optional(),
10291
- createdAt: z334.string(),
10292
- updatedAt: z334.string().optional()
10338
+ createdAt: z335.string(),
10339
+ updatedAt: z335.string().optional()
10293
10340
  });
10294
- var DTOThreadAgentResponseTracker = z334.object({
10341
+ var DTOThreadAgentResponseTracker = z335.object({
10295
10342
  id: Id,
10296
- currentBody: z334.string().default("")
10343
+ currentBody: z335.string().default("")
10297
10344
  });
10298
10345
  var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10299
10346
  id: true,
@@ -10303,54 +10350,54 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10303
10350
  parentMessageId: true,
10304
10351
  attachments: true
10305
10352
  });
10306
- var DTOThreadMessageFinalizeInput = z334.object({
10353
+ var DTOThreadMessageFinalizeInput = z335.object({
10307
10354
  messageId: Id
10308
10355
  });
10309
10356
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10310
10357
  id: true
10311
10358
  }).merge(
10312
- z334.object({
10359
+ z335.object({
10313
10360
  body: DTOThreadMessage.shape.body,
10314
10361
  attachments: DTOThreadMessage.shape.attachments,
10315
10362
  agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
10316
10363
  }).partial()
10317
10364
  );
10318
- var DTOThreadReactionCreateInput = z334.object({
10365
+ var DTOThreadReactionCreateInput = z335.object({
10319
10366
  messageId: Id,
10320
- emoji: z334.string()
10367
+ emoji: z335.string()
10321
10368
  });
10322
- var DTOThreadReactionDeleteInput = z334.object({
10369
+ var DTOThreadReactionDeleteInput = z335.object({
10323
10370
  messageId: Id,
10324
- emoji: z334.string()
10371
+ emoji: z335.string()
10325
10372
  });
10326
- var DTOThreadMessageResponse = z334.object({
10373
+ var DTOThreadMessageResponse = z335.object({
10327
10374
  message: DTOThreadMessage
10328
10375
  });
10329
- var DTOThreadReactionResponse = z334.object({
10376
+ var DTOThreadReactionResponse = z335.object({
10330
10377
  reaction: DTOThreadReaction
10331
10378
  });
10332
- var DTOThreadMessageListResponse = z334.object({
10379
+ var DTOThreadMessageListResponse = z335.object({
10333
10380
  messages: DTOThreadMessage.array(),
10334
10381
  reactions: DTOThreadReaction.array(),
10335
- lastSeenMessageId: z334.string().optional()
10382
+ lastSeenMessageId: z335.string().optional()
10336
10383
  });
10337
- var DTOThreadEventMessagesSent = z334.object({
10338
- type: z334.literal("MessagesSent"),
10384
+ var DTOThreadEventMessagesSent = z335.object({
10385
+ type: z335.literal("MessagesSent"),
10339
10386
  data: DTOThreadMessage.array()
10340
10387
  });
10341
- var DTOThreadEventMessagesUpdated = z334.object({
10342
- type: z334.literal("MessagesUpdated"),
10388
+ var DTOThreadEventMessagesUpdated = z335.object({
10389
+ type: z335.literal("MessagesUpdated"),
10343
10390
  data: DTOThreadMessage.array()
10344
10391
  });
10345
- var DTOThreadEventReactionsSent = z334.object({
10346
- type: z334.literal("ReactionsSent"),
10392
+ var DTOThreadEventReactionsSent = z335.object({
10393
+ type: z335.literal("ReactionsSent"),
10347
10394
  data: DTOThreadReaction.array()
10348
10395
  });
10349
- var DTOThreadEventReactionsDeleted = z334.object({
10350
- type: z334.literal("ReactionsDeleted"),
10396
+ var DTOThreadEventReactionsDeleted = z335.object({
10397
+ type: z335.literal("ReactionsDeleted"),
10351
10398
  data: DTOThreadReaction.array()
10352
10399
  });
10353
- var DTOThreadEvent = z334.discriminatedUnion("type", [
10400
+ var DTOThreadEvent = z335.discriminatedUnion("type", [
10354
10401
  DTOThreadEventMessagesSent,
10355
10402
  DTOThreadEventMessagesUpdated,
10356
10403
  DTOThreadEventReactionsSent,
@@ -10589,13 +10636,13 @@ var ExportersEndpoint = class {
10589
10636
  };
10590
10637
 
10591
10638
  // src/api/endpoints/codegen/jobs.ts
10592
- import { z as z335 } from "zod";
10639
+ import { z as z336 } from "zod";
10593
10640
  var ExporterJobsEndpoint = class {
10594
10641
  constructor(requestExecutor) {
10595
10642
  this.requestExecutor = requestExecutor;
10596
10643
  }
10597
10644
  list(workspaceId) {
10598
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z335.any());
10645
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z336.any());
10599
10646
  }
10600
10647
  get(workspaceId, jobId) {
10601
10648
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -10653,7 +10700,7 @@ var CodegenEndpoint = class {
10653
10700
  };
10654
10701
 
10655
10702
  // src/api/endpoints/design-system/versions/brands.ts
10656
- import { z as z336 } from "zod";
10703
+ import { z as z337 } from "zod";
10657
10704
  var BrandsEndpoint = class {
10658
10705
  constructor(requestExecutor) {
10659
10706
  this.requestExecutor = requestExecutor;
@@ -10687,7 +10734,7 @@ var BrandsEndpoint = class {
10687
10734
  });
10688
10735
  }
10689
10736
  delete(dsId, vId, brandId) {
10690
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z336.any(), {
10737
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z337.any(), {
10691
10738
  method: "DELETE"
10692
10739
  });
10693
10740
  }
@@ -10963,7 +11010,7 @@ var ImportJobsEndpoint = class {
10963
11010
  };
10964
11011
 
10965
11012
  // src/api/endpoints/design-system/versions/overrides.ts
10966
- import { z as z337 } from "zod";
11013
+ import { z as z338 } from "zod";
10967
11014
  var OverridesEndpoint = class {
10968
11015
  constructor(requestExecutor) {
10969
11016
  this.requestExecutor = requestExecutor;
@@ -10971,7 +11018,7 @@ var OverridesEndpoint = class {
10971
11018
  create(dsId, versionId, themeId, body) {
10972
11019
  return this.requestExecutor.json(
10973
11020
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
10974
- z337.any(),
11021
+ z338.any(),
10975
11022
  {
10976
11023
  method: "POST",
10977
11024
  body
@@ -10981,7 +11028,7 @@ var OverridesEndpoint = class {
10981
11028
  };
10982
11029
 
10983
11030
  // src/api/endpoints/design-system/versions/property-definitions.ts
10984
- import { z as z338 } from "zod";
11031
+ import { z as z339 } from "zod";
10985
11032
  var ElementPropertyDefinitionsEndpoint = class {
10986
11033
  constructor(requestExecutor) {
10987
11034
  this.requestExecutor = requestExecutor;
@@ -11009,7 +11056,7 @@ var ElementPropertyDefinitionsEndpoint = class {
11009
11056
  delete(designSystemId, versionId, defId) {
11010
11057
  return this.requestExecutor.json(
11011
11058
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
11012
- z338.any(),
11059
+ z339.any(),
11013
11060
  { method: "DELETE" }
11014
11061
  );
11015
11062
  }
@@ -11048,7 +11095,7 @@ var VersionStatsEndpoint = class {
11048
11095
  };
11049
11096
 
11050
11097
  // src/api/endpoints/design-system/versions/themes.ts
11051
- import { z as z339 } from "zod";
11098
+ import { z as z340 } from "zod";
11052
11099
  var ThemesEndpoint = class {
11053
11100
  constructor(requestExecutor) {
11054
11101
  this.requestExecutor = requestExecutor;
@@ -11071,7 +11118,7 @@ var ThemesEndpoint = class {
11071
11118
  });
11072
11119
  }
11073
11120
  delete(dsId, versionId, themeId) {
11074
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z339.any(), {
11121
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z340.any(), {
11075
11122
  method: "DELETE"
11076
11123
  });
11077
11124
  }
@@ -11244,7 +11291,7 @@ var DesignSystemContactsEndpoint = class {
11244
11291
  };
11245
11292
 
11246
11293
  // src/api/endpoints/design-system/design-systems.ts
11247
- import { z as z343 } from "zod";
11294
+ import { z as z344 } from "zod";
11248
11295
 
11249
11296
  // src/api/endpoints/design-system/figma-node-structures.ts
11250
11297
  var FigmaNodeStructuresEndpoint = class {
@@ -11321,7 +11368,7 @@ var DesignSystemPageRedirectsEndpoint = class {
11321
11368
  };
11322
11369
 
11323
11370
  // src/api/endpoints/design-system/sources.ts
11324
- import { z as z340 } from "zod";
11371
+ import { z as z341 } from "zod";
11325
11372
  var DesignSystemSourcesEndpoint = class {
11326
11373
  constructor(requestExecutor) {
11327
11374
  this.requestExecutor = requestExecutor;
@@ -11339,7 +11386,7 @@ var DesignSystemSourcesEndpoint = class {
11339
11386
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
11340
11387
  }
11341
11388
  delete(dsId, sourceId) {
11342
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z340.any(), { method: "DELETE" });
11389
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z341.any(), { method: "DELETE" });
11343
11390
  }
11344
11391
  updateFigmaSource(dsId, sourceId, payload) {
11345
11392
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -11382,7 +11429,7 @@ var DesignSystemSourcesEndpoint = class {
11382
11429
  };
11383
11430
 
11384
11431
  // src/api/endpoints/design-system/storybook.ts
11385
- import { z as z341 } from "zod";
11432
+ import { z as z342 } from "zod";
11386
11433
  var StorybookEntriesEndpoint = class {
11387
11434
  constructor(requestExecutor) {
11388
11435
  this.requestExecutor = requestExecutor;
@@ -11400,14 +11447,14 @@ var StorybookEntriesEndpoint = class {
11400
11447
  );
11401
11448
  }
11402
11449
  delete(dsId, entryId) {
11403
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z341.any(), {
11450
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z342.any(), {
11404
11451
  method: "DELETE"
11405
11452
  });
11406
11453
  }
11407
11454
  };
11408
11455
 
11409
11456
  // src/api/endpoints/design-system/storybook-hosting.ts
11410
- import { z as z342 } from "zod";
11457
+ import { z as z343 } from "zod";
11411
11458
  var StorybookHostingEndpoint = class {
11412
11459
  constructor(requestExecutor) {
11413
11460
  this.requestExecutor = requestExecutor;
@@ -11421,7 +11468,7 @@ var StorybookHostingEndpoint = class {
11421
11468
  delete(dsId, storybookUploadId) {
11422
11469
  return this.requestExecutor.json(
11423
11470
  `/design-systems/${dsId}/storybook/${storybookUploadId}`,
11424
- z342.object({ ok: z342.boolean() }),
11471
+ z343.object({ ok: z343.boolean() }),
11425
11472
  {
11426
11473
  method: "DELETE"
11427
11474
  }
@@ -11479,7 +11526,7 @@ var DesignSystemsEndpoint = class {
11479
11526
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
11480
11527
  }
11481
11528
  delete(dsId) {
11482
- return this.requestExecutor.json(`/design-systems/${dsId}`, z343.any(), { method: "DELETE" });
11529
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z344.any(), { method: "DELETE" });
11483
11530
  }
11484
11531
  update(dsId, body) {
11485
11532
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -11602,7 +11649,7 @@ var ForgeFeatureArtifactsEndpoint = class {
11602
11649
  };
11603
11650
 
11604
11651
  // src/api/endpoints/forge/feature-iterations.ts
11605
- import z344 from "zod";
11652
+ import z345 from "zod";
11606
11653
  var ForgeFeatureIterationsEndpoint = class {
11607
11654
  constructor(requestExecutor) {
11608
11655
  this.requestExecutor = requestExecutor;
@@ -11619,7 +11666,7 @@ var ForgeFeatureIterationsEndpoint = class {
11619
11666
  updateArtifacts(workspaceId, projectId, featureId, body) {
11620
11667
  return this.requestExecutor.json(
11621
11668
  `/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
11622
- z344.any(),
11669
+ z345.any(),
11623
11670
  {
11624
11671
  body,
11625
11672
  method: "POST"
@@ -11854,7 +11901,7 @@ var ForgeProjectMembersEndpoint = class {
11854
11901
  };
11855
11902
 
11856
11903
  // src/api/endpoints/forge/projects.ts
11857
- import z345 from "zod";
11904
+ import z346 from "zod";
11858
11905
  var ForgeProjectsEndpoint = class {
11859
11906
  constructor(requestExecutor) {
11860
11907
  this.requestExecutor = requestExecutor;
@@ -11899,7 +11946,7 @@ var ForgeProjectsEndpoint = class {
11899
11946
  );
11900
11947
  }
11901
11948
  action(workspaceId, projectId, body) {
11902
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z345.any(), {
11949
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z346.any(), {
11903
11950
  body,
11904
11951
  method: "POST"
11905
11952
  });
@@ -11982,7 +12029,7 @@ var ForgeProjectIterationsEndpoint = class {
11982
12029
  };
11983
12030
 
11984
12031
  // src/api/endpoints/workspaces/chat-threads.ts
11985
- import { z as z346 } from "zod";
12032
+ import { z as z347 } from "zod";
11986
12033
  var WorkspaceChatThreadsEndpoint = class {
11987
12034
  constructor(requestExecutor) {
11988
12035
  this.requestExecutor = requestExecutor;
@@ -12014,7 +12061,7 @@ var WorkspaceChatThreadsEndpoint = class {
12014
12061
  );
12015
12062
  }
12016
12063
  delete(workspaceId, threadId) {
12017
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z346.any(), {
12064
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z347.any(), {
12018
12065
  method: "DELETE"
12019
12066
  });
12020
12067
  }
@@ -12046,7 +12093,7 @@ var ChatThreadMessagesEndpoint = class {
12046
12093
  );
12047
12094
  }
12048
12095
  score(workspaceId, threadId, body) {
12049
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z346.any(), {
12096
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z347.any(), {
12050
12097
  method: "POST",
12051
12098
  body
12052
12099
  });
@@ -12054,7 +12101,7 @@ var ChatThreadMessagesEndpoint = class {
12054
12101
  };
12055
12102
 
12056
12103
  // src/api/endpoints/workspaces/integrations.ts
12057
- import { z as z347 } from "zod";
12104
+ import { z as z348 } from "zod";
12058
12105
  var WorkspaceIntegrationsEndpoint = class {
12059
12106
  constructor(requestExecutor) {
12060
12107
  this.requestExecutor = requestExecutor;
@@ -12063,7 +12110,7 @@ var WorkspaceIntegrationsEndpoint = class {
12063
12110
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
12064
12111
  }
12065
12112
  delete(wsId, iId) {
12066
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z347.unknown(), { method: "DELETE" });
12113
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z348.unknown(), { method: "DELETE" });
12067
12114
  }
12068
12115
  };
12069
12116
 
@@ -12095,7 +12142,7 @@ var WorkspaceInvitationsEndpoint = class {
12095
12142
  };
12096
12143
 
12097
12144
  // src/api/endpoints/workspaces/members.ts
12098
- import { z as z348 } from "zod";
12145
+ import { z as z349 } from "zod";
12099
12146
  var WorkspaceMembersEndpoint = class {
12100
12147
  constructor(requestExecutor) {
12101
12148
  this.requestExecutor = requestExecutor;
@@ -12112,7 +12159,7 @@ var WorkspaceMembersEndpoint = class {
12112
12159
  });
12113
12160
  }
12114
12161
  invite(workspaceId, body) {
12115
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z348.any(), { method: "POST", body });
12162
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z349.any(), { method: "POST", body });
12116
12163
  }
12117
12164
  delete(workspaceId, userId) {
12118
12165
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -12141,7 +12188,7 @@ var WorkspaceNpmRegistryEndpoint = class {
12141
12188
  };
12142
12189
 
12143
12190
  // src/api/endpoints/workspaces/workspaces.ts
12144
- import { z as z349 } from "zod";
12191
+ import { z as z350 } from "zod";
12145
12192
  var WorkspacesEndpoint = class {
12146
12193
  constructor(requestExecutor) {
12147
12194
  this.requestExecutor = requestExecutor;
@@ -12173,10 +12220,10 @@ var WorkspacesEndpoint = class {
12173
12220
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
12174
12221
  }
12175
12222
  delete(workspaceId) {
12176
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z349.any(), { method: "DELETE" });
12223
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z350.any(), { method: "DELETE" });
12177
12224
  }
12178
12225
  subscription(workspaceId) {
12179
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z349.any(), { method: "GET" });
12226
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z350.any(), { method: "GET" });
12180
12227
  }
12181
12228
  getPortalSettings(workspaceId) {
12182
12229
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -12287,9 +12334,9 @@ ${bodyText}`,
12287
12334
 
12288
12335
  // src/api/transport/request-executor.ts
12289
12336
  import fetch from "node-fetch";
12290
- import { z as z350 } from "zod";
12291
- var ResponseWrapper = z350.object({
12292
- result: z350.record(z350.any())
12337
+ import { z as z351 } from "zod";
12338
+ var ResponseWrapper = z351.object({
12339
+ result: z351.record(z351.any())
12293
12340
  });
12294
12341
  var RequestExecutor = class {
12295
12342
  constructor(testServerConfig) {
@@ -12366,25 +12413,25 @@ var SupernovaApiClient = class {
12366
12413
  };
12367
12414
 
12368
12415
  // 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(),
12416
+ import { z as z352 } from "zod";
12417
+ var DTOEventFigmaNodesRendered = z352.object({
12418
+ type: z352.literal("DesignSystem.FigmaNodesRendered"),
12419
+ designSystemId: z352.string(),
12420
+ versionId: z352.string(),
12421
+ figmaNodePersistentIds: z352.string().array()
12422
+ });
12423
+ var DTOEventDataSourcesImported = z352.object({
12424
+ type: z352.literal("DesignSystem.ImportJobFinished"),
12425
+ designSystemId: z352.string(),
12426
+ versionId: z352.string(),
12427
+ importJobId: z352.string(),
12381
12428
  dataSourceType: DataSourceRemoteType,
12382
- dataSourceIds: z351.string().array()
12429
+ dataSourceIds: z352.string().array()
12383
12430
  });
12384
12431
 
12385
12432
  // src/events/event.ts
12386
- import { z as z352 } from "zod";
12387
- var DTOEvent = z352.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12433
+ import { z as z353 } from "zod";
12434
+ var DTOEvent = z353.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12388
12435
 
12389
12436
  // src/sync/docs-local-action-executor.ts
12390
12437
  function applyActionsLocally(input) {
@@ -12680,7 +12727,7 @@ var LocalDocsElementActionExecutor = class {
12680
12727
  import PQueue from "p-queue";
12681
12728
 
12682
12729
  // src/yjs/design-system-content/documentation-hierarchy.ts
12683
- import { z as z353 } from "zod";
12730
+ import { z as z354 } from "zod";
12684
12731
 
12685
12732
  // src/yjs/version-room/base.ts
12686
12733
  var VersionRoomBaseYDoc = class {
@@ -13230,24 +13277,24 @@ var FrontendVersionRoomYDoc = class {
13230
13277
  };
13231
13278
 
13232
13279
  // 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()
13280
+ var DocumentationHierarchySettings = z354.object({
13281
+ routingVersion: z354.string(),
13282
+ isDraftFeatureAdopted: z354.boolean(),
13283
+ isApprovalFeatureEnabled: z354.boolean(),
13284
+ approvalRequiredForPublishing: z354.boolean()
13238
13285
  });
13239
13286
  function yjsToDocumentationHierarchy(doc) {
13240
13287
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
13241
13288
  }
13242
13289
 
13243
13290
  // src/yjs/design-system-content/item-configuration.ts
13244
- import { z as z354 } from "zod";
13245
- var DTODocumentationPageRoomHeaderData = z354.object({
13246
- title: z354.string(),
13291
+ import { z as z355 } from "zod";
13292
+ var DTODocumentationPageRoomHeaderData = z355.object({
13293
+ title: z355.string(),
13247
13294
  configuration: DTODocumentationItemConfigurationV2
13248
13295
  });
13249
- var DTODocumentationPageRoomHeaderDataUpdate = z354.object({
13250
- title: z354.string().optional(),
13296
+ var DTODocumentationPageRoomHeaderDataUpdate = z355.object({
13297
+ title: z355.string().optional(),
13251
13298
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
13252
13299
  });
13253
13300
  function itemConfigurationToYjs(yDoc, item) {
@@ -13282,9 +13329,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
13282
13329
  var PageSectionEditorModel = PageSectionEditorModelV2;
13283
13330
 
13284
13331
  // src/yjs/docs-editor/model/page.ts
13285
- import { z as z355 } from "zod";
13286
- var DocumentationPageEditorModel = z355.object({
13287
- blocks: z355.array(DocumentationPageContentItem)
13332
+ import { z as z356 } from "zod";
13333
+ var DocumentationPageEditorModel = z356.object({
13334
+ blocks: z356.array(DocumentationPageContentItem)
13288
13335
  });
13289
13336
 
13290
13337
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -16961,7 +17008,7 @@ var blocks = [
16961
17008
 
16962
17009
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
16963
17010
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
16964
- import { z as z356 } from "zod";
17011
+ import { z as z357 } from "zod";
16965
17012
  function yDocToPage(yDoc, definitions) {
16966
17013
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
16967
17014
  }
@@ -17037,7 +17084,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
17037
17084
  if (!id) return null;
17038
17085
  return {
17039
17086
  id,
17040
- title: getProsemirrorAttribute(prosemirrorNode, "title", z356.string()) ?? "",
17087
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z357.string()) ?? "",
17041
17088
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
17042
17089
  };
17043
17090
  }
@@ -17071,7 +17118,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
17071
17118
  });
17072
17119
  }
17073
17120
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
17074
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z356.string());
17121
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z357.string());
17075
17122
  if (!definitionId) {
17076
17123
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
17077
17124
  return [];
@@ -17112,7 +17159,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
17112
17159
  const id = getProsemirrorBlockId(prosemirrorNode);
17113
17160
  if (!id) return null;
17114
17161
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17115
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z356.string().optional()));
17162
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z357.string().optional()));
17116
17163
  return {
17117
17164
  id,
17118
17165
  type: "Block",
@@ -17235,9 +17282,9 @@ function parseRichTextAttribute(mark) {
17235
17282
  return null;
17236
17283
  }
17237
17284
  function parseProsemirrorLink(mark) {
17238
- const href = getProsemirrorAttribute(mark, "href", z356.string().optional());
17285
+ const href = getProsemirrorAttribute(mark, "href", z357.string().optional());
17239
17286
  if (!href) return null;
17240
- const target = getProsemirrorAttribute(mark, "target", z356.string().optional());
17287
+ const target = getProsemirrorAttribute(mark, "target", z357.string().optional());
17241
17288
  const openInNewTab = target === "_blank";
17242
17289
  if (href.startsWith("@")) {
17243
17290
  return {
@@ -17256,9 +17303,9 @@ function parseProsemirrorLink(mark) {
17256
17303
  }
17257
17304
  }
17258
17305
  function parseProsemirrorCommentHighlight(mark) {
17259
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z356.string().optional());
17306
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z357.string().optional());
17260
17307
  if (!highlightId) return null;
17261
- const isResolved = getProsemirrorAttribute(mark, "resolved", z356.boolean().optional()) ?? false;
17308
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z357.boolean().optional()) ?? false;
17262
17309
  return {
17263
17310
  type: "Comment",
17264
17311
  commentHighlightId: highlightId,
@@ -17269,7 +17316,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
17269
17316
  const id = getProsemirrorBlockId(prosemirrorNode);
17270
17317
  if (!id) return null;
17271
17318
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17272
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z356.boolean().optional()) !== false;
17319
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z357.boolean().optional()) !== false;
17273
17320
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
17274
17321
  if (!tableChild) {
17275
17322
  return emptyTable(id, variantId, 0);
@@ -17315,9 +17362,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
17315
17362
  function parseAsTableCell(prosemirrorNode) {
17316
17363
  const id = getProsemirrorBlockId(prosemirrorNode);
17317
17364
  if (!id) return null;
17318
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z356.string().optional());
17365
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z357.string().optional());
17319
17366
  let columnWidth;
17320
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z356.array(z356.number()).nullish());
17367
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z357.array(z357.number()).nullish());
17321
17368
  if (columnWidthArray) {
17322
17369
  columnWidth = roundDimension(columnWidthArray[0]);
17323
17370
  }
@@ -17353,7 +17400,7 @@ function parseAsTableNode(prosemirrorNode) {
17353
17400
  value: parseRichText(prosemirrorNode.content ?? [])
17354
17401
  };
17355
17402
  case "image":
17356
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z356.string());
17403
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
17357
17404
  if (!items) return null;
17358
17405
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
17359
17406
  if (!parsedItems.success) return null;
@@ -17467,7 +17514,7 @@ function definitionExpectsPlaceholderItem(definition) {
17467
17514
  );
17468
17515
  }
17469
17516
  function parseBlockItems(prosemirrorNode, definition) {
17470
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z356.string());
17517
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
17471
17518
  if (!itemsString) return null;
17472
17519
  const itemsJson = JSON.parse(itemsString);
17473
17520
  if (!Array.isArray(itemsJson)) {
@@ -17478,18 +17525,18 @@ function parseBlockItems(prosemirrorNode, definition) {
17478
17525
  }
17479
17526
  function parseAppearance(prosemirrorNode) {
17480
17527
  let appearance = {};
17481
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z356.string().optional());
17528
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z357.string().optional());
17482
17529
  if (rawAppearanceString) {
17483
17530
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
17484
17531
  if (parsedAppearance.success) {
17485
17532
  appearance = parsedAppearance.data;
17486
17533
  }
17487
17534
  }
17488
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z356.number().optional());
17535
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z357.number().optional());
17489
17536
  if (columns) {
17490
17537
  appearance.numberOfColumns = columns;
17491
17538
  }
17492
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z356.string().optional());
17539
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z357.string().optional());
17493
17540
  if (backgroundColor) {
17494
17541
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
17495
17542
  if (parsedColor.success) {
@@ -17590,12 +17637,12 @@ function valueSchemaForPropertyType(type) {
17590
17637
  }
17591
17638
  }
17592
17639
  function getProsemirrorBlockId(prosemirrorNode) {
17593
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z356.string());
17640
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z357.string());
17594
17641
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
17595
17642
  return id;
17596
17643
  }
17597
17644
  function getProsemirrorBlockVariantId(prosemirrorNode) {
17598
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z356.string()));
17645
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z357.string()));
17599
17646
  }
17600
17647
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
17601
17648
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -19097,7 +19144,11 @@ export {
19097
19144
  DTOFigmaNodeStructureListResponse,
19098
19145
  DTOFigmaNodeV2,
19099
19146
  DTOFigmaSourceUpdatePayload,
19147
+ DTOFile,
19148
+ DTOFileListResponse,
19149
+ DTOFileReference,
19100
19150
  DTOFileResponseItem,
19151
+ DTOFileUploadBulkResponse,
19101
19152
  DTOFileUploadFinalizePayload,
19102
19153
  DTOFileUploadFinalizeResponse,
19103
19154
  DTOFileUploadItem,