@supernova-studio/client 1.19.0 → 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 +13643 -12077
- package/dist/index.d.ts +13643 -12077
- package/dist/index.js +264 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +514 -356
- 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/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
|
+
|
|
9059
9201
|
// src/api/dto/forge/iteration-message-old.ts
|
|
9060
|
-
import { z as
|
|
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,20 +9212,20 @@ 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
|
|
|
@@ -9095,137 +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: 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({
|
|
9253
|
+
var DTODeleteForgeIterationMessageResponse = z312.object({
|
|
9150
9254
|
ok: z312.literal(true)
|
|
9151
9255
|
});
|
|
9152
9256
|
|
|
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
9257
|
// src/api/dto/forge/project-action.ts
|
|
9221
|
-
import
|
|
9258
|
+
import z316 from "zod";
|
|
9222
9259
|
|
|
9223
9260
|
// src/api/dto/forge/project-artifact.ts
|
|
9224
|
-
import { z as
|
|
9261
|
+
import { z as z314 } from "zod";
|
|
9225
9262
|
|
|
9226
9263
|
// src/api/dto/forge/project-section.ts
|
|
9227
|
-
import
|
|
9228
|
-
var AfterSectionId =
|
|
9264
|
+
import z313 from "zod";
|
|
9265
|
+
var AfterSectionId = z313.string().uuid().nullish().optional();
|
|
9229
9266
|
var DTOForgeSection = ForgeSection;
|
|
9230
9267
|
var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
9231
9268
|
id: true,
|
|
@@ -9236,12 +9273,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
|
9236
9273
|
});
|
|
9237
9274
|
var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
|
|
9238
9275
|
var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9239
|
-
deleteChildren:
|
|
9276
|
+
deleteChildren: z313.boolean().default(false)
|
|
9240
9277
|
});
|
|
9241
9278
|
var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9242
9279
|
afterSectionId: AfterSectionId
|
|
9243
9280
|
});
|
|
9244
|
-
var DTOForgeSectionItemMoveInput =
|
|
9281
|
+
var DTOForgeSectionItemMoveInput = z313.object({
|
|
9245
9282
|
id: Id,
|
|
9246
9283
|
sectionId: Id.nullish().optional(),
|
|
9247
9284
|
// undefined=stay, null=no section, string=move to section
|
|
@@ -9251,117 +9288,117 @@ var DTOForgeSectionItemMoveInput = z315.object({
|
|
|
9251
9288
|
|
|
9252
9289
|
// src/api/dto/forge/project-artifact.ts
|
|
9253
9290
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9254
|
-
var DTOForgeProjectArtifactUpdateInput =
|
|
9255
|
-
id:
|
|
9256
|
-
title:
|
|
9291
|
+
var DTOForgeProjectArtifactUpdateInput = z314.object({
|
|
9292
|
+
id: z314.string(),
|
|
9293
|
+
title: z314.string().optional()
|
|
9257
9294
|
});
|
|
9258
|
-
var DTOForgeProjectArtifactCreateInput =
|
|
9259
|
-
id:
|
|
9260
|
-
title:
|
|
9261
|
-
sectionId:
|
|
9262
|
-
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()
|
|
9263
9300
|
});
|
|
9264
|
-
var DTOForgeProjectArtifactDeleteInput =
|
|
9301
|
+
var DTOForgeProjectArtifactDeleteInput = z314.object({
|
|
9265
9302
|
id: Id
|
|
9266
9303
|
});
|
|
9267
9304
|
var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
|
|
9268
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
9305
|
+
var DTOForgeProjectArtifactGetResponse = z314.object({
|
|
9269
9306
|
artifact: DTOForgeProjectArtifact
|
|
9270
9307
|
});
|
|
9271
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
9308
|
+
var DTOForgeProjectArtifactCreateResponse = z314.object({
|
|
9272
9309
|
artifact: DTOForgeProjectArtifact
|
|
9273
9310
|
});
|
|
9274
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
9311
|
+
var DTOForgeProjectArtifactUpdateResponse = z314.object({
|
|
9275
9312
|
artifact: DTOForgeProjectArtifact
|
|
9276
9313
|
});
|
|
9277
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
9278
|
-
ok:
|
|
9314
|
+
var DTOForgeProjectArtifactDeleteResponse = z314.object({
|
|
9315
|
+
ok: z314.literal(true)
|
|
9279
9316
|
});
|
|
9280
|
-
var DTOForgeProjectArtifactMoveResponse =
|
|
9317
|
+
var DTOForgeProjectArtifactMoveResponse = z314.object({
|
|
9281
9318
|
artifact: DTOForgeProjectArtifact
|
|
9282
9319
|
});
|
|
9283
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
9284
|
-
artifacts:
|
|
9320
|
+
var DTOForgeProjectArtifactsListResponse = z314.object({
|
|
9321
|
+
artifacts: z314.array(DTOForgeProjectArtifact)
|
|
9285
9322
|
});
|
|
9286
9323
|
|
|
9287
9324
|
// src/api/dto/forge/project-feature.ts
|
|
9288
|
-
import
|
|
9325
|
+
import z315 from "zod";
|
|
9289
9326
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
9290
|
-
var DTOForgeProjectFeatureListResponse =
|
|
9327
|
+
var DTOForgeProjectFeatureListResponse = z315.object({
|
|
9291
9328
|
features: DTOForgeProjectFeature.array()
|
|
9292
9329
|
});
|
|
9293
|
-
var DTOForgeProjectFeatureGetResponse =
|
|
9330
|
+
var DTOForgeProjectFeatureGetResponse = z315.object({
|
|
9294
9331
|
feature: DTOForgeProjectFeature
|
|
9295
9332
|
});
|
|
9296
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
9333
|
+
var DTOForgeProjectFeatureCreateInput = z315.object({
|
|
9297
9334
|
id: Id,
|
|
9298
|
-
name:
|
|
9299
|
-
description:
|
|
9335
|
+
name: z315.string(),
|
|
9336
|
+
description: z315.string(),
|
|
9300
9337
|
sectionId: Id.optional(),
|
|
9301
9338
|
afterFeatureId: Id.nullable().optional()
|
|
9302
9339
|
});
|
|
9303
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
9340
|
+
var DTOForgeProjectFeatureUpdateInput = z315.object({
|
|
9304
9341
|
id: Id,
|
|
9305
|
-
name:
|
|
9306
|
-
description:
|
|
9307
|
-
isArchived:
|
|
9342
|
+
name: z315.string().optional(),
|
|
9343
|
+
description: z315.string().optional(),
|
|
9344
|
+
isArchived: z315.boolean().optional(),
|
|
9308
9345
|
status: ProjectFeatureStatus.optional()
|
|
9309
9346
|
});
|
|
9310
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
9347
|
+
var DTOForgeProjectFeatureDeleteInput = z315.object({
|
|
9311
9348
|
id: Id
|
|
9312
9349
|
});
|
|
9313
9350
|
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
9314
9351
|
|
|
9315
9352
|
// src/api/dto/forge/project-action.ts
|
|
9316
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
9317
|
-
type:
|
|
9353
|
+
var DTOForgeProjectActionFeatureCreate = z316.object({
|
|
9354
|
+
type: z316.literal("FeatureCreate"),
|
|
9318
9355
|
input: DTOForgeProjectFeatureCreateInput
|
|
9319
9356
|
});
|
|
9320
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
9321
|
-
type:
|
|
9357
|
+
var DTOForgeProjectActionFeatureUpdate = z316.object({
|
|
9358
|
+
type: z316.literal("FeatureUpdate"),
|
|
9322
9359
|
input: DTOForgeProjectFeatureUpdateInput
|
|
9323
9360
|
});
|
|
9324
|
-
var DTOForgeProjectActionFeatureMove =
|
|
9325
|
-
type:
|
|
9361
|
+
var DTOForgeProjectActionFeatureMove = z316.object({
|
|
9362
|
+
type: z316.literal("FeatureMove"),
|
|
9326
9363
|
input: DTOForgeProjectFeatureMoveInput
|
|
9327
9364
|
});
|
|
9328
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
9329
|
-
type:
|
|
9365
|
+
var DTOForgeProjectActionFeatureDelete = z316.object({
|
|
9366
|
+
type: z316.literal("FeatureDelete"),
|
|
9330
9367
|
input: DTOForgeProjectFeatureDeleteInput
|
|
9331
9368
|
});
|
|
9332
|
-
var DTOForgeProjectActionArtifactCreate =
|
|
9333
|
-
type:
|
|
9369
|
+
var DTOForgeProjectActionArtifactCreate = z316.object({
|
|
9370
|
+
type: z316.literal("ArtifactCreate"),
|
|
9334
9371
|
input: DTOForgeProjectArtifactCreateInput
|
|
9335
9372
|
});
|
|
9336
|
-
var DTOForgeProjectActionArtifactUpdate =
|
|
9337
|
-
type:
|
|
9373
|
+
var DTOForgeProjectActionArtifactUpdate = z316.object({
|
|
9374
|
+
type: z316.literal("ArtifactUpdate"),
|
|
9338
9375
|
input: DTOForgeProjectArtifactUpdateInput
|
|
9339
9376
|
});
|
|
9340
|
-
var DTOForgeProjectActionArtifactDelete =
|
|
9341
|
-
type:
|
|
9377
|
+
var DTOForgeProjectActionArtifactDelete = z316.object({
|
|
9378
|
+
type: z316.literal("ArtifactDelete"),
|
|
9342
9379
|
input: DTOForgeProjectArtifactDeleteInput
|
|
9343
9380
|
});
|
|
9344
|
-
var DTOForgeProjectActionArtifactMove =
|
|
9345
|
-
type:
|
|
9381
|
+
var DTOForgeProjectActionArtifactMove = z316.object({
|
|
9382
|
+
type: z316.literal("ArtifactMove"),
|
|
9346
9383
|
input: DTOForgeProjectArtifactMoveInput
|
|
9347
9384
|
});
|
|
9348
|
-
var DTOForgeProjectActionSectionCreate =
|
|
9349
|
-
type:
|
|
9385
|
+
var DTOForgeProjectActionSectionCreate = z316.object({
|
|
9386
|
+
type: z316.literal("SectionCreate"),
|
|
9350
9387
|
input: DTOForgeSectionCreateInput
|
|
9351
9388
|
});
|
|
9352
|
-
var DTOForgeProjectActionSectionUpdate =
|
|
9353
|
-
type:
|
|
9389
|
+
var DTOForgeProjectActionSectionUpdate = z316.object({
|
|
9390
|
+
type: z316.literal("SectionUpdate"),
|
|
9354
9391
|
input: DTOForgeSectionUpdateInput
|
|
9355
9392
|
});
|
|
9356
|
-
var DTOForgeProjectActionSectionDelete =
|
|
9357
|
-
type:
|
|
9393
|
+
var DTOForgeProjectActionSectionDelete = z316.object({
|
|
9394
|
+
type: z316.literal("SectionDelete"),
|
|
9358
9395
|
input: DTOForgeSectionDeleteInput
|
|
9359
9396
|
});
|
|
9360
|
-
var DTOForgeProjectActionSectionMove =
|
|
9361
|
-
type:
|
|
9397
|
+
var DTOForgeProjectActionSectionMove = z316.object({
|
|
9398
|
+
type: z316.literal("SectionMove"),
|
|
9362
9399
|
input: DTOForgeSectionMoveInput
|
|
9363
9400
|
});
|
|
9364
|
-
var DTOForgeProjectAction =
|
|
9401
|
+
var DTOForgeProjectAction = z316.discriminatedUnion("type", [
|
|
9365
9402
|
//features
|
|
9366
9403
|
DTOForgeProjectActionFeatureCreate,
|
|
9367
9404
|
DTOForgeProjectActionFeatureUpdate,
|
|
@@ -9378,22 +9415,22 @@ var DTOForgeProjectAction = z318.discriminatedUnion("type", [
|
|
|
9378
9415
|
DTOForgeProjectActionSectionDelete,
|
|
9379
9416
|
DTOForgeProjectActionSectionMove
|
|
9380
9417
|
]).and(
|
|
9381
|
-
|
|
9382
|
-
tId:
|
|
9418
|
+
z316.object({
|
|
9419
|
+
tId: z316.string().optional()
|
|
9383
9420
|
})
|
|
9384
9421
|
);
|
|
9385
9422
|
|
|
9386
9423
|
// src/api/dto/forge/project-artifact-room.ts
|
|
9387
|
-
import { z as
|
|
9388
|
-
var DTOForgeProjectArtifactRoom =
|
|
9389
|
-
id:
|
|
9424
|
+
import { z as z317 } from "zod";
|
|
9425
|
+
var DTOForgeProjectArtifactRoom = z317.object({
|
|
9426
|
+
id: z317.string()
|
|
9390
9427
|
});
|
|
9391
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
9428
|
+
var DTOForgeProjectArtifactRoomResponse = z317.object({
|
|
9392
9429
|
room: DTOForgeProjectArtifactRoom
|
|
9393
9430
|
});
|
|
9394
9431
|
|
|
9395
9432
|
// src/api/dto/forge/project-context.ts
|
|
9396
|
-
import { z as
|
|
9433
|
+
import { z as z318 } from "zod";
|
|
9397
9434
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9398
9435
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9399
9436
|
definition: true,
|
|
@@ -9405,21 +9442,53 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9405
9442
|
tailwindConfig: true,
|
|
9406
9443
|
styling: true
|
|
9407
9444
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9408
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
9409
|
-
var DTOForgeProjectContextGetResponse =
|
|
9410
|
-
var DTOForgeProjectContextListResponse =
|
|
9411
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9412
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9413
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9414
|
-
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)
|
|
9415
9452
|
});
|
|
9416
9453
|
|
|
9417
9454
|
// src/api/dto/forge/project-figma-node.ts
|
|
9418
9455
|
var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
9419
9456
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
9420
9457
|
|
|
9458
|
+
// src/api/dto/forge/project-invitation.ts
|
|
9459
|
+
import { z as z319 } from "zod";
|
|
9460
|
+
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9461
|
+
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9462
|
+
email: true,
|
|
9463
|
+
role: true
|
|
9464
|
+
}).extend({
|
|
9465
|
+
workspaceRole: WorkspaceRoleSchema
|
|
9466
|
+
});
|
|
9467
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
9468
|
+
email: true,
|
|
9469
|
+
workspaceRole: true
|
|
9470
|
+
});
|
|
9471
|
+
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9472
|
+
email: true
|
|
9473
|
+
});
|
|
9474
|
+
var DTOForgeProjectInvitationsListResponse = z319.object({
|
|
9475
|
+
invitations: z319.array(DTOForgeProjectInvitation)
|
|
9476
|
+
});
|
|
9477
|
+
var DTOForgeProjectInvitationGetResponse = z319.object({
|
|
9478
|
+
invitation: DTOForgeProjectInvitation
|
|
9479
|
+
});
|
|
9480
|
+
var DTOForgeProjectInvitationCreateResponse = z319.object({
|
|
9481
|
+
invitation: DTOForgeProjectInvitation
|
|
9482
|
+
});
|
|
9483
|
+
var DTOForgeProjectInvitationUpdateResponse = z319.object({
|
|
9484
|
+
invitation: DTOForgeProjectInvitation.nullable()
|
|
9485
|
+
});
|
|
9486
|
+
var DTOForgeProjectInvitationRemoveResponse = z319.object({
|
|
9487
|
+
ok: z319.literal(true)
|
|
9488
|
+
});
|
|
9489
|
+
|
|
9421
9490
|
// src/api/dto/forge/project-iteration-old.ts
|
|
9422
|
-
import { z as
|
|
9491
|
+
import { z as z320 } from "zod";
|
|
9423
9492
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9424
9493
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9425
9494
|
artifacts: true,
|
|
@@ -9430,7 +9499,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9430
9499
|
messages: DTOForgeIterationMessage.array(),
|
|
9431
9500
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9432
9501
|
});
|
|
9433
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9502
|
+
var DTOGetForgeProjectIterationResponse = z320.object({
|
|
9434
9503
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9435
9504
|
});
|
|
9436
9505
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9440,17 +9509,52 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9440
9509
|
mergeMeta: true,
|
|
9441
9510
|
createdAt: true
|
|
9442
9511
|
});
|
|
9443
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9444
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9512
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z320.string() });
|
|
9513
|
+
var DTOCreateForgeProjectIterationResponse = z320.object({
|
|
9445
9514
|
iteration: DTOForgeProjectIteration
|
|
9446
9515
|
});
|
|
9447
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9516
|
+
var DTOUpdateForgeProjectIterationResponse = z320.object({
|
|
9448
9517
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9449
9518
|
});
|
|
9450
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9519
|
+
var DTODeleteForgeProjectIterationResponse = z320.object({
|
|
9520
|
+
ok: z320.literal(true)
|
|
9521
|
+
});
|
|
9522
|
+
var DTOForgeProjectIterationListResponse = z320.object({ iterations: z320.array(DTOForgeProjectIteration) });
|
|
9523
|
+
|
|
9524
|
+
// src/api/dto/forge/project-member.ts
|
|
9525
|
+
import { z as z321 } from "zod";
|
|
9526
|
+
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9527
|
+
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9528
|
+
user: DTOUser,
|
|
9529
|
+
effectiveRole: DTOForgeProjectMemberRole
|
|
9530
|
+
});
|
|
9531
|
+
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9532
|
+
userId: true,
|
|
9533
|
+
role: true
|
|
9534
|
+
});
|
|
9535
|
+
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: true });
|
|
9536
|
+
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9537
|
+
userId: true
|
|
9538
|
+
});
|
|
9539
|
+
var DTOForgeProjectMembersListResponse = z321.object({
|
|
9540
|
+
members: z321.array(DTOForgeProjectMember),
|
|
9541
|
+
invitations: z321.array(DTOForgeProjectInvitation)
|
|
9542
|
+
});
|
|
9543
|
+
var DTOForgeProjectMemberGetResponse = z321.object({
|
|
9544
|
+
member: DTOForgeProjectMember
|
|
9545
|
+
});
|
|
9546
|
+
var DTOForgeProjectMemberCreateResponse = z321.object({
|
|
9547
|
+
member: DTOForgeProjectMember
|
|
9548
|
+
});
|
|
9549
|
+
var DTOForgeProjectMemberUpdateResponse = z321.object({
|
|
9550
|
+
member: DTOForgeProjectMember.nullable()
|
|
9551
|
+
});
|
|
9552
|
+
var DTOForgeProjectMemberRemoveResponse = z321.object({
|
|
9451
9553
|
ok: z321.literal(true)
|
|
9452
9554
|
});
|
|
9453
|
-
var
|
|
9555
|
+
var DTOAddMembersToForgeProject = z321.object({
|
|
9556
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
9557
|
+
});
|
|
9454
9558
|
|
|
9455
9559
|
// src/api/dto/forge/project-room.ts
|
|
9456
9560
|
import { z as z322 } from "zod";
|
|
@@ -9461,140 +9565,174 @@ var DTOForgeProjectRoomResponse = z322.object({
|
|
|
9461
9565
|
room: DTOForgeProjectRoom
|
|
9462
9566
|
});
|
|
9463
9567
|
|
|
9464
|
-
// src/api/dto/forge/
|
|
9568
|
+
// src/api/dto/forge/project.ts
|
|
9465
9569
|
import { z as z323 } from "zod";
|
|
9570
|
+
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9571
|
+
context: ForgeProjectContext,
|
|
9572
|
+
members: z323.array(DTOForgeProjectMember),
|
|
9573
|
+
invitations: z323.array(DTOForgeProjectInvitation)
|
|
9574
|
+
});
|
|
9575
|
+
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9576
|
+
instruction: true,
|
|
9577
|
+
name: true,
|
|
9578
|
+
meta: true,
|
|
9579
|
+
tags: true,
|
|
9580
|
+
accessMode: true,
|
|
9581
|
+
fpContextId: true,
|
|
9582
|
+
isArchived: true,
|
|
9583
|
+
emoji: true
|
|
9584
|
+
}).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
|
|
9585
|
+
var DTOUpdateForgeProject = DTOCreateForgeProject.omit({ membersToInvite: true }).partial().extend({
|
|
9586
|
+
id: z323.string(),
|
|
9587
|
+
membersToRetain: z323.string().array().min(1).optional()
|
|
9588
|
+
});
|
|
9589
|
+
var DTOForgeProjectGetResponse = z323.object({ project: DTOForgeProject.nullable() });
|
|
9590
|
+
var DTOForgeProjectsListResponse = z323.object({ projects: z323.array(DTOForgeProject) });
|
|
9591
|
+
var DTOCreateForgeProjectResponse = z323.object({
|
|
9592
|
+
project: DTOForgeProject
|
|
9593
|
+
});
|
|
9594
|
+
var DTOUpdateForgeProjectResponse = z323.object({
|
|
9595
|
+
project: DTOForgeProject
|
|
9596
|
+
});
|
|
9597
|
+
var DTOUGetForgeProjectResponse = z323.object({
|
|
9598
|
+
project: DTOForgeProject
|
|
9599
|
+
});
|
|
9600
|
+
var DTORemoveForgeProjectResponse = z323.object({ ok: z323.literal(true) });
|
|
9601
|
+
|
|
9602
|
+
// src/api/dto/forge/threads.ts
|
|
9603
|
+
import { z as z324 } from "zod";
|
|
9466
9604
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9467
9605
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9468
9606
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9469
9607
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9470
|
-
var DTOForgeChatThreadCreateInput =
|
|
9471
|
-
title:
|
|
9608
|
+
var DTOForgeChatThreadCreateInput = z324.object({
|
|
9609
|
+
title: z324.string().optional()
|
|
9472
9610
|
});
|
|
9473
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9611
|
+
var DTOForgeChatThreadCreateResponse = z324.object({
|
|
9474
9612
|
thread: DTOForgeChatThread
|
|
9475
9613
|
});
|
|
9476
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9477
|
-
title:
|
|
9614
|
+
var DTOForgeChatThreadUpdateInput = z324.object({
|
|
9615
|
+
title: z324.string()
|
|
9478
9616
|
});
|
|
9479
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9617
|
+
var DTOForgeChatThreadUpdateResponse = z324.object({
|
|
9480
9618
|
thread: DTOForgeChatThread
|
|
9481
9619
|
});
|
|
9482
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9483
|
-
success:
|
|
9620
|
+
var DTOForgeChatThreadDeleteResponse = z324.object({
|
|
9621
|
+
success: z324.boolean()
|
|
9484
9622
|
});
|
|
9485
|
-
var DTOForgeChatThreadListQuery =
|
|
9486
|
-
limit:
|
|
9487
|
-
offset:
|
|
9623
|
+
var DTOForgeChatThreadListQuery = z324.object({
|
|
9624
|
+
limit: z324.number().optional(),
|
|
9625
|
+
offset: z324.number().optional()
|
|
9488
9626
|
});
|
|
9489
|
-
var DTOForgeChatThreadListResponse =
|
|
9490
|
-
threads:
|
|
9491
|
-
pagination:
|
|
9492
|
-
offset:
|
|
9493
|
-
limit:
|
|
9494
|
-
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()
|
|
9495
9633
|
})
|
|
9496
9634
|
});
|
|
9497
|
-
var DTOForgeChatMessageCreateInput =
|
|
9498
|
-
payload:
|
|
9635
|
+
var DTOForgeChatMessageCreateInput = z324.object({
|
|
9636
|
+
payload: z324.string(),
|
|
9499
9637
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9500
|
-
opikTraceId:
|
|
9638
|
+
opikTraceId: z324.string().optional()
|
|
9501
9639
|
});
|
|
9502
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9640
|
+
var DTOForgeChatMessageCreateResponse = z324.object({
|
|
9503
9641
|
message: DTOForgeChatMessage
|
|
9504
9642
|
});
|
|
9505
|
-
var DTOForgeChatMessageListQuery =
|
|
9506
|
-
limit:
|
|
9507
|
-
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)
|
|
9508
9646
|
});
|
|
9509
|
-
var DTOForgeChatMessageListResponse =
|
|
9510
|
-
messages:
|
|
9511
|
-
totalCount:
|
|
9512
|
-
hasMore:
|
|
9647
|
+
var DTOForgeChatMessageListResponse = z324.object({
|
|
9648
|
+
messages: z324.array(DTOForgeChatMessage),
|
|
9649
|
+
totalCount: z324.number(),
|
|
9650
|
+
hasMore: z324.boolean()
|
|
9513
9651
|
});
|
|
9514
|
-
var DTOForgeChatMessageScoreInput =
|
|
9515
|
-
messageId:
|
|
9516
|
-
name:
|
|
9517
|
-
value:
|
|
9518
|
-
categoryName:
|
|
9519
|
-
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()
|
|
9520
9658
|
});
|
|
9521
|
-
var DTOForgeChatMessageTagInput =
|
|
9522
|
-
messageId:
|
|
9523
|
-
tags:
|
|
9659
|
+
var DTOForgeChatMessageTagInput = z324.object({
|
|
9660
|
+
messageId: z324.string(),
|
|
9661
|
+
tags: z324.array(z324.string())
|
|
9524
9662
|
});
|
|
9525
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9663
|
+
var DTOForgeChatMessageScoreRequest = z324.object({
|
|
9526
9664
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9527
9665
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9528
9666
|
});
|
|
9529
9667
|
|
|
9530
9668
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9531
|
-
import { z as
|
|
9532
|
-
var DTOLiveblocksAuthResponse =
|
|
9533
|
-
token:
|
|
9669
|
+
import { z as z325 } from "zod";
|
|
9670
|
+
var DTOLiveblocksAuthResponse = z325.object({
|
|
9671
|
+
token: z325.string()
|
|
9534
9672
|
});
|
|
9535
9673
|
|
|
9536
9674
|
// src/api/dto/portal/portal-settings.ts
|
|
9537
|
-
import { z as
|
|
9675
|
+
import { z as z326 } from "zod";
|
|
9538
9676
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9539
9677
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9540
9678
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9541
9679
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9542
|
-
var DTOPortalSettings =
|
|
9543
|
-
id:
|
|
9544
|
-
workspaceId:
|
|
9545
|
-
enabledDesignSystemIds:
|
|
9546
|
-
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()),
|
|
9547
9685
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9548
9686
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9549
|
-
createdAt:
|
|
9550
|
-
updatedAt:
|
|
9687
|
+
createdAt: z326.coerce.date(),
|
|
9688
|
+
updatedAt: z326.coerce.date()
|
|
9551
9689
|
});
|
|
9552
|
-
var DTOPortalSettingsGetResponse =
|
|
9690
|
+
var DTOPortalSettingsGetResponse = z326.object({
|
|
9553
9691
|
portalSettings: DTOPortalSettings
|
|
9554
9692
|
});
|
|
9555
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9556
|
-
enabledDesignSystemIds:
|
|
9557
|
-
enabledBrandPersistentIds:
|
|
9693
|
+
var DTOPortalSettingsUpdatePayload = z326.object({
|
|
9694
|
+
enabledDesignSystemIds: z326.array(z326.string()).optional(),
|
|
9695
|
+
enabledBrandPersistentIds: z326.array(z326.string()).optional(),
|
|
9558
9696
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9559
9697
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9560
9698
|
});
|
|
9561
9699
|
|
|
9562
9700
|
// src/api/dto/themes/override.ts
|
|
9563
|
-
import { z as
|
|
9701
|
+
import { z as z327 } from "zod";
|
|
9564
9702
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9565
|
-
|
|
9566
|
-
tokenPersistentId:
|
|
9703
|
+
z327.object({
|
|
9704
|
+
tokenPersistentId: z327.string(),
|
|
9567
9705
|
origin: ThemeOverrideOrigin.optional()
|
|
9568
9706
|
})
|
|
9569
9707
|
);
|
|
9570
9708
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9571
|
-
|
|
9572
|
-
tokenPersistentId:
|
|
9709
|
+
z327.object({
|
|
9710
|
+
tokenPersistentId: z327.string()
|
|
9573
9711
|
})
|
|
9574
9712
|
);
|
|
9575
9713
|
|
|
9576
9714
|
// src/api/dto/themes/theme.ts
|
|
9577
|
-
import { z as
|
|
9578
|
-
var DTOTheme =
|
|
9579
|
-
id:
|
|
9580
|
-
persistentId:
|
|
9581
|
-
designSystemVersionId:
|
|
9582
|
-
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(),
|
|
9583
9721
|
meta: ObjectMeta,
|
|
9584
|
-
codeName:
|
|
9722
|
+
codeName: z328.string(),
|
|
9585
9723
|
overrides: DTOThemeOverride.array()
|
|
9586
9724
|
});
|
|
9587
|
-
var DTOThemeResponse =
|
|
9725
|
+
var DTOThemeResponse = z328.object({
|
|
9588
9726
|
theme: DTOTheme
|
|
9589
9727
|
});
|
|
9590
|
-
var DTOThemeListResponse =
|
|
9728
|
+
var DTOThemeListResponse = z328.object({
|
|
9591
9729
|
themes: DTOTheme.array()
|
|
9592
9730
|
});
|
|
9593
|
-
var DTOThemeCreatePayload =
|
|
9731
|
+
var DTOThemeCreatePayload = z328.object({
|
|
9594
9732
|
meta: ObjectMeta,
|
|
9595
|
-
persistentId:
|
|
9596
|
-
brandId:
|
|
9597
|
-
codeName:
|
|
9733
|
+
persistentId: z328.string(),
|
|
9734
|
+
brandId: z328.string(),
|
|
9735
|
+
codeName: z328.string(),
|
|
9598
9736
|
overrides: DTOThemeOverride.array()
|
|
9599
9737
|
});
|
|
9600
9738
|
|
|
@@ -9830,13 +9968,13 @@ var ExportersEndpoint = class {
|
|
|
9830
9968
|
};
|
|
9831
9969
|
|
|
9832
9970
|
// src/api/endpoints/codegen/jobs.ts
|
|
9833
|
-
import { z as
|
|
9971
|
+
import { z as z329 } from "zod";
|
|
9834
9972
|
var ExporterJobsEndpoint = class {
|
|
9835
9973
|
constructor(requestExecutor) {
|
|
9836
9974
|
this.requestExecutor = requestExecutor;
|
|
9837
9975
|
}
|
|
9838
9976
|
list(workspaceId) {
|
|
9839
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9977
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z329.any());
|
|
9840
9978
|
}
|
|
9841
9979
|
get(workspaceId, jobId) {
|
|
9842
9980
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9894,7 +10032,7 @@ var CodegenEndpoint = class {
|
|
|
9894
10032
|
};
|
|
9895
10033
|
|
|
9896
10034
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9897
|
-
import { z as
|
|
10035
|
+
import { z as z330 } from "zod";
|
|
9898
10036
|
var BrandsEndpoint = class {
|
|
9899
10037
|
constructor(requestExecutor) {
|
|
9900
10038
|
this.requestExecutor = requestExecutor;
|
|
@@ -9928,7 +10066,7 @@ var BrandsEndpoint = class {
|
|
|
9928
10066
|
});
|
|
9929
10067
|
}
|
|
9930
10068
|
delete(dsId, vId, brandId) {
|
|
9931
|
-
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(), {
|
|
9932
10070
|
method: "DELETE"
|
|
9933
10071
|
});
|
|
9934
10072
|
}
|
|
@@ -10195,7 +10333,7 @@ var ImportJobsEndpoint = class {
|
|
|
10195
10333
|
};
|
|
10196
10334
|
|
|
10197
10335
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
10198
|
-
import { z as
|
|
10336
|
+
import { z as z331 } from "zod";
|
|
10199
10337
|
var OverridesEndpoint = class {
|
|
10200
10338
|
constructor(requestExecutor) {
|
|
10201
10339
|
this.requestExecutor = requestExecutor;
|
|
@@ -10203,7 +10341,7 @@ var OverridesEndpoint = class {
|
|
|
10203
10341
|
create(dsId, versionId, themeId, body) {
|
|
10204
10342
|
return this.requestExecutor.json(
|
|
10205
10343
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
10206
|
-
|
|
10344
|
+
z331.any(),
|
|
10207
10345
|
{
|
|
10208
10346
|
method: "POST",
|
|
10209
10347
|
body
|
|
@@ -10213,7 +10351,7 @@ var OverridesEndpoint = class {
|
|
|
10213
10351
|
};
|
|
10214
10352
|
|
|
10215
10353
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
10216
|
-
import { z as
|
|
10354
|
+
import { z as z332 } from "zod";
|
|
10217
10355
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
10218
10356
|
constructor(requestExecutor) {
|
|
10219
10357
|
this.requestExecutor = requestExecutor;
|
|
@@ -10241,7 +10379,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
10241
10379
|
delete(designSystemId, versionId, defId) {
|
|
10242
10380
|
return this.requestExecutor.json(
|
|
10243
10381
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
10244
|
-
|
|
10382
|
+
z332.any(),
|
|
10245
10383
|
{ method: "DELETE" }
|
|
10246
10384
|
);
|
|
10247
10385
|
}
|
|
@@ -10280,7 +10418,7 @@ var VersionStatsEndpoint = class {
|
|
|
10280
10418
|
};
|
|
10281
10419
|
|
|
10282
10420
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10283
|
-
import { z as
|
|
10421
|
+
import { z as z333 } from "zod";
|
|
10284
10422
|
var ThemesEndpoint = class {
|
|
10285
10423
|
constructor(requestExecutor) {
|
|
10286
10424
|
this.requestExecutor = requestExecutor;
|
|
@@ -10303,7 +10441,7 @@ var ThemesEndpoint = class {
|
|
|
10303
10441
|
});
|
|
10304
10442
|
}
|
|
10305
10443
|
delete(dsId, versionId, themeId) {
|
|
10306
|
-
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(), {
|
|
10307
10445
|
method: "DELETE"
|
|
10308
10446
|
});
|
|
10309
10447
|
}
|
|
@@ -10474,7 +10612,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10474
10612
|
};
|
|
10475
10613
|
|
|
10476
10614
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10477
|
-
import { z as
|
|
10615
|
+
import { z as z337 } from "zod";
|
|
10478
10616
|
|
|
10479
10617
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10480
10618
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10551,7 +10689,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10551
10689
|
};
|
|
10552
10690
|
|
|
10553
10691
|
// src/api/endpoints/design-system/sources.ts
|
|
10554
|
-
import { z as
|
|
10692
|
+
import { z as z334 } from "zod";
|
|
10555
10693
|
var DesignSystemSourcesEndpoint = class {
|
|
10556
10694
|
constructor(requestExecutor) {
|
|
10557
10695
|
this.requestExecutor = requestExecutor;
|
|
@@ -10569,7 +10707,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10569
10707
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10570
10708
|
}
|
|
10571
10709
|
delete(dsId, sourceId) {
|
|
10572
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10710
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z334.any(), { method: "DELETE" });
|
|
10573
10711
|
}
|
|
10574
10712
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10575
10713
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10612,7 +10750,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10612
10750
|
};
|
|
10613
10751
|
|
|
10614
10752
|
// src/api/endpoints/design-system/storybook.ts
|
|
10615
|
-
import { z as
|
|
10753
|
+
import { z as z335 } from "zod";
|
|
10616
10754
|
var StorybookEntriesEndpoint = class {
|
|
10617
10755
|
constructor(requestExecutor) {
|
|
10618
10756
|
this.requestExecutor = requestExecutor;
|
|
@@ -10628,14 +10766,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10628
10766
|
);
|
|
10629
10767
|
}
|
|
10630
10768
|
delete(dsId, entryId) {
|
|
10631
|
-
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(), {
|
|
10632
10770
|
method: "DELETE"
|
|
10633
10771
|
});
|
|
10634
10772
|
}
|
|
10635
10773
|
};
|
|
10636
10774
|
|
|
10637
10775
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10638
|
-
import { z as
|
|
10776
|
+
import { z as z336 } from "zod";
|
|
10639
10777
|
var StorybookHostingEndpoint = class {
|
|
10640
10778
|
constructor(requestExecutor) {
|
|
10641
10779
|
this.requestExecutor = requestExecutor;
|
|
@@ -10649,7 +10787,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10649
10787
|
delete(dsId, storybookUploadId) {
|
|
10650
10788
|
return this.requestExecutor.json(
|
|
10651
10789
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10652
|
-
|
|
10790
|
+
z336.object({ ok: z336.boolean() }),
|
|
10653
10791
|
{
|
|
10654
10792
|
method: "DELETE"
|
|
10655
10793
|
}
|
|
@@ -10707,7 +10845,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10707
10845
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10708
10846
|
}
|
|
10709
10847
|
delete(dsId) {
|
|
10710
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10848
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z337.any(), { method: "DELETE" });
|
|
10711
10849
|
}
|
|
10712
10850
|
update(dsId, body) {
|
|
10713
10851
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10928,7 +11066,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10928
11066
|
};
|
|
10929
11067
|
|
|
10930
11068
|
// src/api/endpoints/forge/project-members.ts
|
|
10931
|
-
import { z as
|
|
11069
|
+
import { z as z338 } from "zod";
|
|
10932
11070
|
var ForgeProjectMembersEndpoint = class {
|
|
10933
11071
|
constructor(requestExecutor) {
|
|
10934
11072
|
this.requestExecutor = requestExecutor;
|
|
@@ -10957,7 +11095,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10957
11095
|
delete(projectId, userId) {
|
|
10958
11096
|
return this.requestExecutor.json(
|
|
10959
11097
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10960
|
-
|
|
11098
|
+
z338.object({ ok: z338.literal(true) }),
|
|
10961
11099
|
{
|
|
10962
11100
|
method: "DELETE"
|
|
10963
11101
|
}
|
|
@@ -11111,7 +11249,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11111
11249
|
};
|
|
11112
11250
|
|
|
11113
11251
|
// src/api/endpoints/forge/project-invitations.ts
|
|
11114
|
-
import { z as
|
|
11252
|
+
import { z as z339 } from "zod";
|
|
11115
11253
|
var ForgeProjectInvitationsEndpoint = class {
|
|
11116
11254
|
constructor(requestExecutor) {
|
|
11117
11255
|
this.requestExecutor = requestExecutor;
|
|
@@ -11140,7 +11278,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
11140
11278
|
delete(projectId, email) {
|
|
11141
11279
|
return this.requestExecutor.json(
|
|
11142
11280
|
`/forge/projects/${projectId}/members/${encodeURI(btoa(email))}`,
|
|
11143
|
-
|
|
11281
|
+
z339.object({ ok: z339.literal(true) }),
|
|
11144
11282
|
{
|
|
11145
11283
|
method: "DELETE"
|
|
11146
11284
|
}
|
|
@@ -11198,7 +11336,7 @@ var ForgesEndpoint = class {
|
|
|
11198
11336
|
};
|
|
11199
11337
|
|
|
11200
11338
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11201
|
-
import { z as
|
|
11339
|
+
import { z as z340 } from "zod";
|
|
11202
11340
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11203
11341
|
constructor(requestExecutor) {
|
|
11204
11342
|
this.requestExecutor = requestExecutor;
|
|
@@ -11230,7 +11368,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11230
11368
|
);
|
|
11231
11369
|
}
|
|
11232
11370
|
delete(workspaceId, threadId) {
|
|
11233
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11371
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z340.any(), {
|
|
11234
11372
|
method: "DELETE"
|
|
11235
11373
|
});
|
|
11236
11374
|
}
|
|
@@ -11262,7 +11400,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11262
11400
|
);
|
|
11263
11401
|
}
|
|
11264
11402
|
score(workspaceId, threadId, body) {
|
|
11265
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11403
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z340.any(), {
|
|
11266
11404
|
method: "POST",
|
|
11267
11405
|
body
|
|
11268
11406
|
});
|
|
@@ -11270,7 +11408,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11270
11408
|
};
|
|
11271
11409
|
|
|
11272
11410
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11273
|
-
import { z as
|
|
11411
|
+
import { z as z341 } from "zod";
|
|
11274
11412
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11275
11413
|
constructor(requestExecutor) {
|
|
11276
11414
|
this.requestExecutor = requestExecutor;
|
|
@@ -11279,7 +11417,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11279
11417
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11280
11418
|
}
|
|
11281
11419
|
delete(wsId, iId) {
|
|
11282
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11420
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z341.unknown(), { method: "DELETE" });
|
|
11283
11421
|
}
|
|
11284
11422
|
};
|
|
11285
11423
|
|
|
@@ -11311,7 +11449,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11311
11449
|
};
|
|
11312
11450
|
|
|
11313
11451
|
// src/api/endpoints/workspaces/members.ts
|
|
11314
|
-
import { z as
|
|
11452
|
+
import { z as z342 } from "zod";
|
|
11315
11453
|
var WorkspaceMembersEndpoint = class {
|
|
11316
11454
|
constructor(requestExecutor) {
|
|
11317
11455
|
this.requestExecutor = requestExecutor;
|
|
@@ -11328,7 +11466,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11328
11466
|
});
|
|
11329
11467
|
}
|
|
11330
11468
|
invite(workspaceId, body) {
|
|
11331
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11469
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z342.any(), { method: "POST", body });
|
|
11332
11470
|
}
|
|
11333
11471
|
delete(workspaceId, userId) {
|
|
11334
11472
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11357,7 +11495,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11357
11495
|
};
|
|
11358
11496
|
|
|
11359
11497
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11360
|
-
import { z as
|
|
11498
|
+
import { z as z343 } from "zod";
|
|
11361
11499
|
var WorkspacesEndpoint = class {
|
|
11362
11500
|
constructor(requestExecutor) {
|
|
11363
11501
|
this.requestExecutor = requestExecutor;
|
|
@@ -11389,10 +11527,10 @@ var WorkspacesEndpoint = class {
|
|
|
11389
11527
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11390
11528
|
}
|
|
11391
11529
|
delete(workspaceId) {
|
|
11392
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11530
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z343.any(), { method: "DELETE" });
|
|
11393
11531
|
}
|
|
11394
11532
|
subscription(workspaceId) {
|
|
11395
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11533
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z343.any(), { method: "GET" });
|
|
11396
11534
|
}
|
|
11397
11535
|
getPortalSettings(workspaceId) {
|
|
11398
11536
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11503,9 +11641,9 @@ ${bodyText}`,
|
|
|
11503
11641
|
|
|
11504
11642
|
// src/api/transport/request-executor.ts
|
|
11505
11643
|
import fetch from "node-fetch";
|
|
11506
|
-
import { z as
|
|
11507
|
-
var ResponseWrapper =
|
|
11508
|
-
result:
|
|
11644
|
+
import { z as z344 } from "zod";
|
|
11645
|
+
var ResponseWrapper = z344.object({
|
|
11646
|
+
result: z344.record(z344.any())
|
|
11509
11647
|
});
|
|
11510
11648
|
var RequestExecutor = class {
|
|
11511
11649
|
constructor(testServerConfig) {
|
|
@@ -11582,25 +11720,25 @@ var SupernovaApiClient = class {
|
|
|
11582
11720
|
};
|
|
11583
11721
|
|
|
11584
11722
|
// src/events/design-system.ts
|
|
11585
|
-
import { z as
|
|
11586
|
-
var DTOEventFigmaNodesRendered =
|
|
11587
|
-
type:
|
|
11588
|
-
designSystemId:
|
|
11589
|
-
versionId:
|
|
11590
|
-
figmaNodePersistentIds:
|
|
11591
|
-
});
|
|
11592
|
-
var DTOEventDataSourcesImported =
|
|
11593
|
-
type:
|
|
11594
|
-
designSystemId:
|
|
11595
|
-
versionId:
|
|
11596
|
-
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(),
|
|
11597
11735
|
dataSourceType: DataSourceRemoteType,
|
|
11598
|
-
dataSourceIds:
|
|
11736
|
+
dataSourceIds: z345.string().array()
|
|
11599
11737
|
});
|
|
11600
11738
|
|
|
11601
11739
|
// src/events/event.ts
|
|
11602
|
-
import { z as
|
|
11603
|
-
var DTOEvent =
|
|
11740
|
+
import { z as z346 } from "zod";
|
|
11741
|
+
var DTOEvent = z346.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11604
11742
|
|
|
11605
11743
|
// src/sync/docs-local-action-executor.ts
|
|
11606
11744
|
function applyActionsLocally(input) {
|
|
@@ -11896,7 +12034,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
11896
12034
|
import PQueue from "p-queue";
|
|
11897
12035
|
|
|
11898
12036
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11899
|
-
import { z as
|
|
12037
|
+
import { z as z347 } from "zod";
|
|
11900
12038
|
|
|
11901
12039
|
// src/yjs/version-room/base.ts
|
|
11902
12040
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12446,24 +12584,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12446
12584
|
};
|
|
12447
12585
|
|
|
12448
12586
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12449
|
-
var DocumentationHierarchySettings =
|
|
12450
|
-
routingVersion:
|
|
12451
|
-
isDraftFeatureAdopted:
|
|
12452
|
-
isApprovalFeatureEnabled:
|
|
12453
|
-
approvalRequiredForPublishing:
|
|
12587
|
+
var DocumentationHierarchySettings = z347.object({
|
|
12588
|
+
routingVersion: z347.string(),
|
|
12589
|
+
isDraftFeatureAdopted: z347.boolean(),
|
|
12590
|
+
isApprovalFeatureEnabled: z347.boolean(),
|
|
12591
|
+
approvalRequiredForPublishing: z347.boolean()
|
|
12454
12592
|
});
|
|
12455
12593
|
function yjsToDocumentationHierarchy(doc) {
|
|
12456
12594
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12457
12595
|
}
|
|
12458
12596
|
|
|
12459
12597
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12460
|
-
import { z as
|
|
12461
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12462
|
-
title:
|
|
12598
|
+
import { z as z348 } from "zod";
|
|
12599
|
+
var DTODocumentationPageRoomHeaderData = z348.object({
|
|
12600
|
+
title: z348.string(),
|
|
12463
12601
|
configuration: DTODocumentationItemConfigurationV2
|
|
12464
12602
|
});
|
|
12465
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12466
|
-
title:
|
|
12603
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z348.object({
|
|
12604
|
+
title: z348.string().optional(),
|
|
12467
12605
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12468
12606
|
});
|
|
12469
12607
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12498,9 +12636,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12498
12636
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12499
12637
|
|
|
12500
12638
|
// src/yjs/docs-editor/model/page.ts
|
|
12501
|
-
import { z as
|
|
12502
|
-
var DocumentationPageEditorModel =
|
|
12503
|
-
blocks:
|
|
12639
|
+
import { z as z349 } from "zod";
|
|
12640
|
+
var DocumentationPageEditorModel = z349.object({
|
|
12641
|
+
blocks: z349.array(DocumentationPageContentItem)
|
|
12504
12642
|
});
|
|
12505
12643
|
|
|
12506
12644
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16177,7 +16315,7 @@ var blocks = [
|
|
|
16177
16315
|
|
|
16178
16316
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16179
16317
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16180
|
-
import { z as
|
|
16318
|
+
import { z as z350 } from "zod";
|
|
16181
16319
|
function yDocToPage(yDoc, definitions) {
|
|
16182
16320
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16183
16321
|
}
|
|
@@ -16253,7 +16391,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16253
16391
|
if (!id) return null;
|
|
16254
16392
|
return {
|
|
16255
16393
|
id,
|
|
16256
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16394
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z350.string()) ?? "",
|
|
16257
16395
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16258
16396
|
};
|
|
16259
16397
|
}
|
|
@@ -16287,7 +16425,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16287
16425
|
});
|
|
16288
16426
|
}
|
|
16289
16427
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16290
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16428
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z350.string());
|
|
16291
16429
|
if (!definitionId) {
|
|
16292
16430
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16293
16431
|
return [];
|
|
@@ -16328,7 +16466,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16328
16466
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16329
16467
|
if (!id) return null;
|
|
16330
16468
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16331
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16469
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z350.string().optional()));
|
|
16332
16470
|
return {
|
|
16333
16471
|
id,
|
|
16334
16472
|
type: "Block",
|
|
@@ -16451,9 +16589,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16451
16589
|
return null;
|
|
16452
16590
|
}
|
|
16453
16591
|
function parseProsemirrorLink(mark) {
|
|
16454
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
16592
|
+
const href = getProsemirrorAttribute(mark, "href", z350.string().optional());
|
|
16455
16593
|
if (!href) return null;
|
|
16456
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
16594
|
+
const target = getProsemirrorAttribute(mark, "target", z350.string().optional());
|
|
16457
16595
|
const openInNewTab = target === "_blank";
|
|
16458
16596
|
if (href.startsWith("@")) {
|
|
16459
16597
|
return {
|
|
@@ -16472,9 +16610,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16472
16610
|
}
|
|
16473
16611
|
}
|
|
16474
16612
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16475
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
16613
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z350.string().optional());
|
|
16476
16614
|
if (!highlightId) return null;
|
|
16477
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
16615
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z350.boolean().optional()) ?? false;
|
|
16478
16616
|
return {
|
|
16479
16617
|
type: "Comment",
|
|
16480
16618
|
commentHighlightId: highlightId,
|
|
@@ -16485,7 +16623,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16485
16623
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16486
16624
|
if (!id) return null;
|
|
16487
16625
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16488
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
16626
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z350.boolean().optional()) !== false;
|
|
16489
16627
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16490
16628
|
if (!tableChild) {
|
|
16491
16629
|
return emptyTable(id, variantId, 0);
|
|
@@ -16531,9 +16669,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16531
16669
|
function parseAsTableCell(prosemirrorNode) {
|
|
16532
16670
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16533
16671
|
if (!id) return null;
|
|
16534
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16672
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z350.string().optional());
|
|
16535
16673
|
let columnWidth;
|
|
16536
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16674
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z350.array(z350.number()).nullish());
|
|
16537
16675
|
if (columnWidthArray) {
|
|
16538
16676
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16539
16677
|
}
|
|
@@ -16569,7 +16707,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16569
16707
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16570
16708
|
};
|
|
16571
16709
|
case "image":
|
|
16572
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16710
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
|
|
16573
16711
|
if (!items) return null;
|
|
16574
16712
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16575
16713
|
if (!parsedItems.success) return null;
|
|
@@ -16683,7 +16821,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16683
16821
|
);
|
|
16684
16822
|
}
|
|
16685
16823
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16686
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16824
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z350.string());
|
|
16687
16825
|
if (!itemsString) return null;
|
|
16688
16826
|
const itemsJson = JSON.parse(itemsString);
|
|
16689
16827
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16694,18 +16832,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16694
16832
|
}
|
|
16695
16833
|
function parseAppearance(prosemirrorNode) {
|
|
16696
16834
|
let appearance = {};
|
|
16697
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16835
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z350.string().optional());
|
|
16698
16836
|
if (rawAppearanceString) {
|
|
16699
16837
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16700
16838
|
if (parsedAppearance.success) {
|
|
16701
16839
|
appearance = parsedAppearance.data;
|
|
16702
16840
|
}
|
|
16703
16841
|
}
|
|
16704
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16842
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z350.number().optional());
|
|
16705
16843
|
if (columns) {
|
|
16706
16844
|
appearance.numberOfColumns = columns;
|
|
16707
16845
|
}
|
|
16708
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16846
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z350.string().optional());
|
|
16709
16847
|
if (backgroundColor) {
|
|
16710
16848
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16711
16849
|
if (parsedColor.success) {
|
|
@@ -16806,12 +16944,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16806
16944
|
}
|
|
16807
16945
|
}
|
|
16808
16946
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16809
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16947
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z350.string());
|
|
16810
16948
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16811
16949
|
return id;
|
|
16812
16950
|
}
|
|
16813
16951
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16814
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16952
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z350.string()));
|
|
16815
16953
|
}
|
|
16816
16954
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16817
16955
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -17901,6 +18039,26 @@ export {
|
|
|
17901
18039
|
DTOExporterSource,
|
|
17902
18040
|
DTOExporterType,
|
|
17903
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,
|
|
17904
18062
|
DTOFigmaComponent,
|
|
17905
18063
|
DTOFigmaComponentGroup,
|
|
17906
18064
|
DTOFigmaComponentGroupListResponse,
|