@supernova-studio/client 1.9.18 → 1.9.20
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 +101 -73
- package/dist/index.d.ts +101 -73
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -68
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -440,12 +440,12 @@ var Subscription = _zod.z.object({
|
|
|
440
440
|
});
|
|
441
441
|
var ForgeChatMessageSenderType = _zod.z.enum(["User", "Agent"]);
|
|
442
442
|
var ForgeChatMessageSender = _zod.z.discriminatedUnion("type", [
|
|
443
|
-
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.User) }),
|
|
443
|
+
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.User), userId: _zod.z.string() }),
|
|
444
444
|
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.Agent), persona: _zod.z.literal("Amy") })
|
|
445
445
|
]);
|
|
446
446
|
var ForgeChatMessage = _zod.z.object({
|
|
447
|
-
id: _zod.z.
|
|
448
|
-
threadId: _zod.z.
|
|
447
|
+
id: _zod.z.string(),
|
|
448
|
+
threadId: _zod.z.string(),
|
|
449
449
|
payload: _zod.z.string(),
|
|
450
450
|
createdAt: _zod.z.coerce.date(),
|
|
451
451
|
updatedAt: _zod.z.coerce.date(),
|
|
@@ -6772,7 +6772,7 @@ var DTOForgeChatThreadListResponse = _zod.z.object({
|
|
|
6772
6772
|
});
|
|
6773
6773
|
var DTOForgeChatMessageCreateInput = _zod.z.object({
|
|
6774
6774
|
payload: _zod.z.string(),
|
|
6775
|
-
sender: DTOForgeChatMessageSender
|
|
6775
|
+
sender: DTOForgeChatMessageSender.optional()
|
|
6776
6776
|
});
|
|
6777
6777
|
var DTOForgeChatMessageCreateResponse = _zod.z.object({
|
|
6778
6778
|
message: DTOForgeChatMessage
|
|
@@ -9820,6 +9820,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9820
9820
|
};
|
|
9821
9821
|
|
|
9822
9822
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
9823
|
+
|
|
9823
9824
|
var WorkspaceChatThreadsEndpoint = class {
|
|
9824
9825
|
constructor(requestExecutor) {
|
|
9825
9826
|
this.requestExecutor = requestExecutor;
|
|
@@ -9851,13 +9852,9 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
9851
9852
|
);
|
|
9852
9853
|
}
|
|
9853
9854
|
delete(workspaceId, threadId) {
|
|
9854
|
-
return this.requestExecutor.json(
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
{
|
|
9858
|
-
method: "DELETE"
|
|
9859
|
-
}
|
|
9860
|
-
);
|
|
9855
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, _zod.z.any(), {
|
|
9856
|
+
method: "DELETE"
|
|
9857
|
+
});
|
|
9861
9858
|
}
|
|
9862
9859
|
};
|
|
9863
9860
|
var ChatThreadMessagesEndpoint = class {
|
|
@@ -10169,6 +10166,7 @@ var RequestExecutor = class {
|
|
|
10169
10166
|
// src/api/client.ts
|
|
10170
10167
|
var SupernovaApiClient = class {
|
|
10171
10168
|
constructor(config) {
|
|
10169
|
+
this.config = config;
|
|
10172
10170
|
__publicField(this, "users");
|
|
10173
10171
|
__publicField(this, "workspaces");
|
|
10174
10172
|
__publicField(this, "designSystems");
|