@supernova-studio/client 1.96.5 → 1.96.6

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
@@ -10293,7 +10293,7 @@ var DTOElementsGetOutputV2 = z322.object({
10293
10293
  });
10294
10294
 
10295
10295
  // src/api/dto/events/forge-project.ts
10296
- import z350 from "zod";
10296
+ import z351 from "zod";
10297
10297
 
10298
10298
  // src/api/dto/forge/agent.ts
10299
10299
  import { z as z323 } from "zod";
@@ -10946,104 +10946,150 @@ var DTODeleteForgeIterationMessageResponse = z330.object({
10946
10946
  ok: z330.literal(true)
10947
10947
  });
10948
10948
 
10949
- // src/api/dto/forge/memory.ts
10950
- import z331 from "zod";
10951
- var DTOForgeMemoryEntry = z331.object({
10952
- id: z331.string().uuid(),
10953
- projectId: z331.string(),
10954
- text: z331.string(),
10955
- category: z331.string(),
10949
+ // src/api/dto/forge/knowledge-item.ts
10950
+ import { z as z331 } from "zod";
10951
+ var DTOKnowledgeItemType = z331.enum(["File", "Skill"]);
10952
+ var DTOKnowledgeItemWritableFields = z331.object({
10953
+ path: z331.string(),
10954
+ description: z331.string().max(200),
10955
+ type: DTOKnowledgeItemType,
10956
+ fileId: z331.string(),
10957
+ parentItemId: z331.string().nullable().optional()
10958
+ });
10959
+ var DTOKnowledgeItem = z331.object({
10960
+ id: z331.string(),
10961
+ workspaceId: z331.string(),
10962
+ createdByUserId: z331.string(),
10956
10963
  createdAt: z331.string(),
10957
10964
  updatedAt: z331.string(),
10958
- metadata: z331.record(z331.string()).optional()
10965
+ path: z331.string(),
10966
+ description: z331.string().max(200),
10967
+ type: DTOKnowledgeItemType,
10968
+ fileSize: z331.number(),
10969
+ fileId: z331.string(),
10970
+ fileUrl: z331.string(),
10971
+ parentItemId: z331.string().nullable()
10972
+ });
10973
+ var DTOKnowledgeItemCreatePayload = DTOKnowledgeItemWritableFields.extend({
10974
+ childrenItems: z331.lazy(() => z331.array(DTOKnowledgeItemCreatePayload)).optional()
10975
+ });
10976
+ var DTOKnowledgeItemUpdatePayload = DTOKnowledgeItem.pick({
10977
+ path: true,
10978
+ description: true,
10979
+ fileId: true,
10980
+ parentItemId: true
10981
+ }).partial();
10982
+ var DTOKnowledgeItemDeletePayload = z331.object({
10983
+ id: z331.union([z331.string(), z331.array(z331.string())])
10984
+ });
10985
+ var DTOKnowledgeItemListResponse = z331.object({
10986
+ items: z331.array(DTOKnowledgeItem)
10987
+ });
10988
+ var DTOKnowledgeItemResponse = z331.object({
10989
+ item: DTOKnowledgeItem
10959
10990
  });
10960
- var DTOForgeMemoryCreateInput = z331.object({
10961
- projectId: z331.string(),
10962
- text: z331.string(),
10963
- category: z331.string(),
10964
- metadata: z331.record(z331.string()).optional()
10991
+ var DTOKnowledgeItemDeleteResponse = z331.object({
10992
+ deletedIds: z331.array(z331.string())
10993
+ });
10994
+
10995
+ // src/api/dto/forge/memory.ts
10996
+ import z332 from "zod";
10997
+ var DTOForgeMemoryEntry = z332.object({
10998
+ id: z332.string().uuid(),
10999
+ projectId: z332.string(),
11000
+ text: z332.string(),
11001
+ category: z332.string(),
11002
+ createdAt: z332.string(),
11003
+ updatedAt: z332.string(),
11004
+ metadata: z332.record(z332.string()).optional()
10965
11005
  });
10966
- var DTOForgeMemoryUpdateInput = z331.object({
10967
- id: z331.string().uuid(),
10968
- text: z331.string().optional(),
10969
- category: z331.string(),
10970
- metadata: z331.record(z331.string()).nullish()
11006
+ var DTOForgeMemoryCreateInput = z332.object({
11007
+ projectId: z332.string(),
11008
+ text: z332.string(),
11009
+ category: z332.string(),
11010
+ metadata: z332.record(z332.string()).optional()
10971
11011
  });
10972
- var DTOForgeMemoryDeleteInput = z331.object({
10973
- id: z331.string().uuid()
11012
+ var DTOForgeMemoryUpdateInput = z332.object({
11013
+ id: z332.string().uuid(),
11014
+ text: z332.string().optional(),
11015
+ category: z332.string(),
11016
+ metadata: z332.record(z332.string()).nullish()
10974
11017
  });
10975
- var DTOForgeMemoryEntryListResponse = z331.object({
11018
+ var DTOForgeMemoryDeleteInput = z332.object({
11019
+ id: z332.string().uuid()
11020
+ });
11021
+ var DTOForgeMemoryEntryListResponse = z332.object({
10976
11022
  memoryEntries: DTOForgeMemoryEntry.array()
10977
11023
  });
10978
- var DTOForgeMemoryEntryResponse = z331.object({
11024
+ var DTOForgeMemoryEntryResponse = z332.object({
10979
11025
  memoryEntry: DTOForgeMemoryEntry
10980
11026
  });
10981
- var DTOForgeMemoryEntryListQuery = z331.object({
10982
- projectId: z331.string()
11027
+ var DTOForgeMemoryEntryListQuery = z332.object({
11028
+ projectId: z332.string()
10983
11029
  });
10984
11030
 
10985
11031
  // src/api/dto/forge/project-action.ts
10986
- import z336 from "zod";
11032
+ import z337 from "zod";
10987
11033
 
10988
11034
  // src/api/dto/forge/project-artifact.ts
10989
- import { z as z334 } from "zod";
11035
+ import { z as z335 } from "zod";
10990
11036
 
10991
11037
  // src/api/dto/threads/threads.ts
10992
- import z332 from "zod";
10993
- var DTOThreadSubjectType = z332.enum(["ForgeDocument", "ForgeFeature"]);
10994
- var DTOThreadAgentType = z332.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10995
- var DTOThreadPromptState = z332.enum(["Success", "Timeout", "Error"]);
10996
- var DTOThread = z332.object({
10997
- id: z332.string(),
10998
- liveblocksRoomId: z332.string(),
11038
+ import z333 from "zod";
11039
+ var DTOThreadSubjectType = z333.enum(["ForgeDocument", "ForgeFeature"]);
11040
+ var DTOThreadAgentType = z333.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
11041
+ var DTOThreadPromptState = z333.enum(["Success", "Timeout", "Error"]);
11042
+ var DTOThread = z333.object({
11043
+ id: z333.string(),
11044
+ liveblocksRoomId: z333.string(),
10999
11045
  defaultAgentType: DTOThreadAgentType,
11000
- subjectId: z332.string(),
11046
+ subjectId: z333.string(),
11001
11047
  subjectType: DTOThreadSubjectType,
11002
- createdAt: z332.string(),
11003
- updatedAt: z332.string()
11048
+ createdAt: z333.string(),
11049
+ updatedAt: z333.string()
11004
11050
  });
11005
- var DTOThreadMessageUserSender = z332.object({
11006
- type: z332.literal("User"),
11007
- userId: z332.string()
11051
+ var DTOThreadMessageUserSender = z333.object({
11052
+ type: z333.literal("User"),
11053
+ userId: z333.string()
11008
11054
  });
11009
- var DTOThreadMessageAgentSender = z332.object({
11010
- type: z332.literal("Agent"),
11055
+ var DTOThreadMessageAgentSender = z333.object({
11056
+ type: z333.literal("Agent"),
11011
11057
  agentType: DTOThreadAgentType
11012
11058
  });
11013
- var DTOThreadMessageSystemSender = z332.object({
11014
- type: z332.literal("System"),
11015
- onBehalfOfUserId: z332.string()
11059
+ var DTOThreadMessageSystemSender = z333.object({
11060
+ type: z333.literal("System"),
11061
+ onBehalfOfUserId: z333.string()
11016
11062
  });
11017
- var DTOThreadMessageSender = z332.discriminatedUnion("type", [
11063
+ var DTOThreadMessageSender = z333.discriminatedUnion("type", [
11018
11064
  DTOThreadMessageUserSender,
11019
11065
  DTOThreadMessageAgentSender,
11020
11066
  DTOThreadMessageSystemSender
11021
11067
  ]);
11022
- var DTOThreadReaction = z332.object({
11068
+ var DTOThreadReaction = z333.object({
11023
11069
  messageId: Id,
11024
- userId: z332.string(),
11025
- emoji: z332.string(),
11026
- createdAt: z332.string()
11070
+ userId: z333.string(),
11071
+ emoji: z333.string(),
11072
+ createdAt: z333.string()
11027
11073
  });
11028
- var DTOThreadMessageAttachments = z332.object({
11074
+ var DTOThreadMessageAttachments = z333.object({
11029
11075
  iterationId: Id.optional(),
11030
11076
  files: DTOFileReference.array().optional(),
11031
- templateId: z332.string().optional(),
11077
+ templateId: z333.string().optional(),
11032
11078
  figmaNodes: DTOForgeFigmaNode.array().optional()
11033
11079
  });
11034
- var DTOThreadMessageAnnotation = z332.object({
11035
- prompt: z332.string(),
11036
- elements: z332.array(
11037
- z332.object({
11038
- xpath: z332.string(),
11039
- line: z332.string()
11080
+ var DTOThreadMessageAnnotation = z333.object({
11081
+ prompt: z333.string(),
11082
+ elements: z333.array(
11083
+ z333.object({
11084
+ xpath: z333.string(),
11085
+ line: z333.string()
11040
11086
  })
11041
11087
  )
11042
11088
  });
11043
- var DTOThreadMessageAnnotations = z332.array(DTOThreadMessageAnnotation);
11044
- var DTOThreadMessage = z332.object({
11089
+ var DTOThreadMessageAnnotations = z333.array(DTOThreadMessageAnnotation);
11090
+ var DTOThreadMessage = z333.object({
11045
11091
  id: Id,
11046
- threadId: z332.string(),
11092
+ threadId: z333.string(),
11047
11093
  /**
11048
11094
  * Describes where the message came from
11049
11095
  */
@@ -11051,20 +11097,20 @@ var DTOThreadMessage = z332.object({
11051
11097
  /**
11052
11098
  * Content of the message
11053
11099
  */
11054
- body: z332.string(),
11100
+ body: z333.string(),
11055
11101
  /**
11056
11102
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
11057
11103
  * AI agent to generate a response and perform an action within the feature
11058
11104
  */
11059
- isPrompt: z332.boolean().optional(),
11105
+ isPrompt: z333.boolean().optional(),
11060
11106
  /**
11061
11107
  * Indicates if the message is an attempt to retry agent message. Only available for agent messages.
11062
11108
  */
11063
- isRetry: z332.boolean().optional(),
11109
+ isRetry: z333.boolean().optional(),
11064
11110
  /**
11065
11111
  * Indicates if the sender requested agent to reply in a thread
11066
11112
  */
11067
- startsNewThread: z332.boolean().optional(),
11113
+ startsNewThread: z333.boolean().optional(),
11068
11114
  /**
11069
11115
  * If defined, this message is considered to be a reply in a thread under parent message id
11070
11116
  */
@@ -11079,19 +11125,19 @@ var DTOThreadMessage = z332.object({
11079
11125
  * If defined, this message is considered to be a reply to different message
11080
11126
  */
11081
11127
  replyToMessageId: Id.optional(),
11082
- promptMetadata: z332.record(z332.string(), z332.any()).optional(),
11083
- createdAt: z332.string(),
11084
- updatedAt: z332.string().optional()
11128
+ promptMetadata: z333.record(z333.string(), z333.any()).optional(),
11129
+ createdAt: z333.string(),
11130
+ updatedAt: z333.string().optional()
11085
11131
  });
11086
- var DTOThreadAgentResponseTracker = z332.object({
11132
+ var DTOThreadAgentResponseTracker = z333.object({
11087
11133
  id: Id,
11088
- currentBody: z332.string().default("")
11134
+ currentBody: z333.string().default("")
11089
11135
  });
11090
- var DTOThreadMessageAttachmentsCreateInput = z332.object({
11136
+ var DTOThreadMessageAttachmentsCreateInput = z333.object({
11091
11137
  iterationId: Id.optional(),
11092
- fileIds: z332.string().array().optional(),
11093
- figmaNodeIds: z332.string().array().optional(),
11094
- templateId: z332.string().optional()
11138
+ fileIds: z333.string().array().optional(),
11139
+ figmaNodeIds: z333.string().array().optional(),
11140
+ templateId: z333.string().optional()
11095
11141
  });
11096
11142
  var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
11097
11143
  id: true,
@@ -11104,67 +11150,67 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
11104
11150
  }).extend({
11105
11151
  attachments: DTOThreadMessageAttachmentsCreateInput.optional()
11106
11152
  });
11107
- var DTOThreadMessageFinalizeInput = z332.object({
11153
+ var DTOThreadMessageFinalizeInput = z333.object({
11108
11154
  messageId: Id,
11109
- agentMessageBody: z332.string().optional(),
11155
+ agentMessageBody: z333.string().optional(),
11110
11156
  promptState: DTOThreadPromptState.optional(),
11111
11157
  billingUsageSummary: DTOBillingUsageSummary.optional()
11112
11158
  });
11113
- var DTOThreadMessageRetryInput = z332.object({
11159
+ var DTOThreadMessageRetryInput = z333.object({
11114
11160
  agentMessageId: Id,
11115
- runtimeError: z332.string().optional(),
11161
+ runtimeError: z333.string().optional(),
11116
11162
  /**
11117
11163
  * When `true`, the retry message will be sent to a thread started by the user's message
11118
11164
  * Useful when user retries a message created in the main thread, but expects the retry to be sent as a thread reply
11119
11165
  */
11120
- shouldReplyInThread: z332.boolean().optional(),
11166
+ shouldReplyInThread: z333.boolean().optional(),
11121
11167
  message: DTOThreadMessage.pick({ id: true, body: true }).optional()
11122
11168
  });
11123
11169
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
11124
11170
  id: true
11125
11171
  }).merge(
11126
- z332.object({
11172
+ z333.object({
11127
11173
  body: DTOThreadMessage.shape.body,
11128
11174
  attachments: DTOThreadMessage.shape.attachments,
11129
11175
  agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
11130
11176
  }).partial()
11131
11177
  );
11132
- var DTOThreadReactionCreateInput = z332.object({
11178
+ var DTOThreadReactionCreateInput = z333.object({
11133
11179
  messageId: Id,
11134
- emoji: z332.string()
11180
+ emoji: z333.string()
11135
11181
  });
11136
- var DTOThreadReactionDeleteInput = z332.object({
11182
+ var DTOThreadReactionDeleteInput = z333.object({
11137
11183
  messageId: Id,
11138
- emoji: z332.string()
11184
+ emoji: z333.string()
11139
11185
  });
11140
- var DTOThreadMessageResponse = z332.object({
11186
+ var DTOThreadMessageResponse = z333.object({
11141
11187
  message: DTOThreadMessage
11142
11188
  });
11143
- var DTOThreadReactionResponse = z332.object({
11189
+ var DTOThreadReactionResponse = z333.object({
11144
11190
  reaction: DTOThreadReaction
11145
11191
  });
11146
- var DTOThreadMessageListResponse = z332.object({
11192
+ var DTOThreadMessageListResponse = z333.object({
11147
11193
  messages: DTOThreadMessage.array(),
11148
11194
  reactions: DTOThreadReaction.array(),
11149
- lastSeenMessageId: z332.string().optional()
11195
+ lastSeenMessageId: z333.string().optional()
11150
11196
  });
11151
- var DTOThreadEventMessagesSent = z332.object({
11152
- type: z332.literal("MessagesSent"),
11197
+ var DTOThreadEventMessagesSent = z333.object({
11198
+ type: z333.literal("MessagesSent"),
11153
11199
  data: DTOThreadMessage.array()
11154
11200
  });
11155
- var DTOThreadEventMessagesUpdated = z332.object({
11156
- type: z332.literal("MessagesUpdated"),
11201
+ var DTOThreadEventMessagesUpdated = z333.object({
11202
+ type: z333.literal("MessagesUpdated"),
11157
11203
  data: DTOThreadMessage.array()
11158
11204
  });
11159
- var DTOThreadEventReactionsSent = z332.object({
11160
- type: z332.literal("ReactionsSent"),
11205
+ var DTOThreadEventReactionsSent = z333.object({
11206
+ type: z333.literal("ReactionsSent"),
11161
11207
  data: DTOThreadReaction.array()
11162
11208
  });
11163
- var DTOThreadEventReactionsDeleted = z332.object({
11164
- type: z332.literal("ReactionsDeleted"),
11209
+ var DTOThreadEventReactionsDeleted = z333.object({
11210
+ type: z333.literal("ReactionsDeleted"),
11165
11211
  data: DTOThreadReaction.array()
11166
11212
  });
11167
- var DTOThreadEvent = z332.discriminatedUnion("type", [
11213
+ var DTOThreadEvent = z333.discriminatedUnion("type", [
11168
11214
  DTOThreadEventMessagesSent,
11169
11215
  DTOThreadEventMessagesUpdated,
11170
11216
  DTOThreadEventReactionsSent,
@@ -11172,8 +11218,8 @@ var DTOThreadEvent = z332.discriminatedUnion("type", [
11172
11218
  ]);
11173
11219
 
11174
11220
  // src/api/dto/forge/project-section.ts
11175
- import z333 from "zod";
11176
- var AfterSectionId = z333.string().uuid().nullish().optional();
11221
+ import z334 from "zod";
11222
+ var AfterSectionId = z334.string().uuid().nullish().optional();
11177
11223
  var DTOForgeSection = ForgeSection;
11178
11224
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
11179
11225
  id: true,
@@ -11184,12 +11230,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
11184
11230
  });
11185
11231
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
11186
11232
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
11187
- deleteChildren: z333.boolean().default(false)
11233
+ deleteChildren: z334.boolean().default(false)
11188
11234
  });
11189
11235
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
11190
11236
  afterSectionId: AfterSectionId
11191
11237
  });
11192
- var DTOForgeSectionItemMoveInput = z333.object({
11238
+ var DTOForgeSectionItemMoveInput = z334.object({
11193
11239
  id: Id,
11194
11240
  sectionId: Id.nullish().optional(),
11195
11241
  // undefined=stay, null=no section, string=move to section
@@ -11199,160 +11245,160 @@ var DTOForgeSectionItemMoveInput = z333.object({
11199
11245
 
11200
11246
  // src/api/dto/forge/project-artifact.ts
11201
11247
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
11202
- var DTOForgeProjectArtifactUpdateInput = z334.object({
11203
- id: z334.string(),
11204
- title: z334.string().optional(),
11205
- isArchived: z334.boolean().optional()
11206
- });
11207
- var DTOForgeProjectArtifactCreateInput = z334.object({
11208
- id: z334.string(),
11209
- title: z334.string(),
11210
- sectionId: z334.string().optional(),
11211
- afterArtifactId: z334.string().optional().nullable(),
11248
+ var DTOForgeProjectArtifactUpdateInput = z335.object({
11249
+ id: z335.string(),
11250
+ title: z335.string().optional(),
11251
+ isArchived: z335.boolean().optional()
11252
+ });
11253
+ var DTOForgeProjectArtifactCreateInput = z335.object({
11254
+ id: z335.string(),
11255
+ title: z335.string(),
11256
+ sectionId: z335.string().optional(),
11257
+ afterArtifactId: z335.string().optional().nullable(),
11212
11258
  initialMessage: DTOThreadMessageCreateInput.optional()
11213
11259
  });
11214
- var DTOForgeProjectArtifactDeleteInput = z334.object({
11260
+ var DTOForgeProjectArtifactDeleteInput = z335.object({
11215
11261
  id: Id
11216
11262
  });
11217
11263
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
11218
- var DTOForgeDocumentGetByIdParam = z334.object({
11264
+ var DTOForgeDocumentGetByIdParam = z335.object({
11219
11265
  id: Id
11220
11266
  });
11221
- var DTOForgeProjectArtifactGetResponse = z334.object({
11267
+ var DTOForgeProjectArtifactGetResponse = z335.object({
11222
11268
  artifact: DTOForgeProjectArtifact
11223
11269
  });
11224
- var DTOForgeDocumentGetResponse = z334.object({
11270
+ var DTOForgeDocumentGetResponse = z335.object({
11225
11271
  document: DTOForgeProjectArtifact
11226
11272
  });
11227
- var DTOForgeProjectArtifactCreateResponse = z334.object({
11273
+ var DTOForgeProjectArtifactCreateResponse = z335.object({
11228
11274
  artifact: DTOForgeProjectArtifact
11229
11275
  });
11230
- var DTOForgeProjectArtifactUpdateResponse = z334.object({
11276
+ var DTOForgeProjectArtifactUpdateResponse = z335.object({
11231
11277
  artifact: DTOForgeProjectArtifact
11232
11278
  });
11233
- var DTOForgeProjectArtifactDeleteResponse = z334.object({
11234
- ok: z334.literal(true)
11279
+ var DTOForgeProjectArtifactDeleteResponse = z335.object({
11280
+ ok: z335.literal(true)
11235
11281
  });
11236
- var DTOForgeProjectArtifactMoveResponse = z334.object({
11282
+ var DTOForgeProjectArtifactMoveResponse = z335.object({
11237
11283
  artifact: DTOForgeProjectArtifact
11238
11284
  });
11239
- var DTOForgeProjectArtifactsListResponse = z334.object({
11240
- artifacts: z334.array(DTOForgeProjectArtifact)
11285
+ var DTOForgeProjectArtifactsListResponse = z335.object({
11286
+ artifacts: z335.array(DTOForgeProjectArtifact)
11241
11287
  });
11242
- var DTOForgeProjectArtifactContentResponse = z334.object({
11243
- artifactId: z334.string(),
11288
+ var DTOForgeProjectArtifactContentResponse = z335.object({
11289
+ artifactId: z335.string(),
11244
11290
  content: ForgeProjectArtifactContentData
11245
11291
  });
11246
11292
 
11247
11293
  // src/api/dto/forge/project-feature.ts
11248
- import z335 from "zod";
11294
+ import z336 from "zod";
11249
11295
  var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
11250
11296
  iterationId: true,
11251
11297
  hideSupernovaUI: true,
11252
11298
  visibility: true
11253
11299
  });
11254
11300
  var DTOForgeProjectFeature = ProjectFeature;
11255
- var DTOForgeProjectPublishedFeature = z335.object({
11256
- featureName: z335.string(),
11257
- iterationName: z335.string(),
11258
- hideSupernovaUI: z335.boolean(),
11259
- thumbnailUrl: z335.string().optional(),
11260
- staticPreviewUrl: z335.string().optional(),
11301
+ var DTOForgeProjectPublishedFeature = z336.object({
11302
+ featureName: z336.string(),
11303
+ iterationName: z336.string(),
11304
+ hideSupernovaUI: z336.boolean(),
11305
+ thumbnailUrl: z336.string().optional(),
11306
+ staticPreviewUrl: z336.string().optional(),
11261
11307
  // These are only included when authenticated user has access to the project (for both public & private published features)
11262
- projectId: z335.string().optional(),
11263
- projectName: z335.string().optional(),
11264
- workspaceId: z335.string().optional()
11308
+ projectId: z336.string().optional(),
11309
+ projectName: z336.string().optional(),
11310
+ workspaceId: z336.string().optional()
11265
11311
  });
11266
- var DTOForgeProjectPublishedFeatureGetResponse = z335.object({
11312
+ var DTOForgeProjectPublishedFeatureGetResponse = z336.object({
11267
11313
  publishedFeature: DTOForgeProjectPublishedFeature
11268
11314
  });
11269
- var DTOForgeProjectFeatureListResponse = z335.object({
11315
+ var DTOForgeProjectFeatureListResponse = z336.object({
11270
11316
  features: DTOForgeProjectFeature.array()
11271
11317
  });
11272
- var DTOForgeProjectFeatureGetResponse = z335.object({
11318
+ var DTOForgeProjectFeatureGetResponse = z336.object({
11273
11319
  feature: DTOForgeProjectFeature
11274
11320
  });
11275
- var DTOForgeProjectFeatureCreateInput = z335.object({
11321
+ var DTOForgeProjectFeatureCreateInput = z336.object({
11276
11322
  id: Id,
11277
- name: z335.string().optional(),
11278
- description: z335.string(),
11323
+ name: z336.string().optional(),
11324
+ description: z336.string(),
11279
11325
  sectionId: Id.optional(),
11280
11326
  afterFeatureId: Id.nullable().optional(),
11281
11327
  initialMessage: DTOThreadMessageCreateInput
11282
11328
  });
11283
- var DTOForgeProjectFeatureUpdateInput = z335.object({
11329
+ var DTOForgeProjectFeatureUpdateInput = z336.object({
11284
11330
  id: Id,
11285
- name: z335.string().optional(),
11286
- description: z335.string().optional(),
11287
- isArchived: z335.boolean().optional(),
11331
+ name: z336.string().optional(),
11332
+ description: z336.string().optional(),
11333
+ isArchived: z336.boolean().optional(),
11288
11334
  status: ProjectFeatureStatus.optional(),
11289
11335
  /**
11290
11336
  * Sending null will result in feature unpublish
11291
11337
  */
11292
11338
  publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
11293
11339
  });
11294
- var DTOForgeProjectFeatureDeleteInput = z335.object({
11340
+ var DTOForgeProjectFeatureDeleteInput = z336.object({
11295
11341
  id: Id
11296
11342
  });
11297
- var DTOForgeProjectFeatureGetByIdParam = z335.object({
11343
+ var DTOForgeProjectFeatureGetByIdParam = z336.object({
11298
11344
  id: Id
11299
11345
  });
11300
- var DTOFeatureArtifactListQuery = z335.object({
11301
- messageId: z335.string().optional(),
11302
- iterationId: z335.string().optional()
11346
+ var DTOFeatureArtifactListQuery = z336.object({
11347
+ messageId: z336.string().optional(),
11348
+ iterationId: z336.string().optional()
11303
11349
  });
11304
11350
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
11305
11351
 
11306
11352
  // src/api/dto/forge/project-action.ts
11307
- var DTOForgeProjectActionFeatureCreate = z336.object({
11308
- type: z336.literal("FeatureCreate"),
11353
+ var DTOForgeProjectActionFeatureCreate = z337.object({
11354
+ type: z337.literal("FeatureCreate"),
11309
11355
  input: DTOForgeProjectFeatureCreateInput
11310
11356
  });
11311
- var DTOForgeProjectActionFeatureUpdate = z336.object({
11312
- type: z336.literal("FeatureUpdate"),
11357
+ var DTOForgeProjectActionFeatureUpdate = z337.object({
11358
+ type: z337.literal("FeatureUpdate"),
11313
11359
  input: DTOForgeProjectFeatureUpdateInput
11314
11360
  });
11315
- var DTOForgeProjectActionFeatureMove = z336.object({
11316
- type: z336.literal("FeatureMove"),
11361
+ var DTOForgeProjectActionFeatureMove = z337.object({
11362
+ type: z337.literal("FeatureMove"),
11317
11363
  input: DTOForgeProjectFeatureMoveInput
11318
11364
  });
11319
- var DTOForgeProjectActionFeatureDelete = z336.object({
11320
- type: z336.literal("FeatureDelete"),
11365
+ var DTOForgeProjectActionFeatureDelete = z337.object({
11366
+ type: z337.literal("FeatureDelete"),
11321
11367
  input: DTOForgeProjectFeatureDeleteInput
11322
11368
  });
11323
- var DTOForgeProjectActionArtifactCreate = z336.object({
11324
- type: z336.literal("ArtifactCreate"),
11369
+ var DTOForgeProjectActionArtifactCreate = z337.object({
11370
+ type: z337.literal("ArtifactCreate"),
11325
11371
  input: DTOForgeProjectArtifactCreateInput
11326
11372
  });
11327
- var DTOForgeProjectActionArtifactUpdate = z336.object({
11328
- type: z336.literal("ArtifactUpdate"),
11373
+ var DTOForgeProjectActionArtifactUpdate = z337.object({
11374
+ type: z337.literal("ArtifactUpdate"),
11329
11375
  input: DTOForgeProjectArtifactUpdateInput
11330
11376
  });
11331
- var DTOForgeProjectActionArtifactDelete = z336.object({
11332
- type: z336.literal("ArtifactDelete"),
11377
+ var DTOForgeProjectActionArtifactDelete = z337.object({
11378
+ type: z337.literal("ArtifactDelete"),
11333
11379
  input: DTOForgeProjectArtifactDeleteInput
11334
11380
  });
11335
- var DTOForgeProjectActionArtifactMove = z336.object({
11336
- type: z336.literal("ArtifactMove"),
11381
+ var DTOForgeProjectActionArtifactMove = z337.object({
11382
+ type: z337.literal("ArtifactMove"),
11337
11383
  input: DTOForgeProjectArtifactMoveInput
11338
11384
  });
11339
- var DTOForgeProjectActionSectionCreate = z336.object({
11340
- type: z336.literal("SectionCreate"),
11385
+ var DTOForgeProjectActionSectionCreate = z337.object({
11386
+ type: z337.literal("SectionCreate"),
11341
11387
  input: DTOForgeSectionCreateInput
11342
11388
  });
11343
- var DTOForgeProjectActionSectionUpdate = z336.object({
11344
- type: z336.literal("SectionUpdate"),
11389
+ var DTOForgeProjectActionSectionUpdate = z337.object({
11390
+ type: z337.literal("SectionUpdate"),
11345
11391
  input: DTOForgeSectionUpdateInput
11346
11392
  });
11347
- var DTOForgeProjectActionSectionDelete = z336.object({
11348
- type: z336.literal("SectionDelete"),
11393
+ var DTOForgeProjectActionSectionDelete = z337.object({
11394
+ type: z337.literal("SectionDelete"),
11349
11395
  input: DTOForgeSectionDeleteInput
11350
11396
  });
11351
- var DTOForgeProjectActionSectionMove = z336.object({
11352
- type: z336.literal("SectionMove"),
11397
+ var DTOForgeProjectActionSectionMove = z337.object({
11398
+ type: z337.literal("SectionMove"),
11353
11399
  input: DTOForgeSectionMoveInput
11354
11400
  });
11355
- var DTOForgeProjectAction = z336.discriminatedUnion("type", [
11401
+ var DTOForgeProjectAction = z337.discriminatedUnion("type", [
11356
11402
  //features
11357
11403
  DTOForgeProjectActionFeatureCreate,
11358
11404
  DTOForgeProjectActionFeatureUpdate,
@@ -11369,36 +11415,36 @@ var DTOForgeProjectAction = z336.discriminatedUnion("type", [
11369
11415
  DTOForgeProjectActionSectionDelete,
11370
11416
  DTOForgeProjectActionSectionMove
11371
11417
  ]).and(
11372
- z336.object({
11373
- tId: z336.string().optional()
11418
+ z337.object({
11419
+ tId: z337.string().optional()
11374
11420
  })
11375
11421
  );
11376
11422
 
11377
11423
  // src/api/dto/forge/project-artifact-room.ts
11378
- import { z as z337 } from "zod";
11379
- var DTOForgeProjectArtifactRoom = z337.object({
11380
- id: z337.string()
11424
+ import { z as z338 } from "zod";
11425
+ var DTOForgeProjectArtifactRoom = z338.object({
11426
+ id: z338.string()
11381
11427
  });
11382
- var DTOForgeProjectArtifactRoomResponse = z337.object({
11428
+ var DTOForgeProjectArtifactRoomResponse = z338.object({
11383
11429
  room: DTOForgeProjectArtifactRoom
11384
11430
  });
11385
11431
 
11386
11432
  // src/api/dto/forge/project-context-feedback.ts
11387
- import { z as z338 } from "zod";
11388
- var DTOForgeProjectContextFeedbackSentiment = z338.enum(["Positive", "Neutral", "Negative", "Aggressive"]);
11389
- var DTOForgeProjectContextFeedback = z338.object({
11390
- id: z338.string().uuid(),
11391
- contextId: z338.string(),
11392
- createdByUserId: z338.string(),
11393
- createdAt: z338.coerce.date(),
11394
- message: z338.string().describe("A concise human-readable summary of the feedback being collected."),
11395
- conversation: z338.array(z338.string()).describe("Ordered conversation excerpts that provide context for the feedback. Each item should be one message."),
11433
+ import { z as z339 } from "zod";
11434
+ var DTOForgeProjectContextFeedbackSentiment = z339.enum(["Positive", "Neutral", "Negative", "Aggressive"]);
11435
+ var DTOForgeProjectContextFeedback = z339.object({
11436
+ id: z339.string().uuid(),
11437
+ contextId: z339.string(),
11438
+ createdByUserId: z339.string(),
11439
+ createdAt: z339.coerce.date(),
11440
+ message: z339.string().describe("A concise human-readable summary of the feedback being collected."),
11441
+ conversation: z339.array(z339.string()).describe("Ordered conversation excerpts that provide context for the feedback. Each item should be one message."),
11396
11442
  sentiment: DTOForgeProjectContextFeedbackSentiment.describe(
11397
11443
  "Overall sentiment of the feedback. Use Positive, Neutral, Negative, or Aggressive."
11398
11444
  ),
11399
- llm: z338.object({
11400
- model: z338.string().describe("The LLM model name that generated or participated in the conversation."),
11401
- provider: z338.string().describe("The LLM provider name.")
11445
+ llm: z339.object({
11446
+ model: z339.string().describe("The LLM model name that generated or participated in the conversation."),
11447
+ provider: z339.string().describe("The LLM provider name.")
11402
11448
  }).describe("Information about the LLM associated with this feedback."),
11403
11449
  metadata: DTOObjectMetadata.optional()
11404
11450
  });
@@ -11409,40 +11455,40 @@ var DTOForgeProjectContextFeedbackCreatePayload = DTOForgeProjectContextFeedback
11409
11455
  metadata: true,
11410
11456
  llm: true
11411
11457
  });
11412
- var DTOForgeProjectContextFeedbackDeletePayload = z338.object({
11413
- id: z338.union([z338.string(), z338.array(z338.string())])
11458
+ var DTOForgeProjectContextFeedbackDeletePayload = z339.object({
11459
+ id: z339.union([z339.string(), z339.array(z339.string())])
11414
11460
  });
11415
- var DTOForgeProjectContextFeedbackResponse = z338.object({
11461
+ var DTOForgeProjectContextFeedbackResponse = z339.object({
11416
11462
  feedback: DTOForgeProjectContextFeedback
11417
11463
  });
11418
- var DTOForgeProjectContextFeedbackListResponse = z338.object({
11419
- feedback: z338.array(DTOForgeProjectContextFeedback)
11464
+ var DTOForgeProjectContextFeedbackListResponse = z339.object({
11465
+ feedback: z339.array(DTOForgeProjectContextFeedback)
11420
11466
  });
11421
- var DTOForgeProjectContextFeedbackDeleteResponse = z338.object({
11422
- ok: z338.literal(true)
11467
+ var DTOForgeProjectContextFeedbackDeleteResponse = z339.object({
11468
+ ok: z339.literal(true)
11423
11469
  });
11424
11470
 
11425
11471
  // src/api/dto/forge/project-context-override.ts
11426
- import z340 from "zod";
11472
+ import z341 from "zod";
11427
11473
 
11428
11474
  // src/api/dto/forge/project-context-v2.ts
11429
- import { z as z339 } from "zod";
11430
- var DTOForgeComponentSetTypeV2 = z339.enum(["Shadcn"]);
11431
- var DTOForgeComponentSet = z339.object({
11475
+ import { z as z340 } from "zod";
11476
+ var DTOForgeComponentSetTypeV2 = z340.enum(["Shadcn"]);
11477
+ var DTOForgeComponentSet = z340.object({
11432
11478
  type: DTOForgeComponentSetTypeV2
11433
11479
  });
11434
- var DTOForgeIconSetTypeV2 = z339.enum(["Phosphor", "Lucide", "Tabler"]);
11435
- var DTOForgeThemeKnownPreset = z339.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
11436
- var DTOForgeIconSet = z339.object({
11480
+ var DTOForgeIconSetTypeV2 = z340.enum(["Phosphor", "Lucide", "Tabler"]);
11481
+ var DTOForgeThemeKnownPreset = z340.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
11482
+ var DTOForgeIconSet = z340.object({
11437
11483
  type: DTOForgeIconSetTypeV2,
11438
- variant: z339.string().optional()
11484
+ variant: z340.string().optional()
11439
11485
  });
11440
- var DTOForgeTokenThemeSet = z339.object({
11441
- id: z339.string(),
11442
- name: z339.string(),
11443
- tokenThemeIds: z339.array(z339.string())
11486
+ var DTOForgeTokenThemeSet = z340.object({
11487
+ id: z340.string(),
11488
+ name: z340.string(),
11489
+ tokenThemeIds: z340.array(z340.string())
11444
11490
  });
11445
- var DTOForgeProjectTheme = z339.object({
11491
+ var DTOForgeProjectTheme = z340.object({
11446
11492
  // Colors
11447
11493
  background: ColorTokenData,
11448
11494
  foreground: ColorTokenData,
@@ -11527,29 +11573,29 @@ var DTOForgeProjectTheme = z339.object({
11527
11573
  shadowXl: ShadowTokenData,
11528
11574
  shadow2xl: ShadowTokenData
11529
11575
  });
11530
- var DTOForgeProjectContextV2 = z339.object({
11531
- id: z339.string(),
11532
- name: z339.string(),
11533
- workspaceId: z339.string(),
11534
- designSystemId: z339.string().optional(),
11535
- brandId: z339.string().optional(),
11536
- defaultTokenThemeSetId: z339.string().optional(),
11537
- description: z339.string().optional(),
11538
- productContext: z339.string().optional(),
11539
- additionalContext: z339.string().optional(),
11540
- isArchived: z339.boolean(),
11541
- themePreset: z339.string().optional(),
11542
- tokenThemeSets: z339.array(DTOForgeTokenThemeSet).optional(),
11576
+ var DTOForgeProjectContextV2 = z340.object({
11577
+ id: z340.string(),
11578
+ name: z340.string(),
11579
+ workspaceId: z340.string(),
11580
+ designSystemId: z340.string().optional(),
11581
+ brandId: z340.string().optional(),
11582
+ defaultTokenThemeSetId: z340.string().optional(),
11583
+ description: z340.string().optional(),
11584
+ productContext: z340.string().optional(),
11585
+ additionalContext: z340.string().optional(),
11586
+ isArchived: z340.boolean(),
11587
+ themePreset: z340.string().optional(),
11588
+ tokenThemeSets: z340.array(DTOForgeTokenThemeSet).optional(),
11543
11589
  metadata: DTOObjectMetadata.optional(),
11544
11590
  componentSet: DTOForgeComponentSet,
11545
11591
  iconSet: DTOForgeIconSet,
11546
11592
  theme: DTOForgeProjectTheme,
11547
- createdAt: z339.coerce.date(),
11548
- updatedAt: z339.coerce.date(),
11593
+ createdAt: z340.coerce.date(),
11594
+ updatedAt: z340.coerce.date(),
11549
11595
  thumbnail: DTOFileReference.optional(),
11550
- sandboxTemplate: z339.object({
11551
- id: z339.string(),
11552
- version: z339.string()
11596
+ sandboxTemplate: z340.object({
11597
+ id: z340.string(),
11598
+ version: z340.string()
11553
11599
  }).optional()
11554
11600
  });
11555
11601
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
@@ -11559,7 +11605,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
11559
11605
  isArchived: true,
11560
11606
  thumbnail: true
11561
11607
  }).extend({
11562
- thumbnailFileId: z339.string().optional(),
11608
+ thumbnailFileId: z340.string().optional(),
11563
11609
  theme: DTOForgeProjectTheme.optional(),
11564
11610
  iconSet: DTOForgeIconSet.optional(),
11565
11611
  componentSet: DTOForgeComponentSet.optional()
@@ -11568,7 +11614,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
11568
11614
  const hasCustomTemplateFields = input.sandboxTemplate;
11569
11615
  if (hasDefaultTemplateFields || hasCustomTemplateFields) return;
11570
11616
  ctx.addIssue({
11571
- code: z339.ZodIssueCode.custom,
11617
+ code: z340.ZodIssueCode.custom,
11572
11618
  message: "Either the setup fields for default template (theme, iconSet, componentSet) or a sandbox template field (sandboxTemplate) must be provided.",
11573
11619
  path: ["theme", "iconSet", "componentSet", "sandboxTemplate"]
11574
11620
  });
@@ -11580,60 +11626,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
11580
11626
  updatedAt: true,
11581
11627
  thumbnail: true
11582
11628
  }).partial().extend({
11583
- thumbnailFileId: z339.string().nullish()
11629
+ thumbnailFileId: z340.string().nullish()
11584
11630
  });
11585
- var DTOForgeProjectContextResponseV2 = z339.object({ context: DTOForgeProjectContextV2 });
11586
- var DTOForgeProjectContextListQueryV2 = z339.object({
11587
- workspaceId: z339.string(),
11631
+ var DTOForgeProjectContextResponseV2 = z340.object({ context: DTOForgeProjectContextV2 });
11632
+ var DTOForgeProjectContextListQueryV2 = z340.object({
11633
+ workspaceId: z340.string(),
11588
11634
  isArchived: zodQueryBoolean()
11589
11635
  });
11590
- var DTOForgeProjectContextListResponseV2 = z339.object({ contexts: z339.array(DTOForgeProjectContextV2) });
11636
+ var DTOForgeProjectContextListResponseV2 = z340.object({ contexts: z340.array(DTOForgeProjectContextV2) });
11591
11637
 
11592
11638
  // src/api/dto/forge/project-context-override.ts
11593
- var DTOProjectContextOverride = z340.object({
11594
- projectId: z340.string(),
11639
+ var DTOProjectContextOverride = z341.object({
11640
+ projectId: z341.string(),
11595
11641
  theme: DTOForgeProjectTheme.partial(),
11596
- themePreset: z340.string().optional()
11642
+ themePreset: z341.string().optional()
11597
11643
  });
11598
- var DTOProjectContextOverrideInput = z340.object({
11599
- updateSharedContext: z340.boolean().optional(),
11644
+ var DTOProjectContextOverrideInput = z341.object({
11645
+ updateSharedContext: z341.boolean().optional(),
11600
11646
  theme: DTOForgeProjectTheme.partial(),
11601
- themePreset: z340.string().optional()
11647
+ themePreset: z341.string().optional()
11602
11648
  });
11603
- var DTOProjectContextOverrideResponse = z340.object({
11649
+ var DTOProjectContextOverrideResponse = z341.object({
11604
11650
  override: DTOProjectContextOverride,
11605
11651
  originalContext: DTOForgeProjectContextV2,
11606
11652
  resolvedContext: DTOForgeProjectContextV2
11607
11653
  });
11608
11654
 
11609
11655
  // src/api/dto/forge/project-context.ts
11610
- import { z as z341 } from "zod";
11611
- var DTOForgeProjectContext = z341.object({
11612
- definition: z341.string(),
11613
- dependencies: z341.array(
11614
- z341.object({
11615
- packageName: z341.string(),
11616
- type: z341.literal("npm"),
11617
- version: z341.string().default("latest")
11656
+ import { z as z342 } from "zod";
11657
+ var DTOForgeProjectContext = z342.object({
11658
+ definition: z342.string(),
11659
+ dependencies: z342.array(
11660
+ z342.object({
11661
+ packageName: z342.string(),
11662
+ type: z342.literal("npm"),
11663
+ version: z342.string().default("latest")
11618
11664
  })
11619
11665
  ),
11620
- designSystemId: z341.string(),
11621
- id: z341.string(),
11622
- meta: z341.object({
11623
- name: z341.string(),
11624
- description: z341.string().optional()
11666
+ designSystemId: z342.string(),
11667
+ id: z342.string(),
11668
+ meta: z342.object({
11669
+ name: z342.string(),
11670
+ description: z342.string().optional()
11625
11671
  }),
11626
- name: z341.string(),
11672
+ name: z342.string(),
11627
11673
  npmProxySettings: DTONpmRegistryConfig.optional(),
11628
- platform: z341.enum(["React", "Vue", "Angular"]),
11629
- styling: z341.enum(["CSS", "Tailwind"]),
11630
- tailwindConfig: z341.object({
11631
- content: z341.string(),
11632
- version: z341.string()
11674
+ platform: z342.enum(["React", "Vue", "Angular"]),
11675
+ styling: z342.enum(["CSS", "Tailwind"]),
11676
+ tailwindConfig: z342.object({
11677
+ content: z342.string(),
11678
+ version: z342.string()
11633
11679
  }).optional(),
11634
- createdAt: z341.coerce.date(),
11635
- updatedAt: z341.coerce.date(),
11636
- workspaceId: z341.string()
11680
+ createdAt: z342.coerce.date(),
11681
+ updatedAt: z342.coerce.date(),
11682
+ workspaceId: z342.string()
11637
11683
  });
11638
11684
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
11639
11685
  definition: true,
@@ -11645,13 +11691,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
11645
11691
  tailwindConfig: true,
11646
11692
  styling: true
11647
11693
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
11648
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z341.string() });
11649
- var DTOForgeProjectContextGetResponse = z341.object({ context: DTOForgeProjectContext });
11650
- var DTOForgeProjectContextListResponse = z341.object({ contexts: z341.array(DTOForgeProjectContext) });
11651
- var DTOForgeProjectContextCreateResponse = z341.object({ context: DTOForgeProjectContext });
11652
- var DTOForgeProjectContextUpdateResponse = z341.object({ context: DTOForgeProjectContext });
11653
- var DTOForgeProjectContextRemoveResponse = z341.object({
11654
- ok: z341.literal(true)
11694
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z342.string() });
11695
+ var DTOForgeProjectContextGetResponse = z342.object({ context: DTOForgeProjectContext });
11696
+ var DTOForgeProjectContextListResponse = z342.object({ contexts: z342.array(DTOForgeProjectContext) });
11697
+ var DTOForgeProjectContextCreateResponse = z342.object({ context: DTOForgeProjectContext });
11698
+ var DTOForgeProjectContextUpdateResponse = z342.object({ context: DTOForgeProjectContext });
11699
+ var DTOForgeProjectContextRemoveResponse = z342.object({
11700
+ ok: z342.literal(true)
11655
11701
  });
11656
11702
 
11657
11703
  // src/api/dto/forge/project-figma-node.ts
@@ -11659,42 +11705,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
11659
11705
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
11660
11706
 
11661
11707
  // src/api/dto/forge/project-file.ts
11662
- import { z as z342 } from "zod";
11663
- var DTOForgeProjectFile = z342.object({
11664
- id: z342.string(),
11665
- name: z342.string(),
11666
- checksum: z342.string(),
11667
- pendingUpload: z342.boolean().optional(),
11668
- url: z342.string(),
11669
- size: z342.number()
11670
- });
11671
- var DTOForgeProjectFileListResponse = z342.object({
11672
- files: z342.array(DTOForgeProjectFile)
11673
- });
11674
- var DTOForgeProjectFileUploadPayloadItem = z342.object({
11675
- size: z342.number(),
11676
- name: z342.string(),
11677
- checksum: z342.string()
11678
- });
11679
- var DTOForgeProjectFileUploadPayload = z342.object({
11680
- files: z342.array(DTOForgeProjectFileUploadPayloadItem)
11681
- });
11682
- var DTOForgeProjectFileUploadResponse = z342.object({
11683
- files: z342.array(DTOForgeProjectFile),
11684
- uploadUrls: z342.array(
11685
- z342.object({
11686
- fileId: z342.string(),
11687
- uploadUrl: z342.string()
11708
+ import { z as z343 } from "zod";
11709
+ var DTOForgeProjectFile = z343.object({
11710
+ id: z343.string(),
11711
+ name: z343.string(),
11712
+ checksum: z343.string(),
11713
+ pendingUpload: z343.boolean().optional(),
11714
+ url: z343.string(),
11715
+ size: z343.number()
11716
+ });
11717
+ var DTOForgeProjectFileListResponse = z343.object({
11718
+ files: z343.array(DTOForgeProjectFile)
11719
+ });
11720
+ var DTOForgeProjectFileUploadPayloadItem = z343.object({
11721
+ size: z343.number(),
11722
+ name: z343.string(),
11723
+ checksum: z343.string()
11724
+ });
11725
+ var DTOForgeProjectFileUploadPayload = z343.object({
11726
+ files: z343.array(DTOForgeProjectFileUploadPayloadItem)
11727
+ });
11728
+ var DTOForgeProjectFileUploadResponse = z343.object({
11729
+ files: z343.array(DTOForgeProjectFile),
11730
+ uploadUrls: z343.array(
11731
+ z343.object({
11732
+ fileId: z343.string(),
11733
+ uploadUrl: z343.string()
11688
11734
  })
11689
11735
  )
11690
11736
  });
11691
- var DTOForgeProjectFileUploadFinalizePayload = z342.object({
11692
- fileIds: z342.array(z342.string())
11737
+ var DTOForgeProjectFileUploadFinalizePayload = z343.object({
11738
+ fileIds: z343.array(z343.string())
11693
11739
  });
11694
- var DTOForgeProjectFileUploadFinalizeResponse = z342.object({ ok: z342.literal(true) });
11740
+ var DTOForgeProjectFileUploadFinalizeResponse = z343.object({ ok: z343.literal(true) });
11695
11741
 
11696
11742
  // src/api/dto/forge/project-invitation.ts
11697
- import { z as z343 } from "zod";
11743
+ import { z as z344 } from "zod";
11698
11744
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
11699
11745
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
11700
11746
  email: true,
@@ -11704,24 +11750,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
11704
11750
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
11705
11751
  email: true
11706
11752
  });
11707
- var DTOForgeProjectInvitationsListResponse = z343.object({
11708
- invitations: z343.array(DTOForgeProjectInvitation)
11753
+ var DTOForgeProjectInvitationsListResponse = z344.object({
11754
+ invitations: z344.array(DTOForgeProjectInvitation)
11709
11755
  });
11710
- var DTOForgeProjectInvitationGetResponse = z343.object({
11756
+ var DTOForgeProjectInvitationGetResponse = z344.object({
11711
11757
  invitation: DTOForgeProjectInvitation
11712
11758
  });
11713
- var DTOForgeProjectInvitationCreateResponse = z343.object({
11759
+ var DTOForgeProjectInvitationCreateResponse = z344.object({
11714
11760
  invitation: DTOForgeProjectInvitation
11715
11761
  });
11716
- var DTOForgeProjectInvitationUpdateResponse = z343.object({
11762
+ var DTOForgeProjectInvitationUpdateResponse = z344.object({
11717
11763
  invitation: DTOForgeProjectInvitation.nullable()
11718
11764
  });
11719
- var DTOForgeProjectInvitationRemoveResponse = z343.object({
11720
- ok: z343.literal(true)
11765
+ var DTOForgeProjectInvitationRemoveResponse = z344.object({
11766
+ ok: z344.literal(true)
11721
11767
  });
11722
11768
 
11723
11769
  // src/api/dto/forge/project-iteration-old.ts
11724
- import { z as z344 } from "zod";
11770
+ import { z as z345 } from "zod";
11725
11771
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
11726
11772
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
11727
11773
  artifacts: true,
@@ -11732,7 +11778,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
11732
11778
  messages: DTOForgeIterationMessage.array(),
11733
11779
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
11734
11780
  });
11735
- var DTOGetForgeProjectIterationResponse = z344.object({
11781
+ var DTOGetForgeProjectIterationResponse = z345.object({
11736
11782
  iteration: DTOForgeProjectIteration.nullable()
11737
11783
  });
11738
11784
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -11742,20 +11788,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
11742
11788
  mergeMeta: true,
11743
11789
  createdAt: true
11744
11790
  });
11745
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z344.string() });
11746
- var DTOCreateForgeProjectIterationResponse = z344.object({
11791
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z345.string() });
11792
+ var DTOCreateForgeProjectIterationResponse = z345.object({
11747
11793
  iteration: DTOForgeProjectIteration
11748
11794
  });
11749
- var DTOUpdateForgeProjectIterationResponse = z344.object({
11795
+ var DTOUpdateForgeProjectIterationResponse = z345.object({
11750
11796
  iteration: DTOForgeProjectIteration.nullable()
11751
11797
  });
11752
- var DTODeleteForgeProjectIterationResponse = z344.object({
11753
- ok: z344.literal(true)
11798
+ var DTODeleteForgeProjectIterationResponse = z345.object({
11799
+ ok: z345.literal(true)
11754
11800
  });
11755
- var DTOForgeProjectIterationListResponse = z344.object({ iterations: z344.array(DTOForgeProjectIteration) });
11801
+ var DTOForgeProjectIterationListResponse = z345.object({ iterations: z345.array(DTOForgeProjectIteration) });
11756
11802
 
11757
11803
  // src/api/dto/forge/project-member.ts
11758
- import { z as z345 } from "zod";
11804
+ import { z as z346 } from "zod";
11759
11805
 
11760
11806
  // src/utils/figma.ts
11761
11807
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
@@ -11938,7 +11984,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
11938
11984
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
11939
11985
  user: DTOUser,
11940
11986
  effectiveRole: DTOForgeProjectMemberRole,
11941
- isDeactivated: z345.boolean()
11987
+ isDeactivated: z346.boolean()
11942
11988
  });
11943
11989
  var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
11944
11990
  userId: true,
@@ -11948,80 +11994,80 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
11948
11994
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
11949
11995
  userId: true
11950
11996
  });
11951
- var DTOForgeProjectMemberListQuery = z345.object({
11997
+ var DTOForgeProjectMemberListQuery = z346.object({
11952
11998
  includeImplicitMembers: zodQueryBoolean().optional()
11953
11999
  });
11954
- var DTOForgeProjectMembersListResponse = z345.object({
11955
- members: z345.array(DTOForgeProjectMember),
11956
- invitations: z345.array(DTOForgeProjectInvitation)
12000
+ var DTOForgeProjectMembersListResponse = z346.object({
12001
+ members: z346.array(DTOForgeProjectMember),
12002
+ invitations: z346.array(DTOForgeProjectInvitation)
11957
12003
  });
11958
- var DTOForgeProjectMemberGetResponse = z345.object({
12004
+ var DTOForgeProjectMemberGetResponse = z346.object({
11959
12005
  member: DTOForgeProjectMember
11960
12006
  });
11961
- var DTOForgeProjectMemberCreateResponse = z345.object({
12007
+ var DTOForgeProjectMemberCreateResponse = z346.object({
11962
12008
  member: DTOForgeProjectMember
11963
12009
  });
11964
- var DTOForgeProjectMemberUpdateResponse = z345.object({
12010
+ var DTOForgeProjectMemberUpdateResponse = z346.object({
11965
12011
  member: DTOForgeProjectMember.nullable()
11966
12012
  });
11967
- var DTOForgeProjectMemberRemoveResponse = z345.object({
11968
- ok: z345.literal(true)
12013
+ var DTOForgeProjectMemberRemoveResponse = z346.object({
12014
+ ok: z346.literal(true)
11969
12015
  });
11970
- var DTOAddMembersToForgeProject = z345.object({
12016
+ var DTOAddMembersToForgeProject = z346.object({
11971
12017
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
11972
- featureId: z345.string().optional()
12018
+ featureId: z346.string().optional()
11973
12019
  });
11974
12020
 
11975
12021
  // src/api/dto/forge/project-room.ts
11976
- import { z as z346 } from "zod";
11977
- var DTOForgeProjectRoom = z346.object({
11978
- id: z346.string()
12022
+ import { z as z347 } from "zod";
12023
+ var DTOForgeProjectRoom = z347.object({
12024
+ id: z347.string()
11979
12025
  });
11980
- var DTOForgeProjectRoomResponse = z346.object({
12026
+ var DTOForgeProjectRoomResponse = z347.object({
11981
12027
  room: DTOForgeProjectRoom
11982
12028
  });
11983
12029
 
11984
12030
  // src/api/dto/forge/project.ts
11985
- import { z as z347 } from "zod";
12031
+ import { z as z348 } from "zod";
11986
12032
  var DTOForgeProjectRole = ForgeProjectRole;
11987
12033
  var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
11988
12034
  var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
11989
- var DTOForgeProjectDocumentPreview = z347.object({
11990
- id: z347.string(),
11991
- title: z347.string(),
12035
+ var DTOForgeProjectDocumentPreview = z348.object({
12036
+ id: z348.string(),
12037
+ title: z348.string(),
11992
12038
  thumbnail: DTOFileReference.optional(),
11993
- createdAt: z347.string(),
11994
- updatedAt: z347.string()
12039
+ createdAt: z348.string(),
12040
+ updatedAt: z348.string()
11995
12041
  });
11996
- var DTOForgeProjectFeaturePreview = z347.object({
11997
- id: z347.string(),
11998
- name: z347.string(),
12042
+ var DTOForgeProjectFeaturePreview = z348.object({
12043
+ id: z348.string(),
12044
+ name: z348.string(),
11999
12045
  thumbnail: DTOFileReference.optional(),
12000
- isPublished: z347.boolean().optional(),
12001
- isArchived: z347.boolean().optional(),
12002
- createdAt: z347.string(),
12003
- updatedAt: z347.string()
12004
- });
12005
- var DTOForgeProject = z347.object({
12006
- id: z347.string(),
12007
- workspaceId: z347.string(),
12008
- projectContextId: z347.string(),
12009
- name: z347.string(),
12010
- description: z347.string().optional(),
12011
- instruction: z347.string().nullable(),
12012
- tags: z347.array(z347.string()).default([]),
12046
+ isPublished: z348.boolean().optional(),
12047
+ isArchived: z348.boolean().optional(),
12048
+ createdAt: z348.string(),
12049
+ updatedAt: z348.string()
12050
+ });
12051
+ var DTOForgeProject = z348.object({
12052
+ id: z348.string(),
12053
+ workspaceId: z348.string(),
12054
+ projectContextId: z348.string(),
12055
+ name: z348.string(),
12056
+ description: z348.string().optional(),
12057
+ instruction: z348.string().nullable(),
12058
+ tags: z348.array(z348.string()).default([]),
12013
12059
  accessMode: DTOForgeProjectAccessMode,
12014
12060
  defaultRole: DTOForgeProjectDefaultRole,
12015
- isArchived: z347.boolean(),
12016
- emoji: z347.string().optional(),
12017
- tokenThemeSetId: z347.string().optional(),
12018
- createdAt: z347.coerce.date(),
12019
- createdByUserId: z347.string().optional(),
12020
- lastUserActivityAt: z347.coerce.date().optional(),
12021
- updatedAt: z347.coerce.date(),
12061
+ isArchived: z348.boolean(),
12062
+ emoji: z348.string().optional(),
12063
+ tokenThemeSetId: z348.string().optional(),
12064
+ createdAt: z348.coerce.date(),
12065
+ createdByUserId: z348.string().optional(),
12066
+ lastUserActivityAt: z348.coerce.date().optional(),
12067
+ updatedAt: z348.coerce.date(),
12022
12068
  documents: DTOForgeProjectDocumentPreview.array(),
12023
12069
  features: DTOForgeProjectFeaturePreview.array(),
12024
- liveblocksRoomId: z347.string().optional()
12070
+ liveblocksRoomId: z348.string().optional()
12025
12071
  });
12026
12072
  var DTOForgeProjectCreate = DTOForgeProject.pick({
12027
12073
  name: true,
@@ -12031,7 +12077,7 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
12031
12077
  emoji: true,
12032
12078
  tokenThemeSetId: true
12033
12079
  }).extend({
12034
- projectContextId: z347.string().optional(),
12080
+ projectContextId: z348.string().optional(),
12035
12081
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
12036
12082
  initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
12037
12083
  initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
@@ -12039,136 +12085,136 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
12039
12085
  defaultRole: DTOForgeProjectDefaultRole.optional()
12040
12086
  });
12041
12087
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
12042
- id: z347.string(),
12043
- isArchived: z347.boolean().optional()
12088
+ id: z348.string(),
12089
+ isArchived: z348.boolean().optional()
12044
12090
  });
12045
- var DTOForgeProjectListResponse = z347.object({
12046
- projects: z347.array(
12091
+ var DTOForgeProjectListResponse = z348.object({
12092
+ projects: z348.array(
12047
12093
  DTOForgeProject.extend({
12048
12094
  effectiveRole: DTOForgeProjectRole
12049
12095
  })
12050
12096
  )
12051
12097
  });
12052
- var DTOForgeProjectResponse = z347.object({
12098
+ var DTOForgeProjectResponse = z348.object({
12053
12099
  project: DTOForgeProject.extend({
12054
12100
  effectiveRole: DTOForgeProjectRole
12055
12101
  })
12056
12102
  });
12057
12103
 
12058
12104
  // src/api/dto/forge/relation.ts
12059
- import z348 from "zod";
12105
+ import z349 from "zod";
12060
12106
  var DTOForgeRelationType = ForgeRelationType;
12061
12107
  var DTOForgeRelation = ForgeRelation;
12062
12108
  var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
12063
- var DTOForgeRelationDelete = z348.object({
12064
- sourceItemId: z348.string().uuid(),
12065
- targetItemId: z348.string().uuid()
12109
+ var DTOForgeRelationDelete = z349.object({
12110
+ sourceItemId: z349.string().uuid(),
12111
+ targetItemId: z349.string().uuid()
12066
12112
  });
12067
- var DTOForgeRelationListInput = z348.object({
12068
- projectId: z348.string()
12113
+ var DTOForgeRelationListInput = z349.object({
12114
+ projectId: z349.string()
12069
12115
  });
12070
- var DTOForgeRelationListResponse = z348.object({
12071
- relations: z348.array(DTOForgeRelation)
12116
+ var DTOForgeRelationListResponse = z349.object({
12117
+ relations: z349.array(DTOForgeRelation)
12072
12118
  });
12073
- var DTOForgeEntity = z348.object({
12074
- id: z348.string().uuid(),
12119
+ var DTOForgeEntity = z349.object({
12120
+ id: z349.string().uuid(),
12075
12121
  type: DTOForgeRelationType
12076
12122
  });
12077
12123
 
12078
12124
  // src/api/dto/forge/threads.ts
12079
- import { z as z349 } from "zod";
12125
+ import { z as z350 } from "zod";
12080
12126
  var DTOForgeChatMessage = ForgeChatMessage;
12081
12127
  var DTOForgeChatThread = ForgeChatThread;
12082
12128
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
12083
12129
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
12084
- var DTOForgeChatThreadCreateInput = z349.object({
12085
- title: z349.string().optional()
12130
+ var DTOForgeChatThreadCreateInput = z350.object({
12131
+ title: z350.string().optional()
12086
12132
  });
12087
- var DTOForgeChatThreadCreateResponse = z349.object({
12133
+ var DTOForgeChatThreadCreateResponse = z350.object({
12088
12134
  thread: DTOForgeChatThread
12089
12135
  });
12090
- var DTOForgeChatThreadUpdateInput = z349.object({
12091
- title: z349.string()
12136
+ var DTOForgeChatThreadUpdateInput = z350.object({
12137
+ title: z350.string()
12092
12138
  });
12093
- var DTOForgeChatThreadUpdateResponse = z349.object({
12139
+ var DTOForgeChatThreadUpdateResponse = z350.object({
12094
12140
  thread: DTOForgeChatThread
12095
12141
  });
12096
- var DTOForgeChatThreadDeleteResponse = z349.object({
12097
- success: z349.boolean()
12142
+ var DTOForgeChatThreadDeleteResponse = z350.object({
12143
+ success: z350.boolean()
12098
12144
  });
12099
- var DTOForgeChatThreadListQuery = z349.object({
12100
- limit: z349.number().optional(),
12101
- offset: z349.number().optional()
12145
+ var DTOForgeChatThreadListQuery = z350.object({
12146
+ limit: z350.number().optional(),
12147
+ offset: z350.number().optional()
12102
12148
  });
12103
- var DTOForgeChatThreadListResponse = z349.object({
12104
- threads: z349.array(DTOForgeChatThread),
12105
- pagination: z349.object({
12106
- offset: z349.number(),
12107
- limit: z349.number(),
12108
- total: z349.number()
12149
+ var DTOForgeChatThreadListResponse = z350.object({
12150
+ threads: z350.array(DTOForgeChatThread),
12151
+ pagination: z350.object({
12152
+ offset: z350.number(),
12153
+ limit: z350.number(),
12154
+ total: z350.number()
12109
12155
  })
12110
12156
  });
12111
- var DTOForgeChatMessageCreateInput = z349.object({
12112
- payload: z349.string(),
12157
+ var DTOForgeChatMessageCreateInput = z350.object({
12158
+ payload: z350.string(),
12113
12159
  sender: DTOForgeChatMessageSender.optional()
12114
12160
  });
12115
- var DTOForgeChatMessageCreateResponse = z349.object({
12161
+ var DTOForgeChatMessageCreateResponse = z350.object({
12116
12162
  message: DTOForgeChatMessage
12117
12163
  });
12118
- var DTOForgeChatMessageListQuery = z349.object({
12119
- limit: z349.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
12120
- offset: z349.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
12164
+ var DTOForgeChatMessageListQuery = z350.object({
12165
+ limit: z350.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
12166
+ offset: z350.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
12121
12167
  });
12122
- var DTOForgeChatMessageListResponse = z349.object({
12123
- messages: z349.array(DTOForgeChatMessage),
12124
- totalCount: z349.number(),
12125
- hasMore: z349.boolean()
12168
+ var DTOForgeChatMessageListResponse = z350.object({
12169
+ messages: z350.array(DTOForgeChatMessage),
12170
+ totalCount: z350.number(),
12171
+ hasMore: z350.boolean()
12126
12172
  });
12127
- var DTOForgeChatExportResponse = z349.object({
12128
- csvDownloadUrl: z349.string().nullable()
12173
+ var DTOForgeChatExportResponse = z350.object({
12174
+ csvDownloadUrl: z350.string().nullable()
12129
12175
  });
12130
- var DTOForgeChatMessageScoreInput = z349.object({
12131
- messageId: z349.string(),
12132
- name: z349.string(),
12133
- value: z349.number(),
12134
- categoryName: z349.string().optional(),
12135
- reason: z349.string().optional()
12176
+ var DTOForgeChatMessageScoreInput = z350.object({
12177
+ messageId: z350.string(),
12178
+ name: z350.string(),
12179
+ value: z350.number(),
12180
+ categoryName: z350.string().optional(),
12181
+ reason: z350.string().optional()
12136
12182
  });
12137
- var DTOForgeChatMessageTagInput = z349.object({
12138
- messageId: z349.string(),
12139
- tags: z349.array(z349.string())
12183
+ var DTOForgeChatMessageTagInput = z350.object({
12184
+ messageId: z350.string(),
12185
+ tags: z350.array(z350.string())
12140
12186
  });
12141
- var DTOForgeChatMessageScoreRequest = z349.object({
12187
+ var DTOForgeChatMessageScoreRequest = z350.object({
12142
12188
  scores: DTOForgeChatMessageScoreInput.array(),
12143
12189
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
12144
12190
  });
12145
12191
 
12146
12192
  // src/api/dto/events/forge-project.ts
12147
- var DTOForgeProjectMembersCreated = z350.object({
12148
- type: z350.literal("ProjectMembersCreated"),
12149
- data: z350.array(DTOForgeProjectMember)
12193
+ var DTOForgeProjectMembersCreated = z351.object({
12194
+ type: z351.literal("ProjectMembersCreated"),
12195
+ data: z351.array(DTOForgeProjectMember)
12150
12196
  });
12151
- var DTOForgeProjectMemberUpdated = z350.object({
12152
- type: z350.literal("ProjectMemberUpdated"),
12197
+ var DTOForgeProjectMemberUpdated = z351.object({
12198
+ type: z351.literal("ProjectMemberUpdated"),
12153
12199
  data: DTOForgeProjectMember
12154
12200
  });
12155
- var DTOForgeProjectMemberDeleted = z350.object({
12156
- type: z350.literal("ProjectMemberDeleted"),
12201
+ var DTOForgeProjectMemberDeleted = z351.object({
12202
+ type: z351.literal("ProjectMemberDeleted"),
12157
12203
  data: DTOForgeProjectMember.pick({ userId: true })
12158
12204
  });
12159
- var DTOForgeProjectIterationTagSet = z350.object({
12160
- type: z350.literal("ProjectIterationTagSet"),
12205
+ var DTOForgeProjectIterationTagSet = z351.object({
12206
+ type: z351.literal("ProjectIterationTagSet"),
12161
12207
  data: DTOFeatureIterationTag
12162
12208
  });
12163
- var DTOForgeProjectFeatureSandboxUpdated = z350.object({
12164
- type: z350.literal("ProjectFeatureSandboxUpdated"),
12209
+ var DTOForgeProjectFeatureSandboxUpdated = z351.object({
12210
+ type: z351.literal("ProjectFeatureSandboxUpdated"),
12165
12211
  data: DTOFeatureSandbox
12166
12212
  });
12167
- var DTOForgeProjectIterationUpdated = z350.object({
12168
- type: z350.literal("ProjectIterationUpdated"),
12213
+ var DTOForgeProjectIterationUpdated = z351.object({
12214
+ type: z351.literal("ProjectIterationUpdated"),
12169
12215
  data: DTOFeatureIteration.extend({ featureId: Id })
12170
12216
  });
12171
- var DTOForgeProjectRoomEvent = z350.discriminatedUnion("type", [
12217
+ var DTOForgeProjectRoomEvent = z351.discriminatedUnion("type", [
12172
12218
  DTOForgeProjectMembersCreated,
12173
12219
  DTOForgeProjectMemberUpdated,
12174
12220
  DTOForgeProjectMemberDeleted,
@@ -12178,54 +12224,54 @@ var DTOForgeProjectRoomEvent = z350.discriminatedUnion("type", [
12178
12224
  ]);
12179
12225
 
12180
12226
  // src/api/dto/events/workspace.ts
12181
- import z351 from "zod";
12182
- var DTOForgeProjectCreated = z351.object({
12183
- type: z351.literal("ProjectCreated"),
12184
- data: z351.object({ id: z351.string() })
12227
+ import z352 from "zod";
12228
+ var DTOForgeProjectCreated = z352.object({
12229
+ type: z352.literal("ProjectCreated"),
12230
+ data: z352.object({ id: z352.string() })
12185
12231
  });
12186
- var DTOForgeProjectUpdated = z351.object({
12187
- type: z351.literal("ProjectUpdated"),
12188
- data: z351.object({ id: z351.string() })
12232
+ var DTOForgeProjectUpdated = z352.object({
12233
+ type: z352.literal("ProjectUpdated"),
12234
+ data: z352.object({ id: z352.string() })
12189
12235
  });
12190
- var DTOForgeProjectContextCreated = z351.object({
12191
- type: z351.literal("ProjectContextCreated"),
12236
+ var DTOForgeProjectContextCreated = z352.object({
12237
+ type: z352.literal("ProjectContextCreated"),
12192
12238
  data: DTOForgeProjectContextV2
12193
12239
  });
12194
- var DTOForgeProjectContextUpdated = z351.object({
12195
- type: z351.literal("ProjectContextUpdated"),
12240
+ var DTOForgeProjectContextUpdated = z352.object({
12241
+ type: z352.literal("ProjectContextUpdated"),
12196
12242
  data: DTOForgeProjectContextV2
12197
12243
  });
12198
- var DTOForgeProjectContextDeleted = z351.object({
12199
- type: z351.literal("ProjectContextDeleted"),
12244
+ var DTOForgeProjectContextDeleted = z352.object({
12245
+ type: z352.literal("ProjectContextDeleted"),
12200
12246
  data: DTOForgeProjectContextV2.pick({ id: true })
12201
12247
  });
12202
- var DTOSandboxTemplateVersionCreated = z351.object({
12203
- type: z351.literal("SandboxTemplateVersionCreated"),
12204
- data: z351.object({
12205
- templateId: z351.string(),
12206
- version: z351.string(),
12207
- designSystemId: z351.string()
12248
+ var DTOSandboxTemplateVersionCreated = z352.object({
12249
+ type: z352.literal("SandboxTemplateVersionCreated"),
12250
+ data: z352.object({
12251
+ templateId: z352.string(),
12252
+ version: z352.string(),
12253
+ designSystemId: z352.string()
12208
12254
  })
12209
12255
  });
12210
- var DTOSandboxTemplateBuildCreated = z351.object({
12211
- type: z351.literal("SandboxTemplateBuildCreated"),
12212
- data: z351.object({
12213
- buildId: z351.string(),
12214
- templateId: z351.string().optional()
12256
+ var DTOSandboxTemplateBuildCreated = z352.object({
12257
+ type: z352.literal("SandboxTemplateBuildCreated"),
12258
+ data: z352.object({
12259
+ buildId: z352.string(),
12260
+ templateId: z352.string().optional()
12215
12261
  })
12216
12262
  });
12217
- var DTOSandboxTemplateBuildFinished = z351.object({
12218
- type: z351.literal("SandboxTemplateBuildFinished"),
12219
- data: z351.object({
12220
- buildId: z351.string(),
12221
- templateId: z351.string().optional()
12263
+ var DTOSandboxTemplateBuildFinished = z352.object({
12264
+ type: z352.literal("SandboxTemplateBuildFinished"),
12265
+ data: z352.object({
12266
+ buildId: z352.string(),
12267
+ templateId: z352.string().optional()
12222
12268
  })
12223
12269
  });
12224
- var DTOCodeScanFinished = z351.object({
12225
- type: z351.literal("CodeScanFinished"),
12270
+ var DTOCodeScanFinished = z352.object({
12271
+ type: z352.literal("CodeScanFinished"),
12226
12272
  data: DTOCodeScanListItem
12227
12273
  });
12228
- var DTOWorkspaceRoomEvent = z351.discriminatedUnion("type", [
12274
+ var DTOWorkspaceRoomEvent = z352.discriminatedUnion("type", [
12229
12275
  DTOForgeProjectUpdated,
12230
12276
  DTOForgeProjectCreated,
12231
12277
  DTOForgeProjectContextCreated,
@@ -12238,313 +12284,313 @@ var DTOWorkspaceRoomEvent = z351.discriminatedUnion("type", [
12238
12284
  ]);
12239
12285
 
12240
12286
  // src/api/dto/figma-components/assets/download.ts
12241
- import { z as z352 } from "zod";
12242
- var DTOAssetRenderConfiguration = z352.object({
12243
- prefix: z352.string().optional(),
12244
- suffix: z352.string().optional(),
12245
- scale: z352.enum(["x1", "x2", "x3", "x4"]),
12246
- format: z352.enum(["png", "pdf", "svg"])
12247
- });
12248
- var DTORenderedAssetFile = z352.object({
12249
- assetId: z352.string(),
12250
- fileName: z352.string(),
12251
- sourceUrl: z352.string(),
12287
+ import { z as z353 } from "zod";
12288
+ var DTOAssetRenderConfiguration = z353.object({
12289
+ prefix: z353.string().optional(),
12290
+ suffix: z353.string().optional(),
12291
+ scale: z353.enum(["x1", "x2", "x3", "x4"]),
12292
+ format: z353.enum(["png", "pdf", "svg"])
12293
+ });
12294
+ var DTORenderedAssetFile = z353.object({
12295
+ assetId: z353.string(),
12296
+ fileName: z353.string(),
12297
+ sourceUrl: z353.string(),
12252
12298
  settings: DTOAssetRenderConfiguration,
12253
- originalName: z352.string()
12299
+ originalName: z353.string()
12254
12300
  });
12255
- var DTODownloadAssetsRequest = z352.object({
12256
- persistentIds: z352.array(z352.string().uuid()).optional(),
12301
+ var DTODownloadAssetsRequest = z353.object({
12302
+ persistentIds: z353.array(z353.string().uuid()).optional(),
12257
12303
  settings: DTOAssetRenderConfiguration.array()
12258
12304
  });
12259
- var DTODownloadAssetsResponse = z352.object({
12305
+ var DTODownloadAssetsResponse = z353.object({
12260
12306
  items: DTORenderedAssetFile.array()
12261
12307
  });
12262
12308
 
12263
12309
  // src/api/dto/figma-exporter/figma-node.ts
12264
- import { z as z353 } from "zod";
12265
- var DTOFigmaExportNodeFormat = z353.enum(["HTML", "JSON"]);
12266
- var DTOFigmaExportNodeConfiguration = z353.object({
12310
+ import { z as z354 } from "zod";
12311
+ var DTOFigmaExportNodeFormat = z354.enum(["HTML", "JSON"]);
12312
+ var DTOFigmaExportNodeConfiguration = z354.object({
12267
12313
  format: DTOFigmaExportNodeFormat,
12268
- minifyOutput: z353.boolean().optional(),
12269
- customFontUrls: z353.string().array().optional()
12314
+ minifyOutput: z354.boolean().optional(),
12315
+ customFontUrls: z354.string().array().optional()
12270
12316
  });
12271
12317
 
12272
12318
  // src/api/dto/liveblocks/auth-response.ts
12273
- import { z as z354 } from "zod";
12274
- var DTOLiveblocksAuthResponse = z354.object({
12275
- token: z354.string()
12319
+ import { z as z355 } from "zod";
12320
+ var DTOLiveblocksAuthResponse = z355.object({
12321
+ token: z355.string()
12276
12322
  });
12277
12323
 
12278
12324
  // src/api/dto/mcp/stream.ts
12279
- import z355 from "zod";
12280
- var DTOMCPStream = z355.object({
12281
- id: z355.string().uuid(),
12282
- projectFeatureId: z355.string().uuid().optional(),
12283
- projectDocumentId: z355.string().uuid().optional()
12325
+ import z356 from "zod";
12326
+ var DTOMCPStream = z356.object({
12327
+ id: z356.string().uuid(),
12328
+ projectFeatureId: z356.string().uuid().optional(),
12329
+ projectDocumentId: z356.string().uuid().optional()
12284
12330
  });
12285
12331
  var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
12286
- var DTOMCPStreamResponse = z355.object({
12332
+ var DTOMCPStreamResponse = z356.object({
12287
12333
  stream: DTOMCPStream
12288
12334
  });
12289
12335
 
12290
12336
  // src/api/dto/notifications/notifications.ts
12291
- import { z as z356 } from "zod";
12292
- var DTONotificationChatMentionPayload = z356.object({
12293
- messageAuthorId: z356.string(),
12294
- messageText: z356.string(),
12295
- messageId: z356.string(),
12296
- parentMessageId: z356.string().optional(),
12297
- workspaceId: z356.string(),
12298
- projectId: z356.string(),
12299
- subjectType: z356.string(),
12300
- threadSubjectId: z356.string(),
12301
- subjectName: z356.string()
12302
- });
12303
- var DTONotificationProjectInvitationPayload = z356.object({
12304
- workspaceId: z356.string(),
12305
- projectId: z356.string(),
12306
- projectTitle: z356.string(),
12307
- invitedByUserId: z356.string(),
12308
- invitationRole: z356.string(),
12309
- featureId: z356.string().optional()
12310
- });
12311
- var DTONotificationProjectDocumentCommentPayload = z356.object({
12312
- documentId: z356.string(),
12313
- entityTitle: z356.string(),
12314
- projectId: z356.string(),
12315
- workspaceId: z356.string(),
12316
- threadId: z356.string(),
12317
- commentId: z356.string(),
12318
- commentCreatedAt: z356.string(),
12319
- commentAuthorId: z356.string(),
12320
- commentBody: z356.string()
12321
- });
12322
- var DTONotificationBase = z356.object({
12323
- userId: z356.string(),
12324
- subjectId: z356.string(),
12325
- roomId: z356.string().optional(),
12326
- workspaceId: z356.string()
12327
- });
12328
- var DTONotificationCreateInput = z356.discriminatedUnion("type", [
12329
- z356.object({
12330
- type: z356.literal(DTONotificationType.enum.ChatMention),
12337
+ import { z as z357 } from "zod";
12338
+ var DTONotificationChatMentionPayload = z357.object({
12339
+ messageAuthorId: z357.string(),
12340
+ messageText: z357.string(),
12341
+ messageId: z357.string(),
12342
+ parentMessageId: z357.string().optional(),
12343
+ workspaceId: z357.string(),
12344
+ projectId: z357.string(),
12345
+ subjectType: z357.string(),
12346
+ threadSubjectId: z357.string(),
12347
+ subjectName: z357.string()
12348
+ });
12349
+ var DTONotificationProjectInvitationPayload = z357.object({
12350
+ workspaceId: z357.string(),
12351
+ projectId: z357.string(),
12352
+ projectTitle: z357.string(),
12353
+ invitedByUserId: z357.string(),
12354
+ invitationRole: z357.string(),
12355
+ featureId: z357.string().optional()
12356
+ });
12357
+ var DTONotificationProjectDocumentCommentPayload = z357.object({
12358
+ documentId: z357.string(),
12359
+ entityTitle: z357.string(),
12360
+ projectId: z357.string(),
12361
+ workspaceId: z357.string(),
12362
+ threadId: z357.string(),
12363
+ commentId: z357.string(),
12364
+ commentCreatedAt: z357.string(),
12365
+ commentAuthorId: z357.string(),
12366
+ commentBody: z357.string()
12367
+ });
12368
+ var DTONotificationBase = z357.object({
12369
+ userId: z357.string(),
12370
+ subjectId: z357.string(),
12371
+ roomId: z357.string().optional(),
12372
+ workspaceId: z357.string()
12373
+ });
12374
+ var DTONotificationCreateInput = z357.discriminatedUnion("type", [
12375
+ z357.object({
12376
+ type: z357.literal(DTONotificationType.enum.ChatMention),
12331
12377
  activityData: DTONotificationChatMentionPayload
12332
12378
  }),
12333
- z356.object({
12334
- type: z356.literal(DTONotificationType.enum.ProjectInvitation),
12379
+ z357.object({
12380
+ type: z357.literal(DTONotificationType.enum.ProjectInvitation),
12335
12381
  activityData: DTONotificationProjectInvitationPayload
12336
12382
  }),
12337
- z356.object({
12338
- type: z356.literal(DTONotificationType.enum.ProjectDocumentComment),
12383
+ z357.object({
12384
+ type: z357.literal(DTONotificationType.enum.ProjectDocumentComment),
12339
12385
  activityData: DTONotificationProjectDocumentCommentPayload
12340
12386
  })
12341
12387
  ]).and(DTONotificationBase);
12342
12388
 
12343
12389
  // src/api/dto/portal/portal-settings.ts
12344
- import { z as z357 } from "zod";
12390
+ import { z as z358 } from "zod";
12345
12391
  var DTOPortalSettingsTheme = PortalSettingsTheme;
12346
12392
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
12347
12393
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
12348
12394
  var DTOPortalSettingsSidebar = PortalSettingsSidebar;
12349
- var DTOPortalSettings = z357.object({
12350
- id: z357.string(),
12351
- workspaceId: z357.string(),
12352
- enabledDesignSystemIds: z357.array(z357.string()),
12353
- enabledBrandPersistentIds: z357.array(z357.string()),
12395
+ var DTOPortalSettings = z358.object({
12396
+ id: z358.string(),
12397
+ workspaceId: z358.string(),
12398
+ enabledDesignSystemIds: z358.array(z358.string()),
12399
+ enabledBrandPersistentIds: z358.array(z358.string()),
12354
12400
  theme: DTOPortalSettingsTheme.nullish(),
12355
12401
  sidebar: DTOPortalSettingsSidebar.nullish(),
12356
- createdAt: z357.coerce.date(),
12357
- updatedAt: z357.coerce.date()
12402
+ createdAt: z358.coerce.date(),
12403
+ updatedAt: z358.coerce.date()
12358
12404
  });
12359
- var DTOPortalSettingsGetResponse = z357.object({
12405
+ var DTOPortalSettingsGetResponse = z358.object({
12360
12406
  portalSettings: DTOPortalSettings
12361
12407
  });
12362
- var DTOPortalSettingsUpdatePayload = z357.object({
12363
- enabledDesignSystemIds: z357.array(z357.string()).optional(),
12364
- enabledBrandPersistentIds: z357.array(z357.string()).optional(),
12408
+ var DTOPortalSettingsUpdatePayload = z358.object({
12409
+ enabledDesignSystemIds: z358.array(z358.string()).optional(),
12410
+ enabledBrandPersistentIds: z358.array(z358.string()).optional(),
12365
12411
  theme: DTOPortalSettingsTheme.nullish(),
12366
12412
  sidebar: DTOPortalSettingsSidebar.nullish()
12367
12413
  });
12368
12414
 
12369
12415
  // src/api/dto/sandboxes/template.ts
12370
- import z358 from "zod";
12371
- var DTOSandboxTemplatePreset = z358.object({
12372
- id: z358.string(),
12373
- name: z358.string(),
12374
- description: z358.string(),
12375
- thumbnailUrl: z358.string().optional(),
12376
- files: z358.string().array()
12377
- });
12378
- var DTOSandboxTemplateVersion = z358.object({
12379
- name: z358.string(),
12380
- createdAt: z358.string(),
12381
- createdByUserId: z358.string(),
12382
- e2bTemplateId: z358.string(),
12416
+ import z359 from "zod";
12417
+ var DTOSandboxTemplatePreset = z359.object({
12418
+ id: z359.string(),
12419
+ name: z359.string(),
12420
+ description: z359.string(),
12421
+ thumbnailUrl: z359.string().optional(),
12422
+ files: z359.string().array()
12423
+ });
12424
+ var DTOSandboxTemplateVersion = z359.object({
12425
+ name: z359.string(),
12426
+ createdAt: z359.string(),
12427
+ createdByUserId: z359.string(),
12428
+ e2bTemplateId: z359.string(),
12383
12429
  templates: DTOSandboxTemplatePreset.array().optional(),
12384
- hasDesignModePlugin: z358.boolean().optional()
12430
+ hasDesignModePlugin: z359.boolean().optional()
12385
12431
  });
12386
- var DTOSandboxTemplate = z358.object({
12387
- id: z358.string(),
12388
- name: z358.string(),
12389
- workspaceId: z358.string(),
12390
- designSystemId: z358.string(),
12391
- createdAt: z358.string(),
12432
+ var DTOSandboxTemplate = z359.object({
12433
+ id: z359.string(),
12434
+ name: z359.string(),
12435
+ workspaceId: z359.string(),
12436
+ designSystemId: z359.string(),
12437
+ createdAt: z359.string(),
12392
12438
  versions: DTOSandboxTemplateVersion.array()
12393
12439
  });
12394
- var DTOSandboxTemplateBuild = z358.object({
12395
- id: z358.string(),
12396
- workspaceId: z358.string(),
12397
- designSystemId: z358.string(),
12398
- name: z358.string(),
12399
- version: z358.string(),
12400
- createdAt: z358.string(),
12401
- finishedAt: z358.string().optional(),
12402
- createdByUserId: z358.string(),
12440
+ var DTOSandboxTemplateBuild = z359.object({
12441
+ id: z359.string(),
12442
+ workspaceId: z359.string(),
12443
+ designSystemId: z359.string(),
12444
+ name: z359.string(),
12445
+ version: z359.string(),
12446
+ createdAt: z359.string(),
12447
+ finishedAt: z359.string().optional(),
12448
+ createdByUserId: z359.string(),
12403
12449
  /** @deprecated use `dockerImageUri` instead */
12404
- dockerImagePath: z358.string().optional(),
12405
- dockerImageUri: z358.string(),
12406
- error: z358.string().optional(),
12407
- state: z358.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
12408
- });
12409
- var DTOSandboxTemplateFile = z358.object({
12410
- key: z358.string(),
12411
- fileId: z358.string(),
12412
- filePath: z358.string(),
12413
- url: z358.string()
12414
- });
12415
- var DTOSandboxTemplateVersionDetail = z358.object({
12450
+ dockerImagePath: z359.string().optional(),
12451
+ dockerImageUri: z359.string(),
12452
+ error: z359.string().optional(),
12453
+ state: z359.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
12454
+ });
12455
+ var DTOSandboxTemplateFile = z359.object({
12456
+ key: z359.string(),
12457
+ fileId: z359.string(),
12458
+ filePath: z359.string(),
12459
+ url: z359.string()
12460
+ });
12461
+ var DTOSandboxTemplateVersionDetail = z359.object({
12416
12462
  version: DTOSandboxTemplateVersion,
12417
12463
  files: DTOSandboxTemplateFile.array()
12418
12464
  });
12419
- var DTOSandboxTemplateQuery = z358.object({
12420
- workspaceId: z358.string(),
12421
- designSystemId: z358.string().optional()
12465
+ var DTOSandboxTemplateQuery = z359.object({
12466
+ workspaceId: z359.string(),
12467
+ designSystemId: z359.string().optional()
12422
12468
  });
12423
- var DTOSandboxTemplateListResponse = z358.object({
12469
+ var DTOSandboxTemplateListResponse = z359.object({
12424
12470
  templates: DTOSandboxTemplate.array()
12425
12471
  });
12426
- var DTOSandboxTemplateResponse = z358.object({
12472
+ var DTOSandboxTemplateResponse = z359.object({
12427
12473
  template: DTOSandboxTemplate
12428
12474
  });
12429
- var DTOSandboxTemplateBuildResponse = z358.object({
12475
+ var DTOSandboxTemplateBuildResponse = z359.object({
12430
12476
  build: DTOSandboxTemplateBuild
12431
12477
  });
12432
- var DTOSandboxTemplateBuildCreateInput = z358.object({
12433
- workspaceId: z358.string(),
12434
- designSystemId: z358.string(),
12435
- name: z358.string(),
12436
- version: z358.string(),
12437
- isExistingVersionUpdateAllowed: z358.boolean(),
12438
- hasDesignModePlugin: z358.boolean().optional(),
12439
- dockerImageUri: z358.string().optional(),
12440
- customAuth: z358.object({ username: z358.string(), password: z358.string() }).optional(),
12441
- templates: z358.object({
12442
- id: z358.string(),
12443
- name: z358.string(),
12444
- description: z358.string(),
12445
- thumbnailUrl: z358.string().optional(),
12446
- files: z358.string().array()
12478
+ var DTOSandboxTemplateBuildCreateInput = z359.object({
12479
+ workspaceId: z359.string(),
12480
+ designSystemId: z359.string(),
12481
+ name: z359.string(),
12482
+ version: z359.string(),
12483
+ isExistingVersionUpdateAllowed: z359.boolean(),
12484
+ hasDesignModePlugin: z359.boolean().optional(),
12485
+ dockerImageUri: z359.string().optional(),
12486
+ customAuth: z359.object({ username: z359.string(), password: z359.string() }).optional(),
12487
+ templates: z359.object({
12488
+ id: z359.string(),
12489
+ name: z359.string(),
12490
+ description: z359.string(),
12491
+ thumbnailUrl: z359.string().optional(),
12492
+ files: z359.string().array()
12447
12493
  }).array().optional()
12448
12494
  });
12449
- var DTOSandboxTemplateBuildTriggerInput = z358.object({
12450
- imageFileId: z358.string().optional()
12495
+ var DTOSandboxTemplateBuildTriggerInput = z359.object({
12496
+ imageFileId: z359.string().optional()
12451
12497
  });
12452
- var DTOSandboxTemplateBuildCreateResponse = z358.object({
12498
+ var DTOSandboxTemplateBuildCreateResponse = z359.object({
12453
12499
  /** @deprecated use build.dockerImageUri */
12454
- dockerUrl: z358.string().optional(),
12500
+ dockerUrl: z359.string().optional(),
12455
12501
  /** @deprecated use build.dockerImageUri */
12456
- dockerRegistryDomain: z358.string().optional(),
12502
+ dockerRegistryDomain: z359.string().optional(),
12457
12503
  /** @deprecated use docker-login endpoint */
12458
- dockerAccessToken: z358.string().optional(),
12504
+ dockerAccessToken: z359.string().optional(),
12459
12505
  build: DTOSandboxTemplateBuild
12460
12506
  });
12461
- var DTOSandboxTemplateBuildFinalizeResponse = z358.object({
12462
- ok: z358.boolean()
12507
+ var DTOSandboxTemplateBuildFinalizeResponse = z359.object({
12508
+ ok: z359.boolean()
12463
12509
  });
12464
12510
 
12465
12511
  // src/api/dto/storybook-sites/storybook-sites.ts
12466
- import { z as z359 } from "zod";
12467
- var DTOStorybookUploadStatus = z359.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
12468
- var DTOStorybookSiteVersion = z359.object({
12469
- id: z359.string(),
12470
- isPublic: z359.boolean(),
12471
- createdAt: z359.string(),
12512
+ import { z as z360 } from "zod";
12513
+ var DTOStorybookUploadStatus = z360.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
12514
+ var DTOStorybookSiteVersion = z360.object({
12515
+ id: z360.string(),
12516
+ isPublic: z360.boolean(),
12517
+ createdAt: z360.string(),
12472
12518
  uploadStatus: DTOStorybookUploadStatus
12473
12519
  });
12474
- var DTOStorybookSite = z359.object({
12475
- id: z359.string(),
12476
- designSystemId: z359.string(),
12477
- name: z359.string(),
12478
- indexPageUrl: z359.string(),
12479
- createdAt: z359.string(),
12520
+ var DTOStorybookSite = z360.object({
12521
+ id: z360.string(),
12522
+ designSystemId: z360.string(),
12523
+ name: z360.string(),
12524
+ indexPageUrl: z360.string(),
12525
+ createdAt: z360.string(),
12480
12526
  currentVersion: DTOStorybookSiteVersion
12481
12527
  });
12482
- var DTOStorybookSiteListQuery = z359.object({
12483
- designSystemId: z359.string()
12528
+ var DTOStorybookSiteListQuery = z360.object({
12529
+ designSystemId: z360.string()
12484
12530
  });
12485
- var DTOStorybookSiteListResponse = z359.object({
12531
+ var DTOStorybookSiteListResponse = z360.object({
12486
12532
  sites: DTOStorybookSite.array()
12487
12533
  });
12488
- var DTOStorybookSiteUploadPayload = z359.object({
12489
- designSystemId: z359.string(),
12490
- isPublic: z359.boolean(),
12491
- name: z359.string()
12534
+ var DTOStorybookSiteUploadPayload = z360.object({
12535
+ designSystemId: z360.string(),
12536
+ isPublic: z360.boolean(),
12537
+ name: z360.string()
12492
12538
  });
12493
- var DTOStorybookSiteUploadResponse = z359.object({
12539
+ var DTOStorybookSiteUploadResponse = z360.object({
12494
12540
  storybookSiteVersion: DTOStorybookSiteVersion,
12495
- uploadUrl: z359.string()
12541
+ uploadUrl: z360.string()
12496
12542
  });
12497
- var DTOStorybookSiteVersionResponse = z359.object({
12543
+ var DTOStorybookSiteVersionResponse = z360.object({
12498
12544
  storybookSiteVersion: DTOStorybookSiteVersion
12499
12545
  });
12500
12546
 
12501
12547
  // src/api/dto/themes/override.ts
12502
- import { z as z360 } from "zod";
12548
+ import { z as z361 } from "zod";
12503
12549
  var DTOThemeOverride = DesignTokenTypedData.and(
12504
- z360.object({
12505
- tokenPersistentId: z360.string(),
12550
+ z361.object({
12551
+ tokenPersistentId: z361.string(),
12506
12552
  origin: ThemeOverrideOrigin.optional()
12507
12553
  })
12508
12554
  );
12509
12555
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
12510
- z360.object({
12511
- tokenPersistentId: z360.string()
12556
+ z361.object({
12557
+ tokenPersistentId: z361.string()
12512
12558
  })
12513
12559
  );
12514
12560
 
12515
12561
  // src/api/dto/themes/theme.ts
12516
- import { z as z361 } from "zod";
12517
- var DTOThemesListQuery = z361.object({
12518
- brandId: z361.string().optional()
12519
- });
12520
- var DTOTheme = z361.object({
12521
- id: z361.string(),
12522
- persistentId: z361.string(),
12523
- designSystemVersionId: z361.string(),
12524
- brandId: z361.string(),
12562
+ import { z as z362 } from "zod";
12563
+ var DTOThemesListQuery = z362.object({
12564
+ brandId: z362.string().optional()
12565
+ });
12566
+ var DTOTheme = z362.object({
12567
+ id: z362.string(),
12568
+ persistentId: z362.string(),
12569
+ designSystemVersionId: z362.string(),
12570
+ brandId: z362.string(),
12525
12571
  meta: ObjectMeta,
12526
- codeName: z361.string(),
12527
- parentPersistentId: z361.string().optional(),
12528
- collectionPersistentIds: z361.string().array(),
12572
+ codeName: z362.string(),
12573
+ parentPersistentId: z362.string().optional(),
12574
+ collectionPersistentIds: z362.string().array(),
12529
12575
  overrides: DTOThemeOverride.array()
12530
12576
  });
12531
- var DTOThemeResponse = z361.object({
12577
+ var DTOThemeResponse = z362.object({
12532
12578
  theme: DTOTheme
12533
12579
  });
12534
- var DTOThemeListResponse = z361.object({
12580
+ var DTOThemeListResponse = z362.object({
12535
12581
  themes: DTOTheme.array()
12536
12582
  });
12537
- var DTOThemeCreatePayload = z361.object({
12583
+ var DTOThemeCreatePayload = z362.object({
12538
12584
  meta: ObjectMeta,
12539
- persistentId: z361.string(),
12540
- brandId: z361.string(),
12541
- codeName: z361.string(),
12585
+ persistentId: z362.string(),
12586
+ brandId: z362.string(),
12587
+ codeName: z362.string(),
12542
12588
  overrides: DTOThemeOverride.array()
12543
12589
  });
12544
12590
 
12545
12591
  // src/api/dto/trail-events/trail-events.ts
12546
- import { z as z362 } from "zod";
12547
- var DTOTrailEventType = z362.enum([
12592
+ import { z as z363 } from "zod";
12593
+ var DTOTrailEventType = z363.enum([
12548
12594
  "IterationCreated",
12549
12595
  "IterationBookmarked",
12550
12596
  "FeatureCreated",
@@ -12562,124 +12608,124 @@ var DTOTrailEventType = z362.enum([
12562
12608
  "FeaturePublished",
12563
12609
  "FeatureUnpublished"
12564
12610
  ]);
12565
- var DTOTrailEventBase = z362.object({
12566
- id: z362.string(),
12567
- projectId: z362.string(),
12568
- userId: z362.string(),
12569
- createdAt: z362.coerce.date(),
12570
- updatedAt: z362.coerce.date()
12571
- });
12572
- var DTOTrailEventIterationCreatedPayload = z362.object({
12573
- iterationName: z362.string(),
12574
- iterationId: z362.string().uuid(),
12575
- featureId: z362.string().uuid()
12576
- });
12577
- var DTOTrailEventIterationBookmarkedPayload = z362.object({
12578
- iterationId: z362.string().uuid(),
12579
- featureId: z362.string().uuid(),
12580
- iterationName: z362.string()
12581
- });
12582
- var DTOTrailEventIterationPromotedPayload = z362.object({
12583
- iterationId: z362.string().uuid(),
12584
- featureId: z362.string().uuid(),
12585
- iterationName: z362.string()
12586
- });
12587
- var DTOTrailEventFeatureCreatedPayload = z362.object({
12588
- featureId: z362.string().uuid(),
12589
- name: z362.string(),
12590
- description: z362.string().optional()
12591
- });
12592
- var DTOTrailEventFeatureDeletedPayload = z362.object({
12593
- featureId: z362.string().uuid(),
12594
- name: z362.string()
12595
- });
12596
- var DTOTrailEventFeatureArchivedPayload = z362.object({
12597
- featureId: z362.string().uuid(),
12598
- name: z362.string()
12599
- });
12600
- var DTOTrailEventDocumentCreatedPayload = z362.object({
12601
- documentId: z362.string().uuid(),
12602
- title: z362.string(),
12603
- sectionId: z362.string().uuid().optional()
12604
- });
12605
- var DTOTrailEventDocumentDeletedPayload = z362.object({
12606
- documentId: z362.string().uuid(),
12607
- title: z362.string()
12608
- });
12609
- var DTOTrailEventDocumentUpdatedPayload = z362.object({
12610
- documentId: z362.string().uuid(),
12611
- title: z362.string(),
12612
- sectionId: z362.string().uuid().optional()
12613
- });
12614
- var DTOTrailEventDocumentCommentSentPayload = z362.object({
12615
- documentId: z362.string().uuid(),
12616
- title: z362.string(),
12617
- sectionId: z362.string().uuid().optional()
12618
- });
12619
- var DTOTrailEventProjectCreatedPayload = z362.object({
12620
- name: z362.string(),
12621
- description: z362.string().optional()
12622
- });
12623
- var DTOTrailEventFeaturePublishedPayload = z362.object({
12624
- featureId: z362.string().uuid(),
12625
- featureName: z362.string(),
12626
- iterationId: z362.string().uuid().nullish(),
12627
- iterationName: z362.string().nullish()
12628
- });
12629
- var DTOTrailEventFeatureUnpublishedPayload = z362.object({
12630
- featureId: z362.string().uuid(),
12631
- featureName: z362.string(),
12632
- iterationId: z362.string().uuid().nullish(),
12633
- iterationName: z362.string().nullish()
12634
- });
12635
- var DTOTrailEventProjectArchivedPayload = z362.object({
12636
- name: z362.string()
12637
- });
12638
- var DTOTrailEventProjectContextCreatedPayload = z362.object({
12639
- contextId: z362.number(),
12640
- name: z362.string(),
12641
- description: z362.string().optional()
12642
- });
12643
- var DTOTrailEventProjectContextArchivedPayload = z362.object({
12644
- contextId: z362.number()
12645
- });
12646
- var DTOTrailEventPayload = z362.discriminatedUnion("type", [
12647
- z362.object({ type: z362.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
12648
- z362.object({ type: z362.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
12649
- z362.object({ type: z362.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
12650
- z362.object({ type: z362.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
12651
- z362.object({ type: z362.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
12652
- z362.object({ type: z362.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
12653
- z362.object({ type: z362.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
12654
- z362.object({ type: z362.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12655
- z362.object({ type: z362.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
12656
- z362.object({ type: z362.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
12657
- z362.object({ type: z362.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
12658
- z362.object({ type: z362.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
12659
- z362.object({ type: z362.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
12660
- z362.object({ type: z362.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
12661
- z362.object({ type: z362.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
12662
- z362.object({ type: z362.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
12611
+ var DTOTrailEventBase = z363.object({
12612
+ id: z363.string(),
12613
+ projectId: z363.string(),
12614
+ userId: z363.string(),
12615
+ createdAt: z363.coerce.date(),
12616
+ updatedAt: z363.coerce.date()
12617
+ });
12618
+ var DTOTrailEventIterationCreatedPayload = z363.object({
12619
+ iterationName: z363.string(),
12620
+ iterationId: z363.string().uuid(),
12621
+ featureId: z363.string().uuid()
12622
+ });
12623
+ var DTOTrailEventIterationBookmarkedPayload = z363.object({
12624
+ iterationId: z363.string().uuid(),
12625
+ featureId: z363.string().uuid(),
12626
+ iterationName: z363.string()
12627
+ });
12628
+ var DTOTrailEventIterationPromotedPayload = z363.object({
12629
+ iterationId: z363.string().uuid(),
12630
+ featureId: z363.string().uuid(),
12631
+ iterationName: z363.string()
12632
+ });
12633
+ var DTOTrailEventFeatureCreatedPayload = z363.object({
12634
+ featureId: z363.string().uuid(),
12635
+ name: z363.string(),
12636
+ description: z363.string().optional()
12637
+ });
12638
+ var DTOTrailEventFeatureDeletedPayload = z363.object({
12639
+ featureId: z363.string().uuid(),
12640
+ name: z363.string()
12641
+ });
12642
+ var DTOTrailEventFeatureArchivedPayload = z363.object({
12643
+ featureId: z363.string().uuid(),
12644
+ name: z363.string()
12645
+ });
12646
+ var DTOTrailEventDocumentCreatedPayload = z363.object({
12647
+ documentId: z363.string().uuid(),
12648
+ title: z363.string(),
12649
+ sectionId: z363.string().uuid().optional()
12650
+ });
12651
+ var DTOTrailEventDocumentDeletedPayload = z363.object({
12652
+ documentId: z363.string().uuid(),
12653
+ title: z363.string()
12654
+ });
12655
+ var DTOTrailEventDocumentUpdatedPayload = z363.object({
12656
+ documentId: z363.string().uuid(),
12657
+ title: z363.string(),
12658
+ sectionId: z363.string().uuid().optional()
12659
+ });
12660
+ var DTOTrailEventDocumentCommentSentPayload = z363.object({
12661
+ documentId: z363.string().uuid(),
12662
+ title: z363.string(),
12663
+ sectionId: z363.string().uuid().optional()
12664
+ });
12665
+ var DTOTrailEventProjectCreatedPayload = z363.object({
12666
+ name: z363.string(),
12667
+ description: z363.string().optional()
12668
+ });
12669
+ var DTOTrailEventFeaturePublishedPayload = z363.object({
12670
+ featureId: z363.string().uuid(),
12671
+ featureName: z363.string(),
12672
+ iterationId: z363.string().uuid().nullish(),
12673
+ iterationName: z363.string().nullish()
12674
+ });
12675
+ var DTOTrailEventFeatureUnpublishedPayload = z363.object({
12676
+ featureId: z363.string().uuid(),
12677
+ featureName: z363.string(),
12678
+ iterationId: z363.string().uuid().nullish(),
12679
+ iterationName: z363.string().nullish()
12680
+ });
12681
+ var DTOTrailEventProjectArchivedPayload = z363.object({
12682
+ name: z363.string()
12683
+ });
12684
+ var DTOTrailEventProjectContextCreatedPayload = z363.object({
12685
+ contextId: z363.number(),
12686
+ name: z363.string(),
12687
+ description: z363.string().optional()
12688
+ });
12689
+ var DTOTrailEventProjectContextArchivedPayload = z363.object({
12690
+ contextId: z363.number()
12691
+ });
12692
+ var DTOTrailEventPayload = z363.discriminatedUnion("type", [
12693
+ z363.object({ type: z363.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
12694
+ z363.object({ type: z363.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
12695
+ z363.object({ type: z363.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
12696
+ z363.object({ type: z363.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
12697
+ z363.object({ type: z363.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
12698
+ z363.object({ type: z363.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
12699
+ z363.object({ type: z363.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
12700
+ z363.object({ type: z363.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12701
+ z363.object({ type: z363.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
12702
+ z363.object({ type: z363.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
12703
+ z363.object({ type: z363.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
12704
+ z363.object({ type: z363.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
12705
+ z363.object({ type: z363.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
12706
+ z363.object({ type: z363.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
12707
+ z363.object({ type: z363.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
12708
+ z363.object({ type: z363.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
12663
12709
  ]);
12664
12710
  var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
12665
12711
  var DTOTrailEventWithDetails = DTOTrailEvent.and(
12666
- z362.object({
12667
- projectName: z362.string().optional(),
12668
- userName: z362.string().optional()
12712
+ z363.object({
12713
+ projectName: z363.string().optional(),
12714
+ userName: z363.string().optional()
12669
12715
  })
12670
12716
  );
12671
- var DTOTrailEventListInput = z362.object({
12672
- projectId: z362.string()
12717
+ var DTOTrailEventListInput = z363.object({
12718
+ projectId: z363.string()
12673
12719
  });
12674
- var DTOTrailEventListResponse = z362.object({
12675
- events: z362.array(DTOTrailEventWithDetails)
12720
+ var DTOTrailEventListResponse = z363.object({
12721
+ events: z363.array(DTOTrailEventWithDetails)
12676
12722
  });
12677
12723
  var DTOTrailEventCreate = DTOTrailEventPayload.and(
12678
12724
  DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
12679
12725
  );
12680
- var DTOTrailEventClientCreate = z362.discriminatedUnion("type", [
12681
- z362.object({ type: z362.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12682
- z362.object({ type: z362.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
12726
+ var DTOTrailEventClientCreate = z363.discriminatedUnion("type", [
12727
+ z363.object({ type: z363.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12728
+ z363.object({ type: z363.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
12683
12729
  ]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
12684
12730
 
12685
12731
  // src/api/endpoints/codegen/exporters.ts
@@ -12724,13 +12770,13 @@ var ExportersEndpoint = class {
12724
12770
  };
12725
12771
 
12726
12772
  // src/api/endpoints/codegen/jobs.ts
12727
- import { z as z363 } from "zod";
12773
+ import { z as z364 } from "zod";
12728
12774
  var ExporterJobsEndpoint = class {
12729
12775
  constructor(requestExecutor) {
12730
12776
  this.requestExecutor = requestExecutor;
12731
12777
  }
12732
12778
  list(workspaceId) {
12733
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z363.any());
12779
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z364.any());
12734
12780
  }
12735
12781
  get(workspaceId, jobId) {
12736
12782
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -12822,7 +12868,7 @@ var DesignSystemPipelinesEndpoint = class {
12822
12868
  };
12823
12869
 
12824
12870
  // src/api/endpoints/design-system/versions/brands.ts
12825
- import { z as z364 } from "zod";
12871
+ import { z as z365 } from "zod";
12826
12872
  var BrandsEndpoint = class {
12827
12873
  constructor(requestExecutor) {
12828
12874
  this.requestExecutor = requestExecutor;
@@ -12856,7 +12902,7 @@ var BrandsEndpoint = class {
12856
12902
  });
12857
12903
  }
12858
12904
  delete(dsId, vId, brandId) {
12859
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z364.any(), {
12905
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z365.any(), {
12860
12906
  method: "DELETE"
12861
12907
  });
12862
12908
  }
@@ -13109,7 +13155,7 @@ var ImportJobsEndpoint = class {
13109
13155
  };
13110
13156
 
13111
13157
  // src/api/endpoints/design-system/versions/overrides.ts
13112
- import { z as z365 } from "zod";
13158
+ import { z as z366 } from "zod";
13113
13159
  var OverridesEndpoint = class {
13114
13160
  constructor(requestExecutor) {
13115
13161
  this.requestExecutor = requestExecutor;
@@ -13117,7 +13163,7 @@ var OverridesEndpoint = class {
13117
13163
  create(dsId, versionId, themeId, body) {
13118
13164
  return this.requestExecutor.json(
13119
13165
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
13120
- z365.any(),
13166
+ z366.any(),
13121
13167
  {
13122
13168
  method: "POST",
13123
13169
  body
@@ -13127,7 +13173,7 @@ var OverridesEndpoint = class {
13127
13173
  };
13128
13174
 
13129
13175
  // src/api/endpoints/design-system/versions/property-definitions.ts
13130
- import { z as z366 } from "zod";
13176
+ import { z as z367 } from "zod";
13131
13177
  var ElementPropertyDefinitionsEndpoint = class {
13132
13178
  constructor(requestExecutor) {
13133
13179
  this.requestExecutor = requestExecutor;
@@ -13155,7 +13201,7 @@ var ElementPropertyDefinitionsEndpoint = class {
13155
13201
  delete(designSystemId, versionId, defId) {
13156
13202
  return this.requestExecutor.json(
13157
13203
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
13158
- z366.any(),
13204
+ z367.any(),
13159
13205
  { method: "DELETE" }
13160
13206
  );
13161
13207
  }
@@ -13194,7 +13240,7 @@ var VersionStatsEndpoint = class {
13194
13240
  };
13195
13241
 
13196
13242
  // src/api/endpoints/design-system/versions/themes.ts
13197
- import { z as z367 } from "zod";
13243
+ import { z as z368 } from "zod";
13198
13244
  var ThemesEndpoint = class {
13199
13245
  constructor(requestExecutor) {
13200
13246
  this.requestExecutor = requestExecutor;
@@ -13217,7 +13263,7 @@ var ThemesEndpoint = class {
13217
13263
  });
13218
13264
  }
13219
13265
  delete(dsId, versionId, themeId) {
13220
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z367.any(), {
13266
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z368.any(), {
13221
13267
  method: "DELETE"
13222
13268
  });
13223
13269
  }
@@ -13422,7 +13468,7 @@ var DesignSystemContactsEndpoint = class {
13422
13468
  };
13423
13469
 
13424
13470
  // src/api/endpoints/design-system/design-systems.ts
13425
- import { z as z370 } from "zod";
13471
+ import { z as z371 } from "zod";
13426
13472
 
13427
13473
  // src/api/endpoints/design-system/figma-node-structures.ts
13428
13474
  var FigmaNodeStructuresEndpoint = class {
@@ -13499,7 +13545,7 @@ var DesignSystemPageRedirectsEndpoint = class {
13499
13545
  };
13500
13546
 
13501
13547
  // src/api/endpoints/design-system/sources.ts
13502
- import { z as z368 } from "zod";
13548
+ import { z as z369 } from "zod";
13503
13549
  var DesignSystemSourcesEndpoint = class {
13504
13550
  constructor(requestExecutor) {
13505
13551
  this.requestExecutor = requestExecutor;
@@ -13517,7 +13563,7 @@ var DesignSystemSourcesEndpoint = class {
13517
13563
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
13518
13564
  }
13519
13565
  delete(dsId, sourceId) {
13520
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z368.any(), { method: "DELETE" });
13566
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z369.any(), { method: "DELETE" });
13521
13567
  }
13522
13568
  updateFigmaSource(dsId, sourceId, payload) {
13523
13569
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -13560,7 +13606,7 @@ var DesignSystemSourcesEndpoint = class {
13560
13606
  };
13561
13607
 
13562
13608
  // src/api/endpoints/design-system/storybook.ts
13563
- import { z as z369 } from "zod";
13609
+ import { z as z370 } from "zod";
13564
13610
  var StorybookEntriesEndpoint = class {
13565
13611
  constructor(requestExecutor) {
13566
13612
  this.requestExecutor = requestExecutor;
@@ -13578,7 +13624,7 @@ var StorybookEntriesEndpoint = class {
13578
13624
  );
13579
13625
  }
13580
13626
  delete(dsId, entryId) {
13581
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z369.any(), {
13627
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z370.any(), {
13582
13628
  method: "DELETE"
13583
13629
  });
13584
13630
  }
@@ -13622,7 +13668,7 @@ var DesignSystemsEndpoint = class {
13622
13668
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
13623
13669
  }
13624
13670
  delete(dsId) {
13625
- return this.requestExecutor.json(`/design-systems/${dsId}`, z370.any(), { method: "DELETE" });
13671
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z371.any(), { method: "DELETE" });
13626
13672
  }
13627
13673
  update(dsId, body) {
13628
13674
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -14125,7 +14171,7 @@ var ForgeProjectMembersEndpoint = class {
14125
14171
  };
14126
14172
 
14127
14173
  // src/api/endpoints/forge/projects.ts
14128
- import z371 from "zod";
14174
+ import z372 from "zod";
14129
14175
  var ForgeProjectsEndpoint = class {
14130
14176
  constructor(requestExecutor) {
14131
14177
  this.requestExecutor = requestExecutor;
@@ -14162,7 +14208,7 @@ var ForgeProjectsEndpoint = class {
14162
14208
  );
14163
14209
  }
14164
14210
  action(workspaceId, projectId, body) {
14165
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z371.any(), {
14211
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z372.any(), {
14166
14212
  body,
14167
14213
  method: "POST"
14168
14214
  });
@@ -14335,7 +14381,7 @@ var WorkspaceBillingEndpoint = class {
14335
14381
  };
14336
14382
 
14337
14383
  // src/api/endpoints/workspaces/chat-threads.ts
14338
- import { z as z372 } from "zod";
14384
+ import { z as z373 } from "zod";
14339
14385
  var WorkspaceChatThreadsEndpoint = class {
14340
14386
  constructor(requestExecutor) {
14341
14387
  this.requestExecutor = requestExecutor;
@@ -14367,7 +14413,7 @@ var WorkspaceChatThreadsEndpoint = class {
14367
14413
  );
14368
14414
  }
14369
14415
  delete(workspaceId, threadId) {
14370
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z372.any(), {
14416
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z373.any(), {
14371
14417
  method: "DELETE"
14372
14418
  });
14373
14419
  }
@@ -14399,7 +14445,7 @@ var ChatThreadMessagesEndpoint = class {
14399
14445
  );
14400
14446
  }
14401
14447
  score(workspaceId, threadId, body) {
14402
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z372.any(), {
14448
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z373.any(), {
14403
14449
  method: "POST",
14404
14450
  body
14405
14451
  });
@@ -14407,7 +14453,7 @@ var ChatThreadMessagesEndpoint = class {
14407
14453
  };
14408
14454
 
14409
14455
  // src/api/endpoints/workspaces/integrations.ts
14410
- import { z as z373 } from "zod";
14456
+ import { z as z374 } from "zod";
14411
14457
  var WorkspaceIntegrationsEndpoint = class {
14412
14458
  constructor(requestExecutor) {
14413
14459
  this.requestExecutor = requestExecutor;
@@ -14416,7 +14462,7 @@ var WorkspaceIntegrationsEndpoint = class {
14416
14462
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
14417
14463
  }
14418
14464
  delete(wsId, iId) {
14419
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z373.unknown(), { method: "DELETE" });
14465
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z374.unknown(), { method: "DELETE" });
14420
14466
  }
14421
14467
  };
14422
14468
 
@@ -14447,8 +14493,38 @@ var WorkspaceInvitationsEndpoint = class {
14447
14493
  }
14448
14494
  };
14449
14495
 
14496
+ // src/api/endpoints/workspaces/knowledge-items.ts
14497
+ var WorkspaceKnowledgeItemsEndpoint = class {
14498
+ constructor(requestExecutor) {
14499
+ this.requestExecutor = requestExecutor;
14500
+ }
14501
+ list(workspaceId) {
14502
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/knowledge-items`, DTOKnowledgeItemListResponse, {
14503
+ method: "GET"
14504
+ });
14505
+ }
14506
+ create(workspaceId, body) {
14507
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/knowledge-items`, DTOKnowledgeItemResponse, {
14508
+ method: "POST",
14509
+ body
14510
+ });
14511
+ }
14512
+ update(workspaceId, itemId, body) {
14513
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/knowledge-items/${itemId}`, DTOKnowledgeItemResponse, {
14514
+ method: "PUT",
14515
+ body
14516
+ });
14517
+ }
14518
+ delete(workspaceId, body) {
14519
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/knowledge-items`, DTOKnowledgeItemDeleteResponse, {
14520
+ method: "DELETE",
14521
+ body
14522
+ });
14523
+ }
14524
+ };
14525
+
14450
14526
  // src/api/endpoints/workspaces/members.ts
14451
- import { z as z374 } from "zod";
14527
+ import { z as z375 } from "zod";
14452
14528
  var WorkspaceMembersEndpoint = class {
14453
14529
  constructor(requestExecutor) {
14454
14530
  this.requestExecutor = requestExecutor;
@@ -14465,7 +14541,7 @@ var WorkspaceMembersEndpoint = class {
14465
14541
  });
14466
14542
  }
14467
14543
  invite(workspaceId, body) {
14468
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z374.any(), { method: "POST", body });
14544
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z375.any(), { method: "POST", body });
14469
14545
  }
14470
14546
  delete(workspaceId, userId) {
14471
14547
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -14494,7 +14570,7 @@ var WorkspaceNpmRegistryEndpoint = class {
14494
14570
  };
14495
14571
 
14496
14572
  // src/api/endpoints/workspaces/subscription.ts
14497
- import { z as z375 } from "zod";
14573
+ import { z as z376 } from "zod";
14498
14574
  var WorkspaceSubscriptionEndpoint = class {
14499
14575
  constructor(requestExecutor) {
14500
14576
  this.requestExecutor = requestExecutor;
@@ -14505,7 +14581,7 @@ var WorkspaceSubscriptionEndpoint = class {
14505
14581
  });
14506
14582
  }
14507
14583
  update(workspaceId, body) {
14508
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z375.any(), {
14584
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z376.any(), {
14509
14585
  method: "PUT",
14510
14586
  body
14511
14587
  });
@@ -14523,7 +14599,7 @@ var WorkspaceSubscriptionEndpoint = class {
14523
14599
  };
14524
14600
 
14525
14601
  // src/api/endpoints/workspaces/workspaces.ts
14526
- import { z as z376 } from "zod";
14602
+ import { z as z377 } from "zod";
14527
14603
  var WorkspacesEndpoint = class {
14528
14604
  constructor(requestExecutor) {
14529
14605
  this.requestExecutor = requestExecutor;
@@ -14532,11 +14608,13 @@ var WorkspacesEndpoint = class {
14532
14608
  __publicField(this, "npmRegistry");
14533
14609
  __publicField(this, "chatThreads");
14534
14610
  __publicField(this, "integrations");
14611
+ __publicField(this, "knowledgeItems");
14535
14612
  __publicField(this, "subscription");
14536
14613
  __publicField(this, "billing");
14537
14614
  this.members = new WorkspaceMembersEndpoint(requestExecutor);
14538
14615
  this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
14539
14616
  this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
14617
+ this.knowledgeItems = new WorkspaceKnowledgeItemsEndpoint(requestExecutor);
14540
14618
  this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
14541
14619
  this.chatThreads = new WorkspaceChatThreadsEndpoint(requestExecutor);
14542
14620
  this.subscription = new WorkspaceSubscriptionEndpoint(requestExecutor);
@@ -14559,7 +14637,7 @@ var WorkspacesEndpoint = class {
14559
14637
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
14560
14638
  }
14561
14639
  delete(workspaceId) {
14562
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z376.any(), { method: "DELETE" });
14640
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z377.any(), { method: "DELETE" });
14563
14641
  }
14564
14642
  getPortalSettings(workspaceId) {
14565
14643
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -14634,7 +14712,7 @@ var LiveblocksEndpoint = class {
14634
14712
  };
14635
14713
 
14636
14714
  // src/api/endpoints/storybook-sites.ts
14637
- import z377 from "zod";
14715
+ import z378 from "zod";
14638
14716
  var StorybookSitesEndpoint = class {
14639
14717
  constructor(requestExecutor) {
14640
14718
  this.requestExecutor = requestExecutor;
@@ -14645,7 +14723,7 @@ var StorybookSitesEndpoint = class {
14645
14723
  });
14646
14724
  }
14647
14725
  deleteSite(siteId) {
14648
- return this.requestExecutor.json(`/storybook/sites/${siteId}`, z377.unknown(), {
14726
+ return this.requestExecutor.json(`/storybook/sites/${siteId}`, z378.unknown(), {
14649
14727
  method: "DELETE"
14650
14728
  });
14651
14729
  }
@@ -14763,9 +14841,9 @@ ${bodyText}`,
14763
14841
 
14764
14842
  // src/api/transport/request-executor.ts
14765
14843
  import fetch from "node-fetch";
14766
- import { z as z378 } from "zod";
14767
- var ResponseWrapper = z378.object({
14768
- result: z378.record(z378.any())
14844
+ import { z as z379 } from "zod";
14845
+ var ResponseWrapper = z379.object({
14846
+ result: z379.record(z379.any())
14769
14847
  });
14770
14848
  var RequestExecutor = class {
14771
14849
  constructor(testServerConfig) {
@@ -14860,25 +14938,25 @@ var SupernovaApiClient = class {
14860
14938
  };
14861
14939
 
14862
14940
  // src/events/design-system.ts
14863
- import { z as z379 } from "zod";
14864
- var DTOEventFigmaNodesRendered = z379.object({
14865
- type: z379.literal("DesignSystem.FigmaNodesRendered"),
14866
- designSystemId: z379.string(),
14867
- versionId: z379.string(),
14868
- figmaNodePersistentIds: z379.string().array()
14869
- });
14870
- var DTOEventDataSourcesImported = z379.object({
14871
- type: z379.literal("DesignSystem.ImportJobFinished"),
14872
- designSystemId: z379.string(),
14873
- versionId: z379.string(),
14874
- importJobId: z379.string(),
14941
+ import { z as z380 } from "zod";
14942
+ var DTOEventFigmaNodesRendered = z380.object({
14943
+ type: z380.literal("DesignSystem.FigmaNodesRendered"),
14944
+ designSystemId: z380.string(),
14945
+ versionId: z380.string(),
14946
+ figmaNodePersistentIds: z380.string().array()
14947
+ });
14948
+ var DTOEventDataSourcesImported = z380.object({
14949
+ type: z380.literal("DesignSystem.ImportJobFinished"),
14950
+ designSystemId: z380.string(),
14951
+ versionId: z380.string(),
14952
+ importJobId: z380.string(),
14875
14953
  dataSourceType: DataSourceRemoteType,
14876
- dataSourceIds: z379.string().array()
14954
+ dataSourceIds: z380.string().array()
14877
14955
  });
14878
14956
 
14879
14957
  // src/events/event.ts
14880
- import { z as z380 } from "zod";
14881
- var DTOEvent = z380.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
14958
+ import { z as z381 } from "zod";
14959
+ var DTOEvent = z381.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
14882
14960
 
14883
14961
  // src/sync/docs-local-action-executor.ts
14884
14962
  function applyActionsLocally(input) {
@@ -15173,7 +15251,7 @@ var LocalDocsElementActionExecutor = class {
15173
15251
  import PQueue from "p-queue";
15174
15252
 
15175
15253
  // src/yjs/design-system-content/documentation-hierarchy.ts
15176
- import { z as z381 } from "zod";
15254
+ import { z as z382 } from "zod";
15177
15255
 
15178
15256
  // src/yjs/utils/key-value-storage.ts
15179
15257
  import { YKeyValue } from "y-utility/y-keyvalue";
@@ -15790,24 +15868,24 @@ var FrontendVersionRoomYDoc = class {
15790
15868
  };
15791
15869
 
15792
15870
  // src/yjs/design-system-content/documentation-hierarchy.ts
15793
- var DocumentationHierarchySettings = z381.object({
15794
- routingVersion: z381.string(),
15795
- isDraftFeatureAdopted: z381.boolean(),
15796
- isApprovalFeatureEnabled: z381.boolean(),
15797
- approvalRequiredForPublishing: z381.boolean()
15871
+ var DocumentationHierarchySettings = z382.object({
15872
+ routingVersion: z382.string(),
15873
+ isDraftFeatureAdopted: z382.boolean(),
15874
+ isApprovalFeatureEnabled: z382.boolean(),
15875
+ approvalRequiredForPublishing: z382.boolean()
15798
15876
  });
15799
15877
  function yjsToDocumentationHierarchy(doc) {
15800
15878
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
15801
15879
  }
15802
15880
 
15803
15881
  // src/yjs/design-system-content/item-configuration.ts
15804
- import { z as z382 } from "zod";
15805
- var DTODocumentationPageRoomHeaderData = z382.object({
15806
- title: z382.string(),
15882
+ import { z as z383 } from "zod";
15883
+ var DTODocumentationPageRoomHeaderData = z383.object({
15884
+ title: z383.string(),
15807
15885
  configuration: DTODocumentationItemConfigurationV2
15808
15886
  });
15809
- var DTODocumentationPageRoomHeaderDataUpdate = z382.object({
15810
- title: z382.string().optional(),
15887
+ var DTODocumentationPageRoomHeaderDataUpdate = z383.object({
15888
+ title: z383.string().optional(),
15811
15889
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
15812
15890
  });
15813
15891
  function itemConfigurationToYjs(yDoc, item) {
@@ -15842,9 +15920,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
15842
15920
  var PageSectionEditorModel = PageSectionEditorModelV2;
15843
15921
 
15844
15922
  // src/yjs/docs-editor/model/page.ts
15845
- import { z as z383 } from "zod";
15846
- var DocumentationPageEditorModel = z383.object({
15847
- blocks: z383.array(DocumentationPageContentItem)
15923
+ import { z as z384 } from "zod";
15924
+ var DocumentationPageEditorModel = z384.object({
15925
+ blocks: z384.array(DocumentationPageContentItem)
15848
15926
  });
15849
15927
 
15850
15928
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -19521,7 +19599,7 @@ var blocks = [
19521
19599
 
19522
19600
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
19523
19601
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
19524
- import { z as z384 } from "zod";
19602
+ import { z as z385 } from "zod";
19525
19603
  function yDocToPage(yDoc, definitions) {
19526
19604
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
19527
19605
  }
@@ -19597,7 +19675,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
19597
19675
  if (!id) return null;
19598
19676
  return {
19599
19677
  id,
19600
- title: getProsemirrorAttribute(prosemirrorNode, "title", z384.string()) ?? "",
19678
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z385.string()) ?? "",
19601
19679
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
19602
19680
  };
19603
19681
  }
@@ -19631,7 +19709,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
19631
19709
  });
19632
19710
  }
19633
19711
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
19634
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z384.string());
19712
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z385.string());
19635
19713
  if (!definitionId) {
19636
19714
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
19637
19715
  return [];
@@ -19672,7 +19750,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
19672
19750
  const id = getProsemirrorBlockId(prosemirrorNode);
19673
19751
  if (!id) return null;
19674
19752
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
19675
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z384.string().optional()));
19753
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z385.string().optional()));
19676
19754
  return {
19677
19755
  id,
19678
19756
  type: "Block",
@@ -19795,9 +19873,9 @@ function parseRichTextAttribute(mark) {
19795
19873
  return null;
19796
19874
  }
19797
19875
  function parseProsemirrorLink(mark) {
19798
- const href = getProsemirrorAttribute(mark, "href", z384.string().optional());
19876
+ const href = getProsemirrorAttribute(mark, "href", z385.string().optional());
19799
19877
  if (!href) return null;
19800
- const target = getProsemirrorAttribute(mark, "target", z384.string().optional());
19878
+ const target = getProsemirrorAttribute(mark, "target", z385.string().optional());
19801
19879
  const openInNewTab = target === "_blank";
19802
19880
  if (href.startsWith("@")) {
19803
19881
  return {
@@ -19816,9 +19894,9 @@ function parseProsemirrorLink(mark) {
19816
19894
  }
19817
19895
  }
19818
19896
  function parseProsemirrorCommentHighlight(mark) {
19819
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z384.string().optional());
19897
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z385.string().optional());
19820
19898
  if (!highlightId) return null;
19821
- const isResolved = getProsemirrorAttribute(mark, "resolved", z384.boolean().optional()) ?? false;
19899
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z385.boolean().optional()) ?? false;
19822
19900
  return {
19823
19901
  type: "Comment",
19824
19902
  commentHighlightId: highlightId,
@@ -19829,7 +19907,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
19829
19907
  const id = getProsemirrorBlockId(prosemirrorNode);
19830
19908
  if (!id) return null;
19831
19909
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
19832
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z384.boolean().optional()) !== false;
19910
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z385.boolean().optional()) !== false;
19833
19911
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
19834
19912
  if (!tableChild) {
19835
19913
  return emptyTable(id, variantId, 0);
@@ -19875,9 +19953,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
19875
19953
  function parseAsTableCell(prosemirrorNode) {
19876
19954
  const id = getProsemirrorBlockId(prosemirrorNode);
19877
19955
  if (!id) return null;
19878
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z384.string().optional());
19956
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z385.string().optional());
19879
19957
  let columnWidth;
19880
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z384.array(z384.number()).nullish());
19958
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z385.array(z385.number()).nullish());
19881
19959
  if (columnWidthArray) {
19882
19960
  columnWidth = roundDimension(columnWidthArray[0]);
19883
19961
  }
@@ -19913,7 +19991,7 @@ function parseAsTableNode(prosemirrorNode) {
19913
19991
  value: parseRichText(prosemirrorNode.content ?? [])
19914
19992
  };
19915
19993
  case "image":
19916
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z384.string());
19994
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z385.string());
19917
19995
  if (!items) return null;
19918
19996
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
19919
19997
  if (!parsedItems.success) return null;
@@ -20027,7 +20105,7 @@ function definitionExpectsPlaceholderItem(definition) {
20027
20105
  );
20028
20106
  }
20029
20107
  function parseBlockItems(prosemirrorNode, definition) {
20030
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z384.string());
20108
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z385.string());
20031
20109
  if (!itemsString) return null;
20032
20110
  const itemsJson = JSON.parse(itemsString);
20033
20111
  if (!Array.isArray(itemsJson)) {
@@ -20038,18 +20116,18 @@ function parseBlockItems(prosemirrorNode, definition) {
20038
20116
  }
20039
20117
  function parseAppearance(prosemirrorNode) {
20040
20118
  let appearance = {};
20041
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z384.string().optional());
20119
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z385.string().optional());
20042
20120
  if (rawAppearanceString) {
20043
20121
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
20044
20122
  if (parsedAppearance.success) {
20045
20123
  appearance = parsedAppearance.data;
20046
20124
  }
20047
20125
  }
20048
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z384.number().optional());
20126
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z385.number().optional());
20049
20127
  if (columns) {
20050
20128
  appearance.numberOfColumns = columns;
20051
20129
  }
20052
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z384.string().optional());
20130
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z385.string().optional());
20053
20131
  if (backgroundColor) {
20054
20132
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
20055
20133
  if (parsedColor.success) {
@@ -20150,12 +20228,12 @@ function valueSchemaForPropertyType(type) {
20150
20228
  }
20151
20229
  }
20152
20230
  function getProsemirrorBlockId(prosemirrorNode) {
20153
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z384.string());
20231
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z385.string());
20154
20232
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
20155
20233
  return id;
20156
20234
  }
20157
20235
  function getProsemirrorBlockVariantId(prosemirrorNode) {
20158
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z384.string()));
20236
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z385.string()));
20159
20237
  }
20160
20238
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
20161
20239
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -21854,6 +21932,14 @@ export {
21854
21932
  DTOIntegrationPostResponse,
21855
21933
  DTOIntegrationsGetListResponse,
21856
21934
  DTOKeepAliveFeatureSandboxResponse,
21935
+ DTOKnowledgeItem,
21936
+ DTOKnowledgeItemCreatePayload,
21937
+ DTOKnowledgeItemDeletePayload,
21938
+ DTOKnowledgeItemDeleteResponse,
21939
+ DTOKnowledgeItemListResponse,
21940
+ DTOKnowledgeItemResponse,
21941
+ DTOKnowledgeItemType,
21942
+ DTOKnowledgeItemUpdatePayload,
21857
21943
  DTOLiveblocksAuthRequest,
21858
21944
  DTOLiveblocksAuthResponse,
21859
21945
  DTOLoginScreenSettings,
@@ -22189,6 +22275,7 @@ export {
22189
22275
  WorkspaceConfigurationPayload,
22190
22276
  WorkspaceIntegrationsEndpoint,
22191
22277
  WorkspaceInvitationsEndpoint,
22278
+ WorkspaceKnowledgeItemsEndpoint,
22192
22279
  WorkspaceMembersEndpoint,
22193
22280
  WorkspaceNpmRegistryEndpoint,
22194
22281
  WorkspaceSubscriptionEndpoint,