@supernova-studio/client 1.19.0 → 1.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7039,8 +7039,12 @@ import { z as z249 } from "zod";
7039
7039
 
7040
7040
  // src/api/dto/workspaces/billing.ts
7041
7041
  import z238 from "zod";
7042
+ var DTOBillingSupportedModels = z238.enum(["GPT_4_1", "GPT_4_1_MINI", "GPT_4O", "O1"]);
7042
7043
  var DTOBillingCreditsSpendInput = z238.object({
7043
- amount: z238.number()
7044
+ inputTokenCount: z238.number().int().nonnegative(),
7045
+ outputTokenCount: z238.number().int().nonnegative(),
7046
+ inputCachedTokenCount: z238.number().int().nonnegative().optional(),
7047
+ modelName: DTOBillingSupportedModels
7044
7048
  });
7045
7049
  var DTOBillingCreditsSpendResponse = z238.object({
7046
7050
  hasSpentCredits: z238.boolean()
@@ -9056,11 +9060,153 @@ var DTOForgeArtifactGetResponse = z309.object({
9056
9060
  artifact: DTOForgeArtifact.nullable()
9057
9061
  });
9058
9062
 
9063
+ // src/api/dto/forge/feature-messages.ts
9064
+ import z310 from "zod";
9065
+ var DTOFeatureMessageUserSender = z310.object({
9066
+ type: z310.literal("User"),
9067
+ userId: z310.string()
9068
+ });
9069
+ var DTOFeatureMessageAgentSender = z310.object({
9070
+ type: z310.literal("Agent"),
9071
+ agentType: z310.enum(["Cody"])
9072
+ });
9073
+ var DTOFeatureMessageSystemSender = z310.object({
9074
+ type: z310.literal("System"),
9075
+ onBehalfOfUserId: z310.string()
9076
+ });
9077
+ var DTOFeatureMessageSender = z310.discriminatedUnion("type", [
9078
+ DTOFeatureMessageUserSender,
9079
+ DTOFeatureMessageAgentSender,
9080
+ DTOFeatureMessageSystemSender
9081
+ ]);
9082
+ var DTOFeatureMessageReaction = z310.object({
9083
+ messageId: Id,
9084
+ userId: z310.string(),
9085
+ emoji: z310.string(),
9086
+ createdAt: z310.coerce.date()
9087
+ });
9088
+ var DTOFeatureMessage = z310.object({
9089
+ id: Id,
9090
+ /**
9091
+ * Describes where the message came from
9092
+ */
9093
+ sender: DTOFeatureMessageSender,
9094
+ /**
9095
+ * Content of the message
9096
+ */
9097
+ body: z310.string(),
9098
+ /**
9099
+ * Indicates if the message was sent in the agentic mode,
9100
+ */
9101
+ isPrompt: z310.boolean().optional(),
9102
+ /**
9103
+ * Indicates if the sender requested agent to reply in a thread
9104
+ */
9105
+ startsNewThread: z310.boolean().optional(),
9106
+ /**
9107
+ * If defined, this message is considered to be a reply in a thread under parent message id
9108
+ */
9109
+ parentMessageId: Id.optional(),
9110
+ /**
9111
+ * Link agent response object describing current state of
9112
+ */
9113
+ agentResponseTrackerId: Id.optional(),
9114
+ /**
9115
+ * If the message started a thread, this indicates the current iteration within that thread
9116
+ */
9117
+ currentIterationId: Id.optional(),
9118
+ attachments: z310.object({
9119
+ iterationId: z310.string().optional()
9120
+ // TODO Artem: files, etc
9121
+ }).optional(),
9122
+ createdAt: z310.coerce.date(),
9123
+ updatedAt: z310.coerce.date().optional()
9124
+ });
9125
+ var DTOFeatureAgentResponseTracker = z310.object({
9126
+ id: Id,
9127
+ currentBody: z310.string().optional()
9128
+ });
9129
+ var DTOFeatureArtifact = z310.object({
9130
+ id: Id,
9131
+ url: z310.string()
9132
+ // Implied:
9133
+ // type: z.literal("Build"),
9134
+ });
9135
+ var DTOFeatureIteration = z310.object({
9136
+ id: Id,
9137
+ /**
9138
+ * Message ID that triggered creation of the iteration
9139
+ */
9140
+ startedFromMessageId: z310.string(),
9141
+ /**
9142
+ * Indicates whether the iteration is currently being generated by an agent
9143
+ */
9144
+ isInProgress: z310.boolean().optional(),
9145
+ /**
9146
+ * Artifacts that the iteration is built from
9147
+ */
9148
+ artifactIds: Id.array().optional(),
9149
+ /**
9150
+ * URL of a static preview of the feature
9151
+ */
9152
+ staticPreviewUrl: z310.string().optional(),
9153
+ createdAt: z310.coerce.date(),
9154
+ updatedAt: z310.coerce.date().optional()
9155
+ });
9156
+ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9157
+ id: true,
9158
+ body: true,
9159
+ isPrompt: true,
9160
+ startsNewThread: true,
9161
+ parentMessageId: true
9162
+ });
9163
+ var DTOFeatureMessageReactionCreateInput = z310.object({
9164
+ messageId: Id,
9165
+ emoji: z310.string()
9166
+ });
9167
+ var DTOFeatureMessageReactionDeleteInput = z310.object({
9168
+ messageId: Id,
9169
+ emoji: z310.string()
9170
+ });
9171
+ var DTOFeatureMessageResponse = z310.object({
9172
+ message: DTOFeatureMessage
9173
+ });
9174
+ var DTOFeatureMessageReactionResponse = z310.object({
9175
+ reaction: DTOFeatureMessageReaction
9176
+ });
9177
+ var DTOFeatureMessageListResponse = z310.object({
9178
+ messages: DTOFeatureMessage.array(),
9179
+ reactions: DTOFeatureMessageReaction.array(),
9180
+ lastSeenMessageId: z310.string().optional()
9181
+ });
9182
+ var DTOFeatureEventMessagesSent = z310.object({
9183
+ type: z310.literal("MessagesSent"),
9184
+ data: DTOFeatureMessage.array()
9185
+ });
9186
+ var DTOFeatureEventReactionsSent = z310.object({
9187
+ type: z310.literal("ReactionsSent"),
9188
+ data: DTOFeatureMessageReaction.array()
9189
+ });
9190
+ var DTOFeatureEventReactionsDeleted = z310.object({
9191
+ type: z310.literal("ReactionsDeleted"),
9192
+ data: DTOFeatureMessageReaction
9193
+ });
9194
+ var DTOFeatureEventAgentResponseFinished = z310.object({
9195
+ type: z310.literal("AgentResponseFinished"),
9196
+ data: DTOFeatureMessage
9197
+ });
9198
+ var DTOFeatureEvent = z310.discriminatedUnion("type", [
9199
+ DTOFeatureEventMessagesSent,
9200
+ DTOFeatureEventReactionsSent,
9201
+ DTOFeatureEventReactionsDeleted,
9202
+ DTOFeatureEventAgentResponseFinished
9203
+ ]);
9204
+
9059
9205
  // src/api/dto/forge/iteration-message-old.ts
9060
- import { z as z311 } from "zod";
9206
+ import { z as z312 } from "zod";
9061
9207
 
9062
9208
  // src/api/dto/forge/participant.ts
9063
- import { z as z310 } from "zod";
9209
+ import { z as z311 } from "zod";
9064
9210
  var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
9065
9211
  agent: DTOForgeAgent.optional(),
9066
9212
  user: DTOUser.optional()
@@ -9070,20 +9216,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
9070
9216
  agent: true,
9071
9217
  user: true
9072
9218
  });
9073
- var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z310.string() });
9074
- var DTOCreateForgeParticipantResponse = z310.object({
9219
+ var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z311.string() });
9220
+ var DTOCreateForgeParticipantResponse = z311.object({
9075
9221
  participant: DTOForgeParticipant
9076
9222
  });
