@supernova-studio/client 1.42.2 → 1.42.4
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 +708 -576
- package/dist/index.d.ts +708 -576
- package/dist/index.js +90 -91
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +90 -91
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5809,6 +5809,9 @@ var PageScreenshotInput = z214.object({
|
|
|
5809
5809
|
imageSize: z214.object({
|
|
5810
5810
|
width: z214.number().positive(),
|
|
5811
5811
|
height: z214.number().positive()
|
|
5812
|
+
}).optional(),
|
|
5813
|
+
authorization: z214.object({
|
|
5814
|
+
supernovaToken: z214.string().optional()
|
|
5812
5815
|
}).optional()
|
|
5813
5816
|
});
|
|
5814
5817
|
var PageScreenshotOutput = z214.discriminatedUnion("success", [
|
|
@@ -9542,15 +9545,10 @@ var DTOFeatureEventReactionsDeleted = z313.object({
|
|
|
9542
9545
|
type: z313.literal("ReactionsDeleted"),
|
|
9543
9546
|
data: DTOFeatureMessageReaction
|
|
9544
9547
|
});
|
|
9545
|
-
var DTOFeatureEventAgentResponseFinished = z313.object({
|
|
9546
|
-
type: z313.literal("AgentResponseFinished"),
|
|
9547
|
-
data: DTOFeatureMessage
|
|
9548
|
-
});
|
|
9549
9548
|
var DTOFeatureEvent = z313.discriminatedUnion("type", [
|
|
9550
9549
|
DTOFeatureEventMessagesSent,
|
|
9551
9550
|
DTOFeatureEventReactionsSent,
|
|
9552
|
-
DTOFeatureEventReactionsDeleted
|
|
9553
|
-
DTOFeatureEventAgentResponseFinished
|
|
9551
|
+
DTOFeatureEventReactionsDeleted
|
|
9554
9552
|
]);
|
|
9555
9553
|
|
|
9556
9554
|
// src/api/dto/forge/feature-room.ts
|
|
@@ -9718,7 +9716,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9718
9716
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
9719
9717
|
});
|
|
9720
9718
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9721
|
-
messageId: Id
|
|
9719
|
+
messageId: Id,
|
|
9720
|
+
agentMessageBody: z317.string().optional()
|
|
9722
9721
|
});
|
|
9723
9722
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9724
9723
|
id: true
|
|
@@ -9848,7 +9847,7 @@ var DTOForgeProjectFeatureCreateInput = z320.object({
|
|
|
9848
9847
|
description: z320.string(),
|
|
9849
9848
|
sectionId: Id.optional(),
|
|
9850
9849
|
afterFeatureId: Id.nullable().optional(),
|
|
9851
|
-
initialMessage:
|
|
9850
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
9852
9851
|
});
|
|
9853
9852
|
var DTOForgeProjectFeatureUpdateInput = z320.object({
|
|
9854
9853
|
id: Id,
|
|
@@ -11667,25 +11666,6 @@ var DesignSystemsEndpoint = class {
|
|
|
11667
11666
|
}
|
|
11668
11667
|
};
|
|
11669
11668
|
|
|
11670
|
-
// src/api/endpoints/files.ts
|
|
11671
|
-
var FilesEndpoint = class {
|
|
11672
|
-
constructor(requestExecutor) {
|
|
11673
|
-
this.requestExecutor = requestExecutor;
|
|
11674
|
-
}
|
|
11675
|
-
upload(body) {
|
|
11676
|
-
return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
|
|
11677
|
-
method: "POST",
|
|
11678
|
-
body
|
|
11679
|
-
});
|
|
11680
|
-
}
|
|
11681
|
-
finalizeUpload(body) {
|
|
11682
|
-
return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
|
|
11683
|
-
method: "POST",
|
|
11684
|
-
body
|
|
11685
|
-
});
|
|
11686
|
-
}
|
|
11687
|
-
};
|
|
11688
|
-
|
|
11689
11669
|
// src/api/endpoints/forge/agents.ts
|
|
11690
11670
|
var ForgeAgentsEndpoint = class {
|
|
11691
11671
|
constructor(requestExecutor) {
|
|
@@ -12172,41 +12152,6 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12172
12152
|
}
|
|
12173
12153
|
};
|
|
12174
12154
|
|
|
12175
|
-
// src/api/endpoints/liveblocks.ts
|
|
12176
|
-
var LiveblocksEndpoint = class {
|
|
12177
|
-
constructor(requestExecutor) {
|
|
12178
|
-
this.requestExecutor = requestExecutor;
|
|
12179
|
-
}
|
|
12180
|
-
auth(body) {
|
|
12181
|
-
return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
|
|
12182
|
-
method: "POST",
|
|
12183
|
-
body
|
|
12184
|
-
});
|
|
12185
|
-
}
|
|
12186
|
-
};
|
|
12187
|
-
|
|
12188
|
-
// src/api/endpoints/users.ts
|
|
12189
|
-
var UsersEndpoint = class {
|
|
12190
|
-
constructor(requestExecutor) {
|
|
12191
|
-
this.requestExecutor = requestExecutor;
|
|
12192
|
-
}
|
|
12193
|
-
getMe() {
|
|
12194
|
-
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
12195
|
-
}
|
|
12196
|
-
listWorkspaces(uid) {
|
|
12197
|
-
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
12198
|
-
}
|
|
12199
|
-
delete(uid) {
|
|
12200
|
-
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
12201
|
-
}
|
|
12202
|
-
updateProfile(uid, body) {
|
|
12203
|
-
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
12204
|
-
method: "PUT",
|
|
12205
|
-
body
|
|
12206
|
-
});
|
|
12207
|
-
}
|
|
12208
|
-
};
|
|
12209
|
-
|
|
12210
12155
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12211
12156
|
import { z as z348 } from "zod";
|
|
12212
12157
|
var WorkspaceChatThreadsEndpoint = class {
|
|
@@ -12423,6 +12368,88 @@ var WorkspacesEndpoint = class {
|
|
|
12423
12368
|
}
|
|
12424
12369
|
};
|
|
12425
12370
|
|
|
12371
|
+
// src/api/endpoints/files.ts
|
|
12372
|
+
var FilesEndpoint = class {
|
|
12373
|
+
constructor(requestExecutor) {
|
|
12374
|
+
this.requestExecutor = requestExecutor;
|
|
12375
|
+
}
|
|
12376
|
+
upload(body) {
|
|
12377
|
+
return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
|
|
12378
|
+
method: "POST",
|
|
12379
|
+
body
|
|
12380
|
+
});
|
|
12381
|
+
}
|
|
12382
|
+
finalizeUpload(body) {
|
|
12383
|
+
return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
|
|
12384
|
+
method: "POST",
|
|
12385
|
+
body
|
|
12386
|
+
});
|
|
12387
|
+
}
|
|
12388
|
+
};
|
|
12389
|
+
|
|
12390
|
+
// src/api/endpoints/liveblocks.ts
|
|
12391
|
+
var LiveblocksEndpoint = class {
|
|
12392
|
+
constructor(requestExecutor) {
|
|
12393
|
+
this.requestExecutor = requestExecutor;
|
|
12394
|
+
}
|
|
12395
|
+
auth(body) {
|
|
12396
|
+
return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
|
|
12397
|
+
method: "POST",
|
|
12398
|
+
body
|
|
12399
|
+
});
|
|
12400
|
+
}
|
|
12401
|
+
};
|
|
12402
|
+
|
|
12403
|
+
// src/api/endpoints/threads.ts
|
|
12404
|
+
var ThreadsEndpoint = class {
|
|
12405
|
+
constructor(requestExecutor) {
|
|
12406
|
+
this.requestExecutor = requestExecutor;
|
|
12407
|
+
}
|
|
12408
|
+
listMessages(threadId) {
|
|
12409
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
|
|
12410
|
+
}
|
|
12411
|
+
postMessage(threadId, body) {
|
|
12412
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
|
|
12413
|
+
method: "POST",
|
|
12414
|
+
body
|
|
12415
|
+
});
|
|
12416
|
+
}
|
|
12417
|
+
postReaction(threadId, body) {
|
|
12418
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
|
|
12419
|
+
method: "POST",
|
|
12420
|
+
body
|
|
12421
|
+
});
|
|
12422
|
+
}
|
|
12423
|
+
deleteReaction(threadId, body) {
|
|
12424
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
|
|
12425
|
+
method: "DELETE",
|
|
12426
|
+
body
|
|
12427
|
+
});
|
|
12428
|
+
}
|
|
12429
|
+
};
|
|
12430
|
+
|
|
12431
|
+
// src/api/endpoints/users.ts
|
|
12432
|
+
var UsersEndpoint = class {
|
|
12433
|
+
constructor(requestExecutor) {
|
|
12434
|
+
this.requestExecutor = requestExecutor;
|
|
12435
|
+
}
|
|
12436
|
+
getMe() {
|
|
12437
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
12438
|
+
}
|
|
12439
|
+
listWorkspaces(uid) {
|
|
12440
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
12441
|
+
}
|
|
12442
|
+
delete(uid) {
|
|
12443
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
12444
|
+
}
|
|
12445
|
+
updateProfile(uid, body) {
|
|
12446
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
12447
|
+
method: "PUT",
|
|
12448
|
+
body
|
|
12449
|
+
});
|
|
12450
|
+
}
|
|
12451
|
+
};
|
|
12452
|
+
|
|
12426
12453
|
// src/api/transport/request-executor-error.ts
|
|
12427
12454
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
12428
12455
|
constructor(type, message, errorCode, serverErrorType, cause) {
|
|
@@ -12533,34 +12560,6 @@ var RequestExecutor = class {
|
|
|
12533
12560
|
}
|
|
12534
12561
|
};
|
|
12535
12562
|
|
|
12536
|
-
// src/api/endpoints/threads.ts
|
|
12537
|
-
var ThreadsEndpoint = class {
|
|
12538
|
-
constructor(requestExecutor) {
|
|
12539
|
-
this.requestExecutor = requestExecutor;
|
|
12540
|
-
}
|
|
12541
|
-
listMessages(threadId) {
|
|
12542
|
-
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
|
|
12543
|
-
}
|
|
12544
|
-
postMessage(threadId, body) {
|
|
12545
|
-
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
|
|
12546
|
-
method: "POST",
|
|
12547
|
-
body
|
|
12548
|
-
});
|
|
12549
|
-
}
|
|
12550
|
-
postReaction(threadId, body) {
|
|
12551
|
-
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
|
|
12552
|
-
method: "POST",
|
|
12553
|
-
body
|
|
12554
|
-
});
|
|
12555
|
-
}
|
|
12556
|
-
deleteReaction(threadId, body) {
|
|
12557
|
-
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
|
|
12558
|
-
method: "DELETE",
|
|
12559
|
-
body
|
|
12560
|
-
});
|
|
12561
|
-
}
|
|
12562
|
-
};
|
|
12563
|
-
|
|
12564
12563
|
// src/api/client.ts
|
|
12565
12564
|
var SupernovaApiClient = class {
|
|
12566
12565
|
constructor(config) {
|
|
@@ -19263,7 +19262,6 @@ export {
|
|
|
19263
19262
|
DTOFeatureArtifactListResponse,
|
|
19264
19263
|
DTOFeatureArtifactResponse,
|
|
19265
19264
|
DTOFeatureEvent,
|
|
19266
|
-
DTOFeatureEventAgentResponseFinished,
|
|
19267
19265
|
DTOFeatureEventMessagesSent,
|
|
19268
19266
|
DTOFeatureEventReactionsDeleted,
|
|
19269
19267
|
DTOFeatureEventReactionsSent,
|
|
@@ -19729,6 +19727,7 @@ export {
|
|
|
19729
19727
|
SupernovaApiClient,
|
|
19730
19728
|
ThemesEndpoint,
|
|
19731
19729
|
ThreadRoomBaseYDoc,
|
|
19730
|
+
ThreadsEndpoint,
|
|
19732
19731
|
TokenCollectionsEndpoint,
|
|
19733
19732
|
TokenGroupsEndpoint,
|
|
19734
19733
|
TokensEndpoint,
|