@supernova-studio/client 1.9.17 → 1.9.19
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -111690,6 +111690,7 @@ type SupernovaApiClientConfig = {
|
|
|
111690
111690
|
accessToken: string;
|
|
111691
111691
|
};
|
|
111692
111692
|
declare class SupernovaApiClient {
|
|
111693
|
+
readonly config: SupernovaApiClientConfig;
|
|
111693
111694
|
readonly users: UsersEndpoint;
|
|
111694
111695
|
readonly workspaces: WorkspacesEndpoint;
|
|
111695
111696
|
readonly designSystems: DesignSystemsEndpoint;
|
package/dist/index.d.ts
CHANGED
|
@@ -111690,6 +111690,7 @@ type SupernovaApiClientConfig = {
|
|
|
111690
111690
|
accessToken: string;
|
|
111691
111691
|
};
|
|
111692
111692
|
declare class SupernovaApiClient {
|
|
111693
|
+
readonly config: SupernovaApiClientConfig;
|
|
111693
111694
|
readonly users: UsersEndpoint;
|
|
111694
111695
|
readonly workspaces: WorkspacesEndpoint;
|
|
111695
111696
|
readonly designSystems: DesignSystemsEndpoint;
|
package/dist/index.js
CHANGED
|
@@ -9827,26 +9827,18 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
9827
9827
|
this.messages = new ChatThreadMessagesEndpoint(requestExecutor);
|
|
9828
9828
|
}
|
|
9829
9829
|
create(workspaceId, body) {
|
|
9830
|
-
return this.requestExecutor.json(
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
method: "POST",
|
|
9835
|
-
body
|
|
9836
|
-
}
|
|
9837
|
-
);
|
|
9830
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads`, DTOForgeChatThreadCreateResponse, {
|
|
9831
|
+
method: "POST",
|
|
9832
|
+
body
|
|
9833
|
+
});
|
|
9838
9834
|
}
|
|
9839
9835
|
list(workspaceId, query) {
|
|
9840
|
-
return this.requestExecutor.json(
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
...query.offset !== void 0 && { offset: query.offset.toString() }
|
|
9847
|
-
}) : void 0
|
|
9848
|
-
}
|
|
9849
|
-
);
|
|
9836
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads`, DTOForgeChatThreadListResponse, {
|
|
9837
|
+
query: query ? new URLSearchParams({
|
|
9838
|
+
...query.limit !== void 0 && { limit: query.limit.toString() },
|
|
9839
|
+
...query.offset !== void 0 && { offset: query.offset.toString() }
|
|
9840
|
+
}) : void 0
|
|
9841
|
+
});
|
|
9850
9842
|
}
|
|
9851
9843
|
update(workspaceId, threadId, body) {
|
|
9852
9844
|
return this.requestExecutor.json(
|
|
@@ -10177,6 +10169,7 @@ var RequestExecutor = class {
|
|
|
10177
10169
|
// src/api/client.ts
|
|
10178
10170
|
var SupernovaApiClient = class {
|
|
10179
10171
|
constructor(config) {
|
|
10172
|
+
this.config = config;
|
|
10180
10173
|
__publicField(this, "users");
|
|
10181
10174
|
__publicField(this, "workspaces");
|
|
10182
10175
|
__publicField(this, "designSystems");
|