@supernova-studio/client 1.74.3 → 1.75.0
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 +903 -4
- package/dist/index.d.ts +903 -4
- package/dist/index.js +67 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +908 -842
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7173,6 +7173,7 @@ var DTOBffUploadImportRequestBody = z237.object({
|
|
|
7173
7173
|
sourceName: z237.string().optional(),
|
|
7174
7174
|
remoteId: z237.string(),
|
|
7175
7175
|
isTokenTypeSplitEnabled: z237.boolean().optional(),
|
|
7176
|
+
version: z237.string().optional(),
|
|
7176
7177
|
payload: z237.any()
|
|
7177
7178
|
});
|
|
7178
7179
|
var DTOBffImportRequestBody = z237.discriminatedUnion("type", [
|
|
@@ -9414,7 +9415,7 @@ var DTOElementsGetOutputV2 = z311.object({
|
|
|
9414
9415
|
});
|
|
9415
9416
|
|
|
9416
9417
|
// src/api/dto/events/forge-project.ts
|
|
9417
|
-
import
|
|
9418
|
+
import z338 from "zod";
|
|
9418
9419
|
|
|
9419
9420
|
// src/api/dto/forge/agent.ts
|
|
9420
9421
|
import { z as z312 } from "zod";
|
|
@@ -9910,11 +9911,71 @@ var DTOForgeFeatureRoomResponse = z316.object({
|
|
|
9910
9911
|
room: DTOForgeFeatureRoom
|
|
9911
9912
|
});
|
|
9912
9913
|
|
|
9914
|
+
// src/api/dto/forge/figma-node.ts
|
|
9915
|
+
import z317 from "zod";
|
|
9916
|
+
var DTOForgeFigmaNodeState = z317.enum(["Optimizing", "Success", "Failed"]);
|
|
9917
|
+
var DTOForgeFigmaNodeOrigin = z317.object({
|
|
9918
|
+
/**
|
|
9919
|
+
* Figma file ID that was passed into the create request as a part of the Figma node URL
|
|
9920
|
+
*/
|
|
9921
|
+
fileId: z317.string(),
|
|
9922
|
+
/**
|
|
9923
|
+
* Timestamp of the last edit to the file, can be used for reusing nodes
|
|
9924
|
+
* if the file has not changed since
|
|
9925
|
+
*/
|
|
9926
|
+
fileLastEditedAt: z317.string(),
|
|
9927
|
+
/**
|
|
9928
|
+
* Figma node ID that was passed into the create request as a part of the Figma node URL
|
|
9929
|
+
*/
|
|
9930
|
+
nodeId: z317.string()
|
|
9931
|
+
});
|
|
9932
|
+
var DTOForgeFigmaNode = z317.object({
|
|
9933
|
+
id: z317.string().uuid(),
|
|
9934
|
+
state: DTOForgeFigmaNodeState,
|
|
9935
|
+
/**
|
|
9936
|
+
* Describes where the frame is coming from
|
|
9937
|
+
*/
|
|
9938
|
+
origin: DTOForgeFigmaNodeOrigin,
|
|
9939
|
+
/**
|
|
9940
|
+
* An image of the node rendered by Figma using render image API.
|
|
9941
|
+
*/
|
|
9942
|
+
thumbnail: DTOFileReference,
|
|
9943
|
+
/**
|
|
9944
|
+
* JSON representation of the Figma node, downloaded from Figma API
|
|
9945
|
+
*/
|
|
9946
|
+
json: DTOFileReference,
|
|
9947
|
+
/**
|
|
9948
|
+
* HTML representation of the Figma node, converted from JSON
|
|
9949
|
+
*/
|
|
9950
|
+
html: DTOFileReference,
|
|
9951
|
+
/**
|
|
9952
|
+
* Code representation of the Figma node. Code gets produced during "Optimizing" phase,
|
|
9953
|
+
* it's available when the node reaches "Success" state.
|
|
9954
|
+
*/
|
|
9955
|
+
code: DTOFileReference.optional()
|
|
9956
|
+
});
|
|
9957
|
+
var DTOForgeFigmaNodeCreateRequest = z317.object({
|
|
9958
|
+
/**
|
|
9959
|
+
* Workspace ID that will own the node. Figma API keys will be used from this workspace.
|
|
9960
|
+
*/
|
|
9961
|
+
workspaceId: z317.string(),
|
|
9962
|
+
/**
|
|
9963
|
+
* URL that points to a Figma file and a node within the file.
|
|
9964
|
+
* Example: https://www.figma.com/design/If4RI8SKtO2azWx8ytfp03/Child-File?node-id=0-1
|
|
9965
|
+
*
|
|
9966
|
+
* Note that the file must contain `node-id` query param, otherwise the request will be rejected
|
|
9967
|
+
*/
|
|
9968
|
+
figmaNodeUrl: z317.string().url()
|
|
9969
|
+
});
|
|
9970
|
+
var DTOForgeFigmaNodeResponse = z317.object({
|
|
9971
|
+
figmaNode: DTOForgeFigmaNode
|
|
9972
|
+
});
|
|
9973
|
+
|
|
9913
9974
|
// src/api/dto/forge/iteration-message-old.ts
|
|
9914
|
-
import { z as
|
|
9975
|
+
import { z as z319 } from "zod";
|
|
9915
9976
|
|
|
9916
9977
|
// src/api/dto/forge/participant.ts
|
|
9917
|
-
import { z as
|
|
9978
|
+
import { z as z318 } from "zod";
|
|
9918
9979
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
9919
9980
|
agent: DTOForgeAgent.optional(),
|
|
9920
9981
|
user: DTOUser.optional()
|
|
@@ -9924,20 +9985,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
9924
9985
|
agent: true,
|
|
9925
9986
|
user: true
|
|
9926
9987
|
});
|
|
9927
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
9928
|
-
var DTOCreateForgeParticipantResponse =
|
|
9988
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z318.string() });
|
|
9989
|
+
var DTOCreateForgeParticipantResponse = z318.object({
|
|
9929
9990
|
participant: DTOForgeParticipant
|
|
9930
9991
|
});
|
|
9931
|
-
var DTOUpdateForgeParticipantResponse =
|
|
9992
|
+
var DTOUpdateForgeParticipantResponse = z318.object({
|
|
9932
9993
|
participant: DTOForgeParticipant.nullable()
|
|
9933
9994
|
});
|
|
9934
|
-
var DTODeleteForgeParticipantResponse =
|
|
9935
|
-
ok:
|
|
9995
|
+
var DTODeleteForgeParticipantResponse = z318.object({
|
|
9996
|
+
ok: z318.literal(true)
|
|
9936
9997
|
});
|
|
9937
|
-
var DTOForgeParticipantsListResponse =
|
|
9938
|
-
participants:
|
|
9998
|
+
var DTOForgeParticipantsListResponse = z318.object({
|
|
9999
|
+
participants: z318.array(DTOForgeParticipant)
|
|
9939
10000
|
});
|
|
9940
|
-
var DTOForgeParticipantGetResponse =
|
|
10001
|
+
var DTOForgeParticipantGetResponse = z318.object({
|
|
9941
10002
|
participant: DTOForgeParticipant.nullable()
|
|
9942
10003
|
});
|
|
9943
10004
|
|
|
@@ -9949,109 +10010,109 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
9949
10010
|
projectIterationId: true,
|
|
9950
10011
|
participant: true
|
|
9951
10012
|
});
|
|
9952
|
-
var DTOGetForgeIterationMessageResponse =
|
|
10013
|
+
var DTOGetForgeIterationMessageResponse = z319.object({
|
|
9953
10014
|
message: DTOForgeIterationMessage.nullable()
|
|
9954
10015
|
});
|
|
9955
|
-
var DTOForgeIterationMessagesListResponse =
|
|
9956
|
-
messages:
|
|
10016
|
+
var DTOForgeIterationMessagesListResponse = z319.object({
|
|
10017
|
+
messages: z319.array(DTOForgeIterationMessage)
|
|
9957
10018
|
});
|
|
9958
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
9959
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
10019
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z319.string() });
|
|
10020
|
+
var DTOCreateForgeIterationMessageResponse = z319.object({
|
|
9960
10021
|
message: DTOForgeIterationMessage
|
|
9961
10022
|
});
|
|
9962
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
10023
|
+
var DTOUpdateForgeIterationMessageResponse = z319.object({
|
|
9963
10024
|
message: DTOForgeIterationMessage.nullable()
|
|
9964
10025
|
});
|
|
9965
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
9966
|
-
ok:
|
|
10026
|
+
var DTODeleteForgeIterationMessageResponse = z319.object({
|
|
10027
|
+
ok: z319.literal(true)
|
|
9967
10028
|
});
|
|
9968
10029
|
|
|
9969
10030
|
// src/api/dto/forge/memory.ts
|
|
9970
|
-
import
|
|
9971
|
-
var DTOForgeMemoryEntry =
|
|
9972
|
-
id:
|
|
9973
|
-
projectId:
|
|
9974
|
-
text:
|
|
9975
|
-
category:
|
|
9976
|
-
createdAt:
|
|
9977
|
-
updatedAt:
|
|
9978
|
-
metadata:
|
|
9979
|
-
});
|
|
9980
|
-
var DTOForgeMemoryCreateInput =
|
|
9981
|
-
projectId:
|
|
9982
|
-
text:
|
|
9983
|
-
category:
|
|
9984
|
-
metadata:
|
|
9985
|
-
});
|
|
9986
|
-
var DTOForgeMemoryUpdateInput =
|
|
9987
|
-
id:
|
|
9988
|
-
text:
|
|
9989
|
-
category:
|
|
9990
|
-
metadata:
|
|
9991
|
-
});
|
|
9992
|
-
var DTOForgeMemoryDeleteInput =
|
|
9993
|
-
id:
|
|
9994
|
-
});
|
|
9995
|
-
var DTOForgeMemoryEntryListResponse =
|
|
10031
|
+
import z320 from "zod";
|
|
10032
|
+
var DTOForgeMemoryEntry = z320.object({
|
|
10033
|
+
id: z320.string().uuid(),
|
|
10034
|
+
projectId: z320.string(),
|
|
10035
|
+
text: z320.string(),
|
|
10036
|
+
category: z320.string(),
|
|
10037
|
+
createdAt: z320.string(),
|
|
10038
|
+
updatedAt: z320.string(),
|
|
10039
|
+
metadata: z320.record(z320.string()).optional()
|
|
10040
|
+
});
|
|
10041
|
+
var DTOForgeMemoryCreateInput = z320.object({
|
|
10042
|
+
projectId: z320.string(),
|
|
10043
|
+
text: z320.string(),
|
|
10044
|
+
category: z320.string(),
|
|
10045
|
+
metadata: z320.record(z320.string()).optional()
|
|
10046
|
+
});
|
|
10047
|
+
var DTOForgeMemoryUpdateInput = z320.object({
|
|
10048
|
+
id: z320.string().uuid(),
|
|
10049
|
+
text: z320.string().optional(),
|
|
10050
|
+
category: z320.string(),
|
|
10051
|
+
metadata: z320.record(z320.string()).nullish()
|
|
10052
|
+
});
|
|
10053
|
+
var DTOForgeMemoryDeleteInput = z320.object({
|
|
10054
|
+
id: z320.string().uuid()
|
|
10055
|
+
});
|
|
10056
|
+
var DTOForgeMemoryEntryListResponse = z320.object({
|
|
9996
10057
|
memoryEntries: DTOForgeMemoryEntry.array()
|
|
9997
10058
|
});
|
|
9998
|
-
var DTOForgeMemoryEntryResponse =
|
|
10059
|
+
var DTOForgeMemoryEntryResponse = z320.object({
|
|
9999
10060
|
memoryEntry: DTOForgeMemoryEntry
|
|
10000
10061
|
});
|
|
10001
|
-
var DTOForgeMemoryEntryListQuery =
|
|
10002
|
-
projectId:
|
|
10062
|
+
var DTOForgeMemoryEntryListQuery = z320.object({
|
|
10063
|
+
projectId: z320.string()
|
|
10003
10064
|
});
|
|
10004
10065
|
|
|
10005
10066
|
// src/api/dto/forge/project-action.ts
|
|
10006
|
-
import
|
|
10067
|
+
import z325 from "zod";
|
|
10007
10068
|
|
|
10008
10069
|
// src/api/dto/forge/project-artifact.ts
|
|
10009
|
-
import { z as
|
|
10070
|
+
import { z as z323 } from "zod";
|
|
10010
10071
|
|
|
10011
10072
|
// src/api/dto/threads/threads.ts
|
|
10012
|
-
import
|
|
10013
|
-
var DTOThreadSubjectType =
|
|
10014
|
-
var DTOThreadAgentType =
|
|
10015
|
-
var DTOThreadPromptState =
|
|
10016
|
-
var DTOThread =
|
|
10017
|
-
id:
|
|
10018
|
-
liveblocksRoomId:
|
|
10073
|
+
import z321 from "zod";
|
|
10074
|
+
var DTOThreadSubjectType = z321.enum(["ForgeDocument", "ForgeFeature"]);
|
|
10075
|
+
var DTOThreadAgentType = z321.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
10076
|
+
var DTOThreadPromptState = z321.enum(["Success", "Timeout", "Error"]);
|
|
10077
|
+
var DTOThread = z321.object({
|
|
10078
|
+
id: z321.string(),
|
|
10079
|
+
liveblocksRoomId: z321.string(),
|
|
10019
10080
|
defaultAgentType: DTOThreadAgentType,
|
|
10020
|
-
subjectId:
|
|
10081
|
+
subjectId: z321.string(),
|
|
10021
10082
|
subjectType: DTOThreadSubjectType,
|
|
10022
|
-
createdAt:
|
|
10023
|
-
updatedAt:
|
|
10083
|
+
createdAt: z321.string(),
|
|
10084
|
+
updatedAt: z321.string()
|
|
10024
10085
|
});
|
|
10025
|
-
var DTOThreadMessageUserSender =
|
|
10026
|
-
type:
|
|
10027
|
-
userId:
|
|
10086
|
+
var DTOThreadMessageUserSender = z321.object({
|
|
10087
|
+
type: z321.literal("User"),
|
|
10088
|
+
userId: z321.string()
|
|
10028
10089
|
});
|
|
10029
|
-
var DTOThreadMessageAgentSender =
|
|
10030
|
-
type:
|
|
10090
|
+
var DTOThreadMessageAgentSender = z321.object({
|
|
10091
|
+
type: z321.literal("Agent"),
|
|
10031
10092
|
agentType: DTOThreadAgentType
|
|
10032
10093
|
});
|
|
10033
|
-
var DTOThreadMessageSystemSender =
|
|
10034
|
-
type:
|
|
10035
|
-
onBehalfOfUserId:
|
|
10094
|
+
var DTOThreadMessageSystemSender = z321.object({
|
|
10095
|
+
type: z321.literal("System"),
|
|
10096
|
+
onBehalfOfUserId: z321.string()
|
|
10036
10097
|
});
|
|
10037
|
-
var DTOThreadMessageSender =
|
|
10098
|
+
var DTOThreadMessageSender = z321.discriminatedUnion("type", [
|
|
10038
10099
|
DTOThreadMessageUserSender,
|
|
10039
10100
|
DTOThreadMessageAgentSender,
|
|
10040
10101
|
DTOThreadMessageSystemSender
|
|
10041
10102
|
]);
|
|
10042
|
-
var DTOThreadReaction =
|
|
10103
|
+
var DTOThreadReaction = z321.object({
|
|
10043
10104
|
messageId: Id,
|
|
10044
|
-
userId:
|
|
10045
|
-
emoji:
|
|
10046
|
-
createdAt:
|
|
10105
|
+
userId: z321.string(),
|
|
10106
|
+
emoji: z321.string(),
|
|
10107
|
+
createdAt: z321.string()
|
|
10047
10108
|
});
|
|
10048
|
-
var DTOThreadMessageAttachments =
|
|
10109
|
+
var DTOThreadMessageAttachments = z321.object({
|
|
10049
10110
|
iterationId: Id.optional(),
|
|
10050
10111
|
files: DTOFileReference.array().optional()
|
|
10051
10112
|
});
|
|
10052
|
-
var DTOThreadMessage =
|
|
10113
|
+
var DTOThreadMessage = z321.object({
|
|
10053
10114
|
id: Id,
|
|
10054
|
-
threadId:
|
|
10115
|
+
threadId: z321.string(),
|
|
10055
10116
|
/**
|
|
10056
10117
|
* Describes where the message came from
|
|
10057
10118
|
*/
|
|
@@ -10059,20 +10120,20 @@ var DTOThreadMessage = z320.object({
|
|
|
10059
10120
|
/**
|
|
10060
10121
|
* Content of the message
|
|
10061
10122
|
*/
|
|
10062
|
-
body:
|
|
10123
|
+
body: z321.string(),
|
|
10063
10124
|
/**
|
|
10064
10125
|
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
10065
10126
|
* AI agent to generate a response and perform an action within the feature
|
|
10066
10127
|
*/
|
|
10067
|
-
isPrompt:
|
|
10128
|
+
isPrompt: z321.boolean().optional(),
|
|
10068
10129
|
/**
|
|
10069
10130
|
* Indicates if the message is an attempt to retry agent message. Only available for agent messages.
|
|
10070
10131
|
*/
|
|
10071
|
-
isRetry:
|
|
10132
|
+
isRetry: z321.boolean().optional(),
|
|
10072
10133
|
/**
|
|
10073
10134
|
* Indicates if the sender requested agent to reply in a thread
|
|
10074
10135
|
*/
|
|
10075
|
-
startsNewThread:
|
|
10136
|
+
startsNewThread: z321.boolean().optional(),
|
|
10076
10137
|
/**
|
|
10077
10138
|
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
10078
10139
|
*/
|
|
@@ -10086,17 +10147,17 @@ var DTOThreadMessage = z320.object({
|
|
|
10086
10147
|
* If defined, this message is considered to be a reply to different message
|
|
10087
10148
|
*/
|
|
10088
10149
|
replyToMessageId: Id.optional(),
|
|
10089
|
-
promptMetadata:
|
|
10090
|
-
createdAt:
|
|
10091
|
-
updatedAt:
|
|
10150
|
+
promptMetadata: z321.record(z321.string(), z321.any()).optional(),
|
|
10151
|
+
createdAt: z321.string(),
|
|
10152
|
+
updatedAt: z321.string().optional()
|
|
10092
10153
|
});
|
|
10093
|
-
var DTOThreadAgentResponseTracker =
|
|
10154
|
+
var DTOThreadAgentResponseTracker = z321.object({
|
|
10094
10155
|
id: Id,
|
|
10095
|
-
currentBody:
|
|
10156
|
+
currentBody: z321.string().default("")
|
|
10096
10157
|
});
|
|
10097
|
-
var DTOThreadMessageAttachmentsCreateInput =
|
|
10158
|
+
var DTOThreadMessageAttachmentsCreateInput = z321.object({
|
|
10098
10159
|
iterationId: Id.optional(),
|
|
10099
|
-
fileIds:
|
|
10160
|
+
fileIds: z321.string().array().optional()
|
|
10100
10161
|
});
|
|
10101
10162
|
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
10102
10163
|
id: true,
|
|
@@ -10108,67 +10169,67 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
10108
10169
|
}).extend({
|
|
10109
10170
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
10110
10171
|
});
|
|
10111
|
-
var DTOThreadMessageFinalizeInput =
|
|
10172
|
+
var DTOThreadMessageFinalizeInput = z321.object({
|
|
10112
10173
|
messageId: Id,
|
|
10113
|
-
agentMessageBody:
|
|
10174
|
+
agentMessageBody: z321.string().optional(),
|
|
10114
10175
|
promptState: DTOThreadPromptState.optional(),
|
|
10115
10176
|
creditsSpend: DTOBillingCreditsSpendInput.optional()
|
|
10116
10177
|
});
|
|
10117
|
-
var DTOThreadMessageRetryInput =
|
|
10178
|
+
var DTOThreadMessageRetryInput = z321.object({
|
|
10118
10179
|
agentMessageId: Id,
|
|
10119
|
-
runtimeError:
|
|
10180
|
+
runtimeError: z321.string().optional(),
|
|
10120
10181
|
/**
|
|
10121
10182
|
* When `true`, the retry message will be sent to a thread started by the user's message
|
|
10122
10183
|
* Useful when user retries a message created in the main thread, but expects the retry to be sent as a thread reply
|
|
10123
10184
|
*/
|
|
10124
|
-
shouldReplyInThread:
|
|
10185
|
+
shouldReplyInThread: z321.boolean().optional(),
|
|
10125
10186
|
message: DTOThreadMessage.pick({ id: true, body: true }).optional()
|
|
10126
10187
|
});
|
|
10127
10188
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10128
10189
|
id: true
|
|
10129
10190
|
}).merge(
|
|
10130
|
-
|
|
10191
|
+
z321.object({
|
|
10131
10192
|
body: DTOThreadMessage.shape.body,
|
|
10132
10193
|
attachments: DTOThreadMessage.shape.attachments,
|
|
10133
10194
|
agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
|
|
10134
10195
|
}).partial()
|
|
10135
10196
|
);
|
|
10136
|
-
var DTOThreadReactionCreateInput =
|
|
10197
|
+
var DTOThreadReactionCreateInput = z321.object({
|
|
10137
10198
|
messageId: Id,
|
|
10138
|
-
emoji:
|
|
10199
|
+
emoji: z321.string()
|
|
10139
10200
|
});
|
|
10140
|
-
var DTOThreadReactionDeleteInput =
|
|
10201
|
+
var DTOThreadReactionDeleteInput = z321.object({
|
|
10141
10202
|
messageId: Id,
|
|
10142
|
-
emoji:
|
|
10203
|
+
emoji: z321.string()
|
|
10143
10204
|
});
|
|
10144
|
-
var DTOThreadMessageResponse =
|
|
10205
|
+
var DTOThreadMessageResponse = z321.object({
|
|
10145
10206
|
message: DTOThreadMessage
|
|
10146
10207
|
});
|
|
10147
|
-
var DTOThreadReactionResponse =
|
|
10208
|
+
var DTOThreadReactionResponse = z321.object({
|
|
10148
10209
|
reaction: DTOThreadReaction
|
|
10149
10210
|
});
|
|
10150
|
-
var DTOThreadMessageListResponse =
|
|
10211
|
+
var DTOThreadMessageListResponse = z321.object({
|
|
10151
10212
|
messages: DTOThreadMessage.array(),
|
|
10152
10213
|
reactions: DTOThreadReaction.array(),
|
|
10153
|
-
lastSeenMessageId:
|
|
10214
|
+
lastSeenMessageId: z321.string().optional()
|
|
10154
10215
|
});
|
|
10155
|
-
var DTOThreadEventMessagesSent =
|
|
10156
|
-
type:
|
|
10216
|
+
var DTOThreadEventMessagesSent = z321.object({
|
|
10217
|
+
type: z321.literal("MessagesSent"),
|
|
10157
10218
|
data: DTOThreadMessage.array()
|
|
10158
10219
|
});
|
|
10159
|
-
var DTOThreadEventMessagesUpdated =
|
|
10160
|
-
type:
|
|
10220
|
+
var DTOThreadEventMessagesUpdated = z321.object({
|
|
10221
|
+
type: z321.literal("MessagesUpdated"),
|
|
10161
10222
|
data: DTOThreadMessage.array()
|
|
10162
10223
|
});
|
|
10163
|
-
var DTOThreadEventReactionsSent =
|
|
10164
|
-
type:
|
|
10224
|
+
var DTOThreadEventReactionsSent = z321.object({
|
|
10225
|
+
type: z321.literal("ReactionsSent"),
|
|
10165
10226
|
data: DTOThreadReaction.array()
|
|
10166
10227
|
});
|
|
10167
|
-
var DTOThreadEventReactionsDeleted =
|
|
10168
|
-
type:
|
|
10228
|
+
var DTOThreadEventReactionsDeleted = z321.object({
|
|
10229
|
+
type: z321.literal("ReactionsDeleted"),
|
|
10169
10230
|
data: DTOThreadReaction.array()
|
|
10170
10231
|
});
|
|
10171
|
-
var DTOThreadEvent =
|
|
10232
|
+
var DTOThreadEvent = z321.discriminatedUnion("type", [
|
|
10172
10233
|
DTOThreadEventMessagesSent,
|
|
10173
10234
|
DTOThreadEventMessagesUpdated,
|
|
10174
10235
|
DTOThreadEventReactionsSent,
|
|
@@ -10176,8 +10237,8 @@ var DTOThreadEvent = z320.discriminatedUnion("type", [
|
|
|
10176
10237
|
]);
|
|
10177
10238
|
|
|
10178
10239
|
// src/api/dto/forge/project-section.ts
|
|
10179
|
-
import
|
|
10180
|
-
var AfterSectionId =
|
|
10240
|
+
import z322 from "zod";
|
|
10241
|
+
var AfterSectionId = z322.string().uuid().nullish().optional();
|
|
10181
10242
|
var DTOForgeSection = ForgeSection;
|
|
10182
10243
|
var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
10183
10244
|
id: true,
|
|
@@ -10188,12 +10249,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
|
10188
10249
|
});
|
|
10189
10250
|
var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
|
|
10190
10251
|
var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
|
|
10191
|
-
deleteChildren:
|
|
10252
|
+
deleteChildren: z322.boolean().default(false)
|
|
10192
10253
|
});
|
|
10193
10254
|
var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
|
|
10194
10255
|
afterSectionId: AfterSectionId
|
|
10195
10256
|
});
|
|
10196
|
-
var DTOForgeSectionItemMoveInput =
|
|
10257
|
+
var DTOForgeSectionItemMoveInput = z322.object({
|
|
10197
10258
|
id: Id,
|
|
10198
10259
|
sectionId: Id.nullish().optional(),
|
|
10199
10260
|
// undefined=stay, null=no section, string=move to section
|
|
@@ -10203,160 +10264,160 @@ var DTOForgeSectionItemMoveInput = z321.object({
|
|
|
10203
10264
|
|
|
10204
10265
|
// src/api/dto/forge/project-artifact.ts
|
|
10205
10266
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
10206
|
-
var DTOForgeProjectArtifactUpdateInput =
|
|
10207
|
-
id:
|
|
10208
|
-
title:
|
|
10209
|
-
isArchived:
|
|
10210
|
-
});
|
|
10211
|
-
var DTOForgeProjectArtifactCreateInput =
|
|
10212
|
-
id:
|
|
10213
|
-
title:
|
|
10214
|
-
sectionId:
|
|
10215
|
-
afterArtifactId:
|
|
10267
|
+
var DTOForgeProjectArtifactUpdateInput = z323.object({
|
|
10268
|
+
id: z323.string(),
|
|
10269
|
+
title: z323.string().optional(),
|
|
10270
|
+
isArchived: z323.boolean().optional()
|
|
10271
|
+
});
|
|
10272
|
+
var DTOForgeProjectArtifactCreateInput = z323.object({
|
|
10273
|
+
id: z323.string(),
|
|
10274
|
+
title: z323.string(),
|
|
10275
|
+
sectionId: z323.string().optional(),
|
|
10276
|
+
afterArtifactId: z323.string().optional().nullable(),
|
|
10216
10277
|
initialMessage: DTOThreadMessageCreateInput.optional()
|
|
10217
10278
|
});
|
|
10218
|
-
var DTOForgeProjectArtifactDeleteInput =
|
|
10279
|
+
var DTOForgeProjectArtifactDeleteInput = z323.object({
|
|
10219
10280
|
id: Id
|
|
10220
10281
|
});
|
|
10221
10282
|
var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
|
|
10222
|
-
var DTOForgeDocumentGetByIdParam =
|
|
10283
|
+
var DTOForgeDocumentGetByIdParam = z323.object({
|
|
10223
10284
|
id: Id
|
|
10224
10285
|
});
|
|
10225
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
10286
|
+
var DTOForgeProjectArtifactGetResponse = z323.object({
|
|
10226
10287
|
artifact: DTOForgeProjectArtifact
|
|
10227
10288
|
});
|
|
10228
|
-
var DTOForgeDocumentGetResponse =
|
|
10289
|
+
var DTOForgeDocumentGetResponse = z323.object({
|
|
10229
10290
|
document: DTOForgeProjectArtifact
|
|
10230
10291
|
});
|
|
10231
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
10292
|
+
var DTOForgeProjectArtifactCreateResponse = z323.object({
|
|
10232
10293
|
artifact: DTOForgeProjectArtifact
|
|
10233
10294
|
});
|
|
10234
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
10295
|
+
var DTOForgeProjectArtifactUpdateResponse = z323.object({
|
|
10235
10296
|
artifact: DTOForgeProjectArtifact
|
|
10236
10297
|
});
|
|
10237
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
10238
|
-
ok:
|
|
10298
|
+
var DTOForgeProjectArtifactDeleteResponse = z323.object({
|
|
10299
|
+
ok: z323.literal(true)
|
|
10239
10300
|
});
|
|
10240
|
-
var DTOForgeProjectArtifactMoveResponse =
|
|
10301
|
+
var DTOForgeProjectArtifactMoveResponse = z323.object({
|
|
10241
10302
|
artifact: DTOForgeProjectArtifact
|
|
10242
10303
|
});
|
|
10243
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
10244
|
-
artifacts:
|
|
10304
|
+
var DTOForgeProjectArtifactsListResponse = z323.object({
|
|
10305
|
+
artifacts: z323.array(DTOForgeProjectArtifact)
|
|
10245
10306
|
});
|
|
10246
|
-
var DTOForgeProjectArtifactContentResponse =
|
|
10247
|
-
artifactId:
|
|
10307
|
+
var DTOForgeProjectArtifactContentResponse = z323.object({
|
|
10308
|
+
artifactId: z323.string(),
|
|
10248
10309
|
content: ForgeProjectArtifactContentData
|
|
10249
10310
|
});
|
|
10250
10311
|
|
|
10251
10312
|
// src/api/dto/forge/project-feature.ts
|
|
10252
|
-
import
|
|
10313
|
+
import z324 from "zod";
|
|
10253
10314
|
var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
|
|
10254
10315
|
iterationId: true,
|
|
10255
10316
|
hideSupernovaUI: true,
|
|
10256
10317
|
visibility: true
|
|
10257
10318
|
});
|
|
10258
10319
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
10259
|
-
var DTOForgeProjectPublishedFeature =
|
|
10260
|
-
featureName:
|
|
10261
|
-
iterationName:
|
|
10262
|
-
hideSupernovaUI:
|
|
10263
|
-
thumbnailUrl:
|
|
10264
|
-
staticPreviewUrl:
|
|
10320
|
+
var DTOForgeProjectPublishedFeature = z324.object({
|
|
10321
|
+
featureName: z324.string(),
|
|
10322
|
+
iterationName: z324.string(),
|
|
10323
|
+
hideSupernovaUI: z324.boolean(),
|
|
10324
|
+
thumbnailUrl: z324.string().optional(),
|
|
10325
|
+
staticPreviewUrl: z324.string().optional(),
|
|
10265
10326
|
// These are only included when authenticated user has access to the project (for both public & private published features)
|
|
10266
|
-
projectId:
|
|
10267
|
-
projectName:
|
|
10268
|
-
workspaceId:
|
|
10327
|
+
projectId: z324.string().optional(),
|
|
10328
|
+
projectName: z324.string().optional(),
|
|
10329
|
+
workspaceId: z324.string().optional()
|
|
10269
10330
|
});
|
|
10270
|
-
var DTOForgeProjectPublishedFeatureGetResponse =
|
|
10331
|
+
var DTOForgeProjectPublishedFeatureGetResponse = z324.object({
|
|
10271
10332
|
publishedFeature: DTOForgeProjectPublishedFeature
|
|
10272
10333
|
});
|
|
10273
|
-
var DTOForgeProjectFeatureListResponse =
|
|
10334
|
+
var DTOForgeProjectFeatureListResponse = z324.object({
|
|
10274
10335
|
features: DTOForgeProjectFeature.array()
|
|
10275
10336
|
});
|
|
10276
|
-
var DTOForgeProjectFeatureGetResponse =
|
|
10337
|
+
var DTOForgeProjectFeatureGetResponse = z324.object({
|
|
10277
10338
|
feature: DTOForgeProjectFeature
|
|
10278
10339
|
});
|
|
10279
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
10340
|
+
var DTOForgeProjectFeatureCreateInput = z324.object({
|
|
10280
10341
|
id: Id,
|
|
10281
|
-
name:
|
|
10282
|
-
description:
|
|
10342
|
+
name: z324.string().optional(),
|
|
10343
|
+
description: z324.string(),
|
|
10283
10344
|
sectionId: Id.optional(),
|
|
10284
10345
|
afterFeatureId: Id.nullable().optional(),
|
|
10285
10346
|
initialMessage: DTOThreadMessageCreateInput
|
|
10286
10347
|
});
|
|
10287
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
10348
|
+
var DTOForgeProjectFeatureUpdateInput = z324.object({
|
|
10288
10349
|
id: Id,
|
|
10289
|
-
name:
|
|
10290
|
-
description:
|
|
10291
|
-
isArchived:
|
|
10350
|
+
name: z324.string().optional(),
|
|
10351
|
+
description: z324.string().optional(),
|
|
10352
|
+
isArchived: z324.boolean().optional(),
|
|
10292
10353
|
status: ProjectFeatureStatus.optional(),
|
|
10293
10354
|
/**
|
|
10294
10355
|
* Sending null will result in feature unpublish
|
|
10295
10356
|
*/
|
|
10296
10357
|
publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
|
|
10297
10358
|
});
|
|
10298
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
10359
|
+
var DTOForgeProjectFeatureDeleteInput = z324.object({
|
|
10299
10360
|
id: Id
|
|
10300
10361
|
});
|
|
10301
|
-
var DTOForgeProjectFeatureGetByIdParam =
|
|
10362
|
+
var DTOForgeProjectFeatureGetByIdParam = z324.object({
|
|
10302
10363
|
id: Id
|
|
10303
10364
|
});
|
|
10304
|
-
var DTOFeatureArtifactListQuery =
|
|
10305
|
-
messageId:
|
|
10306
|
-
iterationId:
|
|
10365
|
+
var DTOFeatureArtifactListQuery = z324.object({
|
|
10366
|
+
messageId: z324.string().optional(),
|
|
10367
|
+
iterationId: z324.string().optional()
|
|
10307
10368
|
});
|
|
10308
10369
|
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10309
10370
|
|
|
10310
10371
|
// src/api/dto/forge/project-action.ts
|
|
10311
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
10312
|
-
type:
|
|
10372
|
+
var DTOForgeProjectActionFeatureCreate = z325.object({
|
|
10373
|
+
type: z325.literal("FeatureCreate"),
|
|
10313
10374
|
input: DTOForgeProjectFeatureCreateInput
|
|
10314
10375
|
});
|
|
10315
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
10316
|
-
type:
|
|
10376
|
+
var DTOForgeProjectActionFeatureUpdate = z325.object({
|
|
10377
|
+
type: z325.literal("FeatureUpdate"),
|
|
10317
10378
|
input: DTOForgeProjectFeatureUpdateInput
|
|
10318
10379
|
});
|
|
10319
|
-
var DTOForgeProjectActionFeatureMove =
|
|
10320
|
-
type:
|
|
10380
|
+
var DTOForgeProjectActionFeatureMove = z325.object({
|
|
10381
|
+
type: z325.literal("FeatureMove"),
|
|
10321
10382
|
input: DTOForgeProjectFeatureMoveInput
|
|
10322
10383
|
});
|
|
10323
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
10324
|
-
type:
|
|
10384
|
+
var DTOForgeProjectActionFeatureDelete = z325.object({
|
|
10385
|
+
type: z325.literal("FeatureDelete"),
|
|
10325
10386
|
input: DTOForgeProjectFeatureDeleteInput
|
|
10326
10387
|
});
|
|
10327
|
-
var DTOForgeProjectActionArtifactCreate =
|
|
10328
|
-
type:
|
|
10388
|
+
var DTOForgeProjectActionArtifactCreate = z325.object({
|
|
10389
|
+
type: z325.literal("ArtifactCreate"),
|
|
10329
10390
|
input: DTOForgeProjectArtifactCreateInput
|
|
10330
10391
|
});
|
|
10331
|
-
var DTOForgeProjectActionArtifactUpdate =
|
|
10332
|
-
type:
|
|
10392
|
+
var DTOForgeProjectActionArtifactUpdate = z325.object({
|
|
10393
|
+
type: z325.literal("ArtifactUpdate"),
|
|
10333
10394
|
input: DTOForgeProjectArtifactUpdateInput
|
|
10334
10395
|
});
|
|
10335
|
-
var DTOForgeProjectActionArtifactDelete =
|
|
10336
|
-
type:
|
|
10396
|
+
var DTOForgeProjectActionArtifactDelete = z325.object({
|
|
10397
|
+
type: z325.literal("ArtifactDelete"),
|
|
10337
10398
|
input: DTOForgeProjectArtifactDeleteInput
|
|
10338
10399
|
});
|
|
10339
|
-
var DTOForgeProjectActionArtifactMove =
|
|
10340
|
-
type:
|
|
10400
|
+
var DTOForgeProjectActionArtifactMove = z325.object({
|
|
10401
|
+
type: z325.literal("ArtifactMove"),
|
|
10341
10402
|
input: DTOForgeProjectArtifactMoveInput
|
|
10342
10403
|
});
|
|
10343
|
-
var DTOForgeProjectActionSectionCreate =
|
|
10344
|
-
type:
|
|
10404
|
+
var DTOForgeProjectActionSectionCreate = z325.object({
|
|
10405
|
+
type: z325.literal("SectionCreate"),
|
|
10345
10406
|
input: DTOForgeSectionCreateInput
|
|
10346
10407
|
});
|
|
10347
|
-
var DTOForgeProjectActionSectionUpdate =
|
|
10348
|
-
type:
|
|
10408
|
+
var DTOForgeProjectActionSectionUpdate = z325.object({
|
|
10409
|
+
type: z325.literal("SectionUpdate"),
|
|
10349
10410
|
input: DTOForgeSectionUpdateInput
|
|
10350
10411
|
});
|
|
10351
|
-
var DTOForgeProjectActionSectionDelete =
|
|
10352
|
-
type:
|
|
10412
|
+
var DTOForgeProjectActionSectionDelete = z325.object({
|
|
10413
|
+
type: z325.literal("SectionDelete"),
|
|
10353
10414
|
input: DTOForgeSectionDeleteInput
|
|
10354
10415
|
});
|
|
10355
|
-
var DTOForgeProjectActionSectionMove =
|
|
10356
|
-
type:
|
|
10416
|
+
var DTOForgeProjectActionSectionMove = z325.object({
|
|
10417
|
+
type: z325.literal("SectionMove"),
|
|
10357
10418
|
input: DTOForgeSectionMoveInput
|
|
10358
10419
|
});
|
|
10359
|
-
var DTOForgeProjectAction =
|
|
10420
|
+
var DTOForgeProjectAction = z325.discriminatedUnion("type", [
|
|
10360
10421
|
//features
|
|
10361
10422
|
DTOForgeProjectActionFeatureCreate,
|
|
10362
10423
|
DTOForgeProjectActionFeatureUpdate,
|
|
@@ -10373,41 +10434,41 @@ var DTOForgeProjectAction = z324.discriminatedUnion("type", [
|
|
|
10373
10434
|
DTOForgeProjectActionSectionDelete,
|
|
10374
10435
|
DTOForgeProjectActionSectionMove
|
|
10375
10436
|
]).and(
|
|
10376
|
-
|
|
10377
|
-
tId:
|
|
10437
|
+
z325.object({
|
|
10438
|
+
tId: z325.string().optional()
|
|
10378
10439
|
})
|
|
10379
10440
|
);
|
|
10380
10441
|
|
|
10381
10442
|
// src/api/dto/forge/project-artifact-room.ts
|
|
10382
|
-
import { z as
|
|
10383
|
-
var DTOForgeProjectArtifactRoom =
|
|
10384
|
-
id:
|
|
10443
|
+
import { z as z326 } from "zod";
|
|
10444
|
+
var DTOForgeProjectArtifactRoom = z326.object({
|
|
10445
|
+
id: z326.string()
|
|
10385
10446
|
});
|
|
10386
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
10447
|
+
var DTOForgeProjectArtifactRoomResponse = z326.object({
|
|
10387
10448
|
room: DTOForgeProjectArtifactRoom
|
|
10388
10449
|
});
|
|
10389
10450
|
|
|
10390
10451
|
// src/api/dto/forge/project-context-override.ts
|
|
10391
|
-
import
|
|
10452
|
+
import z328 from "zod";
|
|
10392
10453
|
|
|
10393
10454
|
// src/api/dto/forge/project-context-v2.ts
|
|
10394
|
-
import { z as
|
|
10395
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10396
|
-
var DTOForgeComponentSet =
|
|
10455
|
+
import { z as z327 } from "zod";
|
|
10456
|
+
var DTOForgeComponentSetTypeV2 = z327.enum(["Shadcn"]);
|
|
10457
|
+
var DTOForgeComponentSet = z327.object({
|
|
10397
10458
|
type: DTOForgeComponentSetTypeV2
|
|
10398
10459
|
});
|
|
10399
|
-
var DTOForgeIconSetTypeV2 =
|
|
10400
|
-
var DTOForgeThemeKnownPreset =
|
|
10401
|
-
var DTOForgeIconSet =
|
|
10460
|
+
var DTOForgeIconSetTypeV2 = z327.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10461
|
+
var DTOForgeThemeKnownPreset = z327.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10462
|
+
var DTOForgeIconSet = z327.object({
|
|
10402
10463
|
type: DTOForgeIconSetTypeV2,
|
|
10403
|
-
variant:
|
|
10464
|
+
variant: z327.string().optional()
|
|
10404
10465
|
});
|
|
10405
|
-
var DTOForgeTokenThemeSet =
|
|
10406
|
-
id:
|
|
10407
|
-
name:
|
|
10408
|
-
tokenThemeIds:
|
|
10466
|
+
var DTOForgeTokenThemeSet = z327.object({
|
|
10467
|
+
id: z327.string(),
|
|
10468
|
+
name: z327.string(),
|
|
10469
|
+
tokenThemeIds: z327.array(z327.string())
|
|
10409
10470
|
});
|
|
10410
|
-
var DTOForgeProjectTheme =
|
|
10471
|
+
var DTOForgeProjectTheme = z327.object({
|
|
10411
10472
|
// Colors
|
|
10412
10473
|
background: ColorTokenData,
|
|
10413
10474
|
foreground: ColorTokenData,
|
|
@@ -10492,28 +10553,28 @@ var DTOForgeProjectTheme = z326.object({
|
|
|
10492
10553
|
shadowXl: ShadowTokenData,
|
|
10493
10554
|
shadow2xl: ShadowTokenData
|
|
10494
10555
|
});
|
|
10495
|
-
var DTOForgeProjectContextV2 =
|
|
10496
|
-
id:
|
|
10497
|
-
name:
|
|
10498
|
-
workspaceId:
|
|
10499
|
-
designSystemId:
|
|
10500
|
-
brandId:
|
|
10501
|
-
defaultTokenThemeSetId:
|
|
10502
|
-
description:
|
|
10503
|
-
productContext:
|
|
10504
|
-
additionalContext:
|
|
10505
|
-
isArchived:
|
|
10506
|
-
themePreset:
|
|
10507
|
-
tokenThemeSets:
|
|
10556
|
+
var DTOForgeProjectContextV2 = z327.object({
|
|
10557
|
+
id: z327.string(),
|
|
10558
|
+
name: z327.string(),
|
|
10559
|
+
workspaceId: z327.string(),
|
|
10560
|
+
designSystemId: z327.string().optional(),
|
|
10561
|
+
brandId: z327.string().optional(),
|
|
10562
|
+
defaultTokenThemeSetId: z327.string().optional(),
|
|
10563
|
+
description: z327.string().optional(),
|
|
10564
|
+
productContext: z327.string().optional(),
|
|
10565
|
+
additionalContext: z327.string().optional(),
|
|
10566
|
+
isArchived: z327.boolean(),
|
|
10567
|
+
themePreset: z327.string().optional(),
|
|
10568
|
+
tokenThemeSets: z327.array(DTOForgeTokenThemeSet).optional(),
|
|
10508
10569
|
componentSet: DTOForgeComponentSet,
|
|
10509
10570
|
iconSet: DTOForgeIconSet,
|
|
10510
10571
|
theme: DTOForgeProjectTheme,
|
|
10511
|
-
createdAt:
|
|
10512
|
-
updatedAt:
|
|
10572
|
+
createdAt: z327.coerce.date(),
|
|
10573
|
+
updatedAt: z327.coerce.date(),
|
|
10513
10574
|
thumbnail: DTOFileReference.optional(),
|
|
10514
|
-
sandboxTemplate:
|
|
10515
|
-
id:
|
|
10516
|
-
version:
|
|
10575
|
+
sandboxTemplate: z327.object({
|
|
10576
|
+
id: z327.string(),
|
|
10577
|
+
version: z327.string()
|
|
10517
10578
|
}).optional()
|
|
10518
10579
|
});
|
|
10519
10580
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10523,7 +10584,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10523
10584
|
isArchived: true,
|
|
10524
10585
|
thumbnail: true
|
|
10525
10586
|
}).extend({
|
|
10526
|
-
thumbnailFileId:
|
|
10587
|
+
thumbnailFileId: z327.string().optional()
|
|
10527
10588
|
});
|
|
10528
10589
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10529
10590
|
id: true,
|
|
@@ -10532,60 +10593,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10532
10593
|
updatedAt: true,
|
|
10533
10594
|
thumbnail: true
|
|
10534
10595
|
}).partial().extend({
|
|
10535
|
-
thumbnailFileId:
|
|
10596
|
+
thumbnailFileId: z327.string().nullish()
|
|
10536
10597
|
});
|
|
10537
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10538
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10539
|
-
workspaceId:
|
|
10598
|
+
var DTOForgeProjectContextResponseV2 = z327.object({ context: DTOForgeProjectContextV2 });
|
|
10599
|
+
var DTOForgeProjectContextListQueryV2 = z327.object({
|
|
10600
|
+
workspaceId: z327.string(),
|
|
10540
10601
|
isArchived: zodQueryBoolean()
|
|
10541
10602
|
});
|
|
10542
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
10603
|
+
var DTOForgeProjectContextListResponseV2 = z327.object({ contexts: z327.array(DTOForgeProjectContextV2) });
|
|
10543
10604
|
|
|
10544
10605
|
// src/api/dto/forge/project-context-override.ts
|
|
10545
|
-
var DTOProjectContextOverride =
|
|
10546
|
-
projectId:
|
|
10606
|
+
var DTOProjectContextOverride = z328.object({
|
|
10607
|
+
projectId: z328.string(),
|
|
10547
10608
|
theme: DTOForgeProjectTheme.partial(),
|
|
10548
|
-
themePreset:
|
|
10609
|
+
themePreset: z328.string().optional()
|
|
10549
10610
|
});
|
|
10550
|
-
var DTOProjectContextOverrideInput =
|
|
10551
|
-
updateSharedContext:
|
|
10611
|
+
var DTOProjectContextOverrideInput = z328.object({
|
|
10612
|
+
updateSharedContext: z328.boolean().optional(),
|
|
10552
10613
|
theme: DTOForgeProjectTheme.partial(),
|
|
10553
|
-
themePreset:
|
|
10614
|
+
themePreset: z328.string().optional()
|
|
10554
10615
|
});
|
|
10555
|
-
var DTOProjectContextOverrideResponse =
|
|
10616
|
+
var DTOProjectContextOverrideResponse = z328.object({
|
|
10556
10617
|
override: DTOProjectContextOverride,
|
|
10557
10618
|
originalContext: DTOForgeProjectContextV2,
|
|
10558
10619
|
resolvedContext: DTOForgeProjectContextV2
|
|
10559
10620
|
});
|
|
10560
10621
|
|
|
10561
10622
|
// src/api/dto/forge/project-context.ts
|
|
10562
|
-
import { z as
|
|
10563
|
-
var DTOForgeProjectContext =
|
|
10564
|
-
definition:
|
|
10565
|
-
dependencies:
|
|
10566
|
-
|
|
10567
|
-
packageName:
|
|
10568
|
-
type:
|
|
10569
|
-
version:
|
|
10623
|
+
import { z as z329 } from "zod";
|
|
10624
|
+
var DTOForgeProjectContext = z329.object({
|
|
10625
|
+
definition: z329.string(),
|
|
10626
|
+
dependencies: z329.array(
|
|
10627
|
+
z329.object({
|
|
10628
|
+
packageName: z329.string(),
|
|
10629
|
+
type: z329.literal("npm"),
|
|
10630
|
+
version: z329.string().default("latest")
|
|
10570
10631
|
})
|
|
10571
10632
|
),
|
|
10572
|
-
designSystemId:
|
|
10573
|
-
id:
|
|
10574
|
-
meta:
|
|
10575
|
-
name:
|
|
10576
|
-
description:
|
|
10633
|
+
designSystemId: z329.string(),
|
|
10634
|
+
id: z329.string(),
|
|
10635
|
+
meta: z329.object({
|
|
10636
|
+
name: z329.string(),
|
|
10637
|
+
description: z329.string().optional()
|
|
10577
10638
|
}),
|
|
10578
|
-
name:
|
|
10639
|
+
name: z329.string(),
|
|
10579
10640
|
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10580
|
-
platform:
|
|
10581
|
-
styling:
|
|
10582
|
-
tailwindConfig:
|
|
10583
|
-
content:
|
|
10584
|
-
version:
|
|
10641
|
+
platform: z329.enum(["React", "Vue", "Angular"]),
|
|
10642
|
+
styling: z329.enum(["CSS", "Tailwind"]),
|
|
10643
|
+
tailwindConfig: z329.object({
|
|
10644
|
+
content: z329.string(),
|
|
10645
|
+
version: z329.string()
|
|
10585
10646
|
}).optional(),
|
|
10586
|
-
createdAt:
|
|
10587
|
-
updatedAt:
|
|
10588
|
-
workspaceId:
|
|
10647
|
+
createdAt: z329.coerce.date(),
|
|
10648
|
+
updatedAt: z329.coerce.date(),
|
|
10649
|
+
workspaceId: z329.string()
|
|
10589
10650
|
});
|
|
10590
10651
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10591
10652
|
definition: true,
|
|
@@ -10597,13 +10658,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
10597
10658
|
tailwindConfig: true,
|
|
10598
10659
|
styling: true
|
|
10599
10660
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10600
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
10601
|
-
var DTOForgeProjectContextGetResponse =
|
|
10602
|
-
var DTOForgeProjectContextListResponse =
|
|
10603
|
-
var DTOForgeProjectContextCreateResponse =
|
|
10604
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
10605
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
10606
|
-
ok:
|
|
10661
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z329.string() });
|
|
10662
|
+
var DTOForgeProjectContextGetResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10663
|
+
var DTOForgeProjectContextListResponse = z329.object({ contexts: z329.array(DTOForgeProjectContext) });
|
|
10664
|
+
var DTOForgeProjectContextCreateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10665
|
+
var DTOForgeProjectContextUpdateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10666
|
+
var DTOForgeProjectContextRemoveResponse = z329.object({
|
|
10667
|
+
ok: z329.literal(true)
|
|
10607
10668
|
});
|
|
10608
10669
|
|
|
10609
10670
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -10611,42 +10672,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
10611
10672
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10612
10673
|
|
|
10613
10674
|
// src/api/dto/forge/project-file.ts
|
|
10614
|
-
import { z as
|
|
10615
|
-
var DTOForgeProjectFile =
|
|
10616
|
-
id:
|
|
10617
|
-
name:
|
|
10618
|
-
checksum:
|
|
10619
|
-
pendingUpload:
|
|
10620
|
-
url:
|
|
10621
|
-
size:
|
|
10622
|
-
});
|
|
10623
|
-
var DTOForgeProjectFileListResponse =
|
|
10624
|
-
files:
|
|
10625
|
-
});
|
|
10626
|
-
var DTOForgeProjectFileUploadPayloadItem =
|
|
10627
|
-
size:
|
|
10628
|
-
name:
|
|
10629
|
-
checksum:
|
|
10630
|
-
});
|
|
10631
|
-
var DTOForgeProjectFileUploadPayload =
|
|
10632
|
-
files:
|
|
10633
|
-
});
|
|
10634
|
-
var DTOForgeProjectFileUploadResponse =
|
|
10635
|
-
files:
|
|
10636
|
-
uploadUrls:
|
|
10637
|
-
|
|
10638
|
-
fileId:
|
|
10639
|
-
uploadUrl:
|
|
10675
|
+
import { z as z330 } from "zod";
|
|
10676
|
+
var DTOForgeProjectFile = z330.object({
|
|
10677
|
+
id: z330.string(),
|
|
10678
|
+
name: z330.string(),
|
|
10679
|
+
checksum: z330.string(),
|
|
10680
|
+
pendingUpload: z330.boolean().optional(),
|
|
10681
|
+
url: z330.string(),
|
|
10682
|
+
size: z330.number()
|
|
10683
|
+
});
|
|
10684
|
+
var DTOForgeProjectFileListResponse = z330.object({
|
|
10685
|
+
files: z330.array(DTOForgeProjectFile)
|
|
10686
|
+
});
|
|
10687
|
+
var DTOForgeProjectFileUploadPayloadItem = z330.object({
|
|
10688
|
+
size: z330.number(),
|
|
10689
|
+
name: z330.string(),
|
|
10690
|
+
checksum: z330.string()
|
|
10691
|
+
});
|
|
10692
|
+
var DTOForgeProjectFileUploadPayload = z330.object({
|
|
10693
|
+
files: z330.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10694
|
+
});
|
|
10695
|
+
var DTOForgeProjectFileUploadResponse = z330.object({
|
|
10696
|
+
files: z330.array(DTOForgeProjectFile),
|
|
10697
|
+
uploadUrls: z330.array(
|
|
10698
|
+
z330.object({
|
|
10699
|
+
fileId: z330.string(),
|
|
10700
|
+
uploadUrl: z330.string()
|
|
10640
10701
|
})
|
|
10641
10702
|
)
|
|
10642
10703
|
});
|
|
10643
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
10644
|
-
fileIds:
|
|
10704
|
+
var DTOForgeProjectFileUploadFinalizePayload = z330.object({
|
|
10705
|
+
fileIds: z330.array(z330.string())
|
|
10645
10706
|
});
|
|
10646
|
-
var DTOForgeProjectFileUploadFinalizeResponse =
|
|
10707
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z330.object({ ok: z330.literal(true) });
|
|
10647
10708
|
|
|
10648
10709
|
// src/api/dto/forge/project-invitation.ts
|
|
10649
|
-
import { z as
|
|
10710
|
+
import { z as z331 } from "zod";
|
|
10650
10711
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10651
10712
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10652
10713
|
email: true,
|
|
@@ -10656,24 +10717,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
|
10656
10717
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10657
10718
|
email: true
|
|
10658
10719
|
});
|
|
10659
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
10660
|
-
invitations:
|
|
10720
|
+
var DTOForgeProjectInvitationsListResponse = z331.object({
|
|
10721
|
+
invitations: z331.array(DTOForgeProjectInvitation)
|
|
10661
10722
|
});
|
|
10662
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
10723
|
+
var DTOForgeProjectInvitationGetResponse = z331.object({
|
|
10663
10724
|
invitation: DTOForgeProjectInvitation
|
|
10664
10725
|
});
|
|
10665
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
10726
|
+
var DTOForgeProjectInvitationCreateResponse = z331.object({
|
|
10666
10727
|
invitation: DTOForgeProjectInvitation
|
|
10667
10728
|
});
|
|
10668
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
10729
|
+
var DTOForgeProjectInvitationUpdateResponse = z331.object({
|
|
10669
10730
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
10670
10731
|
});
|
|
10671
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
10672
|
-
ok:
|
|
10732
|
+
var DTOForgeProjectInvitationRemoveResponse = z331.object({
|
|
10733
|
+
ok: z331.literal(true)
|
|
10673
10734
|
});
|
|
10674
10735
|
|
|
10675
10736
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10676
|
-
import { z as
|
|
10737
|
+
import { z as z332 } from "zod";
|
|
10677
10738
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10678
10739
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10679
10740
|
artifacts: true,
|
|
@@ -10684,7 +10745,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10684
10745
|
messages: DTOForgeIterationMessage.array(),
|
|
10685
10746
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10686
10747
|
});
|
|
10687
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10748
|
+
var DTOGetForgeProjectIterationResponse = z332.object({
|
|
10688
10749
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10689
10750
|
});
|
|
10690
10751
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10694,20 +10755,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10694
10755
|
mergeMeta: true,
|
|
10695
10756
|
createdAt: true
|
|
10696
10757
|
});
|
|
10697
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10698
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10758
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z332.string() });
|
|
10759
|
+
var DTOCreateForgeProjectIterationResponse = z332.object({
|
|
10699
10760
|
iteration: DTOForgeProjectIteration
|
|
10700
10761
|
});
|
|
10701
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10762
|
+
var DTOUpdateForgeProjectIterationResponse = z332.object({
|
|
10702
10763
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10703
10764
|
});
|
|
10704
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10705
|
-
ok:
|
|
10765
|
+
var DTODeleteForgeProjectIterationResponse = z332.object({
|
|
10766
|
+
ok: z332.literal(true)
|
|
10706
10767
|
});
|
|
10707
|
-
var DTOForgeProjectIterationListResponse =
|
|
10768
|
+
var DTOForgeProjectIterationListResponse = z332.object({ iterations: z332.array(DTOForgeProjectIteration) });
|
|
10708
10769
|
|
|
10709
10770
|
// src/api/dto/forge/project-member.ts
|
|
10710
|
-
import { z as
|
|
10771
|
+
import { z as z333 } from "zod";
|
|
10711
10772
|
|
|
10712
10773
|
// src/utils/figma.ts
|
|
10713
10774
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
@@ -10890,7 +10951,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
|
10890
10951
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
10891
10952
|
user: DTOUser,
|
|
10892
10953
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
10893
|
-
isDeactivated:
|
|
10954
|
+
isDeactivated: z333.boolean()
|
|
10894
10955
|
});
|
|
10895
10956
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10896
10957
|
userId: true,
|
|
@@ -10900,93 +10961,93 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
10900
10961
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10901
10962
|
userId: true
|
|
10902
10963
|
});
|
|
10903
|
-
var DTOForgeProjectMemberListQuery =
|
|
10964
|
+
var DTOForgeProjectMemberListQuery = z333.object({
|
|
10904
10965
|
includeImplicitMembers: zodQueryBoolean().optional()
|
|
10905
10966
|
});
|
|
10906
|
-
var DTOForgeProjectMembersListResponse =
|
|
10907
|
-
members:
|
|
10908
|
-
invitations:
|
|
10967
|
+
var DTOForgeProjectMembersListResponse = z333.object({
|
|
10968
|
+
members: z333.array(DTOForgeProjectMember),
|
|
10969
|
+
invitations: z333.array(DTOForgeProjectInvitation)
|
|
10909
10970
|
});
|
|
10910
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10971
|
+
var DTOForgeProjectMemberGetResponse = z333.object({
|
|
10911
10972
|
member: DTOForgeProjectMember
|
|
10912
10973
|
});
|
|
10913
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10974
|
+
var DTOForgeProjectMemberCreateResponse = z333.object({
|
|
10914
10975
|
member: DTOForgeProjectMember
|
|
10915
10976
|
});
|
|
10916
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10977
|
+
var DTOForgeProjectMemberUpdateResponse = z333.object({
|
|
10917
10978
|
member: DTOForgeProjectMember.nullable()
|
|
10918
10979
|
});
|
|
10919
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
10920
|
-
ok:
|
|
10980
|
+
var DTOForgeProjectMemberRemoveResponse = z333.object({
|
|
10981
|
+
ok: z333.literal(true)
|
|
10921
10982
|
});
|
|
10922
|
-
var DTOAddMembersToForgeProject =
|
|
10983
|
+
var DTOAddMembersToForgeProject = z333.object({
|
|
10923
10984
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
|
|
10924
|
-
featureId:
|
|
10985
|
+
featureId: z333.string().optional()
|
|
10925
10986
|
});
|
|
10926
10987
|
|
|
10927
10988
|
// src/api/dto/forge/project-room.ts
|
|
10928
|
-
import { z as
|
|
10929
|
-
var DTOForgeProjectRoom =
|
|
10930
|
-
id:
|
|
10989
|
+
import { z as z334 } from "zod";
|
|
10990
|
+
var DTOForgeProjectRoom = z334.object({
|
|
10991
|
+
id: z334.string()
|
|
10931
10992
|
});
|
|
10932
|
-
var DTOForgeProjectRoomResponse =
|
|
10993
|
+
var DTOForgeProjectRoomResponse = z334.object({
|
|
10933
10994
|
room: DTOForgeProjectRoom
|
|
10934
10995
|
});
|
|
10935
10996
|
|
|
10936
10997
|
// src/api/dto/forge/project.ts
|
|
10937
|
-
import { z as
|
|
10998
|
+
import { z as z335 } from "zod";
|
|
10938
10999
|
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10939
11000
|
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10940
11001
|
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10941
|
-
var DTOForgeProjectDocumentPreview =
|
|
10942
|
-
id:
|
|
10943
|
-
title:
|
|
11002
|
+
var DTOForgeProjectDocumentPreview = z335.object({
|
|
11003
|
+
id: z335.string(),
|
|
11004
|
+
title: z335.string(),
|
|
10944
11005
|
thumbnail: DTOFileReference.optional(),
|
|
10945
|
-
createdAt:
|
|
10946
|
-
updatedAt:
|
|
11006
|
+
createdAt: z335.string(),
|
|
11007
|
+
updatedAt: z335.string()
|
|
10947
11008
|
});
|
|
10948
|
-
var DTOForgeProjectFeaturePreview =
|
|
10949
|
-
id:
|
|
10950
|
-
name:
|
|
11009
|
+
var DTOForgeProjectFeaturePreview = z335.object({
|
|
11010
|
+
id: z335.string(),
|
|
11011
|
+
name: z335.string(),
|
|
10951
11012
|
thumbnail: DTOFileReference.optional(),
|
|
10952
|
-
isPublished:
|
|
10953
|
-
isArchived:
|
|
10954
|
-
createdAt:
|
|
10955
|
-
updatedAt:
|
|
10956
|
-
});
|
|
10957
|
-
var DTOForgeProject =
|
|
10958
|
-
id:
|
|
10959
|
-
workspaceId:
|
|
10960
|
-
projectContextId:
|
|
10961
|
-
name:
|
|
10962
|
-
description:
|
|
10963
|
-
instruction:
|
|
10964
|
-
tags:
|
|
11013
|
+
isPublished: z335.boolean().optional(),
|
|
11014
|
+
isArchived: z335.boolean().optional(),
|
|
11015
|
+
createdAt: z335.string(),
|
|
11016
|
+
updatedAt: z335.string()
|
|
11017
|
+
});
|
|
11018
|
+
var DTOForgeProject = z335.object({
|
|
11019
|
+
id: z335.string(),
|
|
11020
|
+
workspaceId: z335.string(),
|
|
11021
|
+
projectContextId: z335.string(),
|
|
11022
|
+
name: z335.string(),
|
|
11023
|
+
description: z335.string().optional(),
|
|
11024
|
+
instruction: z335.string().nullable(),
|
|
11025
|
+
tags: z335.array(z335.string()).default([]),
|
|
10965
11026
|
accessMode: DTOForgeProjectAccessMode,
|
|
10966
11027
|
defaultRole: DTOForgeProjectDefaultRole,
|
|
10967
|
-
isArchived:
|
|
10968
|
-
emoji:
|
|
10969
|
-
tokenThemeSetId:
|
|
10970
|
-
createdAt:
|
|
10971
|
-
createdByUserId:
|
|
10972
|
-
lastUserActivityAt:
|
|
10973
|
-
updatedAt:
|
|
11028
|
+
isArchived: z335.boolean(),
|
|
11029
|
+
emoji: z335.string().optional(),
|
|
11030
|
+
tokenThemeSetId: z335.string().optional(),
|
|
11031
|
+
createdAt: z335.coerce.date(),
|
|
11032
|
+
createdByUserId: z335.string().optional(),
|
|
11033
|
+
lastUserActivityAt: z335.coerce.date().optional(),
|
|
11034
|
+
updatedAt: z335.coerce.date(),
|
|
10974
11035
|
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10975
11036
|
features: DTOForgeProjectFeaturePreview.array(),
|
|
10976
11037
|
/** @deprecated use `projectContextId` */
|
|
10977
|
-
fpContextId:
|
|
11038
|
+
fpContextId: z335.string(),
|
|
10978
11039
|
/** @deprecated use `name` and `description` properties on project */
|
|
10979
|
-
meta:
|
|
10980
|
-
name:
|
|
10981
|
-
description:
|
|
11040
|
+
meta: z335.object({
|
|
11041
|
+
name: z335.string(),
|
|
11042
|
+
description: z335.string().optional()
|
|
10982
11043
|
}),
|
|
10983
11044
|
/** @deprecated use features.length */
|
|
10984
|
-
numberOfFeatures:
|
|
11045
|
+
numberOfFeatures: z335.number().int().nonnegative(),
|
|
10985
11046
|
/** @deprecated use documents.length */
|
|
10986
|
-
numberOfDocuments:
|
|
11047
|
+
numberOfDocuments: z335.number().int().nonnegative().optional(),
|
|
10987
11048
|
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10988
11049
|
context: DTOForgeProjectContextV2.optional(),
|
|
10989
|
-
liveblocksRoomId:
|
|
11050
|
+
liveblocksRoomId: z335.string().optional()
|
|
10990
11051
|
});
|
|
10991
11052
|
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10992
11053
|
name: true,
|
|
@@ -10999,8 +11060,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
10999
11060
|
/** @deprecated use `name` and `description` properties on project */
|
|
11000
11061
|
meta: DTOForgeProject.shape.meta.optional(),
|
|
11001
11062
|
/** @deprecated use `projectContextId` */
|
|
11002
|
-
fpContextId:
|
|
11003
|
-
projectContextId:
|
|
11063
|
+
fpContextId: z335.string().optional(),
|
|
11064
|
+
projectContextId: z335.string().optional(),
|
|
11004
11065
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
11005
11066
|
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
11006
11067
|
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
@@ -11008,136 +11069,136 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
11008
11069
|
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
11009
11070
|
});
|
|
11010
11071
|
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
11011
|
-
id:
|
|
11012
|
-
isArchived:
|
|
11072
|
+
id: z335.string(),
|
|
11073
|
+
isArchived: z335.boolean().optional()
|
|
11013
11074
|
});
|
|
11014
|
-
var DTOForgeProjectListResponse =
|
|
11015
|
-
projects:
|
|
11075
|
+
var DTOForgeProjectListResponse = z335.object({
|
|
11076
|
+
projects: z335.array(
|
|
11016
11077
|
DTOForgeProject.extend({
|
|
11017
11078
|
effectiveRole: DTOForgeProjectRole
|
|
11018
11079
|
})
|
|
11019
11080
|
)
|
|
11020
11081
|
});
|
|
11021
|
-
var DTOForgeProjectResponse =
|
|
11082
|
+
var DTOForgeProjectResponse = z335.object({
|
|
11022
11083
|
project: DTOForgeProject.extend({
|
|
11023
11084
|
effectiveRole: DTOForgeProjectRole
|
|
11024
11085
|
})
|
|
11025
11086
|
});
|
|
11026
11087
|
|
|
11027
11088
|
// src/api/dto/forge/relation.ts
|
|
11028
|
-
import
|
|
11089
|
+
import z336 from "zod";
|
|
11029
11090
|
var DTOForgeRelationType = ForgeRelationType;
|
|
11030
11091
|
var DTOForgeRelation = ForgeRelation;
|
|
11031
11092
|
var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
|
|
11032
|
-
var DTOForgeRelationDelete =
|
|
11033
|
-
sourceItemId:
|
|
11034
|
-
targetItemId:
|
|
11093
|
+
var DTOForgeRelationDelete = z336.object({
|
|
11094
|
+
sourceItemId: z336.string().uuid(),
|
|
11095
|
+
targetItemId: z336.string().uuid()
|
|
11035
11096
|
});
|
|
11036
|
-
var DTOForgeRelationListInput =
|
|
11037
|
-
projectId:
|
|
11097
|
+
var DTOForgeRelationListInput = z336.object({
|
|
11098
|
+
projectId: z336.string()
|
|
11038
11099
|
});
|
|
11039
|
-
var DTOForgeRelationListResponse =
|
|
11040
|
-
relations:
|
|
11100
|
+
var DTOForgeRelationListResponse = z336.object({
|
|
11101
|
+
relations: z336.array(DTOForgeRelation)
|
|
11041
11102
|
});
|
|
11042
|
-
var DTOForgeEntity =
|
|
11043
|
-
id:
|
|
11103
|
+
var DTOForgeEntity = z336.object({
|
|
11104
|
+
id: z336.string().uuid(),
|
|
11044
11105
|
type: DTOForgeRelationType
|
|
11045
11106
|
});
|
|
11046
11107
|
|
|
11047
11108
|
// src/api/dto/forge/threads.ts
|
|
11048
|
-
import { z as
|
|
11109
|
+
import { z as z337 } from "zod";
|
|
11049
11110
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
11050
11111
|
var DTOForgeChatThread = ForgeChatThread;
|
|
11051
11112
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
11052
11113
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
11053
|
-
var DTOForgeChatThreadCreateInput =
|
|
11054
|
-
title:
|
|
11114
|
+
var DTOForgeChatThreadCreateInput = z337.object({
|
|
11115
|
+
title: z337.string().optional()
|
|
11055
11116
|
});
|
|
11056
|
-
var DTOForgeChatThreadCreateResponse =
|
|
11117
|
+
var DTOForgeChatThreadCreateResponse = z337.object({
|
|
11057
11118
|
thread: DTOForgeChatThread
|
|
11058
11119
|
});
|
|
11059
|
-
var DTOForgeChatThreadUpdateInput =
|
|
11060
|
-
title:
|
|
11120
|
+
var DTOForgeChatThreadUpdateInput = z337.object({
|
|
11121
|
+
title: z337.string()
|
|
11061
11122
|
});
|
|
11062
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
11123
|
+
var DTOForgeChatThreadUpdateResponse = z337.object({
|
|
11063
11124
|
thread: DTOForgeChatThread
|
|
11064
11125
|
});
|
|
11065
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
11066
|
-
success:
|
|
11126
|
+
var DTOForgeChatThreadDeleteResponse = z337.object({
|
|
11127
|
+
success: z337.boolean()
|
|
11067
11128
|
});
|
|
11068
|
-
var DTOForgeChatThreadListQuery =
|
|
11069
|
-
limit:
|
|
11070
|
-
offset:
|
|
11129
|
+
var DTOForgeChatThreadListQuery = z337.object({
|
|
11130
|
+
limit: z337.number().optional(),
|
|
11131
|
+
offset: z337.number().optional()
|
|
11071
11132
|
});
|
|
11072
|
-
var DTOForgeChatThreadListResponse =
|
|
11073
|
-
threads:
|
|
11074
|
-
pagination:
|
|
11075
|
-
offset:
|
|
11076
|
-
limit:
|
|
11077
|
-
total:
|
|
11133
|
+
var DTOForgeChatThreadListResponse = z337.object({
|
|
11134
|
+
threads: z337.array(DTOForgeChatThread),
|
|
11135
|
+
pagination: z337.object({
|
|
11136
|
+
offset: z337.number(),
|
|
11137
|
+
limit: z337.number(),
|
|
11138
|
+
total: z337.number()
|
|
11078
11139
|
})
|
|
11079
11140
|
});
|
|
11080
|
-
var DTOForgeChatMessageCreateInput =
|
|
11081
|
-
payload:
|
|
11141
|
+
var DTOForgeChatMessageCreateInput = z337.object({
|
|
11142
|
+
payload: z337.string(),
|
|
11082
11143
|
sender: DTOForgeChatMessageSender.optional()
|
|
11083
11144
|
});
|
|
11084
|
-
var DTOForgeChatMessageCreateResponse =
|
|
11145
|
+
var DTOForgeChatMessageCreateResponse = z337.object({
|
|
11085
11146
|
message: DTOForgeChatMessage
|
|
11086
11147
|
});
|
|
11087
|
-
var DTOForgeChatMessageListQuery =
|
|
11088
|
-
limit:
|
|
11089
|
-
offset:
|
|
11148
|
+
var DTOForgeChatMessageListQuery = z337.object({
|
|
11149
|
+
limit: z337.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
11150
|
+
offset: z337.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
11090
11151
|
});
|
|
11091
|
-
var DTOForgeChatMessageListResponse =
|
|
11092
|
-
messages:
|
|
11093
|
-
totalCount:
|
|
11094
|
-
hasMore:
|
|
11152
|
+
var DTOForgeChatMessageListResponse = z337.object({
|
|
11153
|
+
messages: z337.array(DTOForgeChatMessage),
|
|
11154
|
+
totalCount: z337.number(),
|
|
11155
|
+
hasMore: z337.boolean()
|
|
11095
11156
|
});
|
|
11096
|
-
var DTOForgeChatExportResponse =
|
|
11097
|
-
csvDownloadUrl:
|
|
11157
|
+
var DTOForgeChatExportResponse = z337.object({
|
|
11158
|
+
csvDownloadUrl: z337.string().nullable()
|
|
11098
11159
|
});
|
|
11099
|
-
var DTOForgeChatMessageScoreInput =
|
|
11100
|
-
messageId:
|
|
11101
|
-
name:
|
|
11102
|
-
value:
|
|
11103
|
-
categoryName:
|
|
11104
|
-
reason:
|
|
11160
|
+
var DTOForgeChatMessageScoreInput = z337.object({
|
|
11161
|
+
messageId: z337.string(),
|
|
11162
|
+
name: z337.string(),
|
|
11163
|
+
value: z337.number(),
|
|
11164
|
+
categoryName: z337.string().optional(),
|
|
11165
|
+
reason: z337.string().optional()
|
|
11105
11166
|
});
|
|
11106
|
-
var DTOForgeChatMessageTagInput =
|
|
11107
|
-
messageId:
|
|
11108
|
-
tags:
|
|
11167
|
+
var DTOForgeChatMessageTagInput = z337.object({
|
|
11168
|
+
messageId: z337.string(),
|
|
11169
|
+
tags: z337.array(z337.string())
|
|
11109
11170
|
});
|
|
11110
|
-
var DTOForgeChatMessageScoreRequest =
|
|
11171
|
+
var DTOForgeChatMessageScoreRequest = z337.object({
|
|
11111
11172
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
11112
11173
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
11113
11174
|
});
|
|
11114
11175
|
|
|
11115
11176
|
// src/api/dto/events/forge-project.ts
|
|
11116
|
-
var DTOForgeProjectMembersCreated =
|
|
11117
|
-
type:
|
|
11118
|
-
data:
|
|
11177
|
+
var DTOForgeProjectMembersCreated = z338.object({
|
|
11178
|
+
type: z338.literal("ProjectMembersCreated"),
|
|
11179
|
+
data: z338.array(DTOForgeProjectMember)
|
|
11119
11180
|
});
|
|
11120
|
-
var DTOForgeProjectMemberUpdated =
|
|
11121
|
-
type:
|
|
11181
|
+
var DTOForgeProjectMemberUpdated = z338.object({
|
|
11182
|
+
type: z338.literal("ProjectMemberUpdated"),
|
|
11122
11183
|
data: DTOForgeProjectMember
|
|
11123
11184
|
});
|
|
11124
|
-
var DTOForgeProjectMemberDeleted =
|
|
11125
|
-
type:
|
|
11185
|
+
var DTOForgeProjectMemberDeleted = z338.object({
|
|
11186
|
+
type: z338.literal("ProjectMemberDeleted"),
|
|
11126
11187
|
data: DTOForgeProjectMember.pick({ userId: true })
|
|
11127
11188
|
});
|
|
11128
|
-
var DTOForgeProjectIterationTagSet =
|
|
11129
|
-
type:
|
|
11189
|
+
var DTOForgeProjectIterationTagSet = z338.object({
|
|
11190
|
+
type: z338.literal("ProjectIterationTagSet"),
|
|
11130
11191
|
data: DTOFeatureIterationTag
|
|
11131
11192
|
});
|
|
11132
|
-
var DTOForgeProjectFeatureSandboxUpdated =
|
|
11133
|
-
type:
|
|
11193
|
+
var DTOForgeProjectFeatureSandboxUpdated = z338.object({
|
|
11194
|
+
type: z338.literal("ProjectFeatureSandboxUpdated"),
|
|
11134
11195
|
data: DTOFeatureSandbox
|
|
11135
11196
|
});
|
|
11136
|
-
var DTOForgeProjectIterationUpdated =
|
|
11137
|
-
type:
|
|
11197
|
+
var DTOForgeProjectIterationUpdated = z338.object({
|
|
11198
|
+
type: z338.literal("ProjectIterationUpdated"),
|
|
11138
11199
|
data: DTOFeatureIteration.extend({ featureId: Id })
|
|
11139
11200
|
});
|
|
11140
|
-
var DTOForgeProjectRoomEvent =
|
|
11201
|
+
var DTOForgeProjectRoomEvent = z338.discriminatedUnion("type", [
|
|
11141
11202
|
DTOForgeProjectMembersCreated,
|
|
11142
11203
|
DTOForgeProjectMemberUpdated,
|
|
11143
11204
|
DTOForgeProjectMemberDeleted,
|
|
@@ -11147,50 +11208,50 @@ var DTOForgeProjectRoomEvent = z337.discriminatedUnion("type", [
|
|
|
11147
11208
|
]);
|
|
11148
11209
|
|
|
11149
11210
|
// src/api/dto/events/workspace.ts
|
|
11150
|
-
import
|
|
11151
|
-
var DTOForgeProjectCreated =
|
|
11152
|
-
type:
|
|
11153
|
-
data:
|
|
11211
|
+
import z339 from "zod";
|
|
11212
|
+
var DTOForgeProjectCreated = z339.object({
|
|
11213
|
+
type: z339.literal("ProjectCreated"),
|
|
11214
|
+
data: z339.object({ id: z339.string() })
|
|
11154
11215
|
});
|
|
11155
|
-
var DTOForgeProjectUpdated =
|
|
11156
|
-
type:
|
|
11157
|
-
data:
|
|
11216
|
+
var DTOForgeProjectUpdated = z339.object({
|
|
11217
|
+
type: z339.literal("ProjectUpdated"),
|
|
11218
|
+
data: z339.object({ id: z339.string() })
|
|
11158
11219
|
});
|
|
11159
|
-
var DTOForgeProjectContextCreated =
|
|
11160
|
-
type:
|
|
11220
|
+
var DTOForgeProjectContextCreated = z339.object({
|
|
11221
|
+
type: z339.literal("ProjectContextCreated"),
|
|
11161
11222
|
data: DTOForgeProjectContextV2
|
|
11162
11223
|
});
|
|
11163
|
-
var DTOForgeProjectContextUpdated =
|
|
11164
|
-
type:
|
|
11224
|
+
var DTOForgeProjectContextUpdated = z339.object({
|
|
11225
|
+
type: z339.literal("ProjectContextUpdated"),
|
|
11165
11226
|
data: DTOForgeProjectContextV2
|
|
11166
11227
|
});
|
|
11167
|
-
var DTOForgeProjectContextDeleted =
|
|
11168
|
-
type:
|
|
11228
|
+
var DTOForgeProjectContextDeleted = z339.object({
|
|
11229
|
+
type: z339.literal("ProjectContextDeleted"),
|
|
11169
11230
|
data: DTOForgeProjectContextV2.pick({ id: true })
|
|
11170
11231
|
});
|
|
11171
|
-
var DTOSandboxTemplateVersionCreated =
|
|
11172
|
-
type:
|
|
11173
|
-
data:
|
|
11174
|
-
templateId:
|
|
11175
|
-
version:
|
|
11176
|
-
designSystemId:
|
|
11232
|
+
var DTOSandboxTemplateVersionCreated = z339.object({
|
|
11233
|
+
type: z339.literal("SandboxTemplateVersionCreated"),
|
|
11234
|
+
data: z339.object({
|
|
11235
|
+
templateId: z339.string(),
|
|
11236
|
+
version: z339.string(),
|
|
11237
|
+
designSystemId: z339.string()
|
|
11177
11238
|
})
|
|
11178
11239
|
});
|
|
11179
|
-
var DTOSandboxTemplateBuildCreated =
|
|
11180
|
-
type:
|
|
11181
|
-
data:
|
|
11182
|
-
buildId:
|
|
11183
|
-
templateId:
|
|
11240
|
+
var DTOSandboxTemplateBuildCreated = z339.object({
|
|
11241
|
+
type: z339.literal("SandboxTemplateBuildCreated"),
|
|
11242
|
+
data: z339.object({
|
|
11243
|
+
buildId: z339.string(),
|
|
11244
|
+
templateId: z339.string().optional()
|
|
11184
11245
|
})
|
|
11185
11246
|
});
|
|
11186
|
-
var DTOSandboxTemplateBuildFinished =
|
|
11187
|
-
type:
|
|
11188
|
-
data:
|
|
11189
|
-
buildId:
|
|
11190
|
-
templateId:
|
|
11247
|
+
var DTOSandboxTemplateBuildFinished = z339.object({
|
|
11248
|
+
type: z339.literal("SandboxTemplateBuildFinished"),
|
|
11249
|
+
data: z339.object({
|
|
11250
|
+
buildId: z339.string(),
|
|
11251
|
+
templateId: z339.string().optional()
|
|
11191
11252
|
})
|
|
11192
11253
|
});
|
|
11193
|
-
var DTOWorkspaceRoomEvent =
|
|
11254
|
+
var DTOWorkspaceRoomEvent = z339.discriminatedUnion("type", [
|
|
11194
11255
|
DTOForgeProjectUpdated,
|
|
11195
11256
|
DTOForgeProjectCreated,
|
|
11196
11257
|
DTOForgeProjectContextCreated,
|
|
@@ -11202,298 +11263,298 @@ var DTOWorkspaceRoomEvent = z338.discriminatedUnion("type", [
|
|
|
11202
11263
|
]);
|
|
11203
11264
|
|
|
11204
11265
|
// src/api/dto/figma-components/assets/download.ts
|
|
11205
|
-
import { z as
|
|
11206
|
-
var DTOAssetRenderConfiguration =
|
|
11207
|
-
prefix:
|
|
11208
|
-
suffix:
|
|
11209
|
-
scale:
|
|
11210
|
-
format:
|
|
11211
|
-
});
|
|
11212
|
-
var DTORenderedAssetFile =
|
|
11213
|
-
assetId:
|
|
11214
|
-
fileName:
|
|
11215
|
-
sourceUrl:
|
|
11266
|
+
import { z as z340 } from "zod";
|
|
11267
|
+
var DTOAssetRenderConfiguration = z340.object({
|
|
11268
|
+
prefix: z340.string().optional(),
|
|
11269
|
+
suffix: z340.string().optional(),
|
|
11270
|
+
scale: z340.enum(["x1", "x2", "x3", "x4"]),
|
|
11271
|
+
format: z340.enum(["png", "pdf", "svg"])
|
|
11272
|
+
});
|
|
11273
|
+
var DTORenderedAssetFile = z340.object({
|
|
11274
|
+
assetId: z340.string(),
|
|
11275
|
+
fileName: z340.string(),
|
|
11276
|
+
sourceUrl: z340.string(),
|
|
11216
11277
|
settings: DTOAssetRenderConfiguration,
|
|
11217
|
-
originalName:
|
|
11278
|
+
originalName: z340.string()
|
|
11218
11279
|
});
|
|
11219
|
-
var DTODownloadAssetsRequest =
|
|
11220
|
-
persistentIds:
|
|
11280
|
+
var DTODownloadAssetsRequest = z340.object({
|
|
11281
|
+
persistentIds: z340.array(z340.string().uuid()).optional(),
|
|
11221
11282
|
settings: DTOAssetRenderConfiguration.array()
|
|
11222
11283
|
});
|
|
11223
|
-
var DTODownloadAssetsResponse =
|
|
11284
|
+
var DTODownloadAssetsResponse = z340.object({
|
|
11224
11285
|
items: DTORenderedAssetFile.array()
|
|
11225
11286
|
});
|
|
11226
11287
|
|
|
11227
11288
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
11228
|
-
import { z as
|
|
11229
|
-
var DTOFigmaExportNodeFormat =
|
|
11230
|
-
var DTOFigmaExportNodeConfiguration =
|
|
11289
|
+
import { z as z341 } from "zod";
|
|
11290
|
+
var DTOFigmaExportNodeFormat = z341.enum(["HTML", "JSON"]);
|
|
11291
|
+
var DTOFigmaExportNodeConfiguration = z341.object({
|
|
11231
11292
|
format: DTOFigmaExportNodeFormat,
|
|
11232
|
-
minifyOutput:
|
|
11233
|
-
customFontUrls:
|
|
11293
|
+
minifyOutput: z341.boolean().optional(),
|
|
11294
|
+
customFontUrls: z341.string().array().optional()
|
|
11234
11295
|
});
|
|
11235
|
-
var DTOFigmaExportNodePayload =
|
|
11236
|
-
designSystemId:
|
|
11237
|
-
figmaUrl:
|
|
11296
|
+
var DTOFigmaExportNodePayload = z341.object({
|
|
11297
|
+
designSystemId: z341.string(),
|
|
11298
|
+
figmaUrl: z341.string(),
|
|
11238
11299
|
configuration: DTOFigmaExportNodeConfiguration
|
|
11239
11300
|
});
|
|
11240
|
-
var DTOFigmaExportNodeResponse =
|
|
11301
|
+
var DTOFigmaExportNodeResponse = z341.object({
|
|
11241
11302
|
file: DTOFile,
|
|
11242
11303
|
// TODO (jovanblazek): Remove sceneNodes from response when done with development
|
|
11243
|
-
scene:
|
|
11304
|
+
scene: z341.any().optional()
|
|
11244
11305
|
});
|
|
11245
11306
|
|
|
11246
11307
|
// src/api/dto/liveblocks/auth-response.ts
|
|
11247
|
-
import { z as
|
|
11248
|
-
var DTOLiveblocksAuthResponse =
|
|
11249
|
-
token:
|
|
11308
|
+
import { z as z342 } from "zod";
|
|
11309
|
+
var DTOLiveblocksAuthResponse = z342.object({
|
|
11310
|
+
token: z342.string()
|
|
11250
11311
|
});
|
|
11251
11312
|
|
|
11252
11313
|
// src/api/dto/mcp/stream.ts
|
|
11253
|
-
import
|
|
11254
|
-
var DTOMCPStream =
|
|
11255
|
-
id:
|
|
11256
|
-
projectFeatureId:
|
|
11257
|
-
projectDocumentId:
|
|
11314
|
+
import z343 from "zod";
|
|
11315
|
+
var DTOMCPStream = z343.object({
|
|
11316
|
+
id: z343.string().uuid(),
|
|
11317
|
+
projectFeatureId: z343.string().uuid().optional(),
|
|
11318
|
+
projectDocumentId: z343.string().uuid().optional()
|
|
11258
11319
|
});
|
|
11259
11320
|
var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
|
|
11260
|
-
var DTOMCPStreamResponse =
|
|
11321
|
+
var DTOMCPStreamResponse = z343.object({
|
|
11261
11322
|
stream: DTOMCPStream
|
|
11262
11323
|
});
|
|
11263
11324
|
|
|
11264
11325
|
// src/api/dto/notifications/notifications.ts
|
|
11265
|
-
import { z as
|
|
11266
|
-
var DTONotificationChatMentionPayload =
|
|
11267
|
-
messageAuthorId:
|
|
11268
|
-
messageText:
|
|
11269
|
-
messageId:
|
|
11270
|
-
parentMessageId:
|
|
11271
|
-
workspaceId:
|
|
11272
|
-
projectId:
|
|
11273
|
-
subjectType:
|
|
11274
|
-
threadSubjectId:
|
|
11275
|
-
subjectName:
|
|
11276
|
-
});
|
|
11277
|
-
var DTONotificationProjectInvitationPayload =
|
|
11278
|
-
workspaceId:
|
|
11279
|
-
projectId:
|
|
11280
|
-
projectTitle:
|
|
11281
|
-
invitedByUserId:
|
|
11282
|
-
invitationRole:
|
|
11283
|
-
featureId:
|
|
11284
|
-
});
|
|
11285
|
-
var DTONotificationProjectDocumentCommentPayload =
|
|
11286
|
-
documentId:
|
|
11287
|
-
entityTitle:
|
|
11288
|
-
projectId:
|
|
11289
|
-
workspaceId:
|
|
11290
|
-
threadId:
|
|
11291
|
-
commentId:
|
|
11292
|
-
commentCreatedAt:
|
|
11293
|
-
commentAuthorId:
|
|
11294
|
-
commentBody:
|
|
11295
|
-
});
|
|
11296
|
-
var DTONotificationBase =
|
|
11297
|
-
userId:
|
|
11298
|
-
subjectId:
|
|
11299
|
-
roomId:
|
|
11300
|
-
workspaceId:
|
|
11301
|
-
});
|
|
11302
|
-
var DTONotificationCreateInput =
|
|
11303
|
-
|
|
11304
|
-
type:
|
|
11326
|
+
import { z as z344 } from "zod";
|
|
11327
|
+
var DTONotificationChatMentionPayload = z344.object({
|
|
11328
|
+
messageAuthorId: z344.string(),
|
|
11329
|
+
messageText: z344.string(),
|
|
11330
|
+
messageId: z344.string(),
|
|
11331
|
+
parentMessageId: z344.string().optional(),
|
|
11332
|
+
workspaceId: z344.string(),
|
|
11333
|
+
projectId: z344.string(),
|
|
11334
|
+
subjectType: z344.string(),
|
|
11335
|
+
threadSubjectId: z344.string(),
|
|
11336
|
+
subjectName: z344.string()
|
|
11337
|
+
});
|
|
11338
|
+
var DTONotificationProjectInvitationPayload = z344.object({
|
|
11339
|
+
workspaceId: z344.string(),
|
|
11340
|
+
projectId: z344.string(),
|
|
11341
|
+
projectTitle: z344.string(),
|
|
11342
|
+
invitedByUserId: z344.string(),
|
|
11343
|
+
invitationRole: z344.string(),
|
|
11344
|
+
featureId: z344.string().optional()
|
|
11345
|
+
});
|
|
11346
|
+
var DTONotificationProjectDocumentCommentPayload = z344.object({
|
|
11347
|
+
documentId: z344.string(),
|
|
11348
|
+
entityTitle: z344.string(),
|
|
11349
|
+
projectId: z344.string(),
|
|
11350
|
+
workspaceId: z344.string(),
|
|
11351
|
+
threadId: z344.string(),
|
|
11352
|
+
commentId: z344.string(),
|
|
11353
|
+
commentCreatedAt: z344.string(),
|
|
11354
|
+
commentAuthorId: z344.string(),
|
|
11355
|
+
commentBody: z344.string()
|
|
11356
|
+
});
|
|
11357
|
+
var DTONotificationBase = z344.object({
|
|
11358
|
+
userId: z344.string(),
|
|
11359
|
+
subjectId: z344.string(),
|
|
11360
|
+
roomId: z344.string().optional(),
|
|
11361
|
+
workspaceId: z344.string()
|
|
11362
|
+
});
|
|
11363
|
+
var DTONotificationCreateInput = z344.discriminatedUnion("type", [
|
|
11364
|
+
z344.object({
|
|
11365
|
+
type: z344.literal(DTONotificationType.enum.ChatMention),
|
|
11305
11366
|
activityData: DTONotificationChatMentionPayload
|
|
11306
11367
|
}),
|
|
11307
|
-
|
|
11308
|
-
type:
|
|
11368
|
+
z344.object({
|
|
11369
|
+
type: z344.literal(DTONotificationType.enum.ProjectInvitation),
|
|
11309
11370
|
activityData: DTONotificationProjectInvitationPayload
|
|
11310
11371
|
}),
|
|
11311
|
-
|
|
11312
|
-
type:
|
|
11372
|
+
z344.object({
|
|
11373
|
+
type: z344.literal(DTONotificationType.enum.ProjectDocumentComment),
|
|
11313
11374
|
activityData: DTONotificationProjectDocumentCommentPayload
|
|
11314
11375
|
})
|
|
11315
11376
|
]).and(DTONotificationBase);
|
|
11316
11377
|
|
|
11317
11378
|
// src/api/dto/portal/portal-settings.ts
|
|
11318
|
-
import { z as
|
|
11379
|
+
import { z as z345 } from "zod";
|
|
11319
11380
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
11320
11381
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
11321
11382
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
11322
11383
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
11323
|
-
var DTOPortalSettings =
|
|
11324
|
-
id:
|
|
11325
|
-
workspaceId:
|
|
11326
|
-
enabledDesignSystemIds:
|
|
11327
|
-
enabledBrandPersistentIds:
|
|
11384
|
+
var DTOPortalSettings = z345.object({
|
|
11385
|
+
id: z345.string(),
|
|
11386
|
+
workspaceId: z345.string(),
|
|
11387
|
+
enabledDesignSystemIds: z345.array(z345.string()),
|
|
11388
|
+
enabledBrandPersistentIds: z345.array(z345.string()),
|
|
11328
11389
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
11329
11390
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
11330
|
-
createdAt:
|
|
11331
|
-
updatedAt:
|
|
11391
|
+
createdAt: z345.coerce.date(),
|
|
11392
|
+
updatedAt: z345.coerce.date()
|
|
11332
11393
|
});
|
|
11333
|
-
var DTOPortalSettingsGetResponse =
|
|
11394
|
+
var DTOPortalSettingsGetResponse = z345.object({
|
|
11334
11395
|
portalSettings: DTOPortalSettings
|
|
11335
11396
|
});
|
|
11336
|
-
var DTOPortalSettingsUpdatePayload =
|
|
11337
|
-
enabledDesignSystemIds:
|
|
11338
|
-
enabledBrandPersistentIds:
|
|
11397
|
+
var DTOPortalSettingsUpdatePayload = z345.object({
|
|
11398
|
+
enabledDesignSystemIds: z345.array(z345.string()).optional(),
|
|
11399
|
+
enabledBrandPersistentIds: z345.array(z345.string()).optional(),
|
|
11339
11400
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
11340
11401
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
11341
11402
|
});
|
|
11342
11403
|
|
|
11343
11404
|
// src/api/dto/sandboxes/template.ts
|
|
11344
|
-
import
|
|
11345
|
-
var DTOSandboxTemplateVersion =
|
|
11346
|
-
name:
|
|
11347
|
-
createdAt:
|
|
11348
|
-
createdByUserId:
|
|
11349
|
-
e2bTemplateId:
|
|
11350
|
-
});
|
|
11351
|
-
var DTOSandboxTemplate =
|
|
11352
|
-
id:
|
|
11353
|
-
name:
|
|
11354
|
-
workspaceId:
|
|
11355
|
-
designSystemId:
|
|
11356
|
-
createdAt:
|
|
11405
|
+
import z346 from "zod";
|
|
11406
|
+
var DTOSandboxTemplateVersion = z346.object({
|
|
11407
|
+
name: z346.string(),
|
|
11408
|
+
createdAt: z346.string(),
|
|
11409
|
+
createdByUserId: z346.string(),
|
|
11410
|
+
e2bTemplateId: z346.string()
|
|
11411
|
+
});
|
|
11412
|
+
var DTOSandboxTemplate = z346.object({
|
|
11413
|
+
id: z346.string(),
|
|
11414
|
+
name: z346.string(),
|
|
11415
|
+
workspaceId: z346.string(),
|
|
11416
|
+
designSystemId: z346.string(),
|
|
11417
|
+
createdAt: z346.string(),
|
|
11357
11418
|
versions: DTOSandboxTemplateVersion.array()
|
|
11358
11419
|
});
|
|
11359
|
-
var DTOSandboxTemplateBuild =
|
|
11360
|
-
id:
|
|
11361
|
-
workspaceId:
|
|
11362
|
-
designSystemId:
|
|
11363
|
-
name:
|
|
11364
|
-
version:
|
|
11365
|
-
createdAt:
|
|
11366
|
-
finishedAt:
|
|
11367
|
-
createdByUserId:
|
|
11368
|
-
dockerImagePath:
|
|
11369
|
-
error:
|
|
11370
|
-
state:
|
|
11371
|
-
});
|
|
11372
|
-
var DTOSandboxTemplateFile =
|
|
11373
|
-
key:
|
|
11374
|
-
fileId:
|
|
11375
|
-
filePath:
|
|
11376
|
-
url:
|
|
11377
|
-
});
|
|
11378
|
-
var DTOSandboxTemplateVersionDetail =
|
|
11420
|
+
var DTOSandboxTemplateBuild = z346.object({
|
|
11421
|
+
id: z346.string(),
|
|
11422
|
+
workspaceId: z346.string(),
|
|
11423
|
+
designSystemId: z346.string(),
|
|
11424
|
+
name: z346.string(),
|
|
11425
|
+
version: z346.string(),
|
|
11426
|
+
createdAt: z346.string(),
|
|
11427
|
+
finishedAt: z346.string().optional(),
|
|
11428
|
+
createdByUserId: z346.string(),
|
|
11429
|
+
dockerImagePath: z346.string(),
|
|
11430
|
+
error: z346.string().optional(),
|
|
11431
|
+
state: z346.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
|
|
11432
|
+
});
|
|
11433
|
+
var DTOSandboxTemplateFile = z346.object({
|
|
11434
|
+
key: z346.string(),
|
|
11435
|
+
fileId: z346.string(),
|
|
11436
|
+
filePath: z346.string(),
|
|
11437
|
+
url: z346.string()
|
|
11438
|
+
});
|
|
11439
|
+
var DTOSandboxTemplateVersionDetail = z346.object({
|
|
11379
11440
|
version: DTOSandboxTemplateVersion,
|
|
11380
11441
|
files: DTOSandboxTemplateFile.array()
|
|
11381
11442
|
});
|
|
11382
|
-
var DTOSandboxTemplateQuery =
|
|
11383
|
-
workspaceId:
|
|
11384
|
-
designSystemId:
|
|
11443
|
+
var DTOSandboxTemplateQuery = z346.object({
|
|
11444
|
+
workspaceId: z346.string(),
|
|
11445
|
+
designSystemId: z346.string().optional()
|
|
11385
11446
|
});
|
|
11386
|
-
var DTOSandboxTemplateListResponse =
|
|
11447
|
+
var DTOSandboxTemplateListResponse = z346.object({
|
|
11387
11448
|
templates: DTOSandboxTemplate.array()
|
|
11388
11449
|
});
|
|
11389
|
-
var DTOSandboxTemplateResponse =
|
|
11450
|
+
var DTOSandboxTemplateResponse = z346.object({
|
|
11390
11451
|
template: DTOSandboxTemplate
|
|
11391
11452
|
});
|
|
11392
|
-
var DTOSandboxTemplateBuildResponse =
|
|
11453
|
+
var DTOSandboxTemplateBuildResponse = z346.object({
|
|
11393
11454
|
build: DTOSandboxTemplateBuild
|
|
11394
11455
|
});
|
|
11395
|
-
var DTOSandboxTemplateBuildCreateInput =
|
|
11396
|
-
workspaceId:
|
|
11397
|
-
designSystemId:
|
|
11398
|
-
name:
|
|
11399
|
-
version:
|
|
11400
|
-
isExistingVersionUpdateAllowed:
|
|
11456
|
+
var DTOSandboxTemplateBuildCreateInput = z346.object({
|
|
11457
|
+
workspaceId: z346.string(),
|
|
11458
|
+
designSystemId: z346.string(),
|
|
11459
|
+
name: z346.string(),
|
|
11460
|
+
version: z346.string(),
|
|
11461
|
+
isExistingVersionUpdateAllowed: z346.boolean()
|
|
11401
11462
|
});
|
|
11402
|
-
var DTOSandboxTemplateBuildCreateResponse =
|
|
11463
|
+
var DTOSandboxTemplateBuildCreateResponse = z346.object({
|
|
11403
11464
|
/** @deprecated use domain + build.dockerImagePath */
|
|
11404
|
-
dockerUrl:
|
|
11405
|
-
dockerRegistryDomain:
|
|
11465
|
+
dockerUrl: z346.string().optional(),
|
|
11466
|
+
dockerRegistryDomain: z346.string(),
|
|
11406
11467
|
/** @deprecated use docker-login endpoint */
|
|
11407
|
-
dockerAccessToken:
|
|
11468
|
+
dockerAccessToken: z346.string().optional(),
|
|
11408
11469
|
build: DTOSandboxTemplateBuild
|
|
11409
11470
|
});
|
|
11410
|
-
var DTOSandboxTemplateBuildFinalizeResponse =
|
|
11411
|
-
ok:
|
|
11471
|
+
var DTOSandboxTemplateBuildFinalizeResponse = z346.object({
|
|
11472
|
+
ok: z346.boolean()
|
|
11412
11473
|
});
|
|
11413
11474
|
|
|
11414
11475
|
// src/api/dto/storybook-sites/storybook-sites.ts
|
|
11415
|
-
import { z as
|
|
11416
|
-
var DTOStorybookUploadStatus =
|
|
11417
|
-
var DTOStorybookSiteVersion =
|
|
11418
|
-
id:
|
|
11419
|
-
isPublic:
|
|
11420
|
-
createdAt:
|
|
11476
|
+
import { z as z347 } from "zod";
|
|
11477
|
+
var DTOStorybookUploadStatus = z347.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
|
|
11478
|
+
var DTOStorybookSiteVersion = z347.object({
|
|
11479
|
+
id: z347.string(),
|
|
11480
|
+
isPublic: z347.boolean(),
|
|
11481
|
+
createdAt: z347.string(),
|
|
11421
11482
|
uploadStatus: DTOStorybookUploadStatus
|
|
11422
11483
|
});
|
|
11423
|
-
var DTOStorybookSite =
|
|
11424
|
-
id:
|
|
11425
|
-
designSystemId:
|
|
11426
|
-
name:
|
|
11427
|
-
indexPageUrl:
|
|
11428
|
-
createdAt:
|
|
11484
|
+
var DTOStorybookSite = z347.object({
|
|
11485
|
+
id: z347.string(),
|
|
11486
|
+
designSystemId: z347.string(),
|
|
11487
|
+
name: z347.string(),
|
|
11488
|
+
indexPageUrl: z347.string(),
|
|
11489
|
+
createdAt: z347.string(),
|
|
11429
11490
|
currentVersion: DTOStorybookSiteVersion
|
|
11430
11491
|
});
|
|
11431
|
-
var DTOStorybookSiteListQuery =
|
|
11432
|
-
designSystemId:
|
|
11492
|
+
var DTOStorybookSiteListQuery = z347.object({
|
|
11493
|
+
designSystemId: z347.string()
|
|
11433
11494
|
});
|
|
11434
|
-
var DTOStorybookSiteListResponse =
|
|
11495
|
+
var DTOStorybookSiteListResponse = z347.object({
|
|
11435
11496
|
sites: DTOStorybookSite.array()
|
|
11436
11497
|
});
|
|
11437
|
-
var DTOStorybookSiteUploadPayload =
|
|
11438
|
-
designSystemId:
|
|
11439
|
-
isPublic:
|
|
11440
|
-
name:
|
|
11498
|
+
var DTOStorybookSiteUploadPayload = z347.object({
|
|
11499
|
+
designSystemId: z347.string(),
|
|
11500
|
+
isPublic: z347.boolean(),
|
|
11501
|
+
name: z347.string()
|
|
11441
11502
|
});
|
|
11442
|
-
var DTOStorybookSiteUploadResponse =
|
|
11503
|
+
var DTOStorybookSiteUploadResponse = z347.object({
|
|
11443
11504
|
storybookSiteVersion: DTOStorybookSiteVersion,
|
|
11444
|
-
uploadUrl:
|
|
11505
|
+
uploadUrl: z347.string()
|
|
11445
11506
|
});
|
|
11446
|
-
var DTOStorybookSiteVersionResponse =
|
|
11507
|
+
var DTOStorybookSiteVersionResponse = z347.object({
|
|
11447
11508
|
storybookSiteVersion: DTOStorybookSiteVersion
|
|
11448
11509
|
});
|
|
11449
11510
|
|
|
11450
11511
|
// src/api/dto/themes/override.ts
|
|
11451
|
-
import { z as
|
|
11512
|
+
import { z as z348 } from "zod";
|
|
11452
11513
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
11453
|
-
|
|
11454
|
-
tokenPersistentId:
|
|
11514
|
+
z348.object({
|
|
11515
|
+
tokenPersistentId: z348.string(),
|
|
11455
11516
|
origin: ThemeOverrideOrigin.optional()
|
|
11456
11517
|
})
|
|
11457
11518
|
);
|
|
11458
11519
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
11459
|
-
|
|
11460
|
-
tokenPersistentId:
|
|
11520
|
+
z348.object({
|
|
11521
|
+
tokenPersistentId: z348.string()
|
|
11461
11522
|
})
|
|
11462
11523
|
);
|
|
11463
11524
|
|
|
11464
11525
|
// src/api/dto/themes/theme.ts
|
|
11465
|
-
import { z as
|
|
11466
|
-
var DTOThemesListQuery =
|
|
11467
|
-
brandId:
|
|
11468
|
-
});
|
|
11469
|
-
var DTOTheme =
|
|
11470
|
-
id:
|
|
11471
|
-
persistentId:
|
|
11472
|
-
designSystemVersionId:
|
|
11473
|
-
brandId:
|
|
11526
|
+
import { z as z349 } from "zod";
|
|
11527
|
+
var DTOThemesListQuery = z349.object({
|
|
11528
|
+
brandId: z349.string().optional()
|
|
11529
|
+
});
|
|
11530
|
+
var DTOTheme = z349.object({
|
|
11531
|
+
id: z349.string(),
|
|
11532
|
+
persistentId: z349.string(),
|
|
11533
|
+
designSystemVersionId: z349.string(),
|
|
11534
|
+
brandId: z349.string(),
|
|
11474
11535
|
meta: ObjectMeta,
|
|
11475
|
-
codeName:
|
|
11476
|
-
parentPersistentId:
|
|
11477
|
-
collectionPersistentIds:
|
|
11536
|
+
codeName: z349.string(),
|
|
11537
|
+
parentPersistentId: z349.string().optional(),
|
|
11538
|
+
collectionPersistentIds: z349.string().array(),
|
|
11478
11539
|
overrides: DTOThemeOverride.array()
|
|
11479
11540
|
});
|
|
11480
|
-
var DTOThemeResponse =
|
|
11541
|
+
var DTOThemeResponse = z349.object({
|
|
11481
11542
|
theme: DTOTheme
|
|
11482
11543
|
});
|
|
11483
|
-
var DTOThemeListResponse =
|
|
11544
|
+
var DTOThemeListResponse = z349.object({
|
|
11484
11545
|
themes: DTOTheme.array()
|
|
11485
11546
|
});
|
|
11486
|
-
var DTOThemeCreatePayload =
|
|
11547
|
+
var DTOThemeCreatePayload = z349.object({
|
|
11487
11548
|
meta: ObjectMeta,
|
|
11488
|
-
persistentId:
|
|
11489
|
-
brandId:
|
|
11490
|
-
codeName:
|
|
11549
|
+
persistentId: z349.string(),
|
|
11550
|
+
brandId: z349.string(),
|
|
11551
|
+
codeName: z349.string(),
|
|
11491
11552
|
overrides: DTOThemeOverride.array()
|
|
11492
11553
|
});
|
|
11493
11554
|
|
|
11494
11555
|
// src/api/dto/trail-events/trail-events.ts
|
|
11495
|
-
import { z as
|
|
11496
|
-
var DTOTrailEventType =
|
|
11556
|
+
import { z as z350 } from "zod";
|
|
11557
|
+
var DTOTrailEventType = z350.enum([
|
|
11497
11558
|
"IterationCreated",
|
|
11498
11559
|
"IterationBookmarked",
|
|
11499
11560
|
"FeatureCreated",
|
|
@@ -11511,124 +11572,124 @@ var DTOTrailEventType = z349.enum([
|
|
|
11511
11572
|
"FeaturePublished",
|
|
11512
11573
|
"FeatureUnpublished"
|
|
11513
11574
|
]);
|
|
11514
|
-
var DTOTrailEventBase =
|
|
11515
|
-
id:
|
|
11516
|
-
projectId:
|
|
11517
|
-
userId:
|
|
11518
|
-
createdAt:
|
|
11519
|
-
updatedAt:
|
|
11520
|
-
});
|
|
11521
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
11522
|
-
iterationName:
|
|
11523
|
-
iterationId:
|
|
11524
|
-
featureId:
|
|
11525
|
-
});
|
|
11526
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
11527
|
-
iterationId:
|
|
11528
|
-
featureId:
|
|
11529
|
-
iterationName:
|
|
11530
|
-
});
|
|
11531
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
11532
|
-
iterationId:
|
|
11533
|
-
featureId:
|
|
11534
|
-
iterationName:
|
|
11535
|
-
});
|
|
11536
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
11537
|
-
featureId:
|
|
11538
|
-
name:
|
|
11539
|
-
description:
|
|
11540
|
-
});
|
|
11541
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
11542
|
-
featureId:
|
|
11543
|
-
name:
|
|
11544
|
-
});
|
|
11545
|
-
var DTOTrailEventFeatureArchivedPayload =
|
|
11546
|
-
featureId:
|
|
11547
|
-
name:
|
|
11548
|
-
});
|
|
11549
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
11550
|
-
documentId:
|
|
11551
|
-
title:
|
|
11552
|
-
sectionId:
|
|
11553
|
-
});
|
|
11554
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
11555
|
-
documentId:
|
|
11556
|
-
title:
|
|
11557
|
-
});
|
|
11558
|
-
var DTOTrailEventDocumentUpdatedPayload =
|
|
11559
|
-
documentId:
|
|
11560
|
-
title:
|
|
11561
|
-
sectionId:
|
|
11562
|
-
});
|
|
11563
|
-
var DTOTrailEventDocumentCommentSentPayload =
|
|
11564
|
-
documentId:
|
|
11565
|
-
title:
|
|
11566
|
-
sectionId:
|
|
11567
|
-
});
|
|
11568
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
11569
|
-
name:
|
|
11570
|
-
description:
|
|
11571
|
-
});
|
|
11572
|
-
var DTOTrailEventFeaturePublishedPayload =
|
|
11573
|
-
featureId:
|
|
11574
|
-
featureName:
|
|
11575
|
-
iterationId:
|
|
11576
|
-
iterationName:
|
|
11577
|
-
});
|
|
11578
|
-
var DTOTrailEventFeatureUnpublishedPayload =
|
|
11579
|
-
featureId:
|
|
11580
|
-
featureName:
|
|
11581
|
-
iterationId:
|
|
11582
|
-
iterationName:
|
|
11583
|
-
});
|
|
11584
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
11585
|
-
name:
|
|
11586
|
-
});
|
|
11587
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
11588
|
-
contextId:
|
|
11589
|
-
name:
|
|
11590
|
-
description:
|
|
11591
|
-
});
|
|
11592
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
11593
|
-
contextId:
|
|
11594
|
-
});
|
|
11595
|
-
var DTOTrailEventPayload =
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11575
|
+
var DTOTrailEventBase = z350.object({
|
|
11576
|
+
id: z350.string(),
|
|
11577
|
+
projectId: z350.string(),
|
|
11578
|
+
userId: z350.string(),
|
|
11579
|
+
createdAt: z350.coerce.date(),
|
|
11580
|
+
updatedAt: z350.coerce.date()
|
|
11581
|
+
});
|
|
11582
|
+
var DTOTrailEventIterationCreatedPayload = z350.object({
|
|
11583
|
+
iterationName: z350.string(),
|
|
11584
|
+
iterationId: z350.string().uuid(),
|
|
11585
|
+
featureId: z350.string().uuid()
|
|
11586
|
+
});
|
|
11587
|
+
var DTOTrailEventIterationBookmarkedPayload = z350.object({
|
|
11588
|
+
iterationId: z350.string().uuid(),
|
|
11589
|
+
featureId: z350.string().uuid(),
|
|
11590
|
+
iterationName: z350.string()
|
|
11591
|
+
});
|
|
11592
|
+
var DTOTrailEventIterationPromotedPayload = z350.object({
|
|
11593
|
+
iterationId: z350.string().uuid(),
|
|
11594
|
+
featureId: z350.string().uuid(),
|
|
11595
|
+
iterationName: z350.string()
|
|
11596
|
+
});
|
|
11597
|
+
var DTOTrailEventFeatureCreatedPayload = z350.object({
|
|
11598
|
+
featureId: z350.string().uuid(),
|
|
11599
|
+
name: z350.string(),
|
|
11600
|
+
description: z350.string().optional()
|
|
11601
|
+
});
|
|
11602
|
+
var DTOTrailEventFeatureDeletedPayload = z350.object({
|
|
11603
|
+
featureId: z350.string().uuid(),
|
|
11604
|
+
name: z350.string()
|
|
11605
|
+
});
|
|
11606
|
+
var DTOTrailEventFeatureArchivedPayload = z350.object({
|
|
11607
|
+
featureId: z350.string().uuid(),
|
|
11608
|
+
name: z350.string()
|
|
11609
|
+
});
|
|
11610
|
+
var DTOTrailEventDocumentCreatedPayload = z350.object({
|
|
11611
|
+
documentId: z350.string().uuid(),
|
|
11612
|
+
title: z350.string(),
|
|
11613
|
+
sectionId: z350.string().uuid().optional()
|
|
11614
|
+
});
|
|
11615
|
+
var DTOTrailEventDocumentDeletedPayload = z350.object({
|
|
11616
|
+
documentId: z350.string().uuid(),
|
|
11617
|
+
title: z350.string()
|
|
11618
|
+
});
|
|
11619
|
+
var DTOTrailEventDocumentUpdatedPayload = z350.object({
|
|
11620
|
+
documentId: z350.string().uuid(),
|
|
11621
|
+
title: z350.string(),
|
|
11622
|
+
sectionId: z350.string().uuid().optional()
|
|
11623
|
+
});
|
|
11624
|
+
var DTOTrailEventDocumentCommentSentPayload = z350.object({
|
|
11625
|
+
documentId: z350.string().uuid(),
|
|
11626
|
+
title: z350.string(),
|
|
11627
|
+
sectionId: z350.string().uuid().optional()
|
|
11628
|
+
});
|
|
11629
|
+
var DTOTrailEventProjectCreatedPayload = z350.object({
|
|
11630
|
+
name: z350.string(),
|
|
11631
|
+
description: z350.string().optional()
|
|
11632
|
+
});
|
|
11633
|
+
var DTOTrailEventFeaturePublishedPayload = z350.object({
|
|
11634
|
+
featureId: z350.string().uuid(),
|
|
11635
|
+
featureName: z350.string(),
|
|
11636
|
+
iterationId: z350.string().uuid().nullish(),
|
|
11637
|
+
iterationName: z350.string().nullish()
|
|
11638
|
+
});
|
|
11639
|
+
var DTOTrailEventFeatureUnpublishedPayload = z350.object({
|
|
11640
|
+
featureId: z350.string().uuid(),
|
|
11641
|
+
featureName: z350.string(),
|
|
11642
|
+
iterationId: z350.string().uuid().nullish(),
|
|
11643
|
+
iterationName: z350.string().nullish()
|
|
11644
|
+
});
|
|
11645
|
+
var DTOTrailEventProjectArchivedPayload = z350.object({
|
|
11646
|
+
name: z350.string()
|
|
11647
|
+
});
|
|
11648
|
+
var DTOTrailEventProjectContextCreatedPayload = z350.object({
|
|
11649
|
+
contextId: z350.number(),
|
|
11650
|
+
name: z350.string(),
|
|
11651
|
+
description: z350.string().optional()
|
|
11652
|
+
});
|
|
11653
|
+
var DTOTrailEventProjectContextArchivedPayload = z350.object({
|
|
11654
|
+
contextId: z350.number()
|
|
11655
|
+
});
|
|
11656
|
+
var DTOTrailEventPayload = z350.discriminatedUnion("type", [
|
|
11657
|
+
z350.object({ type: z350.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
11658
|
+
z350.object({ type: z350.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
11659
|
+
z350.object({ type: z350.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
11660
|
+
z350.object({ type: z350.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
11661
|
+
z350.object({ type: z350.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
|
|
11662
|
+
z350.object({ type: z350.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
11663
|
+
z350.object({ type: z350.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
11664
|
+
z350.object({ type: z350.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
11665
|
+
z350.object({ type: z350.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
|
|
11666
|
+
z350.object({ type: z350.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
11667
|
+
z350.object({ type: z350.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
11668
|
+
z350.object({ type: z350.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
11669
|
+
z350.object({ type: z350.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
11670
|
+
z350.object({ type: z350.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
|
|
11671
|
+
z350.object({ type: z350.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
|
|
11672
|
+
z350.object({ type: z350.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
|
|
11612
11673
|
]);
|
|
11613
11674
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
11614
11675
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
11615
|
-
|
|
11616
|
-
projectName:
|
|
11617
|
-
userName:
|
|
11676
|
+
z350.object({
|
|
11677
|
+
projectName: z350.string().optional(),
|
|
11678
|
+
userName: z350.string().optional()
|
|
11618
11679
|
})
|
|
11619
11680
|
);
|
|
11620
|
-
var DTOTrailEventListInput =
|
|
11621
|
-
projectId:
|
|
11681
|
+
var DTOTrailEventListInput = z350.object({
|
|
11682
|
+
projectId: z350.string()
|
|
11622
11683
|
});
|
|
11623
|
-
var DTOTrailEventListResponse =
|
|
11624
|
-
events:
|
|
11684
|
+
var DTOTrailEventListResponse = z350.object({
|
|
11685
|
+
events: z350.array(DTOTrailEventWithDetails)
|
|
11625
11686
|
});
|
|
11626
11687
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
11627
11688
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
11628
11689
|
);
|
|
11629
|
-
var DTOTrailEventClientCreate =
|
|
11630
|
-
|
|
11631
|
-
|
|
11690
|
+
var DTOTrailEventClientCreate = z350.discriminatedUnion("type", [
|
|
11691
|
+
z350.object({ type: z350.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
11692
|
+
z350.object({ type: z350.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
11632
11693
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
11633
11694
|
|
|
11634
11695
|
// src/api/endpoints/codegen/exporters.ts
|
|
@@ -11673,13 +11734,13 @@ var ExportersEndpoint = class {
|
|
|
11673
11734
|
};
|
|
11674
11735
|
|
|
11675
11736
|
// src/api/endpoints/codegen/jobs.ts
|
|
11676
|
-
import { z as
|
|
11737
|
+
import { z as z351 } from "zod";
|
|
11677
11738
|
var ExporterJobsEndpoint = class {
|
|
11678
11739
|
constructor(requestExecutor) {
|
|
11679
11740
|
this.requestExecutor = requestExecutor;
|
|
11680
11741
|
}
|
|
11681
11742
|
list(workspaceId) {
|
|
11682
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
11743
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z351.any());
|
|
11683
11744
|
}
|
|
11684
11745
|
get(workspaceId, jobId) {
|
|
11685
11746
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -11737,7 +11798,7 @@ var CodegenEndpoint = class {
|
|
|
11737
11798
|
};
|
|
11738
11799
|
|
|
11739
11800
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
11740
|
-
import { z as
|
|
11801
|
+
import { z as z352 } from "zod";
|
|
11741
11802
|
var BrandsEndpoint = class {
|
|
11742
11803
|
constructor(requestExecutor) {
|
|
11743
11804
|
this.requestExecutor = requestExecutor;
|
|
@@ -11771,7 +11832,7 @@ var BrandsEndpoint = class {
|
|
|
11771
11832
|
});
|
|
11772
11833
|
}
|
|
11773
11834
|
delete(dsId, vId, brandId) {
|
|
11774
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
11835
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z352.any(), {
|
|
11775
11836
|
method: "DELETE"
|
|
11776
11837
|
});
|
|
11777
11838
|
}
|
|
@@ -12047,7 +12108,7 @@ var ImportJobsEndpoint = class {
|
|
|
12047
12108
|
};
|
|
12048
12109
|
|
|
12049
12110
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
12050
|
-
import { z as
|
|
12111
|
+
import { z as z353 } from "zod";
|
|
12051
12112
|
var OverridesEndpoint = class {
|
|
12052
12113
|
constructor(requestExecutor) {
|
|
12053
12114
|
this.requestExecutor = requestExecutor;
|
|
@@ -12055,7 +12116,7 @@ var OverridesEndpoint = class {
|
|
|
12055
12116
|
create(dsId, versionId, themeId, body) {
|
|
12056
12117
|
return this.requestExecutor.json(
|
|
12057
12118
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
12058
|
-
|
|
12119
|
+
z353.any(),
|
|
12059
12120
|
{
|
|
12060
12121
|
method: "POST",
|
|
12061
12122
|
body
|
|
@@ -12065,7 +12126,7 @@ var OverridesEndpoint = class {
|
|
|
12065
12126
|
};
|
|
12066
12127
|
|
|
12067
12128
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
12068
|
-
import { z as
|
|
12129
|
+
import { z as z354 } from "zod";
|
|
12069
12130
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
12070
12131
|
constructor(requestExecutor) {
|
|
12071
12132
|
this.requestExecutor = requestExecutor;
|
|
@@ -12093,7 +12154,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
12093
12154
|
delete(designSystemId, versionId, defId) {
|
|
12094
12155
|
return this.requestExecutor.json(
|
|
12095
12156
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
12096
|
-
|
|
12157
|
+
z354.any(),
|
|
12097
12158
|
{ method: "DELETE" }
|
|
12098
12159
|
);
|
|
12099
12160
|
}
|
|
@@ -12132,7 +12193,7 @@ var VersionStatsEndpoint = class {
|
|
|
12132
12193
|
};
|
|
12133
12194
|
|
|
12134
12195
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
12135
|
-
import { z as
|
|
12196
|
+
import { z as z355 } from "zod";
|
|
12136
12197
|
var ThemesEndpoint = class {
|
|
12137
12198
|
constructor(requestExecutor) {
|
|
12138
12199
|
this.requestExecutor = requestExecutor;
|
|
@@ -12155,7 +12216,7 @@ var ThemesEndpoint = class {
|
|
|
12155
12216
|
});
|
|
12156
12217
|
}
|
|
12157
12218
|
delete(dsId, versionId, themeId) {
|
|
12158
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
12219
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z355.any(), {
|
|
12159
12220
|
method: "DELETE"
|
|
12160
12221
|
});
|
|
12161
12222
|
}
|
|
@@ -12328,7 +12389,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
12328
12389
|
};
|
|
12329
12390
|
|
|
12330
12391
|
// src/api/endpoints/design-system/design-systems.ts
|
|
12331
|
-
import { z as
|
|
12392
|
+
import { z as z358 } from "zod";
|
|
12332
12393
|
|
|
12333
12394
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
12334
12395
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -12405,7 +12466,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
12405
12466
|
};
|
|
12406
12467
|
|
|
12407
12468
|
// src/api/endpoints/design-system/sources.ts
|
|
12408
|
-
import { z as
|
|
12469
|
+
import { z as z356 } from "zod";
|
|
12409
12470
|
var DesignSystemSourcesEndpoint = class {
|
|
12410
12471
|
constructor(requestExecutor) {
|
|
12411
12472
|
this.requestExecutor = requestExecutor;
|
|
@@ -12423,7 +12484,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
12423
12484
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
12424
12485
|
}
|
|
12425
12486
|
delete(dsId, sourceId) {
|
|
12426
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
12487
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z356.any(), { method: "DELETE" });
|
|
12427
12488
|
}
|
|
12428
12489
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
12429
12490
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -12466,7 +12527,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
12466
12527
|
};
|
|
12467
12528
|
|
|
12468
12529
|
// src/api/endpoints/design-system/storybook.ts
|
|
12469
|
-
import { z as
|
|
12530
|
+
import { z as z357 } from "zod";
|
|
12470
12531
|
var StorybookEntriesEndpoint = class {
|
|
12471
12532
|
constructor(requestExecutor) {
|
|
12472
12533
|
this.requestExecutor = requestExecutor;
|
|
@@ -12484,7 +12545,7 @@ var StorybookEntriesEndpoint = class {
|
|
|
12484
12545
|
);
|
|
12485
12546
|
}
|
|
12486
12547
|
delete(dsId, entryId) {
|
|
12487
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
12548
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z357.any(), {
|
|
12488
12549
|
method: "DELETE"
|
|
12489
12550
|
});
|
|
12490
12551
|
}
|
|
@@ -12526,7 +12587,7 @@ var DesignSystemsEndpoint = class {
|
|
|
12526
12587
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
12527
12588
|
}
|
|
12528
12589
|
delete(dsId) {
|
|
12529
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
12590
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z358.any(), { method: "DELETE" });
|
|
12530
12591
|
}
|
|
12531
12592
|
update(dsId, body) {
|
|
12532
12593
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -13000,7 +13061,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
13000
13061
|
};
|
|
13001
13062
|
|
|
13002
13063
|
// src/api/endpoints/forge/projects.ts
|
|
13003
|
-
import
|
|
13064
|
+
import z359 from "zod";
|
|
13004
13065
|
var ForgeProjectsEndpoint = class {
|
|
13005
13066
|
constructor(requestExecutor) {
|
|
13006
13067
|
this.requestExecutor = requestExecutor;
|
|
@@ -13037,7 +13098,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
13037
13098
|
);
|
|
13038
13099
|
}
|
|
13039
13100
|
action(workspaceId, projectId, body) {
|
|
13040
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
13101
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z359.any(), {
|
|
13041
13102
|
body,
|
|
13042
13103
|
method: "POST"
|
|
13043
13104
|
});
|
|
@@ -13209,7 +13270,7 @@ var WorkspaceBillingEndpoint = class {
|
|
|
13209
13270
|
};
|
|
13210
13271
|
|
|
13211
13272
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
13212
|
-
import { z as
|
|
13273
|
+
import { z as z360 } from "zod";
|
|
13213
13274
|
var WorkspaceChatThreadsEndpoint = class {
|
|
13214
13275
|
constructor(requestExecutor) {
|
|
13215
13276
|
this.requestExecutor = requestExecutor;
|
|
@@ -13241,7 +13302,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
13241
13302
|
);
|
|
13242
13303
|
}
|
|
13243
13304
|
delete(workspaceId, threadId) {
|
|
13244
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
13305
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z360.any(), {
|
|
13245
13306
|
method: "DELETE"
|
|
13246
13307
|
});
|
|
13247
13308
|
}
|
|
@@ -13273,7 +13334,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
13273
13334
|
);
|
|
13274
13335
|
}
|
|
13275
13336
|
score(workspaceId, threadId, body) {
|
|
13276
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
13337
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z360.any(), {
|
|
13277
13338
|
method: "POST",
|
|
13278
13339
|
body
|
|
13279
13340
|
});
|
|
@@ -13281,7 +13342,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
13281
13342
|
};
|
|
13282
13343
|
|
|
13283
13344
|
// src/api/endpoints/workspaces/integrations.ts
|
|
13284
|
-
import { z as
|
|
13345
|
+
import { z as z361 } from "zod";
|
|
13285
13346
|
var WorkspaceIntegrationsEndpoint = class {
|
|
13286
13347
|
constructor(requestExecutor) {
|
|
13287
13348
|
this.requestExecutor = requestExecutor;
|
|
@@ -13290,7 +13351,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
13290
13351
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
13291
13352
|
}
|
|
13292
13353
|
delete(wsId, iId) {
|
|
13293
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
13354
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z361.unknown(), { method: "DELETE" });
|
|
13294
13355
|
}
|
|
13295
13356
|
};
|
|
13296
13357
|
|
|
@@ -13322,7 +13383,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
13322
13383
|
};
|
|
13323
13384
|
|
|
13324
13385
|
// src/api/endpoints/workspaces/members.ts
|
|
13325
|
-
import { z as
|
|
13386
|
+
import { z as z362 } from "zod";
|
|
13326
13387
|
var WorkspaceMembersEndpoint = class {
|
|
13327
13388
|
constructor(requestExecutor) {
|
|
13328
13389
|
this.requestExecutor = requestExecutor;
|
|
@@ -13339,7 +13400,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
13339
13400
|
});
|
|
13340
13401
|
}
|
|
13341
13402
|
invite(workspaceId, body) {
|
|
13342
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
13403
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z362.any(), { method: "POST", body });
|
|
13343
13404
|
}
|
|
13344
13405
|
delete(workspaceId, userId) {
|
|
13345
13406
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -13368,7 +13429,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
13368
13429
|
};
|
|
13369
13430
|
|
|
13370
13431
|
// src/api/endpoints/workspaces/subscription.ts
|
|
13371
|
-
import { z as
|
|
13432
|
+
import { z as z363 } from "zod";
|
|
13372
13433
|
var WorkspaceSubscriptionEndpoint = class {
|
|
13373
13434
|
constructor(requestExecutor) {
|
|
13374
13435
|
this.requestExecutor = requestExecutor;
|
|
@@ -13379,7 +13440,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
13379
13440
|
});
|
|
13380
13441
|
}
|
|
13381
13442
|
update(workspaceId, body) {
|
|
13382
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
13443
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z363.any(), {
|
|
13383
13444
|
method: "PUT",
|
|
13384
13445
|
body
|
|
13385
13446
|
});
|
|
@@ -13397,7 +13458,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
13397
13458
|
};
|
|
13398
13459
|
|
|
13399
13460
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
13400
|
-
import { z as
|
|
13461
|
+
import { z as z364 } from "zod";
|
|
13401
13462
|
var WorkspacesEndpoint = class {
|
|
13402
13463
|
constructor(requestExecutor) {
|
|
13403
13464
|
this.requestExecutor = requestExecutor;
|
|
@@ -13433,7 +13494,7 @@ var WorkspacesEndpoint = class {
|
|
|
13433
13494
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
13434
13495
|
}
|
|
13435
13496
|
delete(workspaceId) {
|
|
13436
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
13497
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z364.any(), { method: "DELETE" });
|
|
13437
13498
|
}
|
|
13438
13499
|
getPortalSettings(workspaceId) {
|
|
13439
13500
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -13487,7 +13548,7 @@ var LiveblocksEndpoint = class {
|
|
|
13487
13548
|
};
|
|
13488
13549
|
|
|
13489
13550
|
// src/api/endpoints/storybook-sites.ts
|
|
13490
|
-
import
|
|
13551
|
+
import z365 from "zod";
|
|
13491
13552
|
var StorybookSitesEndpoint = class {
|
|
13492
13553
|
constructor(requestExecutor) {
|
|
13493
13554
|
this.requestExecutor = requestExecutor;
|
|
@@ -13498,7 +13559,7 @@ var StorybookSitesEndpoint = class {
|
|
|
13498
13559
|
});
|
|
13499
13560
|
}
|
|
13500
13561
|
deleteSite(siteId) {
|
|
13501
|
-
return this.requestExecutor.json(`/storybook/sites/${siteId}`,
|
|
13562
|
+
return this.requestExecutor.json(`/storybook/sites/${siteId}`, z365.unknown(), {
|
|
13502
13563
|
method: "DELETE"
|
|
13503
13564
|
});
|
|
13504
13565
|
}
|
|
@@ -13616,9 +13677,9 @@ ${bodyText}`,
|
|
|
13616
13677
|
|
|
13617
13678
|
// src/api/transport/request-executor.ts
|
|
13618
13679
|
import fetch from "node-fetch";
|
|
13619
|
-
import { z as
|
|
13620
|
-
var ResponseWrapper =
|
|
13621
|
-
result:
|
|
13680
|
+
import { z as z366 } from "zod";
|
|
13681
|
+
var ResponseWrapper = z366.object({
|
|
13682
|
+
result: z366.record(z366.any())
|
|
13622
13683
|
});
|
|
13623
13684
|
var RequestExecutor = class {
|
|
13624
13685
|
constructor(testServerConfig) {
|
|
@@ -13710,25 +13771,25 @@ var SupernovaApiClient = class {
|
|
|
13710
13771
|
};
|
|
13711
13772
|
|
|
13712
13773
|
// src/events/design-system.ts
|
|
13713
|
-
import { z as
|
|
13714
|
-
var DTOEventFigmaNodesRendered =
|
|
13715
|
-
type:
|
|
13716
|
-
designSystemId:
|
|
13717
|
-
versionId:
|
|
13718
|
-
figmaNodePersistentIds:
|
|
13719
|
-
});
|
|
13720
|
-
var DTOEventDataSourcesImported =
|
|
13721
|
-
type:
|
|
13722
|
-
designSystemId:
|
|
13723
|
-
versionId:
|
|
13724
|
-
importJobId:
|
|
13774
|
+
import { z as z367 } from "zod";
|
|
13775
|
+
var DTOEventFigmaNodesRendered = z367.object({
|
|
13776
|
+
type: z367.literal("DesignSystem.FigmaNodesRendered"),
|
|
13777
|
+
designSystemId: z367.string(),
|
|
13778
|
+
versionId: z367.string(),
|
|
13779
|
+
figmaNodePersistentIds: z367.string().array()
|
|
13780
|
+
});
|
|
13781
|
+
var DTOEventDataSourcesImported = z367.object({
|
|
13782
|
+
type: z367.literal("DesignSystem.ImportJobFinished"),
|
|
13783
|
+
designSystemId: z367.string(),
|
|
13784
|
+
versionId: z367.string(),
|
|
13785
|
+
importJobId: z367.string(),
|
|
13725
13786
|
dataSourceType: DataSourceRemoteType,
|
|
13726
|
-
dataSourceIds:
|
|
13787
|
+
dataSourceIds: z367.string().array()
|
|
13727
13788
|
});
|
|
13728
13789
|
|
|
13729
13790
|
// src/events/event.ts
|
|
13730
|
-
import { z as
|
|
13731
|
-
var DTOEvent =
|
|
13791
|
+
import { z as z368 } from "zod";
|
|
13792
|
+
var DTOEvent = z368.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
13732
13793
|
|
|
13733
13794
|
// src/sync/docs-local-action-executor.ts
|
|
13734
13795
|
function applyActionsLocally(input) {
|
|
@@ -14024,7 +14085,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
14024
14085
|
import PQueue from "p-queue";
|
|
14025
14086
|
|
|
14026
14087
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
14027
|
-
import { z as
|
|
14088
|
+
import { z as z369 } from "zod";
|
|
14028
14089
|
|
|
14029
14090
|
// src/yjs/version-room/base.ts
|
|
14030
14091
|
var VersionRoomBaseYDoc = class {
|
|
@@ -14574,24 +14635,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
14574
14635
|
};
|
|
14575
14636
|
|
|
14576
14637
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
14577
|
-
var DocumentationHierarchySettings =
|
|
14578
|
-
routingVersion:
|
|
14579
|
-
isDraftFeatureAdopted:
|
|
14580
|
-
isApprovalFeatureEnabled:
|
|
14581
|
-
approvalRequiredForPublishing:
|
|
14638
|
+
var DocumentationHierarchySettings = z369.object({
|
|
14639
|
+
routingVersion: z369.string(),
|
|
14640
|
+
isDraftFeatureAdopted: z369.boolean(),
|
|
14641
|
+
isApprovalFeatureEnabled: z369.boolean(),
|
|
14642
|
+
approvalRequiredForPublishing: z369.boolean()
|
|
14582
14643
|
});
|
|
14583
14644
|
function yjsToDocumentationHierarchy(doc) {
|
|
14584
14645
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
14585
14646
|
}
|
|
14586
14647
|
|
|
14587
14648
|
// src/yjs/design-system-content/item-configuration.ts
|
|
14588
|
-
import { z as
|
|
14589
|
-
var DTODocumentationPageRoomHeaderData =
|
|
14590
|
-
title:
|
|
14649
|
+
import { z as z370 } from "zod";
|
|
14650
|
+
var DTODocumentationPageRoomHeaderData = z370.object({
|
|
14651
|
+
title: z370.string(),
|
|
14591
14652
|
configuration: DTODocumentationItemConfigurationV2
|
|
14592
14653
|
});
|
|
14593
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
14594
|
-
title:
|
|
14654
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z370.object({
|
|
14655
|
+
title: z370.string().optional(),
|
|
14595
14656
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
14596
14657
|
});
|
|
14597
14658
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -14626,9 +14687,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
14626
14687
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
14627
14688
|
|
|
14628
14689
|
// src/yjs/docs-editor/model/page.ts
|
|
14629
|
-
import { z as
|
|
14630
|
-
var DocumentationPageEditorModel =
|
|
14631
|
-
blocks:
|
|
14690
|
+
import { z as z371 } from "zod";
|
|
14691
|
+
var DocumentationPageEditorModel = z371.object({
|
|
14692
|
+
blocks: z371.array(DocumentationPageContentItem)
|
|
14632
14693
|
});
|
|
14633
14694
|
|
|
14634
14695
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -18305,7 +18366,7 @@ var blocks = [
|
|
|
18305
18366
|
|
|
18306
18367
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
18307
18368
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
18308
|
-
import { z as
|
|
18369
|
+
import { z as z372 } from "zod";
|
|
18309
18370
|
function yDocToPage(yDoc, definitions) {
|
|
18310
18371
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
18311
18372
|
}
|
|
@@ -18381,7 +18442,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
18381
18442
|
if (!id) return null;
|
|
18382
18443
|
return {
|
|
18383
18444
|
id,
|
|
18384
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
18445
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z372.string()) ?? "",
|
|
18385
18446
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
18386
18447
|
};
|
|
18387
18448
|
}
|
|
@@ -18415,7 +18476,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
18415
18476
|
});
|
|
18416
18477
|
}
|
|
18417
18478
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
18418
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
18479
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z372.string());
|
|
18419
18480
|
if (!definitionId) {
|
|
18420
18481
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
18421
18482
|
return [];
|
|
@@ -18456,7 +18517,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
18456
18517
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18457
18518
|
if (!id) return null;
|
|
18458
18519
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
18459
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
18520
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z372.string().optional()));
|
|
18460
18521
|
return {
|
|
18461
18522
|
id,
|
|
18462
18523
|
type: "Block",
|
|
@@ -18579,9 +18640,9 @@ function parseRichTextAttribute(mark) {
|
|
|
18579
18640
|
return null;
|
|
18580
18641
|
}
|
|
18581
18642
|
function parseProsemirrorLink(mark) {
|
|
18582
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
18643
|
+
const href = getProsemirrorAttribute(mark, "href", z372.string().optional());
|
|
18583
18644
|
if (!href) return null;
|
|
18584
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
18645
|
+
const target = getProsemirrorAttribute(mark, "target", z372.string().optional());
|
|
18585
18646
|
const openInNewTab = target === "_blank";
|
|
18586
18647
|
if (href.startsWith("@")) {
|
|
18587
18648
|
return {
|
|
@@ -18600,9 +18661,9 @@ function parseProsemirrorLink(mark) {
|
|
|
18600
18661
|
}
|
|
18601
18662
|
}
|
|
18602
18663
|
function parseProsemirrorCommentHighlight(mark) {
|
|
18603
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
18664
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z372.string().optional());
|
|
18604
18665
|
if (!highlightId) return null;
|
|
18605
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
18666
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z372.boolean().optional()) ?? false;
|
|
18606
18667
|
return {
|
|
18607
18668
|
type: "Comment",
|
|
18608
18669
|
commentHighlightId: highlightId,
|
|
@@ -18613,7 +18674,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18613
18674
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18614
18675
|
if (!id) return null;
|
|
18615
18676
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
18616
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
18677
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z372.boolean().optional()) !== false;
|
|
18617
18678
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
18618
18679
|
if (!tableChild) {
|
|
18619
18680
|
return emptyTable(id, variantId, 0);
|
|
@@ -18659,9 +18720,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18659
18720
|
function parseAsTableCell(prosemirrorNode) {
|
|
18660
18721
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18661
18722
|
if (!id) return null;
|
|
18662
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
18723
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z372.string().optional());
|
|
18663
18724
|
let columnWidth;
|
|
18664
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
18725
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z372.array(z372.number()).nullish());
|
|
18665
18726
|
if (columnWidthArray) {
|
|
18666
18727
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
18667
18728
|
}
|
|
@@ -18697,7 +18758,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
18697
18758
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
18698
18759
|
};
|
|
18699
18760
|
case "image":
|
|
18700
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18761
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z372.string());
|
|
18701
18762
|
if (!items) return null;
|
|
18702
18763
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
18703
18764
|
if (!parsedItems.success) return null;
|
|
@@ -18811,7 +18872,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
18811
18872
|
);
|
|
18812
18873
|
}
|
|
18813
18874
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
18814
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18875
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z372.string());
|
|
18815
18876
|
if (!itemsString) return null;
|
|
18816
18877
|
const itemsJson = JSON.parse(itemsString);
|
|
18817
18878
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -18822,18 +18883,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
18822
18883
|
}
|
|
18823
18884
|
function parseAppearance(prosemirrorNode) {
|
|
18824
18885
|
let appearance = {};
|
|
18825
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
18886
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z372.string().optional());
|
|
18826
18887
|
if (rawAppearanceString) {
|
|
18827
18888
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
18828
18889
|
if (parsedAppearance.success) {
|
|
18829
18890
|
appearance = parsedAppearance.data;
|
|
18830
18891
|
}
|
|
18831
18892
|
}
|
|
18832
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
18893
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z372.number().optional());
|
|
18833
18894
|
if (columns) {
|
|
18834
18895
|
appearance.numberOfColumns = columns;
|
|
18835
18896
|
}
|
|
18836
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
18897
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z372.string().optional());
|
|
18837
18898
|
if (backgroundColor) {
|
|
18838
18899
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
18839
18900
|
if (parsedColor.success) {
|
|
@@ -18934,12 +18995,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
18934
18995
|
}
|
|
18935
18996
|
}
|
|
18936
18997
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
18937
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
18998
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z372.string());
|
|
18938
18999
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
18939
19000
|
return id;
|
|
18940
19001
|
}
|
|
18941
19002
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
18942
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
19003
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z372.string()));
|
|
18943
19004
|
}
|
|
18944
19005
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
18945
19006
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -20448,6 +20509,11 @@ export {
|
|
|
20448
20509
|
DTOForgeFeatureRoom,
|
|
20449
20510
|
DTOForgeFeatureRoomResponse,
|
|
20450
20511
|
DTOForgeFigmaArtifact,
|
|
20512
|
+
DTOForgeFigmaNode,
|
|
20513
|
+
DTOForgeFigmaNodeCreateRequest,
|
|
20514
|
+
DTOForgeFigmaNodeOrigin,
|
|
20515
|
+
DTOForgeFigmaNodeResponse,
|
|
20516
|
+
DTOForgeFigmaNodeState,
|
|
20451
20517
|
DTOForgeFileArtifact,
|
|
20452
20518
|
DTOForgeIconSet,
|
|
20453
20519
|
DTOForgeIconSetTypeV2,
|