@daocloud-proto/agentclaw 0.3.1 → 0.3.3-rc1-2-g827e486
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
|
@@ -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,153 @@
|
|
|
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
|
+
}
|
|
65
|
+
|
|
66
|
+
export type ListSkillFilesResponse = {
|
|
67
|
+
items?: AgentclawV1alpha1SkillSkill_types.SkillFile[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetSkillFileRequest = {
|
|
71
|
+
namespace?: string
|
|
72
|
+
slug?: string
|
|
73
|
+
version?: string
|
|
74
|
+
path?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type DownloadSkillFileRequest = {
|
|
78
|
+
namespace?: string
|
|
79
|
+
slug?: string
|
|
80
|
+
version?: string
|
|
81
|
+
path?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type GetSkillSecurityAuditRequest = {
|
|
85
|
+
namespace?: string
|
|
86
|
+
slugId?: string
|
|
87
|
+
versionId?: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type GetSkillSecurityAuditResponse = {
|
|
91
|
+
items?: AgentclawV1alpha1SkillSkill_types.SkillSecurityAudit[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type GetSkillRegistryRequest = {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type GetSkillRegistryResponse = {
|
|
98
|
+
registryUrl?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type SetSkillListingRequest = {
|
|
102
|
+
namespace?: string
|
|
103
|
+
slug?: string
|
|
104
|
+
listed?: boolean
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type SetSkillListingResponse = {
|
|
108
|
+
version?: AgentclawV1alpha1SkillSkill_types.SkillLifecycleVersion
|
|
109
|
+
action?: string
|
|
110
|
+
status?: AgentclawV1alpha1SkillSkill_types.SkillStatus
|
|
111
|
+
listed?: boolean
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type DeleteSkillRequest = {
|
|
115
|
+
namespace?: string
|
|
116
|
+
slug?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class SkillService {
|
|
120
|
+
static ListSkills(req: ListSkillsRequest, initReq?: fm.InitReq): Promise<ListSkillsResponse> {
|
|
121
|
+
return fm.fetchReq<ListSkillsRequest, ListSkillsResponse>(`/apis/agentclaw.io/v1alpha1/workspaces/${req["workspace"]}/skills?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
122
|
+
}
|
|
123
|
+
static ListAdminManagedSkills(req: ListAdminManagedSkillsRequest, initReq?: fm.InitReq): Promise<ListAdminManagedSkillsResponse> {
|
|
124
|
+
return fm.fetchReq<ListAdminManagedSkillsRequest, ListAdminManagedSkillsResponse>(`/apis/agentclaw.io/v1alpha1/skills/managed?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
125
|
+
}
|
|
126
|
+
static GetSkill(req: GetSkillRequest, initReq?: fm.InitReq): Promise<GetSkillResponse> {
|
|
127
|
+
return fm.fetchReq<GetSkillRequest, GetSkillResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}?${fm.renderURLSearchParams(req, ["namespace", "slug"])}`, {...initReq, method: "GET"})
|
|
128
|
+
}
|
|
129
|
+
static ListSkillVersions(req: ListSkillVersionsRequest, initReq?: fm.InitReq): Promise<ListSkillVersionsResponse> {
|
|
130
|
+
return fm.fetchReq<ListSkillVersionsRequest, ListSkillVersionsResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions?${fm.renderURLSearchParams(req, ["namespace", "slug"])}`, {...initReq, method: "GET"})
|
|
131
|
+
}
|
|
132
|
+
static ListSkillFiles(req: ListSkillFilesRequest, initReq?: fm.InitReq): Promise<ListSkillFilesResponse> {
|
|
133
|
+
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"})
|
|
134
|
+
}
|
|
135
|
+
static GetSkillFile(req: GetSkillFileRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
136
|
+
return fm.fetchReq<GetSkillFileRequest, GoogleApiHttpbody.HttpBody>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/versions/${req["version"]}/file?${fm.renderURLSearchParams(req, ["namespace", "slug", "version"])}`, {...initReq, method: "GET"})
|
|
137
|
+
}
|
|
138
|
+
static DownloadSkillFile(req: DownloadSkillFileRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
139
|
+
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"})
|
|
140
|
+
}
|
|
141
|
+
static GetSkillSecurityAudit(req: GetSkillSecurityAuditRequest, initReq?: fm.InitReq): Promise<GetSkillSecurityAuditResponse> {
|
|
142
|
+
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"})
|
|
143
|
+
}
|
|
144
|
+
static GetSkillRegistry(req: GetSkillRegistryRequest, initReq?: fm.InitReq): Promise<GetSkillRegistryResponse> {
|
|
145
|
+
return fm.fetchReq<GetSkillRegistryRequest, GetSkillRegistryResponse>(`/apis/agentclaw.io/v1alpha1/skills/registry?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
146
|
+
}
|
|
147
|
+
static SetSkillListing(req: SetSkillListingRequest, initReq?: fm.InitReq): Promise<SetSkillListingResponse> {
|
|
148
|
+
return fm.fetchReq<SetSkillListingRequest, SetSkillListingResponse>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}/listing`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
149
|
+
}
|
|
150
|
+
static DeleteSkill(req: DeleteSkillRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
151
|
+
return fm.fetchReq<DeleteSkillRequest, GoogleProtobufEmpty.Empty>(`/apis/agentclaw.io/v1alpha1/skills/${req["namespace"]}/${req["slug"]}`, {...initReq, method: "DELETE"})
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
}
|
|
94
|
+
|
|
95
|
+
export type SkillVersionItem = {
|
|
96
|
+
id?: string
|
|
97
|
+
version?: string
|
|
98
|
+
status?: SkillVersionStatus
|
|
99
|
+
changelog?: string
|
|
100
|
+
fileCount?: number
|
|
101
|
+
totalSize?: string
|
|
102
|
+
publishedAt?: string
|
|
103
|
+
downloadAvailable?: boolean
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type SkillFile = {
|
|
107
|
+
id?: string
|
|
108
|
+
filePath?: string
|
|
109
|
+
fileSize?: string
|
|
110
|
+
contentType?: string
|
|
111
|
+
sha256?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type SkillSecurityFinding = {
|
|
115
|
+
ruleId?: string
|
|
116
|
+
severity?: SkillSecuritySeverity
|
|
117
|
+
category?: string
|
|
118
|
+
title?: string
|
|
119
|
+
message?: string
|
|
120
|
+
filePath?: string
|
|
121
|
+
lineNumber?: number
|
|
122
|
+
codeSnippet?: string
|
|
123
|
+
remediation?: string
|
|
124
|
+
analyzer?: string
|
|
125
|
+
metadata?: {[key: string]: string}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type SkillSecurityAudit = {
|
|
129
|
+
id?: string
|
|
130
|
+
scanId?: string
|
|
131
|
+
scannerType?: string
|
|
132
|
+
verdict?: SkillSecurityVerdict
|
|
133
|
+
isSafe?: boolean
|
|
134
|
+
maxSeverity?: SkillSecuritySeverity
|
|
135
|
+
findingsCount?: number
|
|
136
|
+
findings?: SkillSecurityFinding[]
|
|
137
|
+
scanDurationSeconds?: number
|
|
138
|
+
scannedAt?: string
|
|
139
|
+
createdAt?: string
|
|
140
|
+
}
|
|
@@ -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
|
+
}
|
package/v1alpha1/user/user.pb.ts
CHANGED
|
@@ -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
|
}
|