@daocloud-proto/agentclaw 0.0.1-dev-70312ed0
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/agent.pb.ts +47 -0
- package/package.json +12 -0
- package/page.pb.ts +11 -0
package/agent.pb.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
import * as GoogleProtobufTimestamp from "../google/protobuf/timestamp.pb"
|
|
9
|
+
import * as AgentclawV1alpha1Page from "./page.pb"
|
|
10
|
+
export type OpenClaw = {
|
|
11
|
+
id?: string
|
|
12
|
+
name?: string
|
|
13
|
+
description?: string
|
|
14
|
+
agentUrl?: string
|
|
15
|
+
cmdUrl?: string
|
|
16
|
+
status?: string
|
|
17
|
+
createdAt?: GoogleProtobufTimestamp.Timestamp
|
|
18
|
+
updatedAt?: GoogleProtobufTimestamp.Timestamp
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type ListOpenClawsRequest = {
|
|
22
|
+
page?: number
|
|
23
|
+
pageSize?: number
|
|
24
|
+
search?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ListOpenClawsResponse = {
|
|
28
|
+
openclaws?: OpenClaw[]
|
|
29
|
+
pagination?: AgentclawV1alpha1Page.Pagination
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type DeleteOpenClawRequest = {
|
|
33
|
+
id?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type DeleteOpenClawResponse = {
|
|
37
|
+
success?: boolean
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class Agents {
|
|
41
|
+
static ListOpenClaws(req: ListOpenClawsRequest, initReq?: fm.InitReq): Promise<ListOpenClawsResponse> {
|
|
42
|
+
return fm.fetchReq<ListOpenClawsRequest, ListOpenClawsResponse>(`/apis/agentclaw.io/v1alpha1/openclaws?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
43
|
+
}
|
|
44
|
+
static DeleteOpenClaw(req: DeleteOpenClawRequest, initReq?: fm.InitReq): Promise<DeleteOpenClawResponse> {
|
|
45
|
+
return fm.fetchReq<DeleteOpenClawRequest, DeleteOpenClawResponse>(`/apis/agentclaw.io/v1alpha1/openclaws/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
46
|
+
}
|
|
47
|
+
}
|
package/package.json
ADDED