@daocloud-proto/agentclaw 0.3.2 → 0.3.3-rc1-3-g9b14d81

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.3.2",
3
+ "version":"0.3.3-rc1-3-g9b14d81",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,6 +53,7 @@ export type AgentInstanceSpec = {
53
53
  feishu?: AgentclawV1alpha1TypesTypes.FeishuConfig
54
54
  modelConfig?: AgentclawV1alpha1TypesTypes.ModelConfig
55
55
  resources?: AgentclawV1alpha1TypesTypes.ResourceConfig
56
+ fallbackModels?: AgentclawV1alpha1TypesTypes.ModelConfig[]
56
57
  }
57
58
 
58
59
  export type NetworkConfig = {
@@ -0,0 +1,160 @@
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 GoogleProtobufEmpty from "../../google/api/empty.pb"
9
+ import * as GoogleApiHttpbody from "../../google/api/httpbody.pb"
10
+ import * as AgentclawV1alpha1TypesTypes from "../types/types.pb"
11
+ import * as AgentclawV1alpha1SkillSkill_types from "./skill_types.pb"
12
+ export type ListSkillsRequest = {
13
+ namespace?: string
14
+ fuzzyName?: string
15
+ workspace?: number
16
+ sort?: AgentclawV1alpha1SkillSkill_types.SkillListSortType
17
+ page?: number
18
+ pageSize?: number
19
+ }
20
+
21
+ export type ListSkillsResponse = {
22
+ items?: AgentclawV1alpha1SkillSkill_types.SkillSummary[]
23
+ pagination?: AgentclawV1alpha1TypesTypes.Pagination
24
+ }
25
+
26
+ export type ListAdminManagedSkillsRequest = {
27
+ namespace?: string
28
+ fuzzyName?: string
29
+ sort?: AgentclawV1alpha1SkillSkill_types.SkillListSortType
30
+ page?: number
31
+ pageSize?: number
32
+ }
33
+
34
+ export type ListAdminManagedSkillsResponse = {
35
+ items?: AgentclawV1alpha1SkillSkill_types.SkillSummary[]
36
+ pagination?: AgentclawV1alpha1TypesTypes.Pagination
37
+ }
38
+
39
+ export type GetSkillRequest = {
40
+ namespace?: string
41
+ slug?: string
42
+ }
43
+
44
+ export type GetSkillResponse = {
45
+ item?: AgentclawV1alpha1SkillSkill_types.SkillDetail
46
+ }
47
+
48
+ export type ListSkillVersionsRequest = {
49
+ namespace?: string
50
+ slug?: string
51
+ page?: number
52
+ pageSize?: number
53
+ }
54
+
55
+ export type ListSkillVersionsResponse = {
56
+ items?: AgentclawV1alpha1SkillSkill_types.SkillVersionItem[]
57
+ pagination?: AgentclawV1alpha1TypesTypes.Pagination
58
+ }
59
+
60
+ export type ListSkillFilesRequest = {
61
+ namespace?: string
62
+ slug?: string
63
+ version?: string
64
+ path?: string
65
+ }
66
+
67
+ export type ListSkillFilesResponse = {
68
+ items?: AgentclawV1alpha1SkillSkill_types.SkillFile[]
69
+ }
70
+
71
+ export type GetSkillFileRequest = {
72
+ namespace?: string
73
+ slug?: string
74
+ version?: string
75
+ path?: string
76
+ }
77
+
78
+ export type GetSkillFileResponse = {
79
+ contentType?: string
80
+ text?: string
81
+ size?: string
82
+ }
83
+
84
+ export type DownloadSkillFileRequest = {
85
+ namespace?: string
86
+ slug?: string
87
+ version?: string
88
+ path?: string
89
+ }
90
+
91
+ export type GetSkillSecurityAuditRequest = {
92
+ namespace?: string
93
+ slugId?: string
94
+ versionId?: string
95
+ }
96
+
97
+ export type GetSkillSecurityAuditResponse = {
98
+ items?: AgentclawV1alpha1SkillSkill_types.SkillSecurityAudit[]
99
+ }
100
+
101
+ export type GetSkillRegistryRequest = {
102
+ }
103
+
104
+ export type GetSkillRegistryResponse = {
105
+ registryUrl?: string
106
+ }
107
+
108
+ export type SetSkillListingRequest = {
109
+ namespace?: string
110
+ slug?: string
111
+ listed?: boolean
112
+ }
113
+
114
+ export type SetSkillListingResponse = {
115
+ version?: AgentclawV1alpha1SkillSkill_types.SkillLifecycleVersion
116
+ action?: string
117
+ status?: AgentclawV1alpha1SkillSkill_types.SkillStatus
118
+ listed?: boolean
119
+ }
120
+
121
+ export type DeleteSkillRequest = {
122
+ namespace?: string
123
+ slug?: string
124
+ }
125
+
126
+ export class SkillService {
127
+ static ListSkills(req: ListSkillsRequest, initReq?: fm.InitReq): Promise<ListSkillsResponse> {
128
+ return fm.fetchReq<ListSkillsRequest, ListSkillsResponse>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspace"]}/skills?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
129
+ }
130
+ static ListAdminManagedSkills(req: ListAdminManagedSkillsRequest, initReq?: fm.InitReq): Promise<ListAdminManagedSkillsResponse> {
131
+ return fm.fetchReq<ListAdminManagedSkillsRequest, ListAdminManagedSkillsResponse>(`/apis/agentclaw.io/v1alpha1/skills/managed?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
132
+ }
133
+ static GetSkill(req: GetSkillRequest, initReq?: fm.InitReq): Promise<GetSkillResponse> {
134
+ return fm.fetchReq<GetSkillRequest, GetSkillResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}?${fm.renderURLSearchParams(req, ["namespace", "slug"])}`, {...initReq, method: "GET"})
135
+ }
136
+ static ListSkillVersions(req: ListSkillVersionsRequest, initReq?: fm.InitReq): Promise<ListSkillVersionsResponse> {
137
+ return fm.fetchReq<ListSkillVersionsRequest, ListSkillVersionsResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions?${fm.renderURLSearchParams(req, ["namespace", "slug"])}`, {...initReq, method: "GET"})
138
+ }
139
+ static ListSkillFiles(req: ListSkillFilesRequest, initReq?: fm.InitReq): Promise<ListSkillFilesResponse> {
140
+ return fm.fetchReq<ListSkillFilesRequest, ListSkillFilesResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions/${req["version"]}/files?${fm.renderURLSearchParams(req, ["namespace", "slug", "version"])}`, {...initReq, method: "GET"})
141
+ }
142
+ static GetSkillFile(req: GetSkillFileRequest, initReq?: fm.InitReq): Promise<GetSkillFileResponse> {
143
+ return fm.fetchReq<GetSkillFileRequest, GetSkillFileResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions/${req["version"]}/file?${fm.renderURLSearchParams(req, ["namespace", "slug", "version"])}`, {...initReq, method: "GET"})
144
+ }
145
+ static DownloadSkillFile(req: DownloadSkillFileRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
146
+ return fm.fetchReq<DownloadSkillFileRequest, GoogleApiHttpbody.HttpBody>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions/${req["version"]}/file/download?${fm.renderURLSearchParams(req, ["namespace", "slug", "version"])}`, {...initReq, method: "GET"})
147
+ }
148
+ static GetSkillSecurityAudit(req: GetSkillSecurityAuditRequest, initReq?: fm.InitReq): Promise<GetSkillSecurityAuditResponse> {
149
+ return fm.fetchReq<GetSkillSecurityAuditRequest, GetSkillSecurityAuditResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slugId"]}/versions/${req["versionId"]}/security-audit?${fm.renderURLSearchParams(req, ["namespace", "slugId", "versionId"])}`, {...initReq, method: "GET"})
150
+ }
151
+ static GetSkillRegistry(req: GetSkillRegistryRequest, initReq?: fm.InitReq): Promise<GetSkillRegistryResponse> {
152
+ return fm.fetchReq<GetSkillRegistryRequest, GetSkillRegistryResponse>(`/apis/agentclaw.io/v1alpha1/skills/registry?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
153
+ }
154
+ static SetSkillListing(req: SetSkillListingRequest, initReq?: fm.InitReq): Promise<SetSkillListingResponse> {
155
+ return fm.fetchReq<SetSkillListingRequest, SetSkillListingResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/listing`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
156
+ }
157
+ static DeleteSkill(req: DeleteSkillRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
158
+ return fm.fetchReq<DeleteSkillRequest, GoogleProtobufEmpty.Empty>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}`, {...initReq, method: "DELETE"})
159
+ }
160
+ }
@@ -0,0 +1,143 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum SkillVisibility {
8
+ SKILL_VISIBILITY_UNSPECIFIED = "SKILL_VISIBILITY_UNSPECIFIED",
9
+ SKILL_VISIBILITY_PUBLIC = "SKILL_VISIBILITY_PUBLIC",
10
+ SKILL_VISIBILITY_PRIVATE = "SKILL_VISIBILITY_PRIVATE",
11
+ SKILL_VISIBILITY_NAMESPACE_ONLY = "SKILL_VISIBILITY_NAMESPACE_ONLY",
12
+ }
13
+
14
+ export enum SkillStatus {
15
+ SKILL_STATUS_UNSPECIFIED = "SKILL_STATUS_UNSPECIFIED",
16
+ SKILL_STATUS_ACTIVE = "SKILL_STATUS_ACTIVE",
17
+ SKILL_STATUS_ARCHIVED = "SKILL_STATUS_ARCHIVED",
18
+ SKILL_STATUS_HIDDEN = "SKILL_STATUS_HIDDEN",
19
+ }
20
+
21
+ export enum SkillListSortType {
22
+ NEWEST = "NEWEST",
23
+ }
24
+
25
+ export enum SkillVersionStatus {
26
+ SKILL_VERSION_STATUS_UNSPECIFIED = "SKILL_VERSION_STATUS_UNSPECIFIED",
27
+ SKILL_VERSION_STATUS_DRAFT = "SKILL_VERSION_STATUS_DRAFT",
28
+ SKILL_VERSION_STATUS_REVIEW = "SKILL_VERSION_STATUS_REVIEW",
29
+ SKILL_VERSION_STATUS_PUBLISHED = "SKILL_VERSION_STATUS_PUBLISHED",
30
+ SKILL_VERSION_STATUS_YANKED = "SKILL_VERSION_STATUS_YANKED",
31
+ }
32
+
33
+ export enum SkillSecurityVerdict {
34
+ SKILL_SECURITY_VERDICT_UNSPECIFIED = "SKILL_SECURITY_VERDICT_UNSPECIFIED",
35
+ SKILL_SECURITY_VERDICT_SAFE = "SKILL_SECURITY_VERDICT_SAFE",
36
+ SKILL_SECURITY_VERDICT_SUSPICIOUS = "SKILL_SECURITY_VERDICT_SUSPICIOUS",
37
+ SKILL_SECURITY_VERDICT_DANGEROUS = "SKILL_SECURITY_VERDICT_DANGEROUS",
38
+ SKILL_SECURITY_VERDICT_BLOCKED = "SKILL_SECURITY_VERDICT_BLOCKED",
39
+ SKILL_SECURITY_VERDICT_SCAN_FAILED = "SKILL_SECURITY_VERDICT_SCAN_FAILED",
40
+ SKILL_SECURITY_VERDICT_SCANNING = "SKILL_SECURITY_VERDICT_SCANNING",
41
+ }
42
+
43
+ export enum SkillSecuritySeverity {
44
+ SKILL_SECURITY_SEVERITY_UNSPECIFIED = "SKILL_SECURITY_SEVERITY_UNSPECIFIED",
45
+ SKILL_SECURITY_SEVERITY_INFO = "SKILL_SECURITY_SEVERITY_INFO",
46
+ SKILL_SECURITY_SEVERITY_LOW = "SKILL_SECURITY_SEVERITY_LOW",
47
+ SKILL_SECURITY_SEVERITY_MEDIUM = "SKILL_SECURITY_SEVERITY_MEDIUM",
48
+ SKILL_SECURITY_SEVERITY_HIGH = "SKILL_SECURITY_SEVERITY_HIGH",
49
+ SKILL_SECURITY_SEVERITY_CRITICAL = "SKILL_SECURITY_SEVERITY_CRITICAL",
50
+ }
51
+
52
+ export type SkillLifecycleVersion = {
53
+ id?: string
54
+ version?: string
55
+ status?: SkillVersionStatus
56
+ }
57
+
58
+ export type SkillSummary = {
59
+ id?: string
60
+ slug?: string
61
+ displayName?: string
62
+ summary?: string
63
+ status?: SkillStatus
64
+ downloadCount?: string
65
+ starCount?: number
66
+ ratingAvg?: string
67
+ ratingCount?: number
68
+ namespace?: string
69
+ versionCount?: number
70
+ creator?: string
71
+ updatedAt?: string
72
+ headlineVersion?: SkillLifecycleVersion
73
+ publishedVersion?: SkillLifecycleVersion
74
+ }
75
+
76
+ export type SkillDetail = {
77
+ id?: string
78
+ slug?: string
79
+ displayName?: string
80
+ ownerId?: string
81
+ ownerDisplayName?: string
82
+ summary?: string
83
+ visibility?: SkillVisibility
84
+ status?: SkillStatus
85
+ downloadCount?: string
86
+ starCount?: number
87
+ ratingAvg?: string
88
+ ratingCount?: number
89
+ hidden?: boolean
90
+ namespace?: string
91
+ headlineVersion?: SkillLifecycleVersion
92
+ publishedVersion?: SkillLifecycleVersion
93
+ updatedAt?: string
94
+ }
95
+
96
+ export type SkillVersionItem = {
97
+ id?: string
98
+ version?: string
99
+ status?: SkillVersionStatus
100
+ changelog?: string
101
+ fileCount?: number
102
+ totalSize?: string
103
+ publishedAt?: string
104
+ downloadAvailable?: boolean
105
+ }
106
+
107
+ export type SkillFile = {
108
+ id?: string
109
+ filePath?: string
110
+ fileSize?: string
111
+ contentType?: string
112
+ sha256?: string
113
+ isDir?: boolean
114
+ name?: string
115
+ }
116
+
117
+ export type SkillSecurityFinding = {
118
+ ruleId?: string
119
+ severity?: SkillSecuritySeverity
120
+ category?: string
121
+ title?: string
122
+ message?: string
123
+ filePath?: string
124
+ lineNumber?: number
125
+ codeSnippet?: string
126
+ remediation?: string
127
+ analyzer?: string
128
+ metadata?: {[key: string]: string}
129
+ }
130
+
131
+ export type SkillSecurityAudit = {
132
+ id?: string
133
+ scanId?: string
134
+ scannerType?: string
135
+ verdict?: SkillSecurityVerdict
136
+ isSafe?: boolean
137
+ maxSeverity?: SkillSecuritySeverity
138
+ findingsCount?: number
139
+ findings?: SkillSecurityFinding[]
140
+ scanDurationSeconds?: number
141
+ scannedAt?: string
142
+ createdAt?: string
143
+ }
@@ -0,0 +1,32 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum WorkspacePermission {
8
+ WORKSPACE_PERMISSION_UNSPECIFIED = "WORKSPACE_PERMISSION_UNSPECIFIED",
9
+ AGENT_GET = "AGENT_GET",
10
+ AGENT_CREATE = "AGENT_CREATE",
11
+ AGENT_UPDATE = "AGENT_UPDATE",
12
+ AGENT_DELETE = "AGENT_DELETE",
13
+ AGENT_WS_LIST = "AGENT_WS_LIST",
14
+ SKILL_MARKET_GET = "SKILL_MARKET_GET",
15
+ OVERVIEW_GET = "OVERVIEW_GET",
16
+ }
17
+
18
+ export enum PlatformPermission {
19
+ PLATFORM_PERMISSION_UNSPECIFIED = "PLATFORM_PERMISSION_UNSPECIFIED",
20
+ PLATFORM_AGENT_GET = "PLATFORM_AGENT_GET",
21
+ PLATFORM_AGENT_CREATE = "PLATFORM_AGENT_CREATE",
22
+ PLATFORM_AGENT_UPDATE = "PLATFORM_AGENT_UPDATE",
23
+ PLATFORM_AGENT_DELETE = "PLATFORM_AGENT_DELETE",
24
+ PLATFORM_AGENT_WS_LIST = "PLATFORM_AGENT_WS_LIST",
25
+ PLATFORM_SKILL_MARKET_GET = "PLATFORM_SKILL_MARKET_GET",
26
+ PLATFORM_OVERVIEW_GET = "PLATFORM_OVERVIEW_GET",
27
+ ADMIN_OVERVIEW_GET = "ADMIN_OVERVIEW_GET",
28
+ ADMIN_SKILL_GET = "ADMIN_SKILL_GET",
29
+ ADMIN_SKILL_CREATE = "ADMIN_SKILL_CREATE",
30
+ ADMIN_SKILL_UPDATE = "ADMIN_SKILL_UPDATE",
31
+ ADMIN_SKILL_DELETE = "ADMIN_SKILL_DELETE",
32
+ }
@@ -30,6 +30,7 @@ export type AgentInstance = {
30
30
  resources?: ResourceConfig
31
31
  gatewayToken?: string
32
32
  userName?: string
33
+ fallbackModels?: ModelConfig[]
33
34
  }
34
35
 
35
36
  export type NetworkConfig = {
@@ -6,12 +6,31 @@
6
6
 
7
7
  import * as fm from "../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../google/api/empty.pb"
9
+ import * as AgentclawV1alpha1TypesPermission from "../types/permission.pb"
9
10
  export type GetCurrentUserResponse = {
10
11
  isAdmin?: boolean
11
12
  }
12
13
 
14
+ export type GetCurrentUserPermissionsRequest = {
15
+ workspaceId?: number
16
+ }
17
+
18
+ export type GetCurrentUserWorkspacePermissionsResponse = {
19
+ permissions?: AgentclawV1alpha1TypesPermission.WorkspacePermission[]
20
+ }
21
+
22
+ export type GetCurrentUserPlatformPermissionsResponse = {
23
+ permissions?: AgentclawV1alpha1TypesPermission.PlatformPermission[]
24
+ }
25
+
13
26
  export class UserService {
14
27
  static GetCurrentUser(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<GetCurrentUserResponse> {
15
28
  return fm.fetchReq<GoogleProtobufEmpty.Empty, GetCurrentUserResponse>(`/apis/agentclaw.io/v1alpha1/current-user?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
16
29
  }
30
+ static GetCurrentUserPermissions(req: GetCurrentUserPermissionsRequest, initReq?: fm.InitReq): Promise<GetCurrentUserWorkspacePermissionsResponse> {
31
+ return fm.fetchReq<GetCurrentUserPermissionsRequest, GetCurrentUserWorkspacePermissionsResponse>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspaceId"]}/current-user/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
32
+ }
33
+ static GetCurrentUserPlatformPermissions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<GetCurrentUserPlatformPermissionsResponse> {
34
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, GetCurrentUserPlatformPermissionsResponse>(`/apis/agentclaw.io/v1alpha1/current-user/platform-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
35
+ }
17
36
  }