@supernova-studio/client 1.42.2 → 1.42.3
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 +250 -571
- package/dist/index.d.ts +250 -571
- package/dist/index.js +86 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +86 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9542,15 +9542,10 @@ var DTOFeatureEventReactionsDeleted = z313.object({
|
|
|
9542
9542
|
type: z313.literal("ReactionsDeleted"),
|
|
9543
9543
|
data: DTOFeatureMessageReaction
|
|
9544
9544
|
});
|
|
9545
|
-
var DTOFeatureEventAgentResponseFinished = z313.object({
|
|
9546
|
-
type: z313.literal("AgentResponseFinished"),
|
|
9547
|
-
data: DTOFeatureMessage
|
|
9548
|
-
});
|
|
9549
9545
|
var DTOFeatureEvent = z313.discriminatedUnion("type", [
|
|
9550
9546
|
DTOFeatureEventMessagesSent,
|
|
9551
9547
|
DTOFeatureEventReactionsSent,
|
|
9552
|
-
DTOFeatureEventReactionsDeleted
|
|
9553
|
-
DTOFeatureEventAgentResponseFinished
|
|
9548
|
+
DTOFeatureEventReactionsDeleted
|
|
9554
9549
|
]);
|
|
9555
9550
|
|
|
9556
9551
|
// src/api/dto/forge/feature-room.ts
|
|
@@ -9718,7 +9713,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9718
9713
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
9719
9714
|
});
|
|
9720
9715
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9721
|
-
messageId: Id
|
|
9716
|
+
messageId: Id,
|
|
9717
|
+
agentMessageBody: z317.string().optional()
|
|
9722
9718
|
});
|
|
9723
9719
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9724
9720
|
id: true
|
|
@@ -11667,25 +11663,6 @@ var DesignSystemsEndpoint = class {
|
|
|
11667
11663
|
}
|
|
11668
11664
|
};
|
|
11669
11665
|
|
|
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
11666
|
// src/api/endpoints/forge/agents.ts
|
|
11690
11667
|
var ForgeAgentsEndpoint = class {
|
|
11691
11668
|
constructor(requestExecutor) {
|
|
@@ -12172,41 +12149,6 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12172
12149
|
}
|
|
12173
12150
|
};
|
|
12174
12151
|
|
|
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
12152
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12211
12153
|
import { z as z348 } from "zod";
|
|
12212
12154
|
var WorkspaceChatThreadsEndpoint = class {
|
|
@@ -12423,6 +12365,88 @@ var WorkspacesEndpoint = class {
|
|
|
12423
12365
|
}
|
|
12424
12366
|
};
|
|
12425
12367
|
|
|
12368
|
+
// src/api/endpoints/files.ts
|
|
12369
|
+
var FilesEndpoint = class {
|
|
12370
|
+
constructor(requestExecutor) {
|
|
12371
|
+
this.requestExecutor = requestExecutor;
|
|
12372
|
+
}
|
|
12373
|
+
upload(body) {
|
|
12374
|
+
return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
|
|
12375
|
+
method: "POST",
|
|
12376
|
+
body
|
|
12377
|
+
});
|
|
12378
|
+
}
|
|
12379
|
+
finalizeUpload(body) {
|
|
12380
|
+
return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
|
|
12381
|
+
method: "POST",
|
|
12382
|
+
body
|
|
12383
|
+
});
|
|
12384
|
+
}
|
|
12385
|
+
};
|
|
12386
|
+
|
|
12387
|
+
// src/api/endpoints/liveblocks.ts
|
|
12388
|
+
var LiveblocksEndpoint = class {
|
|
12389
|
+
constructor(requestExecutor) {
|
|
12390
|
+
this.requestExecutor = requestExecutor;
|
|
12391
|
+
}
|
|
12392
|
+
auth(body) {
|
|
12393
|
+
return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
|
|
12394
|
+
method: "POST",
|
|
12395
|
+
body
|
|
12396
|
+
});
|
|
12397
|
+
}
|
|
12398
|
+
};
|
|
12399
|
+
|
|
12400
|
+
// src/api/endpoints/threads.ts
|
|
12401
|
+
var ThreadsEndpoint = class {
|
|
12402
|
+
constructor(requestExecutor) {
|
|
12403
|
+
this.requestExecutor = requestExecutor;
|
|
12404
|
+
}
|
|
12405
|
+
listMessages(threadId) {
|
|
12406
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
|
|
12407
|
+
}
|
|
12408
|
+
postMessage(threadId, body) {
|
|
12409
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
|
|
12410
|
+
method: "POST",
|
|
12411
|
+
body
|
|
12412
|
+
});
|
|
12413
|
+
}
|
|
12414
|
+
postReaction(threadId, body) {
|
|
12415
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
|
|
12416
|
+
method: "POST",
|
|
12417
|
+
body
|
|
12418
|
+
});
|
|
12419
|
+
}
|
|
12420
|
+
deleteReaction(threadId, body) {
|
|
12421
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
|
|
12422
|
+
method: "DELETE",
|
|
12423
|
+
body
|
|
12424
|
+
});
|
|
12425
|
+
}
|
|
12426
|
+
};
|
|
12427
|
+
|
|
12428
|
+
// src/api/endpoints/users.ts
|
|
12429
|
+
var UsersEndpoint = class {
|
|
12430
|
+
constructor(requestExecutor) {
|
|
12431
|
+
this.requestExecutor = requestExecutor;
|
|
12432
|
+
}
|
|
12433
|
+
getMe() {
|
|
12434
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
12435
|
+
}
|
|
12436
|
+
listWorkspaces(uid) {
|
|
12437
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
12438
|
+
}
|
|
12439
|
+
delete(uid) {
|
|
12440
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
12441
|
+
}
|
|
12442
|
+
updateProfile(uid, body) {
|
|
12443
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
12444
|
+
method: "PUT",
|
|
12445
|
+
body
|
|
12446
|
+
});
|
|
12447
|
+
}
|
|
12448
|
+
};
|
|
12449
|
+
|
|
12426
12450
|
// src/api/transport/request-executor-error.ts
|
|
12427
12451
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
12428
12452
|
constructor(type, message, errorCode, serverErrorType, cause) {
|
|
@@ -12533,34 +12557,6 @@ var RequestExecutor = class {
|
|
|
12533
12557
|
}
|
|
12534
12558
|
};
|
|
12535
12559
|
|
|
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
12560
|
// src/api/client.ts
|
|
12565
12561
|
var SupernovaApiClient = class {
|
|
12566
12562
|
constructor(config) {
|
|
@@ -19263,7 +19259,6 @@ export {
|
|
|
19263
19259
|
DTOFeatureArtifactListResponse,
|
|
19264
19260
|
DTOFeatureArtifactResponse,
|
|
19265
19261
|
DTOFeatureEvent,
|
|
19266
|
-
DTOFeatureEventAgentResponseFinished,
|
|
19267
19262
|
DTOFeatureEventMessagesSent,
|
|
19268
19263
|
DTOFeatureEventReactionsDeleted,
|
|
19269
19264
|
DTOFeatureEventReactionsSent,
|
|
@@ -19729,6 +19724,7 @@ export {
|
|
|
19729
19724
|
SupernovaApiClient,
|
|
19730
19725
|
ThemesEndpoint,
|
|
19731
19726
|
ThreadRoomBaseYDoc,
|
|
19727
|
+
ThreadsEndpoint,
|
|
19732
19728
|
TokenCollectionsEndpoint,
|
|
19733
19729
|
TokenGroupsEndpoint,
|
|
19734
19730
|
TokensEndpoint,
|