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