@supernova-studio/client 1.18.2 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1567 -1
- package/dist/index.d.ts +1567 -1
- package/dist/index.js +166 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +451 -289
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9056,11 +9056,153 @@ var DTOForgeArtifactGetResponse = z309.object({
|
|
|
9056
9056
|
artifact: DTOForgeArtifact.nullable()
|
|
9057
9057
|
});
|
|
9058
9058
|
|
|
9059
|
-
// src/api/dto/forge/
|
|
9060
|
-
import
|
|
9059
|
+
// src/api/dto/forge/feature-messages.ts
|
|
9060
|
+
import z310 from "zod";
|
|
9061
|
+
var DTOFeatureMessageUserSender = z310.object({
|
|
9062
|
+
type: z310.literal("User"),
|
|
9063
|
+
userId: z310.string()
|
|
9064
|
+
});
|
|
9065
|
+
var DTOFeatureMessageAgentSender = z310.object({
|
|
9066
|
+
type: z310.literal("Agent"),
|
|
9067
|
+
agentType: z310.enum(["Cody"])
|
|
9068
|
+
});
|
|
9069
|
+
var DTOFeatureMessageSystemSender = z310.object({
|
|
9070
|
+
type: z310.literal("System"),
|
|
9071
|
+
onBehalfOfUserId: z310.string()
|
|
9072
|
+
});
|
|
9073
|
+
var DTOFeatureMessageSender = z310.discriminatedUnion("type", [
|
|
9074
|
+
DTOFeatureMessageUserSender,
|
|
9075
|
+
DTOFeatureMessageAgentSender,
|
|
9076
|
+
DTOFeatureMessageSystemSender
|
|
9077
|
+
]);
|
|
9078
|
+
var DTOFeatureMessageReaction = z310.object({
|
|
9079
|
+
messageId: Id,
|
|
9080
|
+
userId: z310.string(),
|
|
9081
|
+
emoji: z310.string(),
|
|
9082
|
+
createdAt: z310.coerce.date()
|
|
9083
|
+
});
|
|
9084
|
+
var DTOFeatureMessage = z310.object({
|
|
9085
|
+
id: Id,
|
|
9086
|
+
/**
|
|
9087
|
+
* Describes where the message came from
|
|
9088
|
+
*/
|
|
9089
|
+
sender: DTOFeatureMessageSender,
|
|
9090
|
+
/**
|
|
9091
|
+
* Content of the message
|
|
9092
|
+
*/
|
|
9093
|
+
body: z310.string(),
|
|
9094
|
+
/**
|
|
9095
|
+
* Indicates if the message was sent in the agentic mode,
|
|
9096
|
+
*/
|
|
9097
|
+
isPrompt: z310.boolean().optional(),
|
|
9098
|
+
/**
|
|
9099
|
+
* Indicates if the sender requested agent to reply in a thread
|
|
9100
|
+
*/
|
|
9101
|
+
startsNewThread: z310.boolean().optional(),
|
|
9102
|
+
/**
|
|
9103
|
+
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
9104
|
+
*/
|
|
9105
|
+
parentMessageId: Id.optional(),
|
|
9106
|
+
/**
|
|
9107
|
+
* Link agent response object describing current state of
|
|
9108
|
+
*/
|
|
9109
|
+
agentResponseTrackerId: Id.optional(),
|
|
9110
|
+
/**
|
|
9111
|
+
* If the message started a thread, this indicates the current iteration within that thread
|
|
9112
|
+
*/
|
|
9113
|
+
currentIterationId: Id.optional(),
|
|
9114
|
+
attachments: z310.object({
|
|
9115
|
+
iterationId: z310.string().optional()
|
|
9116
|
+
// TODO Artem: files, etc
|
|
9117
|
+
}).optional(),
|
|
9118
|
+
createdAt: z310.coerce.date(),
|
|
9119
|
+
updatedAt: z310.coerce.date().optional()
|
|
9120
|
+
});
|
|
9121
|
+
var DTOFeatureAgentResponseTracker = z310.object({
|
|
9122
|
+
id: Id,
|
|
9123
|
+
currentBody: z310.string().optional()
|
|
9124
|
+
});
|
|
9125
|
+
var DTOFeatureArtifact = z310.object({
|
|
9126
|
+
id: Id,
|
|
9127
|
+
url: z310.string()
|
|
9128
|
+
// Implied:
|
|
9129
|
+
// type: z.literal("Build"),
|
|
9130
|
+
});
|
|
9131
|
+
var DTOFeatureIteration = z310.object({
|
|
9132
|
+
id: Id,
|
|
9133
|
+
/**
|
|
9134
|
+
* Message ID that triggered creation of the iteration
|
|
9135
|
+
*/
|
|
9136
|
+
startedFromMessageId: z310.string(),
|
|
9137
|
+
/**
|
|
9138
|
+
* Indicates whether the iteration is currently being generated by an agent
|
|
9139
|
+
*/
|
|
9140
|
+
isInProgress: z310.boolean().optional(),
|
|
9141
|
+
/**
|
|
9142
|
+
* Artifacts that the iteration is built from
|
|
9143
|
+
*/
|
|
9144
|
+
artifactIds: Id.array().optional(),
|
|
9145
|
+
/**
|
|
9146
|
+
* URL of a static preview of the feature
|
|
9147
|
+
*/
|
|
9148
|
+
staticPreviewUrl: z310.string().optional(),
|
|
9149
|
+
createdAt: z310.coerce.date(),
|
|
9150
|
+
updatedAt: z310.coerce.date().optional()
|
|
9151
|
+
});
|
|
9152
|
+
var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
9153
|
+
id: true,
|
|
9154
|
+
body: true,
|
|
9155
|
+
isPrompt: true,
|
|
9156
|
+
startsNewThread: true,
|
|
9157
|
+
parentMessageId: true
|
|
9158
|
+
});
|
|
9159
|
+
var DTOFeatureMessageReactionCreateInput = z310.object({
|
|
9160
|
+
messageId: Id,
|
|
9161
|
+
emoji: z310.string()
|
|
9162
|
+
});
|
|
9163
|
+
var DTOFeatureMessageReactionDeleteInput = z310.object({
|
|
9164
|
+
messageId: Id,
|
|
9165
|
+
emoji: z310.string()
|
|
9166
|
+
});
|
|
9167
|
+
var DTOFeatureMessageResponse = z310.object({
|
|
9168
|
+
message: DTOFeatureMessage
|
|
9169
|
+
});
|
|
9170
|
+
var DTOFeatureMessageReactionResponse = z310.object({
|
|
9171
|
+
reaction: DTOFeatureMessageReaction
|
|
9172
|
+
});
|
|
9173
|
+
var DTOFeatureMessageListResponse = z310.object({
|
|
9174
|
+
messages: DTOFeatureMessage.array(),
|
|
9175
|
+
reactions: DTOFeatureMessageReaction.array(),
|
|
9176
|
+
lastSeenMessageId: z310.string().optional()
|
|
9177
|
+
});
|
|
9178
|
+
var DTOFeatureEventMessagesSent = z310.object({
|
|
9179
|
+
type: z310.literal("MessagesSent"),
|
|
9180
|
+
data: DTOFeatureMessage.array()
|
|
9181
|
+
});
|
|
9182
|
+
var DTOFeatureEventReactionsSent = z310.object({
|
|
9183
|
+
type: z310.literal("ReactionsSent"),
|
|
9184
|
+
data: DTOFeatureMessageReaction.array()
|
|
9185
|
+
});
|
|
9186
|
+
var DTOFeatureEventReactionsDeleted = z310.object({
|
|
9187
|
+
type: z310.literal("ReactionsDeleted"),
|
|
9188
|
+
data: DTOFeatureMessageReaction
|
|
9189
|
+
});
|
|
9190
|
+
var DTOFeatureEventAgentResponseFinished = z310.object({
|
|
9191
|
+
type: z310.literal("AgentResponseFinished"),
|
|
9192
|
+
data: DTOFeatureMessage
|
|
9193
|
+
});
|
|
9194
|
+
var DTOFeatureEvent = z310.discriminatedUnion("type", [
|
|
9195
|
+
DTOFeatureEventMessagesSent,
|
|
9196
|
+
DTOFeatureEventReactionsSent,
|
|
9197
|
+
DTOFeatureEventReactionsDeleted,
|
|
9198
|
+
DTOFeatureEventAgentResponseFinished
|
|
9199
|
+
]);
|
|
9200
|
+
|
|
9201
|
+
// src/api/dto/forge/iteration-message-old.ts
|
|
9202
|
+
import { z as z312 } from "zod";
|
|
9061
9203
|
|
|
9062
9204
|
// src/api/dto/forge/participant.ts
|
|
9063
|
-
import { z as
|
|
9205
|
+
import { z as z311 } from "zod";
|
|
9064
9206
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
9065
9207
|
agent: DTOForgeAgent.optional(),
|
|
9066
9208
|
user: DTOUser.optional()
|
|
@@ -9070,24 +9212,24 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
9070
9212
|
agent: true,
|
|
9071
9213
|
user: true
|
|
9072
9214
|
});
|
|
9073
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
9074
|
-
var DTOCreateForgeParticipantResponse =
|
|
9215
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z311.string() });
|
|
9216
|
+
var DTOCreateForgeParticipantResponse = z311.object({
|
|
9075
9217
|
participant: DTOForgeParticipant
|
|
9076
9218
|
});
|
|
9077
|
-
var DTOUpdateForgeParticipantResponse =
|
|
9219
|
+
var DTOUpdateForgeParticipantResponse = z311.object({
|
|
9078
9220
|
participant: DTOForgeParticipant.nullable()
|
|
9079
9221
|
});
|
|
9080
|
-
var DTODeleteForgeParticipantResponse =
|
|
9081
|
-
ok:
|
|
9222
|
+
var DTODeleteForgeParticipantResponse = z311.object({
|
|
9223
|
+
ok: z311.literal(true)
|
|
9082
9224
|
});
|
|
9083
|
-
var DTOForgeParticipantsListResponse =
|
|
9084
|
-
participants:
|
|
9225
|
+
var DTOForgeParticipantsListResponse = z311.object({
|
|
9226
|
+
participants: z311.array(DTOForgeParticipant)
|
|
9085
9227
|
});
|
|
9086
|
-
var DTOForgeParticipantGetResponse =
|
|
9228
|
+
var DTOForgeParticipantGetResponse = z311.object({
|
|
9087
9229
|
participant: DTOForgeParticipant.nullable()
|
|
9088
9230
|
});
|
|
9089
9231
|
|
|
9090
|
-
// src/api/dto/forge/iteration-message.ts
|
|
9232
|
+
// src/api/dto/forge/iteration-message-old.ts
|
|
9091
9233
|
var DTOForgeIterationMessage = ForgeIterationMessage.omit({ participant: true }).extend({
|
|
9092
9234
|
participant: DTOForgeParticipant
|
|
9093
9235
|
});
|
|
@@ -9095,32 +9237,32 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
9095
9237
|
projectIterationId: true,
|
|
9096
9238
|
participant: true
|
|
9097
9239
|
});
|
|
9098
|
-
var DTOGetForgeIterationMessageResponse =
|
|
9240
|
+
var DTOGetForgeIterationMessageResponse = z312.object({
|
|
9099
9241
|
message: DTOForgeIterationMessage.nullable()
|
|
9100
9242
|
});
|
|
9101
|
-
var DTOForgeIterationMessagesListResponse =
|
|
9102
|
-
messages:
|
|
9243
|
+
var DTOForgeIterationMessagesListResponse = z312.object({
|
|
9244
|
+
messages: z312.array(DTOForgeIterationMessage)
|
|
9103
9245
|
});
|
|
9104
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
9105
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
9246
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z312.string() });
|
|
9247
|
+
var DTOCreateForgeIterationMessageResponse = z312.object({
|
|
9106
9248
|
message: DTOForgeIterationMessage
|
|
9107
9249
|
});
|
|
9108
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
9250
|
+
var DTOUpdateForgeIterationMessageResponse = z312.object({
|
|
9109
9251
|
message: DTOForgeIterationMessage.nullable()
|
|
9110
9252
|
});
|
|
9111
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
9112
|
-
ok:
|
|
9253
|
+
var DTODeleteForgeIterationMessageResponse = z312.object({
|
|
9254
|
+
ok: z312.literal(true)
|
|
9113
9255
|
});
|
|
9114
9256
|
|
|
9115
9257
|
// src/api/dto/forge/project-action.ts
|
|
9116
|
-
import
|
|
9258
|
+
import z316 from "zod";
|
|
9117
9259
|
|
|
9118
9260
|
// src/api/dto/forge/project-artifact.ts
|
|
9119
|
-
import { z as
|
|
9261
|
+
import { z as z314 } from "zod";
|
|
9120
9262
|
|
|
9121
9263
|
// src/api/dto/forge/project-section.ts
|
|
9122
|
-
import
|
|
9123
|
-
var AfterSectionId =
|
|
9264
|
+
import z313 from "zod";
|
|
9265
|
+
var AfterSectionId = z313.string().uuid().nullish().optional();
|
|
9124
9266
|
var DTOForgeSection = ForgeSection;
|
|
9125
9267
|
var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
9126
9268
|
id: true,
|
|
@@ -9131,12 +9273,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
|
9131
9273
|
});
|
|
9132
9274
|
var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
|
|
9133
9275
|
var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9134
|
-
deleteChildren:
|
|
9276
|
+
deleteChildren: z313.boolean().default(false)
|
|
9135
9277
|
});
|
|
9136
9278
|
var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9137
9279
|
afterSectionId: AfterSectionId
|
|
9138
9280
|
});
|
|
9139
|
-
var DTOForgeSectionItemMoveInput =
|
|
9281
|
+
var DTOForgeSectionItemMoveInput = z313.object({
|
|
9140
9282
|
id: Id,
|
|
9141
9283
|
sectionId: Id.nullish().optional(),
|
|
9142
9284
|
// undefined=stay, null=no section, string=move to section
|
|
@@ -9146,117 +9288,117 @@ var DTOForgeSectionItemMoveInput = z312.object({
|
|
|
9146
9288
|
|
|
9147
9289
|
// src/api/dto/forge/project-artifact.ts
|
|
9148
9290
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9149
|
-
var DTOForgeProjectArtifactUpdateInput =
|
|
9150
|
-
id:
|
|
9151
|
-
title:
|
|
9291
|
+
var DTOForgeProjectArtifactUpdateInput = z314.object({
|
|
9292
|
+
id: z314.string(),
|
|
9293
|
+
title: z314.string().optional()
|
|
9152
9294
|
});
|
|
9153
|
-
var DTOForgeProjectArtifactCreateInput =
|
|
9154
|
-
id:
|
|
9155
|
-
title:
|
|
9156
|
-
sectionId:
|
|
9157
|
-
afterArtifactId:
|
|
9295
|
+
var DTOForgeProjectArtifactCreateInput = z314.object({
|
|
9296
|
+
id: z314.string(),
|
|
9297
|
+
title: z314.string(),
|
|
9298
|
+
sectionId: z314.string().optional(),
|
|
9299
|
+
afterArtifactId: z314.string().optional().nullable()
|
|
9158
9300
|
});
|
|
9159
|
-
var DTOForgeProjectArtifactDeleteInput =
|
|
9301
|
+
var DTOForgeProjectArtifactDeleteInput = z314.object({
|
|
9160
9302
|
id: Id
|
|
9161
9303
|
});
|
|
9162
9304
|
var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
|
|
9163
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
9305
|
+
var DTOForgeProjectArtifactGetResponse = z314.object({
|
|
9164
9306
|
artifact: DTOForgeProjectArtifact
|
|
9165
9307
|
});
|
|
9166
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
9308
|
+
var DTOForgeProjectArtifactCreateResponse = z314.object({
|
|
9167
9309
|
artifact: DTOForgeProjectArtifact
|
|
9168
9310
|
});
|
|
9169
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
9311
|
+
var DTOForgeProjectArtifactUpdateResponse = z314.object({
|
|
9170
9312
|
artifact: DTOForgeProjectArtifact
|
|
9171
9313
|
});
|
|
9172
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
9173
|
-
ok:
|
|
9314
|
+
var DTOForgeProjectArtifactDeleteResponse = z314.object({
|
|
9315
|
+
ok: z314.literal(true)
|
|
9174
9316
|
});
|
|
9175
|
-
var DTOForgeProjectArtifactMoveResponse =
|
|
9317
|
+
var DTOForgeProjectArtifactMoveResponse = z314.object({
|
|
9176
9318
|
artifact: DTOForgeProjectArtifact
|
|
9177
9319
|
});
|
|
9178
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
9179
|
-
artifacts:
|
|
9320
|
+
var DTOForgeProjectArtifactsListResponse = z314.object({
|
|
9321
|
+
artifacts: z314.array(DTOForgeProjectArtifact)
|
|
9180
9322
|
});
|
|
9181
9323
|
|
|
9182
9324
|
// src/api/dto/forge/project-feature.ts
|
|
9183
|
-
import
|
|
9325
|
+
import z315 from "zod";
|
|
9184
9326
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
9185
|
-
var DTOForgeProjectFeatureListResponse =
|
|
9327
|
+
var DTOForgeProjectFeatureListResponse = z315.object({
|
|
9186
9328
|
features: DTOForgeProjectFeature.array()
|
|
9187
9329
|
});
|
|
9188
|
-
var DTOForgeProjectFeatureGetResponse =
|
|
9330
|
+
var DTOForgeProjectFeatureGetResponse = z315.object({
|
|
9189
9331
|
feature: DTOForgeProjectFeature
|
|
9190
9332
|
});
|
|
9191
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
9333
|
+
var DTOForgeProjectFeatureCreateInput = z315.object({
|
|
9192
9334
|
id: Id,
|
|
9193
|
-
name:
|
|
9194
|
-
description:
|
|
9335
|
+
name: z315.string(),
|
|
9336
|
+
description: z315.string(),
|
|
9195
9337
|
sectionId: Id.optional(),
|
|
9196
9338
|
afterFeatureId: Id.nullable().optional()
|
|
9197
9339
|
});
|
|
9198
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
9340
|
+
var DTOForgeProjectFeatureUpdateInput = z315.object({
|
|
9199
9341
|
id: Id,
|
|
9200
|
-
name:
|
|
9201
|
-
description:
|
|
9202
|
-
isArchived:
|
|
9342
|
+
name: z315.string().optional(),
|
|
9343
|
+
description: z315.string().optional(),
|
|
9344
|
+
isArchived: z315.boolean().optional(),
|
|
9203
9345
|
status: ProjectFeatureStatus.optional()
|
|
9204
9346
|
});
|
|
9205
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
9347
|
+
var DTOForgeProjectFeatureDeleteInput = z315.object({
|
|
9206
9348
|
id: Id
|
|
9207
9349
|
});
|
|
9208
9350
|
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
9209
9351
|
|
|
9210
9352
|
// src/api/dto/forge/project-action.ts
|
|
9211
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
9212
|
-
type:
|
|
9353
|
+
var DTOForgeProjectActionFeatureCreate = z316.object({
|
|
9354
|
+
type: z316.literal("FeatureCreate"),
|
|
9213
9355
|
input: DTOForgeProjectFeatureCreateInput
|
|
9214
9356
|
});
|
|
9215
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
9216
|
-
type:
|
|
9357
|
+
var DTOForgeProjectActionFeatureUpdate = z316.object({
|
|
9358
|
+
type: z316.literal("FeatureUpdate"),
|
|
9217
9359
|
input: DTOForgeProjectFeatureUpdateInput
|
|
9218
9360
|
});
|
|
9219
|
-
var DTOForgeProjectActionFeatureMove =
|
|
9220
|
-
type:
|
|
9361
|
+
var DTOForgeProjectActionFeatureMove = z316.object({
|
|
9362
|
+
type: z316.literal("FeatureMove"),
|
|
9221
9363
|
input: DTOForgeProjectFeatureMoveInput
|
|
9222
9364
|
});
|
|
9223
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
9224
|
-
type:
|
|
9365
|
+
var DTOForgeProjectActionFeatureDelete = z316.object({
|
|
9366
|
+
type: z316.literal("FeatureDelete"),
|
|
9225
9367
|
input: DTOForgeProjectFeatureDeleteInput
|
|
9226
9368
|
});
|
|
9227
|
-
var DTOForgeProjectActionArtifactCreate =
|
|
9228
|
-
type:
|
|
9369
|
+
var DTOForgeProjectActionArtifactCreate = z316.object({
|
|
9370
|
+
type: z316.literal("ArtifactCreate"),
|
|
9229
9371
|
input: DTOForgeProjectArtifactCreateInput
|
|
9230
9372
|
});
|
|
9231
|
-
var DTOForgeProjectActionArtifactUpdate =
|
|
9232
|
-
type:
|
|
9373
|
+
var DTOForgeProjectActionArtifactUpdate = z316.object({
|
|
9374
|
+
type: z316.literal("ArtifactUpdate"),
|
|
9233
9375
|
input: DTOForgeProjectArtifactUpdateInput
|
|
9234
9376
|
});
|
|
9235
|
-
var DTOForgeProjectActionArtifactDelete =
|
|
9236
|
-
type:
|
|
9377
|
+
var DTOForgeProjectActionArtifactDelete = z316.object({
|
|
9378
|
+
type: z316.literal("ArtifactDelete"),
|
|
9237
9379
|
input: DTOForgeProjectArtifactDeleteInput
|
|
9238
9380
|
});
|
|
9239
|
-
var DTOForgeProjectActionArtifactMove =
|
|
9240
|
-
type:
|
|
9381
|
+
var DTOForgeProjectActionArtifactMove = z316.object({
|
|
9382
|
+
type: z316.literal("ArtifactMove"),
|
|
9241
9383
|
input: DTOForgeProjectArtifactMoveInput
|
|
9242
9384
|
});
|
|
9243
|
-
var DTOForgeProjectActionSectionCreate =
|
|
9244
|
-
type:
|
|
9385
|
+
var DTOForgeProjectActionSectionCreate = z316.object({
|
|
9386
|
+
type: z316.literal("SectionCreate"),
|
|
9245
9387
|
input: DTOForgeSectionCreateInput
|
|
9246
9388
|
});
|
|
9247
|
-
var DTOForgeProjectActionSectionUpdate =
|
|
9248
|
-
type:
|
|
9389
|
+
var DTOForgeProjectActionSectionUpdate = z316.object({
|
|
9390
|
+
type: z316.literal("SectionUpdate"),
|
|
9249
9391
|
input: DTOForgeSectionUpdateInput
|
|
9250
9392
|
});
|
|
9251
|
-
var DTOForgeProjectActionSectionDelete =
|
|
9252
|
-
type:
|
|
9393
|
+
var DTOForgeProjectActionSectionDelete = z316.object({
|
|
9394
|
+
type: z316.literal("SectionDelete"),
|
|
9253
9395
|
input: DTOForgeSectionDeleteInput
|
|
9254
9396
|
});
|
|
9255
|
-
var DTOForgeProjectActionSectionMove =
|
|
9256
|
-
type:
|
|
9397
|
+
var DTOForgeProjectActionSectionMove = z316.object({
|
|
9398
|
+
type: z316.literal("SectionMove"),
|
|
9257
9399
|
input: DTOForgeSectionMoveInput
|
|
9258
9400
|
});
|
|
9259
|
-
var DTOForgeProjectAction =
|
|
9401
|
+
var DTOForgeProjectAction = z316.discriminatedUnion("type", [
|
|
9260
9402
|
//features
|
|
9261
9403
|
DTOForgeProjectActionFeatureCreate,
|
|
9262
9404
|
DTOForgeProjectActionFeatureUpdate,
|
|
@@ -9273,22 +9415,22 @@ var DTOForgeProjectAction = z315.discriminatedUnion("type", [
|
|
|
9273
9415
|
DTOForgeProjectActionSectionDelete,
|
|
9274
9416
|
DTOForgeProjectActionSectionMove
|
|
9275
9417
|
]).and(
|
|
9276
|
-
|
|
9277
|
-
tId:
|
|
9418
|
+
z316.object({
|
|
9419
|
+
tId: z316.string().optional()
|
|
9278
9420
|
})
|
|
9279
9421
|
);
|
|
9280
9422
|
|
|
9281
9423
|
// src/api/dto/forge/project-artifact-room.ts
|
|
9282
|
-
import { z as
|
|
9283
|
-
var DTOForgeProjectArtifactRoom =
|
|
9284
|
-
id:
|
|
9424
|
+
import { z as z317 } from "zod";
|
|
9425
|
+
var DTOForgeProjectArtifactRoom = z317.object({
|
|
9426
|
+
id: z317.string()
|
|
9285
9427
|
});
|
|
9286
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
9428
|
+
var DTOForgeProjectArtifactRoomResponse = z317.object({
|
|
9287
9429
|
room: DTOForgeProjectArtifactRoom
|
|
9288
9430
|
});
|
|
9289
9431
|
|
|
9290
9432
|
// src/api/dto/forge/project-context.ts
|
|
9291
|
-
import { z as
|
|
9433
|
+
import { z as z318 } from "zod";
|
|
9292
9434
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9293
9435
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9294
9436
|
definition: true,
|
|
@@ -9300,13 +9442,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9300
9442
|
tailwindConfig: true,
|
|
9301
9443
|
styling: true
|
|
9302
9444
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9303
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
9304
|
-
var DTOForgeProjectContextGetResponse =
|
|
9305
|
-
var DTOForgeProjectContextListResponse =
|
|
9306
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9307
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9308
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9309
|
-
ok:
|
|
9445
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z318.string() });
|
|
9446
|
+
var DTOForgeProjectContextGetResponse = z318.object({ context: DTOForgeProjectContext });
|
|
9447
|
+
var DTOForgeProjectContextListResponse = z318.object({ contexts: z318.array(DTOForgeProjectContext) });
|
|
9448
|
+
var DTOForgeProjectContextCreateResponse = z318.object({ context: DTOForgeProjectContext });
|
|
9449
|
+
var DTOForgeProjectContextUpdateResponse = z318.object({ context: DTOForgeProjectContext });
|
|
9450
|
+
var DTOForgeProjectContextRemoveResponse = z318.object({
|
|
9451
|
+
ok: z318.literal(true)
|
|
9310
9452
|
});
|
|
9311
9453
|
|
|
9312
9454
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -9314,7 +9456,7 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
9314
9456
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
9315
9457
|
|
|
9316
9458
|
// src/api/dto/forge/project-invitation.ts
|
|
9317
|
-
import { z as
|
|
9459
|
+
import { z as z319 } from "zod";
|
|
9318
9460
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9319
9461
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9320
9462
|
email: true,
|
|
@@ -9329,24 +9471,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
|
9329
9471
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9330
9472
|
email: true
|
|
9331
9473
|
});
|
|
9332
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9333
|
-
invitations:
|
|
9474
|
+
var DTOForgeProjectInvitationsListResponse = z319.object({
|
|
9475
|
+
invitations: z319.array(DTOForgeProjectInvitation)
|
|
9334
9476
|
});
|
|
9335
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9477
|
+
var DTOForgeProjectInvitationGetResponse = z319.object({
|
|
9336
9478
|
invitation: DTOForgeProjectInvitation
|
|
9337
9479
|
});
|
|
9338
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9480
|
+
var DTOForgeProjectInvitationCreateResponse = z319.object({
|
|
9339
9481
|
invitation: DTOForgeProjectInvitation
|
|
9340
9482
|
});
|
|
9341
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9483
|
+
var DTOForgeProjectInvitationUpdateResponse = z319.object({
|
|
9342
9484
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9343
9485
|
});
|
|
9344
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9345
|
-
ok:
|
|
9486
|
+
var DTOForgeProjectInvitationRemoveResponse = z319.object({
|
|
9487
|
+
ok: z319.literal(true)
|
|
9346
9488
|
});
|
|
9347
9489
|
|
|
9348
|
-
// src/api/dto/forge/project-iteration.ts
|
|
9349
|
-
import { z as
|
|
9490
|
+
// src/api/dto/forge/project-iteration-old.ts
|
|
9491
|
+
import { z as z320 } from "zod";
|
|
9350
9492
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9351
9493
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9352
9494
|
artifacts: true,
|
|
@@ -9357,7 +9499,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9357
9499
|
messages: DTOForgeIterationMessage.array(),
|
|
9358
9500
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9359
9501
|
});
|
|
9360
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9502
|
+
var DTOGetForgeProjectIterationResponse = z320.object({
|
|
9361
9503
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9362
9504
|
});
|
|
9363
9505
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9367,20 +9509,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9367
9509
|
mergeMeta: true,
|
|
9368
9510
|
createdAt: true
|
|
9369
9511
|
});
|
|
9370
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9371
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9512
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z320.string() });
|
|
9513
|
+
var DTOCreateForgeProjectIterationResponse = z320.object({
|
|
9372
9514
|
iteration: DTOForgeProjectIteration
|
|
9373
9515
|
});
|
|
9374
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9516
|
+
var DTOUpdateForgeProjectIterationResponse = z320.object({
|
|
9375
9517
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9376
9518
|
});
|
|
9377
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9378
|
-
ok:
|
|
9519
|
+
var DTODeleteForgeProjectIterationResponse = z320.object({
|
|
9520
|
+
ok: z320.literal(true)
|
|
9379
9521
|
});
|
|
9380
|
-
var DTOForgeProjectIterationListResponse =
|
|
9522
|
+
var DTOForgeProjectIterationListResponse = z320.object({ iterations: z320.array(DTOForgeProjectIteration) });
|
|
9381
9523
|
|
|
9382
9524
|
// src/api/dto/forge/project-member.ts
|
|
9383
|
-
import { z as
|
|
9525
|
+
import { z as z321 } from "zod";
|
|
9384
9526
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9385
9527
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9386
9528
|
user: DTOUser,
|
|
@@ -9394,41 +9536,41 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9394
9536
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9395
9537
|
userId: true
|
|
9396
9538
|
});
|
|
9397
|
-
var DTOForgeProjectMembersListResponse =
|
|
9398
|
-
members:
|
|
9399
|
-
invitations:
|
|
9539
|
+
var DTOForgeProjectMembersListResponse = z321.object({
|
|
9540
|
+
members: z321.array(DTOForgeProjectMember),
|
|
9541
|
+
invitations: z321.array(DTOForgeProjectInvitation)
|
|
9400
9542
|
});
|
|
9401
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9543
|
+
var DTOForgeProjectMemberGetResponse = z321.object({
|
|
9402
9544
|
member: DTOForgeProjectMember
|
|
9403
9545
|
});
|
|
9404
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9546
|
+
var DTOForgeProjectMemberCreateResponse = z321.object({
|
|
9405
9547
|
member: DTOForgeProjectMember
|
|
9406
9548
|
});
|
|
9407
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9549
|
+
var DTOForgeProjectMemberUpdateResponse = z321.object({
|
|
9408
9550
|
member: DTOForgeProjectMember.nullable()
|
|
9409
9551
|
});
|
|
9410
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9411
|
-
ok:
|
|
9552
|
+
var DTOForgeProjectMemberRemoveResponse = z321.object({
|
|
9553
|
+
ok: z321.literal(true)
|
|
9412
9554
|
});
|
|
9413
|
-
var DTOAddMembersToForgeProject =
|
|
9555
|
+
var DTOAddMembersToForgeProject = z321.object({
|
|
9414
9556
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
9415
9557
|
});
|
|
9416
9558
|
|
|
9417
9559
|
// src/api/dto/forge/project-room.ts
|
|
9418
|
-
import { z as
|
|
9419
|
-
var DTOForgeProjectRoom =
|
|
9420
|
-
id:
|
|
9560
|
+
import { z as z322 } from "zod";
|
|
9561
|
+
var DTOForgeProjectRoom = z322.object({
|
|
9562
|
+
id: z322.string()
|
|
9421
9563
|
});
|
|
9422
|
-
var DTOForgeProjectRoomResponse =
|
|
9564
|
+
var DTOForgeProjectRoomResponse = z322.object({
|
|
9423
9565
|
room: DTOForgeProjectRoom
|
|
9424
9566
|
});
|
|
9425
9567
|
|
|
9426
9568
|
// src/api/dto/forge/project.ts
|
|
9427
|
-
import { z as
|
|
9569
|
+
import { z as z323 } from "zod";
|
|
9428
9570
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9429
9571
|
context: ForgeProjectContext,
|
|
9430
|
-
members:
|
|
9431
|
-
invitations:
|
|
9572
|
+
members: z323.array(DTOForgeProjectMember),
|
|
9573
|
+
invitations: z323.array(DTOForgeProjectInvitation)
|
|
9432
9574
|
});
|
|
9433
9575
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9434
9576
|
instruction: true,
|
|
@@ -9441,156 +9583,156 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9441
9583
|
emoji: true
|
|
9442
9584
|
}).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
|
|
9443
9585
|
var DTOUpdateForgeProject = DTOCreateForgeProject.omit({ membersToInvite: true }).partial().extend({
|
|
9444
|
-
id:
|
|
9445
|
-
membersToRetain:
|
|
9586
|
+
id: z323.string(),
|
|
9587
|
+
membersToRetain: z323.string().array().min(1).optional()
|
|
9446
9588
|
});
|
|
9447
|
-
var DTOForgeProjectGetResponse =
|
|
9448
|
-
var DTOForgeProjectsListResponse =
|
|
9449
|
-
var DTOCreateForgeProjectResponse =
|
|
9589
|
+
var DTOForgeProjectGetResponse = z323.object({ project: DTOForgeProject.nullable() });
|
|
9590
|
+
var DTOForgeProjectsListResponse = z323.object({ projects: z323.array(DTOForgeProject) });
|
|
9591
|
+
var DTOCreateForgeProjectResponse = z323.object({
|
|
9450
9592
|
project: DTOForgeProject
|
|
9451
9593
|
});
|
|
9452
|
-
var DTOUpdateForgeProjectResponse =
|
|
9594
|
+
var DTOUpdateForgeProjectResponse = z323.object({
|
|
9453
9595
|
project: DTOForgeProject
|
|
9454
9596
|
});
|
|
9455
|
-
var DTOUGetForgeProjectResponse =
|
|
9597
|
+
var DTOUGetForgeProjectResponse = z323.object({
|
|
9456
9598
|
project: DTOForgeProject
|
|
9457
9599
|
});
|
|
9458
|
-
var DTORemoveForgeProjectResponse =
|
|
9600
|
+
var DTORemoveForgeProjectResponse = z323.object({ ok: z323.literal(true) });
|
|
9459
9601
|
|
|
9460
9602
|
// src/api/dto/forge/threads.ts
|
|
9461
|
-
import { z as
|
|
9603
|
+
import { z as z324 } from "zod";
|
|
9462
9604
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9463
9605
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9464
9606
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9465
9607
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9466
|
-
var DTOForgeChatThreadCreateInput =
|
|
9467
|
-
title:
|
|
9608
|
+
var DTOForgeChatThreadCreateInput = z324.object({
|
|
9609
|
+
title: z324.string().optional()
|
|
9468
9610
|
});
|
|
9469
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9611
|
+
var DTOForgeChatThreadCreateResponse = z324.object({
|
|
9470
9612
|
thread: DTOForgeChatThread
|
|
9471
9613
|
});
|
|
9472
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9473
|
-
title:
|
|
9614
|
+
var DTOForgeChatThreadUpdateInput = z324.object({
|
|
9615
|
+
title: z324.string()
|
|
9474
9616
|
});
|
|
9475
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9617
|
+
var DTOForgeChatThreadUpdateResponse = z324.object({
|
|
9476
9618
|
thread: DTOForgeChatThread
|
|
9477
9619
|
});
|
|
9478
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9479
|
-
success:
|
|
9620
|
+
var DTOForgeChatThreadDeleteResponse = z324.object({
|
|
9621
|
+
success: z324.boolean()
|
|
9480
9622
|
});
|
|
9481
|
-
var DTOForgeChatThreadListQuery =
|
|
9482
|
-
limit:
|
|
9483
|
-
offset:
|
|
9623
|
+
var DTOForgeChatThreadListQuery = z324.object({
|
|
9624
|
+
limit: z324.number().optional(),
|
|
9625
|
+
offset: z324.number().optional()
|
|
9484
9626
|
});
|
|
9485
|
-
var DTOForgeChatThreadListResponse =
|
|
9486
|
-
threads:
|
|
9487
|
-
pagination:
|
|
9488
|
-
offset:
|
|
9489
|
-
limit:
|
|
9490
|
-
total:
|
|
9627
|
+
var DTOForgeChatThreadListResponse = z324.object({
|
|
9628
|
+
threads: z324.array(DTOForgeChatThread),
|
|
9629
|
+
pagination: z324.object({
|
|
9630
|
+
offset: z324.number(),
|
|
9631
|
+
limit: z324.number(),
|
|
9632
|
+
total: z324.number()
|
|
9491
9633
|
})
|
|
9492
9634
|
});
|
|
9493
|
-
var DTOForgeChatMessageCreateInput =
|
|
9494
|
-
payload:
|
|
9635
|
+
var DTOForgeChatMessageCreateInput = z324.object({
|
|
9636
|
+
payload: z324.string(),
|
|
9495
9637
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9496
|
-
opikTraceId:
|
|
9638
|
+
opikTraceId: z324.string().optional()
|
|
9497
9639
|
});
|
|
9498
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9640
|
+
var DTOForgeChatMessageCreateResponse = z324.object({
|
|
9499
9641
|
message: DTOForgeChatMessage
|
|
9500
9642
|
});
|
|
9501
|
-
var DTOForgeChatMessageListQuery =
|
|
9502
|
-
limit:
|
|
9503
|
-
offset:
|
|
9643
|
+
var DTOForgeChatMessageListQuery = z324.object({
|
|
9644
|
+
limit: z324.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9645
|
+
offset: z324.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9504
9646
|
});
|
|
9505
|
-
var DTOForgeChatMessageListResponse =
|
|
9506
|
-
messages:
|
|
9507
|
-
totalCount:
|
|
9508
|
-
hasMore:
|
|
9647
|
+
var DTOForgeChatMessageListResponse = z324.object({
|
|
9648
|
+
messages: z324.array(DTOForgeChatMessage),
|
|
9649
|
+
totalCount: z324.number(),
|
|
9650
|
+
hasMore: z324.boolean()
|
|
9509
9651
|
});
|
|
9510
|
-
var DTOForgeChatMessageScoreInput =
|
|
9511
|
-
messageId:
|
|
9512
|
-
name:
|
|
9513
|
-
value:
|
|
9514
|
-
categoryName:
|
|
9515
|
-
reason:
|
|
9652
|
+
var DTOForgeChatMessageScoreInput = z324.object({
|
|
9653
|
+
messageId: z324.string(),
|
|
9654
|
+
name: z324.string(),
|
|
9655
|
+
value: z324.number(),
|
|
9656
|
+
categoryName: z324.string().optional(),
|
|
9657
|
+
reason: z324.string().optional()
|
|
9516
9658
|
});
|
|
9517
|
-
var DTOForgeChatMessageTagInput =
|
|
9518
|
-
messageId:
|
|
9519
|
-
tags:
|
|
9659
|
+
var DTOForgeChatMessageTagInput = z324.object({
|
|
9660
|
+
messageId: z324.string(),
|
|
9661
|
+
tags: z324.array(z324.string())
|
|
9520
9662
|
});
|
|
9521
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9663
|
+
var DTOForgeChatMessageScoreRequest = z324.object({
|
|
9522
9664
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9523
9665
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9524
9666
|
});
|
|
9525
9667
|
|
|
9526
9668
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9527
|
-
import { z as
|
|
9528
|
-
var DTOLiveblocksAuthResponse =
|
|
9529
|
-
token:
|
|
9669
|
+
import { z as z325 } from "zod";
|
|
9670
|
+
var DTOLiveblocksAuthResponse = z325.object({
|
|
9671
|
+
token: z325.string()
|
|
9530
9672
|
});
|
|
9531
9673
|
|
|
9532
9674
|
// src/api/dto/portal/portal-settings.ts
|
|
9533
|
-
import { z as
|
|
9675
|
+
import { z as z326 } from "zod";
|
|
9534
9676
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9535
9677
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9536
9678
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9537
9679
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9538
|
-
var DTOPortalSettings =
|
|
9539
|
-
id:
|
|
9540
|
-
workspaceId:
|
|
9541
|
-
enabledDesignSystemIds:
|
|
9542
|
-
enabledBrandPersistentIds:
|
|
9680
|
+
var DTOPortalSettings = z326.object({
|
|
9681
|
+
id: z326.string(),
|
|
9682
|
+
workspaceId: z326.string(),
|
|
9683
|
+
enabledDesignSystemIds: z326.array(z326.string()),
|
|
9684
|
+
enabledBrandPersistentIds: z326.array(z326.string()),
|
|
9543
9685
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9544
9686
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9545
|
-
createdAt:
|
|
9546
|
-
updatedAt:
|
|
9687
|
+
createdAt: z326.coerce.date(),
|
|
9688
|
+
updatedAt: z326.coerce.date()
|
|
9547
9689
|
});
|
|
9548
|
-
var DTOPortalSettingsGetResponse =
|
|
9690
|
+
var DTOPortalSettingsGetResponse = z326.object({
|
|
9549
9691
|
portalSettings: DTOPortalSettings
|
|
9550
9692
|
});
|
|
9551
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9552
|
-
enabledDesignSystemIds:
|
|
9553
|
-
enabledBrandPersistentIds:
|
|
9693
|
+
var DTOPortalSettingsUpdatePayload = z326.object({
|
|
9694
|
+
enabledDesignSystemIds: z326.array(z326.string()).optional(),
|
|
9695
|
+
enabledBrandPersistentIds: z326.array(z326.string()).optional(),
|
|
9554
9696
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9555
9697
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9556
9698
|
});
|
|
9557
9699
|
|
|
9558
9700
|
// src/api/dto/themes/override.ts
|
|
9559
|
-
import { z as
|
|
9701
|
+
import { z as z327 } from "zod";
|
|
9560
9702
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9561
|
-
|
|
9562
|
-
tokenPersistentId:
|
|
9703
|
+
z327.object({
|
|
9704
|
+
tokenPersistentId: z327.string(),
|
|
9563
9705
|
origin: ThemeOverrideOrigin.optional()
|
|
9564
9706
|
})
|
|
9565
9707
|
);
|
|
9566
9708
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9567
|
-
|
|
9568
|
-
tokenPersistentId:
|
|
9709
|
+
z327.object({
|
|
9710
|
+
tokenPersistentId: z327.string()
|
|
9569
9711
|
})
|
|
9570
9712
|
);
|
|
9571
9713
|
|
|
9572
9714
|
// src/api/dto/themes/theme.ts
|
|
9573
|
-
import { z as
|
|
9574
|
-
var DTOTheme =
|
|
9575
|
-
id:
|
|
9576
|
-
persistentId:
|
|
9577
|
-
designSystemVersionId:
|
|
9578
|
-
brandId:
|
|
9715
|
+
import { z as z328 } from "zod";
|
|
9716
|
+
var DTOTheme = z328.object({
|
|
9717
|
+
id: z328.string(),
|
|
9718
|
+
persistentId: z328.string(),
|
|
9719
|
+
designSystemVersionId: z328.string(),
|
|
9720
|
+
brandId: z328.string(),
|
|
9579
9721
|
meta: ObjectMeta,
|
|
9580
|
-
codeName:
|
|
9722
|
+
codeName: z328.string(),
|
|
9581
9723
|
overrides: DTOThemeOverride.array()
|
|
9582
9724
|
});
|
|
9583
|
-
var DTOThemeResponse =
|
|
9725
|
+
var DTOThemeResponse = z328.object({
|
|
9584
9726
|
theme: DTOTheme
|
|
9585
9727
|
});
|
|
9586
|
-
var DTOThemeListResponse =
|
|
9728
|
+
var DTOThemeListResponse = z328.object({
|
|
9587
9729
|
themes: DTOTheme.array()
|
|
9588
9730
|
});
|
|
9589
|
-
var DTOThemeCreatePayload =
|
|
9731
|
+
var DTOThemeCreatePayload = z328.object({
|
|
9590
9732
|
meta: ObjectMeta,
|
|
9591
|
-
persistentId:
|
|
9592
|
-
brandId:
|
|
9593
|
-
codeName:
|
|
9733
|
+
persistentId: z328.string(),
|
|
9734
|
+
brandId: z328.string(),
|
|
9735
|
+
codeName: z328.string(),
|
|
9594
9736
|
overrides: DTOThemeOverride.array()
|
|
9595
9737
|
});
|
|
9596
9738
|
|
|
@@ -9826,13 +9968,13 @@ var ExportersEndpoint = class {
|
|
|
9826
9968
|
};
|
|
9827
9969
|
|
|
9828
9970
|
// src/api/endpoints/codegen/jobs.ts
|
|
9829
|
-
import { z as
|
|
9971
|
+
import { z as z329 } from "zod";
|
|
9830
9972
|
var ExporterJobsEndpoint = class {
|
|
9831
9973
|
constructor(requestExecutor) {
|
|
9832
9974
|
this.requestExecutor = requestExecutor;
|
|
9833
9975
|
}
|
|
9834
9976
|
list(workspaceId) {
|
|
9835
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9977
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z329.any());
|
|
9836
9978
|
}
|
|
9837
9979
|
get(workspaceId, jobId) {
|
|
9838
9980
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9890,7 +10032,7 @@ var CodegenEndpoint = class {
|
|
|
9890
10032
|
};
|
|
9891
10033
|
|
|
9892
10034
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9893
|
-
import { z as
|
|
10035
|
+
import { z as z330 } from "zod";
|
|
9894
10036
|
var BrandsEndpoint = class {
|
|
9895
10037
|
constructor(requestExecutor) {
|
|
9896
10038
|
this.requestExecutor = requestExecutor;
|
|
@@ -9924,7 +10066,7 @@ var BrandsEndpoint = class {
|
|
|
9924
10066
|
});
|
|
9925
10067
|
}
|
|
9926
10068
|
delete(dsId, vId, brandId) {
|
|
9927
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
10069
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z330.any(), {
|
|
9928
10070
|
method: "DELETE"
|
|
9929
10071
|
});
|
|
9930
10072
|
}
|
|
@@ -10191,7 +10333,7 @@ var ImportJobsEndpoint = class {
|
|
|
10191
10333
|
};
|
|
10192
10334
|
|
|
10193
10335
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
10194
|
-
import { z as
|
|
10336
|
+
import { z as z331 } from "zod";
|
|
10195
10337
|
var OverridesEndpoint = class {
|
|
10196
10338
|
constructor(requestExecutor) {
|
|
10197
10339
|
this.requestExecutor = requestExecutor;
|
|
@@ -10199,7 +10341,7 @@ var OverridesEndpoint = class {
|
|
|
10199
10341
|
create(dsId, versionId, themeId, body) {
|
|
10200
10342
|
return this.requestExecutor.json(
|
|
10201
10343
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
10202
|
-
|
|
10344
|
+
z331.any(),
|
|
10203
10345
|
{
|
|
10204
10346
|
method: "POST",
|
|
10205
10347
|
body
|
|
@@ -10209,7 +10351,7 @@ var OverridesEndpoint = class {
|
|
|
10209
10351
|
};
|
|
10210
10352
|
|
|
10211
10353
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
10212
|
-
import { z as
|
|
10354
|
+
import { z as z332 } from "zod";
|
|
10213
10355
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
10214
10356
|
constructor(requestExecutor) {
|
|
10215
10357
|
this.requestExecutor = requestExecutor;
|
|
@@ -10237,7 +10379,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
10237
10379
|
delete(designSystemId, versionId, defId) {
|
|
10238
10380
|
return this.requestExecutor.json(
|
|
10239
10381
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
10240
|
-
|
|
10382
|
+
z332.any(),
|
|
10241
10383
|
{ method: "DELETE" }
|
|
10242
10384
|
);
|
|
10243
10385
|
}
|
|
@@ -10276,7 +10418,7 @@ var VersionStatsEndpoint = class {
|
|
|
10276
10418
|
};
|
|
10277
10419
|
|
|
10278
10420
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10279
|
-
import { z as
|
|
10421
|
+
import { z as z333 } from "zod";
|
|
10280
10422
|
var ThemesEndpoint = class {
|
|
10281
10423
|
constructor(requestExecutor) {
|
|
10282
10424
|
this.requestExecutor = requestExecutor;
|
|
@@ -10299,7 +10441,7 @@ var ThemesEndpoint = class {
|
|
|
10299
10441
|
});
|
|
10300
10442
|
}
|
|
10301
10443
|
delete(dsId, versionId, themeId) {
|
|
10302
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10444
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z333.any(), {
|
|
10303
10445
|
method: "DELETE"
|
|
10304
10446
|
});
|
|
10305
10447
|
}
|
|
@@ -10470,7 +10612,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10470
10612
|
};
|
|
10471
10613
|
|
|
10472
10614
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10473
|
-
import { z as
|
|
10615
|
+
import { z as z337 } from "zod";
|
|
10474
10616
|
|
|
10475
10617
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10476
10618
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10547,7 +10689,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10547
10689
|
};
|
|
10548
10690
|
|
|
10549
10691
|
// src/api/endpoints/design-system/sources.ts
|
|
10550
|
-
import { z as
|
|
10692
|
+
import { z as z334 } from "zod";
|
|
10551
10693
|
var DesignSystemSourcesEndpoint = class {
|
|
10552
10694
|
constructor(requestExecutor) {
|
|
10553
10695
|
this.requestExecutor = requestExecutor;
|
|
@@ -10565,7 +10707,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10565
10707
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10566
10708
|
}
|
|
10567
10709
|
delete(dsId, sourceId) {
|
|
10568
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10710
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z334.any(), { method: "DELETE" });
|
|
10569
10711
|
}
|
|
10570
10712
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10571
10713
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10608,7 +10750,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10608
10750
|
};
|
|
10609
10751
|
|
|
10610
10752
|
// src/api/endpoints/design-system/storybook.ts
|
|
10611
|
-
import { z as
|
|
10753
|
+
import { z as z335 } from "zod";
|
|
10612
10754
|
var StorybookEntriesEndpoint = class {
|
|
10613
10755
|
constructor(requestExecutor) {
|
|
10614
10756
|
this.requestExecutor = requestExecutor;
|
|
@@ -10624,14 +10766,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10624
10766
|
);
|
|
10625
10767
|
}
|
|
10626
10768
|
delete(dsId, entryId) {
|
|
10627
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10769
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z335.any(), {
|
|
10628
10770
|
method: "DELETE"
|
|
10629
10771
|
});
|
|
10630
10772
|
}
|
|
10631
10773
|
};
|
|
10632
10774
|
|
|
10633
10775
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10634
|
-
import { z as
|
|
10776
|
+
import { z as z336 } from "zod";
|
|
10635
10777
|
var StorybookHostingEndpoint = class {
|
|
10636
10778
|
constructor(requestExecutor) {
|
|
10637
10779
|
this.requestExecutor = requestExecutor;
|
|
@@ -10645,7 +10787,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10645
10787
|
delete(dsId, storybookUploadId) {
|
|
10646
10788
|
return this.requestExecutor.json(
|
|
10647
10789
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10648
|
-
|
|
10790
|
+
z336.object({ ok: z336.boolean() }),
|
|
10649
10791
|
{
|
|
10650
10792
|
method: "DELETE"
|
|
10651
10793
|
}
|
|
@@ -10703,7 +10845,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10703
10845
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10704
10846
|
}
|
|
10705
10847
|
delete(dsId) {
|
|
10706
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10848
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z337.any(), { method: "DELETE" });
|
|
10707
10849
|
}
|
|
10708
10850
|
update(dsId, body) {
|
|
10709
10851
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10924,7 +11066,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10924
11066
|
};
|
|
10925
11067
|
|
|
10926
11068
|
// src/api/endpoints/forge/project-members.ts
|
|
10927
|
-
import { z as
|
|
11069
|
+
import { z as z338 } from "zod";
|
|
10928
11070
|
var ForgeProjectMembersEndpoint = class {
|
|
10929
11071
|
constructor(requestExecutor) {
|
|
10930
11072
|
this.requestExecutor = requestExecutor;
|
|
@@ -10953,7 +11095,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10953
11095
|
delete(projectId, userId) {
|
|
10954
11096
|
return this.requestExecutor.json(
|
|
10955
11097
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10956
|
-
|
|
11098
|
+
z338.object({ ok: z338.literal(true) }),
|
|
10957
11099
|
{
|
|
10958
11100
|
method: "DELETE"
|
|
10959
11101
|
}
|
|
@@ -11107,7 +11249,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11107
11249
|
};
|
|
11108
11250
|
|
|
11109
11251
|
// src/api/endpoints/forge/project-invitations.ts
|
|
11110
|
-
import { z as
|
|
11252
|
+
import { z as z339 } from "zod";
|
|
11111
11253
|
var ForgeProjectInvitationsEndpoint = class {
|
|
11112
11254
|
constructor(requestExecutor) {
|
|
11113
11255
|
this.requestExecutor = requestExecutor;
|
|
@@ -11136,7 +11278,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
11136
11278
|
delete(projectId, email) {
|
|
11137
11279
|
return this.requestExecutor.json(
|
|
11138
11280
|
`/forge/projects/${projectId}/members/${encodeURI(btoa(email))}`,
|
|
11139
|
-
|
|
11281
|
+
z339.object({ ok: z339.literal(true) }),
|
|
11140
11282
|
{
|
|
11141
11283
|
method: "DELETE"
|
|
11142
11284
|
}
|
|
@@ -11194,7 +11336,7 @@ var ForgesEndpoint = class {
|
|
|
11194
11336
|
};
|
|
11195
11337
|
|
|
11196
11338
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11197
|
-
import { z as
|
|
11339
|
+
import { z as z340 } from "zod";
|
|
11198
11340
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11199
11341
|
constructor(requestExecutor) {
|
|
11200
11342
|
this.requestExecutor = requestExecutor;
|
|
@@ -11226,7 +11368,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11226
11368
|
);
|
|
11227
11369
|
}
|
|
11228
11370
|
delete(workspaceId, threadId) {
|
|
11229
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11371
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z340.any(), {
|
|
11230
11372
|
method: "DELETE"
|
|
11231
11373
|
});
|
|
11232
11374
|
}
|
|
@@ -11258,7 +11400,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11258
11400
|
);
|
|
11259
11401
|
}
|
|
11260
11402
|
score(workspaceId, threadId, body) {
|
|
11261
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11403
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z340.any(), {
|
|
11262
11404
|
method: "POST",
|
|
11263
11405
|
body
|
|
11264
11406
|
});
|
|
@@ -11266,7 +11408,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11266
11408
|
};
|
|
11267
11409
|
|
|
11268
11410
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11269
|
-
import { z as
|
|
11411
|
+
import { z as z341 } from "zod";
|
|
11270
11412
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11271
11413
|
constructor(requestExecutor) {
|
|
11272
11414
|
this.requestExecutor = requestExecutor;
|
|
@@ -11275,7 +11417,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11275
11417
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11276
11418
|
}
|
|
11277
11419
|
delete(wsId, iId) {
|
|
11278
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11420
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z341.unknown(), { method: "DELETE" });
|
|
11279
11421
|
}
|
|
11280
11422
|
};
|
|
11281
11423
|
|
|
@@ -11307,7 +11449,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11307
11449
|
};
|
|
11308
11450
|
|
|
11309
11451
|
// src/api/endpoints/workspaces/members.ts
|
|
11310
|
-
import { z as
|
|
11452
|
+
import { z as z342 } from "zod";
|
|
11311
11453
|
var WorkspaceMembersEndpoint = class {
|
|
11312
11454
|
constructor(requestExecutor) {
|
|
11313
11455
|
this.requestExecutor = requestExecutor;
|
|
@@ -11324,7 +11466,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11324
11466
|
});
|
|
11325
11467
|
}
|
|
11326
11468
|
invite(workspaceId, body) {
|
|
11327
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11469
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z342.any(), { method: "POST", body });
|
|
11328
11470
|
}
|
|
11329
11471
|
delete(workspaceId, userId) {
|
|
11330
11472
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11353,7 +11495,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11353
11495
|
};
|
|
11354
11496
|
|
|
11355
11497
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11356
|
-
import { z as
|
|
11498
|
+
import { z as z343 } from "zod";
|
|
11357
11499
|
var WorkspacesEndpoint = class {
|
|
11358
11500
|
constructor(requestExecutor) {
|
|
11359
11501
|
this.requestExecutor = requestExecutor;
|
|
@@ -11385,10 +11527,10 @@ var WorkspacesEndpoint = class {
|
|
|
11385
11527
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11386
11528
|
}
|
|
11387
11529
|
delete(workspaceId) {
|
|
11388
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11530
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z343.any(), { method: "DELETE" });
|
|
11389
11531
|
}
|
|
11390
11532
|
subscription(workspaceId) {
|
|
11391
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11533
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z343.any(), { method: "GET" });
|
|
11392
11534
|
}
|
|
11393
11535
|
getPortalSettings(workspaceId) {
|
|
11394
11536
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11499,9 +11641,9 @@ ${bodyText}`,
|
|
|
11499
11641
|
|
|
11500
11642
|
// src/api/transport/request-executor.ts
|
|
11501
11643
|
import fetch from "node-fetch";
|
|
11502
|
-
import { z as
|
|
11503
|
-
var ResponseWrapper =
|
|
11504
|
-
result:
|
|
11644
|
+
import { z as z344 } from "zod";
|
|
11645
|
+
var ResponseWrapper = z344.object({
|
|
11646
|
+
result: z344.record(z344.any())
|
|
11505
11647
|
});
|
|
11506
11648
|
var RequestExecutor = class {
|
|
11507
11649
|
constructor(testServerConfig) {
|
|
@@ -11578,25 +11720,25 @@ var SupernovaApiClient = class {
|
|
|
11578
11720
|
};
|
|
11579
11721
|
|
|
11580
11722
|
// src/events/design-system.ts
|
|
11581
|
-
import { z as
|
|
11582
|
-
var DTOEventFigmaNodesRendered =
|
|
11583
|
-
type:
|
|
11584
|
-
designSystemId:
|
|
11585
|
-
versionId:
|
|
11586
|
-
figmaNodePersistentIds:
|
|
11587
|
-
});
|
|
11588
|
-
var DTOEventDataSourcesImported =
|
|
11589
|
-
type:
|
|
11590
|
-
designSystemId:
|
|
11591
|
-
versionId:
|
|
11592
|
-
importJobId:
|
|
11723
|
+
import { z as z345 } from "zod";
|
|
11724
|
+
var DTOEventFigmaNodesRendered = z345.object({
|
|
11725
|
+
type: z345.literal("DesignSystem.FigmaNodesRendered"),
|
|
11726
|
+
designSystemId: z345.string(),
|
|
11727
|
+
versionId: z345.string(),
|
|
11728
|
+
figmaNodePersistentIds: z345.string().array()
|
|
11729
|
+
});
|
|
11730
|
+
var DTOEventDataSourcesImported = z345.object({
|
|
11731
|
+
type: z345.literal("DesignSystem.ImportJobFinished"),
|
|
11732
|
+
designSystemId: z345.string(),
|
|
11733
|
+
versionId: z345.string(),
|
|
11734
|
+
importJobId: z345.string(),
|
|
11593
11735
|
dataSourceType: DataSourceRemoteType,
|
|
11594
|
-
dataSourceIds:
|
|
11736
|
+
dataSourceIds: z345.string().array()
|
|
11595
11737
|
});
|
|
11596
11738
|
|
|
11597
11739
|
// src/events/event.ts
|
|
11598
|
-
import { z as
|
|
11599
|
-
var DTOEvent =
|
|
11740
|
+
import { z as z346 } from "zod";
|
|
11741
|
+
var DTOEvent = z346.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11600
11742
|
|
|
11601
11743
|
// src/sync/docs-local-action-executor.ts
|
|
11602
11744
|
function applyActionsLocally(input) {
|
|
@@ -11892,7 +12034,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
11892
12034
|
import PQueue from "p-queue";
|
|
11893
12035
|
|
|
11894
12036
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11895
|
-
import { z as
|
|
12037
|
+
import { z as z347 } from "zod";
|
|
11896
12038
|
|
|
11897
12039
|
// src/yjs/version-room/base.ts
|
|
11898
12040
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12442,24 +12584,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12442
12584
|
};
|
|
12443
12585
|
|
|
12444
12586
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12445
|
-
var DocumentationHierarchySettings =
|
|
12446
|
-
routingVersion:
|
|
12447
|
-
isDraftFeatureAdopted:
|
|
12448
|
-
isApprovalFeatureEnabled:
|
|
12449
|
-
approvalRequiredForPublishing:
|
|
12587
|
+
var DocumentationHierarchySettings = z347.object({
|
|
12588
|
+
routingVersion: z347.string(),
|
|
12589
|
+
isDraftFeatureAdopted: z347.boolean(),
|
|
12590
|
+
isApprovalFeatureEnabled: z347.boolean(),
|
|
12591
|
+
approvalRequiredForPublishing: z347.boolean()
|
|
12450
12592
|
});
|
|
12451
12593
|
function yjsToDocumentationHierarchy(doc) {
|
|
12452
12594
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12453
12595
|
}
|
|
12454
12596
|
|
|
12455
12597
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12456
|
-
import { z as
|
|
12457
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12458
|
-
title:
|
|
12598
|
+
import { z as z348 } from "zod";
|
|
12599
|
+
var DTODocumentationPageRoomHeaderData = z348.object({
|
|
12600
|
+
title: z348.string(),
|
|
12459
12601
|
configuration: DTODocumentationItemConfigurationV2
|
|
12460
12602
|
});
|
|
12461
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12462
|
-
title:
|
|
12603
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z348.object({
|
|
12604
|
+
title: z348.string().optional(),
|
|
12463
12605
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12464
12606
|
});
|
|
12465
12607
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12494,9 +12636,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12494
12636
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12495
12637
|
|
|
12496
12638
|
// src/yjs/docs-editor/model/page.ts
|
|
12497
|
-
import { z as
|
|
12498
|
-
var DocumentationPageEditorModel =
|
|
12499
|
-
blocks:
|
|
12639
|
+
import { z as z349 } from "zod";
|
|
12640
|
+
var DocumentationPageEditorModel = z349.object({
|
|
12641
|
+
blocks: z349.array(DocumentationPageContentItem)
|
|
12500
12642
|
});
|
|
12501
12643
|
|
|
12502
12644
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16173,7 +16315,7 @@ var blocks = [
|
|
|
16173
16315
|
|
|
16174
16316
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16175
16317
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16176
|
-
import { z as
|
|
16318
|
+
import { z as z350 } from "zod";
|
|
16177
16319
|
function yDocToPage(yDoc, definitions) {
|
|
16178
16320
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16179
16321
|
}
|
|
@@ -16249,7 +16391,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16249
16391
|
if (!id) return null;
|
|
16250
16392
|
return {
|
|
16251
16393
|
id,
|
|
16252
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16394
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z350.string()) ?? "",
|
|
16253
16395
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16254
16396
|
};
|
|
16255
16397
|
}
|
|
@@ -16283,7 +16425,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16283
16425
|
});
|
|
16284
16426
|
}
|
|
16285
16427
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16286
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16428
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z350.string());
|
|
16287
16429
|
if (!definitionId) {
|
|
16288
16430
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16289
16431
|
return [];
|
|
@@ -16324,7 +16466,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16324
16466
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16325
16467
|
if (!id) return null;
|
|
16326
16468
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16327
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16469
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z350.string().optional()));
|
|
16328
16470
|
return {
|
|
16329
16471
|
id,
|
|
16330
16472
|
type: "Block",
|
|
@@ -16447,9 +16589,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16447
16589
|
return null;
|
|
16448
16590
|
}
|
|
16449
16591
|
function parseProsemirrorLink(mark) {
|
|
16450
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
16592
|
+
const href = getProsemirrorAttribute(mark, "href", z350.string().optional());
|
|
16451
16593
|
if (!href) return null;
|
|
16452
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
16594
|
+
const target = getProsemirrorAttribute(mark, "target", z350.string().optional());
|
|
16453
16595
|
const openInNewTab = target === "_blank";
|
|
16454
16596
|
if (href.startsWith("@")) {
|
|
16455
16597
|
return {
|
|
@@ -16468,9 +16610,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16468
16610
|
}
|
|
16469
16611
|
}
|
|
16470
16612
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16471
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
16613
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z350.string().optional());
|
|
16472
16614
|
if (!highlightId) return null;
|
|
16473
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
16615
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z350.boolean().optional()) ?? false;
|
|
16474
16616
|
return {
|
|
16475
16617
|
type: "Comment",
|
|
16476
16618
|
commentHighlightId: highlightId,
|
|
@@ -16481,7 +16623,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16481
16623
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16482
16624
|
if (!id) return null;
|
|
16483
16625
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16484
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
16626
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z350.boolean().optional()) !== false;
|
|
16485
16627
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16486
16628
|
if (!tableChild) {
|
|
16487
16629
|
return emptyTable(id, variantId, 0);
|
|
@@ -16527,9 +16669,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16527
16669
|
function parseAsTableCell(prosemirrorNode) {
|
|
16528
16670
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16529
16671
|
if (!id) return null;
|
|
16530
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16672
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z350.string().optional());
|
|
16531
16673
|
let columnWidth;
|
|
16532
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16674
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z350.array(z350.number()).nullish());
|
|
16533
16675
|
if (columnWidthArray) {
|
|
16534
16676
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16535
16677
|
}
|
|
@@ -16565,7 +16707,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16565
16707
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16566
16708
|
};
|
|
16567
16709
|
case "image":
|
|
16568
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16710
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
|
|
16569
16711
|
if (!items) return null;
|
|
16570
16712
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16571
16713
|
if (!parsedItems.success) return null;
|
|
@@ -16679,7 +16821,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16679
16821
|
);
|
|
16680
16822
|
}
|
|
16681
16823
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16682
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16824
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
|
|
16683
16825
|
if (!itemsString) return null;
|
|
16684
16826
|
const itemsJson = JSON.parse(itemsString);
|
|
16685
16827
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16690,18 +16832,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16690
16832
|
}
|
|
16691
16833
|
function parseAppearance(prosemirrorNode) {
|
|
16692
16834
|
let appearance = {};
|
|
16693
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16835
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z350.string().optional());
|
|
16694
16836
|
if (rawAppearanceString) {
|
|
16695
16837
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16696
16838
|
if (parsedAppearance.success) {
|
|
16697
16839
|
appearance = parsedAppearance.data;
|
|
16698
16840
|
}
|
|
16699
16841
|
}
|
|
16700
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16842
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z350.number().optional());
|
|
16701
16843
|
if (columns) {
|
|
16702
16844
|
appearance.numberOfColumns = columns;
|
|
16703
16845
|
}
|
|
16704
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16846
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z350.string().optional());
|
|
16705
16847
|
if (backgroundColor) {
|
|
16706
16848
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16707
16849
|
if (parsedColor.success) {
|
|
@@ -16802,12 +16944,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16802
16944
|
}
|
|
16803
16945
|
}
|
|
16804
16946
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16805
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16947
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z350.string());
|
|
16806
16948
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16807
16949
|
return id;
|
|
16808
16950
|
}
|
|
16809
16951
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16810
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16952
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z350.string()));
|
|
16811
16953
|
}
|
|
16812
16954
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16813
16955
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -17897,6 +18039,26 @@ export {
|
|
|
17897
18039
|
DTOExporterSource,
|
|
17898
18040
|
DTOExporterType,
|
|
17899
18041
|
DTOExporterUpdateInput,
|
|
18042
|
+
DTOFeatureAgentResponseTracker,
|
|
18043
|
+
DTOFeatureArtifact,
|
|
18044
|
+
DTOFeatureEvent,
|
|
18045
|
+
DTOFeatureEventAgentResponseFinished,
|
|
18046
|
+
DTOFeatureEventMessagesSent,
|
|
18047
|
+
DTOFeatureEventReactionsDeleted,
|
|
18048
|
+
DTOFeatureEventReactionsSent,
|
|
18049
|
+
DTOFeatureIteration,
|
|
18050
|
+
DTOFeatureMessage,
|
|
18051
|
+
DTOFeatureMessageAgentSender,
|
|
18052
|
+
DTOFeatureMessageCreateInput,
|
|
18053
|
+
DTOFeatureMessageListResponse,
|
|
18054
|
+
DTOFeatureMessageReaction,
|
|
18055
|
+
DTOFeatureMessageReactionCreateInput,
|
|
18056
|
+
DTOFeatureMessageReactionDeleteInput,
|
|
18057
|
+
DTOFeatureMessageReactionResponse,
|
|
18058
|
+
DTOFeatureMessageResponse,
|
|
18059
|
+
DTOFeatureMessageSender,
|
|
18060
|
+
DTOFeatureMessageSystemSender,
|
|
18061
|
+
DTOFeatureMessageUserSender,
|
|
17900
18062
|
DTOFigmaComponent,
|
|
17901
18063
|
DTOFigmaComponentGroup,
|
|
17902
18064
|
DTOFigmaComponentGroupListResponse,
|