@daocloud-proto/agentclaw 0.2.3 → 0.3.0-rc1-1-g908970a

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/agentclaw",
3
- "version":"0.2.3",
3
+ "version":"0.3.0-rc1-1-g908970a",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,6 +12,15 @@ export enum AgentImagePortName {
12
12
  AGENT_IMAGE_PORT_NAME_UNSPECIFIED = "AGENT_IMAGE_PORT_NAME_UNSPECIFIED",
13
13
  AGENT_IMAGE_PORT_NAME_OPENCLAW = "AGENT_IMAGE_PORT_NAME_OPENCLAW",
14
14
  AGENT_IMAGE_PORT_NAME_NOVNC = "AGENT_IMAGE_PORT_NAME_NOVNC",
15
+ AGENT_IMAGE_PORT_NAME_FILEBROWSER = "AGENT_IMAGE_PORT_NAME_FILEBROWSER",
16
+ }
17
+
18
+ export enum FeishuOnboardStatus {
19
+ FEISHU_ONBOARD_STATUS_UNSPECIFIED = "FEISHU_ONBOARD_STATUS_UNSPECIFIED",
20
+ FEISHU_ONBOARD_STATUS_PENDING = "FEISHU_ONBOARD_STATUS_PENDING",
21
+ FEISHU_ONBOARD_STATUS_COMPLETED = "FEISHU_ONBOARD_STATUS_COMPLETED",
22
+ FEISHU_ONBOARD_STATUS_EXPIRED = "FEISHU_ONBOARD_STATUS_EXPIRED",
23
+ FEISHU_ONBOARD_STATUS_FAILED = "FEISHU_ONBOARD_STATUS_FAILED",
15
24
  }
16
25
 
17
26
  export type ListWorkspaceAgentInstancesRequest = {
@@ -49,6 +58,7 @@ export type AgentInstanceSpec = {
49
58
  export type NetworkConfig = {
50
59
  openclaw?: ServiceConfig
51
60
  novnc?: ServiceConfig
61
+ fileBrowser?: ServiceConfig
52
62
  }
53
63
 
54
64
  export type ServiceConfig = {
@@ -130,6 +140,19 @@ export type AgentImage = {
130
140
  ports?: AgentImagePort[]
131
141
  }
132
142
 
143
+ export type WatchFeishuOnboardRequest = {
144
+ workspaceId?: number
145
+ cluster?: string
146
+ namespace?: string
147
+ }
148
+
149
+ export type FeishuOnboardEvent = {
150
+ status?: FeishuOnboardStatus
151
+ message?: string
152
+ clientId?: string
153
+ clientSecret?: string
154
+ }
155
+
133
156
  export class AgentService {
134
157
  static ListWorkspaceAgentInstances(req: ListWorkspaceAgentInstancesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceAgentInstancesResponse> {
135
158
  return fm.fetchReq<ListWorkspaceAgentInstancesRequest, ListWorkspaceAgentInstancesResponse>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspaceId"]}/agent-instances?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
@@ -158,4 +181,7 @@ export class AgentService {
158
181
  static ListWorkspaceAgentImage(req: ListWorkspaceAgentImageRequest, initReq?: fm.InitReq): Promise<ListWorkspaceAgentImageResponse> {
159
182
  return fm.fetchReq<ListWorkspaceAgentImageRequest, ListWorkspaceAgentImageResponse>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspace"]}/agent-images?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
160
183
  }
184
+ static WatchFeishuOnboard(req: WatchFeishuOnboardRequest, entityNotifier?: fm.NotifyStreamEntityArrival<FeishuOnboardEvent>, initReq?: fm.InitReq): Promise<void> {
185
+ return fm.fetchStreamingRequest<WatchFeishuOnboardRequest, FeishuOnboardEvent>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/feishu-onboard`, entityNotifier, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
186
+ }
161
187
  }
@@ -34,6 +34,7 @@ export type AgentInstance = {
34
34
  export type NetworkConfig = {
35
35
  openclaw?: ServiceConfig
36
36
  novnc?: ServiceConfig
37
+ fileBrowser?: ServiceConfig
37
38
  }
38
39
 
39
40
  export type ServiceConfig = {