9077
- var DTOUpdateForgeParticipantResponse = z310.object({
9223
+ var DTOUpdateForgeParticipantResponse = z311.object({
9078
9224
  participant: DTOForgeParticipant.nullable()
9079
9225
  });
9080
- var DTODeleteForgeParticipantResponse = z310.object({
9081
- ok: z310.literal(true)
9226
+ var DTODeleteForgeParticipantResponse = z311.object({
9227
+ ok: z311.literal(true)
9082
9228
  });
9083
- var DTOForgeParticipantsListResponse = z310.object({
9084
- participants: z310.array(DTOForgeParticipant)
9229
+ var DTOForgeParticipantsListResponse = z311.object({
9230
+ participants: z311.array(DTOForgeParticipant)
9085
9231
  });
9086
- var DTOForgeParticipantGetResponse = z310.object({
9232
+ var DTOForgeParticipantGetResponse = z311.object({
9087
9233
  participant: DTOForgeParticipant.nullable()
9088
9234
  });
9089
9235
 
@@ -9095,137 +9241,32 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
9095
9241
  projectIterationId: true,
9096
9242
  participant: true
9097
9243
  });
9098
- var DTOGetForgeIterationMessageResponse = z311.object({
9244
+ var DTOGetForgeIterationMessageResponse = z312.object({
9099
9245
  message: DTOForgeIterationMessage.nullable()
9100
9246
  });
9101
- var DTOForgeIterationMessagesListResponse = z311.object({
9102
- messages: z311.array(DTOForgeIterationMessage)
9247
+ var DTOForgeIterationMessagesListResponse = z312.object({
9248
+ messages: z312.array(DTOForgeIterationMessage)
9103
9249
  });
9104
- var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z311.string() });
9105
- var DTOCreateForgeIterationMessageResponse = z311.object({
9250
+ var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z312.string() });
9251
+ var DTOCreateForgeIterationMessageResponse = z312.object({
9106
9252
  message: DTOForgeIterationMessage
9107
9253
  });
9108
- var DTOUpdateForgeIterationMessageResponse = z311.object({
9254
+ var DTOUpdateForgeIterationMessageResponse = z312.object({
9109
9255
  message: DTOForgeIterationMessage.nullable()
9110
9256
  });
9111
- var DTODeleteForgeIterationMessageResponse = z311.object({
9112
- ok: z311.literal(true)
9113
- });
9114
-
9115
- // src/api/dto/forge/project.ts
9116
- import { z as z314 } from "zod";
9117
-
9118
- // src/api/dto/forge/project-member.ts
9119
- import { z as z313 } from "zod";
9120
-
9121
- // src/api/dto/forge/project-invitation.ts
9122
- import { z as z312 } from "zod";
9123
- var DTOForgeProjectInvitation = ForgeProjectInvitation;
9124
- var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9125
- email: true,
9126
- role: true
9127
- }).extend({
9128
- workspaceRole: WorkspaceRoleSchema
9129
- });
9130
- var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9131
- email: true,
9132
- workspaceRole: true
9133
- });
9134
- var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9135
- email: true
9136
- });
9137
- var DTOForgeProjectInvitationsListResponse = z312.object({
9138
- invitations: z312.array(DTOForgeProjectInvitation)
9139
- });
9140
- var DTOForgeProjectInvitationGetResponse = z312.object({
9141
- invitation: DTOForgeProjectInvitation
9142
- });
9143
- var DTOForgeProjectInvitationCreateResponse = z312.object({
9144
- invitation: DTOForgeProjectInvitation
9145
- });
9146
- var DTOForgeProjectInvitationUpdateResponse = z312.object({
9147
- invitation: DTOForgeProjectInvitation.nullable()
9148
- });
9149
- var DTOForgeProjectInvitationRemoveResponse = z312.object({
9257
+ var DTODeleteForgeIterationMessageResponse = z312.object({
9150
9258
  ok: z312.literal(true)
9151
9259
  });
9152
9260
 
9153
- // src/api/dto/forge/project-member.ts
9154
- var DTOForgeProjectMemberRole = ForgeProjectRole;
9155
- var DTOForgeProjectMember = ForgeProjectMembership.extend({
9156
- user: DTOUser,
9157
- effectiveRole: DTOForgeProjectMemberRole
9158
- });
9159
- var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
9160
- userId: true,
9161
- role: true
9162
- });
9163
- var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: true });
9164
- var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
9165
- userId: true
9166
- });
9167
- var DTOForgeProjectMembersListResponse = z313.object({
9168
- members: z313.array(DTOForgeProjectMember),
9169
- invitations: z313.array(DTOForgeProjectInvitation)
9170
- });
9171
- var DTOForgeProjectMemberGetResponse = z313.object({
9172
- member: DTOForgeProjectMember
9173
- });
9174
- var DTOForgeProjectMemberCreateResponse = z313.object({
9175
- member: DTOForgeProjectMember
9176
- });
9177
- var DTOForgeProjectMemberUpdateResponse = z313.object({
9178
- member: DTOForgeProjectMember.nullable()
9179
- });
9180
- var DTOForgeProjectMemberRemoveResponse = z313.object({
9181
- ok: z313.literal(true)
9182
- });
9183
- var DTOAddMembersToForgeProject = z313.object({
9184
- membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
9185
- });
9186
-
9187
- // src/api/dto/forge/project.ts
9188
- var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
9189
- context: ForgeProjectContext,
9190
- members: z314.array(DTOForgeProjectMember),
9191
- invitations: z314.array(DTOForgeProjectInvitation)
9192
- });
9193
- var DTOCreateForgeProject = ForgeProject.pick({
9194
- instruction: true,
9195
- name: true,
9196
- meta: true,
9197
- tags: true,
9198
- accessMode: true,
9199
- fpContextId: true,
9200
- isArchived: true,
9201
- emoji: true
9202
- }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
9203
- var DTOUpdateForgeProject = DTOCreateForgeProject.omit({ membersToInvite: true }).partial().extend({
9204
- id: z314.string(),
9205
- membersToRetain: z314.string().array().min(1).optional()
9206
- });
9207
- var DTOForgeProjectGetResponse = z314.object({ project: DTOForgeProject.nullable() });
9208
- var DTOForgeProjectsListResponse = z314.object({ projects: z314.array(DTOForgeProject) });
9209
- var DTOCreateForgeProjectResponse = z314.object({
9210
- project: DTOForgeProject
9211
- });
9212
- var DTOUpdateForgeProjectResponse = z314.object({
9213
- project: DTOForgeProject
9214
- });
9215
- var DTOUGetForgeProjectResponse = z314.object({
9216
- project: DTOForgeProject
9217
- });
9218
- var DTORemoveForgeProjectResponse = z314.object({ ok: z314.literal(true) });
9219
-
9220
9261
  // src/api/dto/forge/project-action.ts
9221
- import z318 from "zod";
9262
+ import z316 from "zod";
9222
9263
 
9223
9264
  // src/api/dto/forge/project-artifact.ts
9224
- import { z as z316 } from "zod";
9265
+ import { z as z314 } from "zod";
9225
9266
 
9226
9267
  // src/api/dto/forge/project-section.ts
9227
- import z315 from "zod";
9228
- var AfterSectionId = z315.string().uuid().nullish().optional();
9268
+ import z313 from "zod";
9269
+ var AfterSectionId = z313.string().uuid().nullish().optional();
9229
9270
  var DTOForgeSection = ForgeSection;
9230
9271
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9231
9272
  id: true,
@@ -9236,12 +9277,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9236
9277
  });
9237
9278
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
9238
9279
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
9239
- deleteChildren: z315.boolean().default(false)
9280
+ deleteChildren: z313.boolean().default(false)
9240
9281
  });
9241
9282
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
9242
9283
  afterSectionId: AfterSectionId
9243
9284
  });
