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