@daocloud-proto/agentclaw 0.1.0 → 0.1.1-1-g84935f6
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/package.json +1 -1
- package/v1alpha1/agent.pb.ts +15 -0
package/package.json
CHANGED
package/v1alpha1/agent.pb.ts
CHANGED
|
@@ -228,6 +228,18 @@ export type AgentInfo = {
|
|
|
228
228
|
gatewayToken?: string
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
export type Empty = {
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type ListWorkspacesResponse = {
|
|
235
|
+
items?: Workspaces[]
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type Workspaces = {
|
|
239
|
+
id?: string
|
|
240
|
+
alias?: string
|
|
241
|
+
}
|
|
242
|
+
|
|
231
243
|
export class Agents {
|
|
232
244
|
static ListAgentInstances(req: ListAgentInstanceRequest, initReq?: fm.InitReq): Promise<ListAgentInstanceResponse> {
|
|
233
245
|
return fm.fetchReq<ListAgentInstanceRequest, ListAgentInstanceResponse>(`/apis/agentclaw.io/v1alpha1/agent-instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -247,4 +259,7 @@ export class Agents {
|
|
|
247
259
|
static GetStorageDetails(req: GetStorageDetailsRequest, initReq?: fm.InitReq): Promise<GetStorageDetailsResponse> {
|
|
248
260
|
return fm.fetchReq<GetStorageDetailsRequest, GetStorageDetailsResponse>(`/apis/agentclaw.io/v1alpha1/filestorage/details?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
249
261
|
}
|
|
262
|
+
static ListWorkspaces(req: Empty, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
263
|
+
return fm.fetchReq<Empty, ListWorkspacesResponse>(`/apis/agentclaw.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
264
|
+
}
|
|
250
265
|
}
|