9244
- var DTOForgeSectionItemMoveInput = z315.object({
9285
+ var DTOForgeSectionItemMoveInput = z313.object({
9245
9286
  id: Id,
9246
9287
  sectionId: Id.nullish().optional(),
9247
9288
  // undefined=stay, null=no section, string=move to section
@@ -9251,117 +9292,117 @@ var DTOForgeSectionItemMoveInput = z315.object({
9251
9292
 
9252
9293
  // src/api/dto/forge/project-artifact.ts
9253
9294
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
9254
- var DTOForgeProjectArtifactUpdateInput = z316.object({
9255
- id: z316.string(),
9256
- title: z316.string().optional()
9295
+ var DTOForgeProjectArtifactUpdateInput = z314.object({
9296
+ id: z314.string(),
9297
+ title: z314.string().optional()
9257
9298
  });
9258
- var DTOForgeProjectArtifactCreateInput = z316.object({
9259
- id: z316.string(),
9260
- title: z316.string(),
9261
- sectionId: z316.string().optional(),
9262
- afterArtifactId: z316.string().optional().nullable()
9299
+ var DTOForgeProjectArtifactCreateInput = z314.object({
9300
+ id: z314.string(),
9301
+ title: z314.string(),
9302
+ sectionId: z314.string().optional(),
9303
+ afterArtifactId: z314.string().optional().nullable()
9263
9304
  });
9264
- var DTOForgeProjectArtifactDeleteInput = z316.object({
9305
+ var DTOForgeProjectArtifactDeleteInput = z314.object({
9265
9306
  id: Id
9266
9307
  });
9267
9308
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
9268
- var DTOForgeProjectArtifactGetResponse = z316.object({
9309
+ var DTOForgeProjectArtifactGetResponse = z314.object({
9269
9310
  artifact: DTOForgeProjectArtifact
9270
9311
  });
9271
- var DTOForgeProjectArtifactCreateResponse = z316.object({
9312
+ var DTOForgeProjectArtifactCreateResponse = z314.object({
9272
9313
  artifact: DTOForgeProjectArtifact
9273
9314
  });
9274
- var DTOForgeProjectArtifactUpdateResponse = z316.object({
9315
+ var DTOForgeProjectArtifactUpdateResponse = z314.object({
9275
9316
  artifact: DTOForgeProjectArtifact
9276
9317
  });
9277
- var DTOForgeProjectArtifactDeleteResponse = z316.object({
9278
- ok: z316.literal(true)
9318
+ var DTOForgeProjectArtifactDeleteResponse = z314.object({
9319
+ ok: z314.literal(true)
9279
9320
  });
9280
- var DTOForgeProjectArtifactMoveResponse = z316.object({
9321
+ var DTOForgeProjectArtifactMoveResponse = z314.object({
9281
9322
  artifact: DTOForgeProjectArtifact
9282
9323
  });
9283
- var DTOForgeProjectArtifactsListResponse = z316.object({
9284
- artifacts: z316.array(DTOForgeProjectArtifact)
9324
+ var DTOForgeProjectArtifactsListResponse = z314.object({
9325
+ artifacts: z314.array(DTOForgeProjectArtifact)
9285
9326
  });
9286
9327
 
9287
9328
  // src/api/dto/forge/project-feature.ts
9288
- import z317 from "zod";
9329
+ import z315 from "zod";
9289
9330
  var DTOForgeProjectFeature = ProjectFeature;
9290
- var DTOForgeProjectFeatureListResponse = z317.object({
9331
+ var DTOForgeProjectFeatureListResponse = z315.object({
9291
9332
  features: DTOForgeProjectFeature.array()
9292
9333
  });
9293
- var DTOForgeProjectFeatureGetResponse = z317.object({
9334
+ var DTOForgeProjectFeatureGetResponse = z315.object({
9294
9335
  feature: DTOForgeProjectFeature
9295
9336
  });
9296
- var DTOForgeProjectFeatureCreateInput = z317.object({
9337
+ var DTOForgeProjectFeatureCreateInput = z315.object({
9297
9338
  id: Id,
9298
- name: z317.string(),
9299
- description: z317.string(),
9339
+ name: z315.string(),
9340
+ description: z315.string(),
9300
9341
  sectionId: Id.optional(),
9301
9342
  afterFeatureId: Id.nullable().optional()
9302
9343
  });
9303
- var DTOForgeProjectFeatureUpdateInput = z317.object({
9344
+ var DTOForgeProjectFeatureUpdateInput = z315.object({
9304
9345
  id: Id,
9305
- name: z317.string().optional(),
9306
- description: z317.string().optional(),
9307
- isArchived: z317.boolean().optional(),
9346
+ name: z315.string().optional(),
9347
+ description: z315.string().optional(),
9348
+ isArchived: z315.boolean().optional(),
9308
9349
  status: ProjectFeatureStatus.optional()
9309
9350
  });
9310
- var DTOForgeProjectFeatureDeleteInput = z317.object({
9351
+ var DTOForgeProjectFeatureDeleteInput = z315.object({
9311
9352
  id: Id
9312
9353
  });
9313
9354
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9314
9355
 
9315
9356
  // src/api/dto/forge/project-action.ts
9316
- var DTOForgeProjectActionFeatureCreate = z318.object({
9317
- type: z318.literal("FeatureCreate"),
9357
+ var DTOForgeProjectActionFeatureCreate = z316.object({
9358
+ type: z316.literal("FeatureCreate"),
9318
9359
  input: DTOForgeProjectFeatureCreateInput
9319
9360
  });
9320
- var DTOForgeProjectActionFeatureUpdate = z318.object({
9321
- type: z318.literal("FeatureUpdate"),
9361
+ var DTOForgeProjectActionFeatureUpdate = z316.object({
9362
+ type: z316.literal("FeatureUpdate"),
9322
9363
  input: DTOForgeProjectFeatureUpdateInput
9323
9364
  });
9324
- var DTOForgeProjectActionFeatureMove = z318.object({
9325
- type: z318.literal("FeatureMove"),
9365
+ var DTOForgeProjectActionFeatureMove = z316.object({
9366
+ type: z316.literal("FeatureMove"),
9326
9367
  input: DTOForgeProjectFeatureMoveInput
9327
9368
  });
9328
- var DTOForgeProjectActionFeatureDelete = z318.object({
9329
- type: z318.literal("FeatureDelete"),
9369
+ var DTOForgeProjectActionFeatureDelete = z316.object({
9370
+ type: z316.literal("FeatureDelete"),
9330
9371
  input: DTOForgeProjectFeatureDeleteInput
9331
9372
  });
9332
- var DTOForgeProjectActionArtifactCreate = z318.object({
9333
- type: z318.literal("ArtifactCreate"),
9373
+ var DTOForgeProjectActionArtifactCreate = z316.object({
9374
+ type: z316.literal("ArtifactCreate"),
9334
9375
  input: DTOForgeProjectArtifactCreateInput
9335
9376
  });
9336
- var DTOForgeProjectActionArtifactUpdate = z318.object({
9337
- type: z318.literal("ArtifactUpdate"),
9377
+ var DTOForgeProjectActionArtifactUpdate = z316.object({
9378
+ type: z316.literal("ArtifactUpdate"),
9338
9379
  input: DTOForgeProjectArtifactUpdateInput
9339
9380
  });
9340
- var DTOForgeProjectActionArtifactDelete = z318.object({
9341
- type: z318.literal("ArtifactDelete"),
9381
+ var DTOForgeProjectActionArtifactDelete = z316.object({
9382
+ type: z316.literal("ArtifactDelete"),
9342
9383
  input: DTOForgeProjectArtifactDeleteInput
9343
9384
  });
9344
- var DTOForgeProjectActionArtifactMove = z318.object({
9345
- type: z318.literal("ArtifactMove"),
9385
+ var DTOForgeProjectActionArtifactMove = z316.object({
9386
+ type: z316.literal("ArtifactMove"),
9346
9387
  input: DTOForgeProjectArtifactMoveInput
9347
9388
  });
9348
- var DTOForgeProjectActionSectionCreate = z318.object({
9349
- type: z318.literal("SectionCreate"),
9389
+ var DTOForgeProjectActionSectionCreate = z316.object({
9390
+ type: z316.literal("SectionCreate"),
9350
9391
  input: DTOForgeSectionCreateInput
9351
9392
  });
9352
- var DTOForgeProjectActionSectionUpdate = z318.object({
9353
- type: z318.literal("SectionUpdate"),
9393
+ var DTOForgeProjectActionSectionUpdate = z316.object({
9394
+ type: z316.literal("SectionUpdate"),
9354
9395
  input: DTOForgeSectionUpdateInput
9355
9396
  });
9356
- var DTOForgeProjectActionSectionDelete = z318.object({
9357
- type: z318.literal("SectionDelete"),
9397
+ var DTOForgeProjectActionSectionDelete = z316.object({
9398
+ type: z316.literal("SectionDelete"),
9358
9399
  input: DTOForgeSectionDeleteInput
9359
9400
  });
9360
- var DTOForgeProjectActionSectionMove = z318.object({
9361
- type: z318.literal("SectionMove"),
9401
+ var DTOForgeProjectActionSectionMove = z316.object({
9402
+ type: z316.literal("SectionMove"),
9362
9403
  input: DTOForgeSectionMoveInput
9363
9404
  });
9364
- var DTOForgeProjectAction = z318.discriminatedUnion("type", [
9405
+ var DTOForgeProjectAction = z316.discriminatedUnion("type", [
9365
9406
  //features
9366
9407
  DTOForgeProjectActionFeatureCreate,
9367
9408
  DTOForgeProjectActionFeatureUpdate,
@@ -9378,22 +9419,22 @@ var DTOForgeProjectAction = z318.discriminatedUnion("type", [
9378
9419
  DTOForgeProjectActionSectionDelete,
9379
9420
  DTOForgeProjectActionSectionMove
9380
9421
  ]).and(
9381
- z318.object({
9382
- tId: z318.string().optional()
9422
+ z316.object({
9423
+ tId: z316.string().optional()
9383
9424
  })
9384
9425
  );
9385
9426
 
9386
9427
  // src/api/dto/forge/project-artifact-room.ts
9387
- import { z as z319 } from "zod";
9388
- var DTOForgeProjectArtifactRoom = z319.object({
9389
- id: z319.string()
9428
+ import { z as z317 } from "zod";
9429
+ var DTOForgeProjectArtifactRoom = z317.object({
9430
+ id: z317.string()
9390
9431
  });
9391
- var DTOForgeProjectArtifactRoomResponse = z319.object({
9432
+ var DTOForgeProjectArtifactRoomResponse = z317.object({
9392
9433
  room: DTOForgeProjectArtifactRoom
9393
9434
  });
9394
9435
 
9395
9436
  // src/api/dto/forge/project-context.ts
9396
- import { z as z320 } from "zod";
9437
+ import { z as z318 } from "zod";
9397
9438
  var DTOForgeProjectContext = ForgeProjectContext;
9398
9439
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9399
9440
  definition: true,
@@ -9405,21 +9446,53 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9405
9446
  tailwindConfig: true,
9406
9447
  styling: true
9407
9448
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
9408
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z320.string() });
9409
- var DTOForgeProjectContextGetResponse = z320.object({ context: DTOForgeProjectContext });
9410
- var DTOForgeProjectContextListResponse = z320.object({ contexts: z320.array(DTOForgeProjectContext) });
9411
- var DTOForgeProjectContextCreateResponse = z320.object({ context: DTOForgeProjectContext });
9412
- var DTOForgeProjectContextUpdateResponse = z320.object({ context: DTOForgeProjectContext });
9413
- var DTOForgeProjectContextRemoveResponse = z320.object({
9414
- ok: z320.literal(true)
9449
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z318.string() });
9450
+ var DTOForgeProjectContextGetResponse = z318.object({ context: DTOForgeProjectContext });
9451
+ var DTOForgeProjectContextListResponse = z318.object({ contexts: z318.array(DTOForgeProjectContext) });
9452
+ var DTOForgeProjectContextCreateResponse = z318.object({ context: DTOForgeProjectContext });
9453
+ var DTOForgeProjectContextUpdateResponse = z318.object({ context: DTOForgeProjectContext });
9454
+ var DTOForgeProjectContextRemoveResponse = z318.object({
9455
+ ok: z318.literal(true)
9415
9456
  });
9416
9457
 
9417
9458
  // src/api/dto/forge/project-figma-node.ts
9418
9459
  var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
9419
9460
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
9420
9461
 
9462
+ // src/api/dto/forge/project-invitation.ts
9463
+ import { z as z319 } from "zod";
9464
+ var DTOForgeProjectInvitation = ForgeProjectInvitation;
9465
+ var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9466
+ email: true,
9467
+ role: true
9468
+ }).extend({
9469
+ workspaceRole: WorkspaceRoleSchema
9470
+ });
9471
+ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9472
+ email: true,
9473
+ workspaceRole: true
9474
+ });
9475
+ var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9476
+ email: true
9477
+ });
9478
+ var DTOForgeProjectInvitationsListResponse = z319.object({
9479
+ invitations: z319.array(DTOForgeProjectInvitation)
9480
+ });
9481
+ var DTOForgeProjectInvitationGetResponse = z319.object({
9482
+ invitation: DTOForgeProjectInvitation
9483
+ });
9484
+ var DTOForgeProjectInvitationCreateResponse = z319.object({
9485
+ invitation: DTOForgeProjectInvitation
9486
+ });
9487
+ var DTOForgeProjectInvitationUpdateResponse = z319.object({
9488
+ invitation: DTOForgeProjectInvitation.nullable()
9489
+ });
9490
+ var DTOForgeProjectInvitationRemoveResponse = z319.object({
9491
+ ok: z319.literal(true)
9492
+ });
9493
+
9421
9494
  // src/api/dto/forge/project-iteration-old.ts
9422
- import { z as z321 } from "zod";
9495
+ import { z as z320 } from "zod";
9423
9496
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
9424
9497
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9425
9498
  artifacts: true,
@@ -9430,7 +9503,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9430
9503
  messages: DTOForgeIterationMessage.array(),
9431
9504
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
9432
9505
  });
9433
- var DTOGetForgeProjectIterationResponse = z321.object({
9506
+ var DTOGetForgeProjectIterationResponse = z320.object({
9434
9507
  iteration: DTOForgeProjectIteration.nullable()
9435
9508
  });
9436
9509
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -9440,17 +9513,52 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
9440
9513
  mergeMeta: true,
9441
9514
  createdAt: true
9442
9515
  });
9443
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z321.string() });
9444
- var DTOCreateForgeProjectIterationResponse = z321.object({
9516
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z320.string() });
9517
+ var DTOCreateForgeProjectIterationResponse = z320.object({
9445
9518
  iteration: DTOForgeProjectIteration
9446
9519
  });
9447
- var DTOUpdateForgeProjectIterationResponse = z321.object({
9520
+ var DTOUpdateForgeProjectIterationResponse = z320.object({
9448
9521
  iteration: DTOForgeProjectIteration.nullable()
9449
9522
  });
9450
- var DTODeleteForgeProjectIterationResponse = z321.object({
9523
+ var DTODeleteForgeProjectIterationResponse = z320.object({
9524
+ ok: z320.literal(true)
9525
+ });
9526
+ var DTOForgeProjectIterationListResponse = z320.object({ iterations: z320.array(DTOForgeProjectIteration) });
9527
+
9528
+ // src/api/dto/forge/project-member.ts
9529
+ import { z as z321 } from "zod";
9530
+ var DTOForgeProjectMemberRole = ForgeProjectRole;
9531
+ var DTOForgeProjectMember = ForgeProjectMembership.extend({
9532
+ user: DTOUser,
9533
+ effectiveRole: DTOForgeProjectMemberRole
9534
+ });
9535
+ var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
9536
+ userId: true,
9537
+ role: true
9538
+ });
9539
+ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: true });
9540
+ var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
9541
+ userId: true
9542
+ });
9543
+ var DTOForgeProjectMembersListResponse = z321.object({
9544
+ members: z321.array(DTOForgeProjectMember),
9545
+ invitations: z321.array(DTOForgeProjectInvitation)
9546
+ });
9547
+ var DTOForgeProjectMemberGetResponse = z321.object({
9548
+ member: DTOForgeProjectMember
9549
+ });
9550
+ var DTOForgeProjectMemberCreateResponse = z321.object({
9551
+ member: DTOForgeProjectMember
9552
+ });
9553
+ var DTOForgeProjectMemberUpdateResponse = z321.object({
9554
+ member: DTOForgeProjectMember.nullable()
9555
+ });
9556
+ var DTOForgeProjectMemberRemoveResponse = z321.object({
9451
9557
  ok: z321.literal(true)
9452
9558
  });
9453
- var DTOForgeProjectIterationListResponse = z321.object({ iterations: z321.array(DTOForgeProjectIteration) });
9559
+ var DTOAddMembersToForgeProject = z321.object({
9560
+ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
9561
+ });
9454
9562
 
9455
9563
  // src/api/dto/forge/project-room.ts
9456
9564
  import { z as z322 } from "zod";
@@ -9461,140 +9569,174 @@ var DTOForgeProjectRoomResponse = z322.object({
9461
9569
  room: DTOForgeProjectRoom
9462
9570
  });
9463
9571
 
9464
- // src/api/dto/forge/threads.ts
9572
+ // src/api/dto/forge/project.ts
9465
9573
  import { z as z323 } from "zod";
9574
+ var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
9575
+ context: ForgeProjectContext,
9576
+ members: z323.array(DTOForgeProjectMember),
9577
+ invitations: z323.array(DTOForgeProjectInvitation)
9578
+ });
9579
+ var DTOCreateForgeProject = ForgeProject.pick({
9580
+ instruction: true,
9581
+ name: true,
9582
+ meta: true,
9583
+ tags: true,
9584
+ accessMode: true,
9585
+ fpContextId: true,
9586
+ isArchived: true,
9587
+ emoji: true
9588
+ }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
9589
+ var DTOUpdateForgeProject = DTOCreateForgeProject.omit({ membersToInvite: true }).partial().extend({
9590
+ id: z323.string(),
9591
+ membersToRetain: z323.string().array().min(1).optional()
9592
+ });
9593
+ var DTOForgeProjectGetResponse = z323.object({ project: DTOForgeProject.nullable() });
9594
+ var DTOForgeProjectsListResponse = z323.object({ projects: z323.array(DTOForgeProject) });
9595
+ var DTOCreateForgeProjectResponse = z323.object({
9596
+ project: DTOForgeProject
9597
+ });
9598
+ var DTOUpdateForgeProjectResponse = z323.object({
9599
+ project: DTOForgeProject
9600
+ });
9601
+ var DTOUGetForgeProjectResponse = z323.object({
9602
+ project: DTOForgeProject
9603
+ });
9604
+ var DTORemoveForgeProjectResponse = z323.object({ ok: z323.literal(true) });
9605
+
9606
+ // src/api/dto/forge/threads.ts
9607
+ import { z as z324 } from "zod";
9466
9608
  var DTOForgeChatMessage = ForgeChatMessage;
9467
9609
  var DTOForgeChatThread = ForgeChatThread;
9468
9610
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
9469
9611
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
9470
- var DTOForgeChatThreadCreateInput = z323.object({
9471
- title: z323.string().optional()
9612
+ var DTOForgeChatThreadCreateInput = z324.object({
9613
+ title: z324.string().optional()
9472
9614
  });
9473
- var DTOForgeChatThreadCreateResponse = z323.object({
9615
+ var DTOForgeChatThreadCreateResponse = z324.object({
9474
9616
  thread: DTOForgeChatThread
9475
9617
  });
9476
- var DTOForgeChatThreadUpdateInput = z323.object({
9477
- title: z323.string()
9618
+ var DTOForgeChatThreadUpdateInput = z324.object({
9619
+ title: z324.string()
9478
9620
  });
9479
- var DTOForgeChatThreadUpdateResponse = z323.object({
9621
+ var DTOForgeChatThreadUpdateResponse = z324.object({
9480
9622
  thread: DTOForgeChatThread
9481
9623
  });
9482
- var DTOForgeChatThreadDeleteResponse = z323.object({
9483
- success: z323.boolean()
9624
+ var DTOForgeChatThreadDeleteResponse = z324.object({
9625
+ success: z324.boolean()
9484
9626
  });
9485
- var DTOForgeChatThreadListQuery = z323.object({
9486
- limit: z323.number().optional(),
9487
- offset: z323.number().optional()
9627
+ var DTOForgeChatThreadListQuery = z324.object({
9628
+ limit: z324.number().optional(),
9629
+ offset: z324.number().optional()
9488
9630
  });
9489
- var DTOForgeChatThreadListResponse = z323.object({
9490
- threads: z323.array(DTOForgeChatThread),
9491
- pagination: z323.object({
9492
- offset: z323.number(),
9493
- limit: z323.number(),
9494
- total: z323.number()
9631
+ var DTOForgeChatThreadListResponse = z324.object({
9632
+ threads: z324.array(DTOForgeChatThread),
9633
+ pagination: z324.object({
9634
+ offset: z324.number(),
9635
+ limit: z324.number(),
9636
+ total: z324.number()
9495
9637
  })
9496
9638
  });
9497
- var DTOForgeChatMessageCreateInput = z323.object({
9498
- payload: z323.string(),
9639
+ var DTOForgeChatMessageCreateInput = z324.object({
9640
+ payload: z324.string(),
9499
9641
  sender: DTOForgeChatMessageSender.optional(),
9500
- opikTraceId: z323.string().optional()
9642
+ opikTraceId: z324.string().optional()
9501
9643
  });
9502
- var DTOForgeChatMessageCreateResponse = z323.object({
9644
+ var DTOForgeChatMessageCreateResponse = z324.object({
9503
9645
  message: DTOForgeChatMessage
9504
9646
  });
9505
- var DTOForgeChatMessageListQuery = z323.object({
9506
- limit: z323.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
9507
- offset: z323.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
9647
+ var DTOForgeChatMessageListQuery = z324.object({
9648
+ limit: z324.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
9649
+ offset: z324.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
9508
9650
  });
9509
- var DTOForgeChatMessageListResponse = z323.object({
9510
- messages: z323.array(DTOForgeChatMessage),
9511
- totalCount: z323.number(),
9512
- hasMore: z323.boolean()
9651
+ var DTOForgeChatMessageListResponse = z324.object({
9652
+ messages: z324.array(DTOForgeChatMessage),
9653
+ totalCount: z324.number(),
9654
+ hasMore: z324.boolean()
9513
9655
  });
9514
- var DTOForgeChatMessageScoreInput = z323.object({
9515
- messageId: z323.string(),
9516
- name: z323.string(),
9517
- value: z323.number(),
9518
- categoryName: z323.string().optional(),
9519
- reason: z323.string().optional()
9656
+ var DTOForgeChatMessageScoreInput = z324.object({
9657
+ messageId: z324.string(),
9658
+ name: z324.string(),
9659
+ value: z324.number(),
9660
+ categoryName: z324.string().optional(),
9661
+ reason: z324.string().optional()
9520
9662
  });
9521
- var DTOForgeChatMessageTagInput = z323.object({
9522
- messageId: z323.string(),
9523
- tags: z323.array(z323.string())
9663
+ var DTOForgeChatMessageTagInput = z324.object({
9664
+ messageId: z324.string(),
9665
+ tags: z324.array(z324.string())
9524
9666
  });
9525
- var DTOForgeChatMessageScoreRequest = z323.object({
9667
+ var DTOForgeChatMessageScoreRequest = z324.object({
9526
9668
  scores: DTOForgeChatMessageScoreInput.array(),
9527
9669
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
9528
9670
  });
9529
9671
 
9530
9672
  // src/api/dto/liveblocks/auth-response.ts
9531
- import { z as z324 } from "zod";
9532
- var DTOLiveblocksAuthResponse = z324.object({
9533
- token: z324.string()
9673
+ import { z as z325 } from "zod";
9674
+ var DTOLiveblocksAuthResponse = z325.object({
9675
+ token: z325.string()
9534
9676
  });
9535
9677
 
9536
9678
  // src/api/dto/portal/portal-settings.ts
9537
- import { z as z325 } from "zod";
9679
+ import { z as z326 } from "zod";
9538
9680
  var DTOPortalSettingsTheme = PortalSettingsTheme;
9539
9681
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
9540
9682
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
9541
9683
  var DTOPortalSettingsSidebar = PortalSettingsSidebar;
9542
- var DTOPortalSettings = z325.object({
9543
- id: z325.string(),
9544
- workspaceId: z325.string(),
9545
- enabledDesignSystemIds: z325.array(z325.string()),
9546
- enabledBrandPersistentIds: z325.array(z325.string()),
9684
+ var DTOPortalSettings = z326.object({
9685
+ id: z326.string(),
9686
+ workspaceId: z326.string(),
9687
+ enabledDesignSystemIds: z326.array(z326.string()),
9688
+ enabledBrandPersistentIds: z326.array(z326.string()),
9547
9689
  theme: DTOPortalSettingsTheme.nullish(),
9548
9690
  sidebar: DTOPortalSettingsSidebar.nullish(),
9549
- createdAt: z325.coerce.date(),
9550
- updatedAt: z325.coerce.date()
9691
+ createdAt: z326.coerce.date(),
9692
+ updatedAt: z326.coerce.date()
9551
9693
  });
9552
- var DTOPortalSettingsGetResponse = z325.object({
9694
+ var DTOPortalSettingsGetResponse = z326.object({
9553
9695
  portalSettings: DTOPortalSettings
9554
9696
  });
9555
- var DTOPortalSettingsUpdatePayload = z325.object({
9556
- enabledDesignSystemIds: z325.array(z325.string()).optional(),
9557
- enabledBrandPersistentIds: z325.array(z325.string()).optional(),
9697
+ var DTOPortalSettingsUpdatePayload = z326.object({
9698
+ enabledDesignSystemIds: z326.array(z326.string()).optional(),
9699
+ enabledBrandPersistentIds: z326.array(z326.string()).optional(),
9558
9700
  theme: DTOPortalSettingsTheme.nullish(),
9559
9701
  sidebar: DTOPortalSettingsSidebar.nullish()
9560
9702
  });
9561
9703
 
9562
9704
  // src/api/dto/themes/override.ts
9563
- import { z as z326 } from "zod";
9705
+ import { z as z327 } from "zod";
9564
9706
  var DTOThemeOverride = DesignTokenTypedData.and(
9565
- z326.object({
9566
- tokenPersistentId: z326.string(),
9707
+ z327.object({
9708
+ tokenPersistentId: z327.string(),
9567
9709
  origin: ThemeOverrideOrigin.optional()
9568
9710
  })
9569
9711
  );
9570
9712
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
9571
- z326.object({
9572
- tokenPersistentId: z326.string()
9713
+ z327.object({
9714
+ tokenPersistentId: z327.string()
9573
9715
  })
9574
9716
  );
9575
9717
 
9576
9718
  // src/api/dto/themes/theme.ts
9577
- import { z as z327 } from "zod";
9578
- var DTOTheme = z327.object({
9579
- id: z327.string(),
9580
- persistentId: z327.string(),
9581
- designSystemVersionId: z327.string(),
9582
- brandId: z327.string(),
9719
+ import { z as z328 } from "zod";
9720
+ var DTOTheme = z328.object({
9721
+ id: z328.string(),
9722
+ persistentId: z328.string(),
9723
+ designSystemVersionId: z328.string(),
9724
+ brandId: z328.string(),
9583
9725
  meta: ObjectMeta,
9584
- codeName: z327.string(),
9726
+ codeName: z328.string(),
9585
9727
  overrides: DTOThemeOverride.array()
9586
9728
  });
9587
- var DTOThemeResponse = z327.object({
9729
+ var DTOThemeResponse = z328.object({
9588
9730
  theme: DTOTheme
9589
9731
  });
9590
- var DTOThemeListResponse = z327.object({
9732
+ var DTOThemeListResponse = z328.object({
9591
9733
  themes: DTOTheme.array()
9592
9734
  });
9593
- var DTOThemeCreatePayload = z327.object({
9735
+ var DTOThemeCreatePayload = z328.object({
9594
9736
  meta: ObjectMeta,
9595
- persistentId: z327.string(),
9596
- brandId: z327.string(),
9597
- codeName: z327.string(),
9737
+ persistentId: z328.string(),
9738
+ brandId: z328.string(),
9739
+ codeName: z328.string(),
9598
9740
  overrides: DTOThemeOverride.array()
9599
9741
  });
9600
9742
 
@@ -9830,13 +9972,13 @@ var ExportersEndpoint = class {
9830
9972
  };
9831
9973
 
9832
9974
  // src/api/endpoints/codegen/jobs.ts
9833
- import { z as z328 } from "zod";
9975
+ import { z as z329 } from "zod";
9834
9976
  var ExporterJobsEndpoint = class {
9835
9977
  constructor(requestExecutor) {
9836
9978
  this.requestExecutor = requestExecutor;
9837
9979
  }
9838
9980
  list(workspaceId) {
9839
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z328.any());
9981
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z329.any());
9840
9982
  }
9841
9983
  get(workspaceId, jobId) {
9842
9984
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -9894,7 +10036,7 @@ var CodegenEndpoint = class {
9894
10036
  };
9895
10037
 
9896
10038
  // src/api/endpoints/design-system/versions/brands.ts
9897
- import { z as z329 } from "zod";
10039
+ import { z as z330 } from "zod";
9898
10040
  var BrandsEndpoint = class {
9899
10041
  constructor(requestExecutor) {
9900
10042
  this.requestExecutor = requestExecutor;
@@ -9928,7 +10070,7 @@ var BrandsEndpoint = class {
9928
10070
  });
9929
10071
  }
9930
10072
  delete(dsId, vId, brandId) {
9931
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z329.any(), {
10073
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z330.any(), {
9932
10074
  method: "DELETE"
9933
10075
  });
9934
10076
  }
@@ -10195,7 +10337,7 @@ var ImportJobsEndpoint = class {
10195
10337
  };
10196
10338
 
10197
10339
  // src/api/endpoints/design-system/versions/overrides.ts
10198
- import { z as z330 } from "zod";
10340
+ import { z as z331 } from "zod";
10199
10341
  var OverridesEndpoint = class {
10200
10342
  constructor(requestExecutor) {
10201
10343
  this.requestExecutor = requestExecutor;
@@ -10203,7 +10345,7 @@ var OverridesEndpoint = class {
10203
10345
  create(dsId, versionId, themeId, body) {
10204
10346
  return this.requestExecutor.json(
10205
10347
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
10206
- z330.any(),
10348
+ z331.any(),
10207
10349
  {
10208
10350
  method: "POST",
10209
10351
  body
@@ -10213,7 +10355,7 @@ var OverridesEndpoint = class {
10213
10355
  };
10214
10356
 
10215
10357
  // src/api/endpoints/design-system/versions/property-definitions.ts
10216
- import { z as z331 } from "zod";
10358
+ import { z as z332 } from "zod";
10217
10359
  var ElementPropertyDefinitionsEndpoint = class {
10218
10360
  constructor(requestExecutor) {
10219
10361
  this.requestExecutor = requestExecutor;
@@ -10241,7 +10383,7 @@ var ElementPropertyDefinitionsEndpoint = class {
10241
10383
  delete(designSystemId, versionId, defId) {
10242
10384
  return this.requestExecutor.json(
10243
10385
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
10244
- z331.any(),
10386
+ z332.any(),
10245
10387
  { method: "DELETE" }
10246
10388
  );
10247
10389
  }
@@ -10280,7 +10422,7 @@ var VersionStatsEndpoint = class {
10280
10422
  };
10281
10423
 
10282
10424
  // src/api/endpoints/design-system/versions/themes.ts
10283
- import { z as z332 } from "zod";
10425
+ import { z as z333 } from "zod";
10284
10426
  var ThemesEndpoint = class {
10285
10427
  constructor(requestExecutor) {
10286
10428
  this.requestExecutor = requestExecutor;
@@ -10303,7 +10445,7 @@ var ThemesEndpoint = class {
10303
10445
  });
10304
10446
  }
10305
10447
  delete(dsId, versionId, themeId) {
10306
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z332.any(), {
10448
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z333.any(), {
10307
10449
  method: "DELETE"
10308
10450
  });
10309
10451
  }
@@ -10474,7 +10616,7 @@ var DesignSystemContactsEndpoint = class {
10474
10616
  };
10475
10617
 
10476
10618
  // src/api/endpoints/design-system/design-systems.ts
10477
- import { z as z336 } from "zod";
10619
+ import { z as z337 } from "zod";
10478
10620
 
10479
10621
  // src/api/endpoints/design-system/figma-node-structures.ts
10480
10622
  var FigmaNodeStructuresEndpoint = class {
@@ -10551,7 +10693,7 @@ var DesignSystemPageRedirectsEndpoint = class {
10551
10693
  };
10552
10694
 
10553
10695
  // src/api/endpoints/design-system/sources.ts
10554
- import { z as z333 } from "zod";
10696
+ import { z as z334 } from "zod";
10555
10697
  var DesignSystemSourcesEndpoint = class {
10556
10698
  constructor(requestExecutor) {
10557
10699
  this.requestExecutor = requestExecutor;
@@ -10569,7 +10711,7 @@ var DesignSystemSourcesEndpoint = class {
10569
10711
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
10570
10712
  }
10571
10713
  delete(dsId, sourceId) {
10572
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z333.any(), { method: "DELETE" });
10714
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z334.any(), { method: "DELETE" });
10573
10715
  }
10574
10716
  updateFigmaSource(dsId, sourceId, payload) {
10575
10717
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -10612,7 +10754,7 @@ var DesignSystemSourcesEndpoint = class {
10612
10754
  };
10613
10755
 
10614
10756
  // src/api/endpoints/design-system/storybook.ts
10615
- import { z as z334 } from "zod";
10757
+ import { z as z335 } from "zod";
10616
10758
  var StorybookEntriesEndpoint = class {
10617
10759
  constructor(requestExecutor) {
10618
10760
  this.requestExecutor = requestExecutor;
@@ -10628,14 +10770,14 @@ var StorybookEntriesEndpoint = class {
10628
10770
  );
10629
10771
  }
10630
10772
  delete(dsId, entryId) {
10631
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z334.any(), {
10773
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z335.any(), {
10632
10774
  method: "DELETE"
10633
10775
  });
10634
10776
  }
10635
10777
  };
10636
10778
 
10637
10779
  // src/api/endpoints/design-system/storybook-hosting.ts
10638
- import { z as z335 } from "zod";
10780
+ import { z as z336 } from "zod";
10639
10781
  var StorybookHostingEndpoint = class {
10640
10782
  constructor(requestExecutor) {
10641
10783
  this.requestExecutor = requestExecutor;
@@ -10649,7 +10791,7 @@ var StorybookHostingEndpoint = class {
10649
10791
  delete(dsId, storybookUploadId) {
10650
10792
  return this.requestExecutor.json(
10651
10793
  `/design-systems/${dsId}/storybook/${storybookUploadId}`,
10652
- z335.object({ ok: z335.boolean() }),
10794
+ z336.object({ ok: z336.boolean() }),
10653
10795
  {
10654
10796
  method: "DELETE"
10655
10797
  }
@@ -10707,7 +10849,7 @@ var DesignSystemsEndpoint = class {
10707
10849
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
10708
10850
  }
10709
10851
  delete(dsId) {
10710
- return this.requestExecutor.json(`/design-systems/${dsId}`, z336.any(), { method: "DELETE" });
10852
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z337.any(), { method: "DELETE" });
10711
10853
  }
10712
10854
  update(dsId, body) {
10713
10855
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -10928,7 +11070,7 @@ var ForgeProjectContextsEndpoint = class {
10928
11070
  };
10929
11071
 
10930
11072
  // src/api/endpoints/forge/project-members.ts
10931
- import { z as z337 } from "zod";
11073
+ import { z as z338 } from "zod";
10932
11074
  var ForgeProjectMembersEndpoint = class {
10933
11075
  constructor(requestExecutor) {
10934
11076
  this.requestExecutor = requestExecutor;
@@ -10957,7 +11099,7 @@ var ForgeProjectMembersEndpoint = class {
10957
11099
  delete(projectId, userId) {
10958
11100
  return this.requestExecutor.json(
10959
11101
  `/forge/projects/${projectId}/members/${userId}`,
10960
- z337.object({ ok: z337.literal(true) }),
11102
+ z338.object({ ok: z338.literal(true) }),
10961
11103
  {
10962
11104
  method: "DELETE"
10963
11105
  }
@@ -11111,7 +11253,7 @@ var ForgeProjectIterationsEndpoint = class {
11111
11253
  };
11112
11254
 
11113
11255
  // src/api/endpoints/forge/project-invitations.ts
11114
- import { z as z338 } from "zod";
11256
+ import { z as z339 } from "zod";
11115
11257
  var ForgeProjectInvitationsEndpoint = class {
11116
11258
  constructor(requestExecutor) {
11117
11259
  this.requestExecutor = requestExecutor;
@@ -11140,7 +11282,7 @@ var ForgeProjectInvitationsEndpoint = class {
11140
11282
  delete(projectId, email) {
11141
11283
  return this.requestExecutor.json(
11142
11284
  `/forge/projects/${projectId}/members/${encodeURI(btoa(email))}`,
11143
- z338.object({ ok: z338.literal(true) }),
11285
+ z339.object({ ok: z339.literal(true) }),
11144
11286
  {
11145
11287
  method: "DELETE"
11146
11288
  }
@@ -11198,7 +11340,7 @@ var ForgesEndpoint = class {
11198
11340
  };
11199
11341
 
11200
11342
  // src/api/endpoints/workspaces/chat-threads.ts
11201
- import { z as z339 } from "zod";
11343
+ import { z as z340 } from "zod";
11202
11344
  var WorkspaceChatThreadsEndpoint = class {
11203
11345
  constructor(requestExecutor) {
11204
11346
  this.requestExecutor = requestExecutor;
@@ -11230,7 +11372,7 @@ var WorkspaceChatThreadsEndpoint = class {
11230
11372
  );
11231
11373
  }
11232
11374
  delete(workspaceId, threadId) {
11233
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z339.any(), {
11375
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z340.any(), {
11234
11376
  method: "DELETE"
11235
11377
  });
11236
11378
  }
@@ -11262,7 +11404,7 @@ var ChatThreadMessagesEndpoint = class {
11262
11404
  );
11263
11405
  }
11264
11406
  score(workspaceId, threadId, body) {
11265
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z339.any(), {
11407
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z340.any(), {
11266
11408
  method: "POST",
11267
11409
  body
11268
11410
  });
@@ -11270,7 +11412,7 @@ var ChatThreadMessagesEndpoint = class {
11270
11412
  };
11271
11413
 
11272
11414
  // src/api/endpoints/workspaces/integrations.ts
11273
- import { z as z340 } from "zod";
11415
+ import { z as z341 } from "zod";
11274
11416
  var WorkspaceIntegrationsEndpoint = class {
11275
11417
  constructor(requestExecutor) {
11276
11418
  this.requestExecutor = requestExecutor;
@@ -11279,7 +11421,7 @@ var WorkspaceIntegrationsEndpoint = class {
11279
11421
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
11280
11422
  }
11281
11423
  delete(wsId, iId) {
11282
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z340.unknown(), { method: "DELETE" });
11424
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z341.unknown(), { method: "DELETE" });
11283
11425
  }
11284
11426
  };
11285
11427
 
@@ -11311,7 +11453,7 @@ var WorkspaceInvitationsEndpoint = class {
11311
11453
  };
11312
11454
 
11313
11455
  // src/api/endpoints/workspaces/members.ts
11314
- import { z as z341 } from "zod";
11456
+ import { z as z342 } from "zod";
11315
11457
  var WorkspaceMembersEndpoint = class {
11316
11458
  constructor(requestExecutor) {
11317
11459
  this.requestExecutor = requestExecutor;
@@ -11328,7 +11470,7 @@ var WorkspaceMembersEndpoint = class {
11328
11470
  });
11329
11471
  }
11330
11472
  invite(workspaceId, body) {
11331
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z341.any(), { method: "POST", body });
11473
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z342.any(), { method: "POST", body });
11332
11474
  }
11333
11475
  delete(workspaceId, userId) {
11334
11476
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -11357,7 +11499,7 @@ var WorkspaceNpmRegistryEndpoint = class {
11357
11499
  };
11358
11500
 
11359
11501
  // src/api/endpoints/workspaces/workspaces.ts
11360
- import { z as z342 } from "zod";
11502
+ import { z as z343 } from "zod";
11361
11503
  var WorkspacesEndpoint = class {
11362
11504
  constructor(requestExecutor) {
11363
11505
  this.requestExecutor = requestExecutor;
@@ -11389,10 +11531,10 @@ var WorkspacesEndpoint = class {
11389
11531
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
11390
11532
  }
11391
11533
  delete(workspaceId) {
11392
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z342.any(), { method: "DELETE" });
11534
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z343.any(), { method: "DELETE" });
11393
11535
  }
11394
11536
  subscription(workspaceId) {
11395
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z342.any(), { method: "GET" });
11537
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z343.any(), { method: "GET" });
11396
11538
  }
11397
11539
  getPortalSettings(workspaceId) {
11398
11540
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -11503,9 +11645,9 @@ ${bodyText}`,
11503
11645
 
11504
11646
  // src/api/transport/request-executor.ts
11505
11647
  import fetch from "node-fetch";
11506
- import { z as z343 } from "zod";
11507
- var ResponseWrapper = z343.object({
11508
- result: z343.record(z343.any())
11648
+ import { z as z344 } from "zod";
11649
+ var ResponseWrapper = z344.object({
11650
+ result: z344.record(z344.any())
11509
11651
  });
11510
11652
  var RequestExecutor = class {
11511
11653
  constructor(testServerConfig) {
@@ -11582,25 +11724,25 @@ var SupernovaApiClient = class {
11582
11724
  };
11583
11725
 
11584
11726
  // src/events/design-system.ts
11585
- import { z as z344 } from "zod";
11586
- var DTOEventFigmaNodesRendered = z344.object({
11587
- type: z344.literal("DesignSystem.FigmaNodesRendered"),
11588
- designSystemId: z344.string(),
11589
- versionId: z344.string(),
11590
- figmaNodePersistentIds: z344.string().array()
11591
- });
11592
- var DTOEventDataSourcesImported = z344.object({
11593
- type: z344.literal("DesignSystem.ImportJobFinished"),
11594
- designSystemId: z344.string(),
11595
- versionId: z344.string(),
11596
- importJobId: z344.string(),
11727
+ import { z as z345 } from "zod";
11728
+ var DTOEventFigmaNodesRendered = z345.object({
11729
+ type: z345.literal("DesignSystem.FigmaNodesRendered"),
11730
+ designSystemId: z345.string(),
11731
+ versionId: z345.string(),
11732
+ figmaNodePersistentIds: z345.string().array()
11733
+ });
11734
+ var DTOEventDataSourcesImported = z345.object({
11735
+ type: z345.literal("DesignSystem.ImportJobFinished"),
11736
+ designSystemId: z345.string(),
11737
+ versionId: z345.string(),
11738
+ importJobId: z345.string(),
11597
11739
  dataSourceType: DataSourceRemoteType,
11598
- dataSourceIds: z344.string().array()
11740
+ dataSourceIds: z345.string().array()
11599
11741
  });
11600
11742
 
11601
11743
  // src/events/event.ts
11602
- import { z as z345 } from "zod";
11603
- var DTOEvent = z345.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
11744
+ import { z as z346 } from "zod";
11745
+ var DTOEvent = z346.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
11604
11746
 
11605
11747
  // src/sync/docs-local-action-executor.ts
11606
11748
  function applyActionsLocally(input) {
@@ -11896,7 +12038,7 @@ var LocalDocsElementActionExecutor = class {
11896
12038
  import PQueue from "p-queue";
11897
12039
 
11898
12040
  // src/yjs/design-system-content/documentation-hierarchy.ts
11899
- import { z as z346 } from "zod";
12041
+ import { z as z347 } from "zod";
11900
12042
 
11901
12043
  // src/yjs/version-room/base.ts
11902
12044
  var VersionRoomBaseYDoc = class {
@@ -12446,24 +12588,24 @@ var FrontendVersionRoomYDoc = class {
12446
12588
  };
12447
12589
 
12448
12590
  // src/yjs/design-system-content/documentation-hierarchy.ts
12449
- var DocumentationHierarchySettings = z346.object({
12450
- routingVersion: z346.string(),
12451
- isDraftFeatureAdopted: z346.boolean(),
12452
- isApprovalFeatureEnabled: z346.boolean(),
12453
- approvalRequiredForPublishing: z346.boolean()
12591
+ var DocumentationHierarchySettings = z347.object({
12592
+ routingVersion: z347.string(),
12593
+ isDraftFeatureAdopted: z347.boolean(),
12594
+ isApprovalFeatureEnabled: z347.boolean(),
12595
+ approvalRequiredForPublishing: z347.boolean()
12454
12596
  });
12455
12597
  function yjsToDocumentationHierarchy(doc) {
12456
12598
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
12457
12599
  }
12458
12600
 
12459
12601
  // src/yjs/design-system-content/item-configuration.ts
12460
- import { z as z347 } from "zod";
12461
- var DTODocumentationPageRoomHeaderData = z347.object({
12462
- title: z347.string(),
12602
+ import { z as z348 } from "zod";
12603
+ var DTODocumentationPageRoomHeaderData = z348.object({
12604
+ title: z348.string(),
12463
12605
  configuration: DTODocumentationItemConfigurationV2
12464
12606
  });
12465
- var DTODocumentationPageRoomHeaderDataUpdate = z347.object({
12466
- title: z347.string().optional(),
12607
+ var DTODocumentationPageRoomHeaderDataUpdate = z348.object({
12608
+ title: z348.string().optional(),
12467
12609
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
12468
12610
  });
12469
12611
  function itemConfigurationToYjs(yDoc, item) {
@@ -12498,9 +12640,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
12498
12640
  var PageSectionEditorModel = PageSectionEditorModelV2;
12499
12641
 
12500
12642
  // src/yjs/docs-editor/model/page.ts
12501
- import { z as z348 } from "zod";
12502
- var DocumentationPageEditorModel = z348.object({
12503
- blocks: z348.array(DocumentationPageContentItem)
12643
+ import { z as z349 } from "zod";
12644
+ var DocumentationPageEditorModel = z349.object({
12645
+ blocks: z349.array(DocumentationPageContentItem)
12504
12646
  });
12505
12647
 
12506
12648
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -16177,7 +16319,7 @@ var blocks = [
16177
16319
 
16178
16320
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
16179
16321
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
16180
- import { z as z349 } from "zod";
16322
+ import { z as z350 } from "zod";
16181
16323
  function yDocToPage(yDoc, definitions) {
16182
16324
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
16183
16325
  }
@@ -16253,7 +16395,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
16253
16395
  if (!id) return null;
16254
16396
  return {
16255
16397
  id,
16256
- title: getProsemirrorAttribute(prosemirrorNode, "title", z349.string()) ?? "",
16398
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z350.string()) ?? "",
16257
16399
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
16258
16400
  };
16259
16401
  }
@@ -16287,7 +16429,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
16287
16429
  });
16288
16430
  }
16289
16431
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
16290
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z349.string());
16432
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z350.string());
16291
16433
  if (!definitionId) {
16292
16434
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
16293
16435
  return [];
@@ -16328,7 +16470,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
16328
16470
  const id = getProsemirrorBlockId(prosemirrorNode);
16329
16471
  if (!id) return null;
16330
16472
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
16331
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z349.string().optional()));
16473
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z350.string().optional()));
16332
16474
  return {
16333
16475
  id,
16334
16476
  type: "Block",
@@ -16451,9 +16593,9 @@ function parseRichTextAttribute(mark) {
16451
16593
  return null;
16452
16594
  }
16453
16595
  function parseProsemirrorLink(mark) {
16454
- const href = getProsemirrorAttribute(mark, "href", z349.string().optional());
16596
+ const href = getProsemirrorAttribute(mark, "href", z350.string().optional());
16455
16597
  if (!href) return null;
16456
- const target = getProsemirrorAttribute(mark, "target", z349.string().optional());
16598
+ const target = getProsemirrorAttribute(mark, "target", z350.string().optional());
16457
16599
  const openInNewTab = target === "_blank";
16458
16600
  if (href.startsWith("@")) {
16459
16601
  return {
@@ -16472,9 +16614,9 @@ function parseProsemirrorLink(mark) {
16472
16614
  }
16473
16615
  }
16474
16616
  function parseProsemirrorCommentHighlight(mark) {
16475
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z349.string().optional());
16617
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z350.string().optional());
16476
16618
  if (!highlightId) return null;
16477
- const isResolved = getProsemirrorAttribute(mark, "resolved", z349.boolean().optional()) ?? false;
16619
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z350.boolean().optional()) ?? false;
16478
16620
  return {
16479
16621
  type: "Comment",
16480
16622
  commentHighlightId: highlightId,
@@ -16485,7 +16627,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
16485
16627
  const id = getProsemirrorBlockId(prosemirrorNode);
16486
16628
  if (!id) return null;
16487
16629
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
16488
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z349.boolean().optional()) !== false;
16630
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z350.boolean().optional()) !== false;
16489
16631
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
16490
16632
  if (!tableChild) {
16491
16633
  return emptyTable(id, variantId, 0);
@@ -16531,9 +16673,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
16531
16673
  function parseAsTableCell(prosemirrorNode) {
16532
16674
  const id = getProsemirrorBlockId(prosemirrorNode);
16533
16675
  if (!id) return null;
16534
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z349.string().optional());
16676
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z350.string().optional());
16535
16677
  let columnWidth;
16536
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z349.array(z349.number()).nullish());
16678
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z350.array(z350.number()).nullish());
16537
16679
  if (columnWidthArray) {
16538
16680
  columnWidth = roundDimension(columnWidthArray[0]);
16539
16681
  }
@@ -16569,7 +16711,7 @@ function parseAsTableNode(prosemirrorNode) {
16569
16711
  value: parseRichText(prosemirrorNode.content ?? [])
16570
16712
  };
16571
16713
  case "image":
16572
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z349.string());
16714
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
16573
16715
  if (!items) return null;
16574
16716
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
16575
16717
  if (!parsedItems.success) return null;
@@ -16683,7 +16825,7 @@ function definitionExpectsPlaceholderItem(definition) {
16683
16825
  );
16684
16826
  }
16685
16827
  function parseBlockItems(prosemirrorNode, definition) {
16686
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z349.string());
16828
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
16687
16829
  if (!itemsString) return null;
16688
16830
  const itemsJson = JSON.parse(itemsString);
16689
16831
  if (!Array.isArray(itemsJson)) {
@@ -16694,18 +16836,18 @@ function parseBlockItems(prosemirrorNode, definition) {
16694
16836
  }
16695
16837
  function parseAppearance(prosemirrorNode) {
16696
16838
  let appearance = {};
16697
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z349.string().optional());
16839
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z350.string().optional());
16698
16840
  if (rawAppearanceString) {
16699
16841
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
16700
16842
  if (parsedAppearance.success) {
16701
16843
  appearance = parsedAppearance.data;
16702
16844
  }
16703
16845
  }
16704
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z349.number().optional());
16846
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z350.number().optional());
16705
16847
  if (columns) {
16706
16848
  appearance.numberOfColumns = columns;
16707
16849
  }
16708
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z349.string().optional());
16850
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z350.string().optional());
16709
16851
  if (backgroundColor) {
16710
16852
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
16711
16853
  if (parsedColor.success) {
@@ -16806,12 +16948,12 @@ function valueSchemaForPropertyType(type) {
16806
16948
  }
16807
16949
  }
16808
16950
  function getProsemirrorBlockId(prosemirrorNode) {
16809
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z349.string());
16951
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z350.string());
16810
16952
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
16811
16953
  return id;
16812
16954
  }
16813
16955
  function getProsemirrorBlockVariantId(prosemirrorNode) {
16814
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z349.string()));
16956
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z350.string()));
16815
16957
  }
16816
16958
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
16817
16959
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -17660,6 +17802,7 @@ export {
17660
17802
  DTOBffUploadImportRequestBody,
17661
17803
  DTOBillingCreditsSpendInput,
17662
17804
  DTOBillingCreditsSpendResponse,
17805
+ DTOBillingSupportedModels,
17663
17806
  DTOBrand,
17664
17807
  DTOBrandCreatePayload,
17665
17808
  DTOBrandCreateResponse,
@@ -17901,6 +18044,26 @@ export {
17901
18044
  DTOExporterSource,
17902
18045
  DTOExporterType,
17903
18046
  DTOExporterUpdateInput,
18047
+ DTOFeatureAgentResponseTracker,
18048
+ DTOFeatureArtifact,
18049
+ DTOFeatureEvent,
18050
+ DTOFeatureEventAgentResponseFinished,
18051
+ DTOFeatureEventMessagesSent,
18052
+ DTOFeatureEventReactionsDeleted,
18053
+ DTOFeatureEventReactionsSent,
18054
+ DTOFeatureIteration,
18055
+ DTOFeatureMessage,
18056
+ DTOFeatureMessageAgentSender,
18057
+ DTOFeatureMessageCreateInput,
18058
+ DTOFeatureMessageListResponse,
18059
+ DTOFeatureMessageReaction,
18060
+ DTOFeatureMessageReactionCreateInput,
18061
+ DTOFeatureMessageReactionDeleteInput,
18062
+ DTOFeatureMessageReactionResponse,
18063
+ DTOFeatureMessageResponse,
18064
+ DTOFeatureMessageSender,
18065
+ DTOFeatureMessageSystemSender,
18066
+ DTOFeatureMessageUserSender,
17904
18067
  DTOFigmaComponent,
17905
18068
  DTOFigmaComponentGroup,
17906
18069
  DTOFigmaComponentGroupListResponse,