mcp-user-system 1.0.5 → 2.0.1
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/README.md +167 -16
- package/dist/env.d.ts +1 -1
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +50 -388
- package/dist/index.js.map +1 -1
- package/dist/tools/client.d.ts +19 -0
- package/dist/tools/client.js +118 -0
- package/dist/tools/client.js.map +1 -0
- package/dist/tools/dashboard.d.ts +149 -0
- package/dist/tools/dashboard.js +184 -0
- package/dist/tools/dashboard.js.map +1 -0
- package/dist/tools/invoice.d.ts +47 -0
- package/dist/tools/invoice.js +53 -0
- package/dist/tools/invoice.js.map +1 -0
- package/dist/tools/misc.d.ts +240 -0
- package/dist/tools/misc.js +189 -0
- package/dist/tools/misc.js.map +1 -0
- package/dist/tools/team.d.ts +157 -0
- package/dist/tools/team.js +198 -0
- package/dist/tools/team.js.map +1 -0
- package/dist/tools/tokens.d.ts +109 -0
- package/dist/tools/tokens.js +83 -0
- package/dist/tools/tokens.js.map +1 -0
- package/dist/tools/user.d.ts +25 -0
- package/dist/tools/user.js +60 -0
- package/dist/tools/user.js.map +1 -0
- package/dist/tools/wallet.d.ts +119 -204
- package/dist/tools/wallet.js +103 -152
- package/dist/tools/wallet.js.map +1 -1
- package/install.cjs +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { apiGet, apiGetPage, apiPost } from "./client.js";
|
|
2
|
+
export const tools = [
|
|
3
|
+
// ---- 退款 ----
|
|
4
|
+
{
|
|
5
|
+
name: "refund_list",
|
|
6
|
+
description: "退款订单列表",
|
|
7
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "refund_detail",
|
|
11
|
+
description: "退款订单详情",
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: "object",
|
|
14
|
+
properties: {
|
|
15
|
+
orderNo: { type: "string", description: "退款订单号" },
|
|
16
|
+
},
|
|
17
|
+
required: ["orderNo"],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "refund_preview",
|
|
22
|
+
description: "退款分配预览(预览退款金额分配方案)",
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: "object",
|
|
25
|
+
properties: {
|
|
26
|
+
amount: { type: "string", description: "退款金额" },
|
|
27
|
+
},
|
|
28
|
+
required: ["amount"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
// ---- 资源规则 ----
|
|
32
|
+
{
|
|
33
|
+
name: "resource_rules",
|
|
34
|
+
description: "获取资源分配规则页数据",
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: "object",
|
|
37
|
+
properties: {
|
|
38
|
+
monthType: { type: "string", description: "月份类型" },
|
|
39
|
+
deptId: { type: "string", description: "部门ID(可选)" },
|
|
40
|
+
},
|
|
41
|
+
required: [],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "resource_quota_validate",
|
|
46
|
+
description: "额度输入校验(检查额度值是否合法)",
|
|
47
|
+
inputSchema: {
|
|
48
|
+
type: "object",
|
|
49
|
+
properties: {
|
|
50
|
+
targetType: { type: "string", description: "目标类型" },
|
|
51
|
+
targetId: { type: "string", description: "目标ID" },
|
|
52
|
+
targetDeptId: { type: "string", description: "目标部门ID" },
|
|
53
|
+
limitType: { type: "string", description: "限制类型" },
|
|
54
|
+
quotaTotal: { type: "string", description: "额度总量" },
|
|
55
|
+
},
|
|
56
|
+
required: [],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "resource_quota_bounds",
|
|
61
|
+
description: "查询额度分配界限",
|
|
62
|
+
inputSchema: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
monthType: { type: "string", description: "月份类型" },
|
|
66
|
+
targetType: { type: "string", description: "目标类型" },
|
|
67
|
+
targetId: { type: "string", description: "目标ID" },
|
|
68
|
+
deptId: { type: "string", description: "部门ID" },
|
|
69
|
+
},
|
|
70
|
+
required: [],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "resource_config",
|
|
75
|
+
description: "获取统一资源配置回显数据",
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: "object",
|
|
78
|
+
properties: {
|
|
79
|
+
monthType: { type: "string", description: "月份类型" },
|
|
80
|
+
targetType: { type: "string", description: "目标类型" },
|
|
81
|
+
targetId: { type: "string", description: "目标ID" },
|
|
82
|
+
deptId: { type: "string", description: "部门ID" },
|
|
83
|
+
},
|
|
84
|
+
required: [],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
// ---- 预警 ----
|
|
88
|
+
{
|
|
89
|
+
name: "alert_setting",
|
|
90
|
+
description: "获取预警设置",
|
|
91
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "alert_selected_receivers",
|
|
95
|
+
description: "获取已选的预警接收人列表",
|
|
96
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "alert_selectable_receivers",
|
|
100
|
+
description: "获取可选的预警接收人列表",
|
|
101
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "alert_check",
|
|
105
|
+
description: "检查预警状态",
|
|
106
|
+
inputSchema: {
|
|
107
|
+
type: "object",
|
|
108
|
+
properties: {
|
|
109
|
+
groupId: { type: "string", description: "团队ID" },
|
|
110
|
+
},
|
|
111
|
+
required: ["groupId"],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
// ---- 消息中心 ----
|
|
115
|
+
{
|
|
116
|
+
name: "message_list",
|
|
117
|
+
description: "消息列表",
|
|
118
|
+
inputSchema: {
|
|
119
|
+
type: "object",
|
|
120
|
+
properties: {
|
|
121
|
+
category: { type: "string", description: "消息分类" },
|
|
122
|
+
status: { type: "string", description: "消息状态" },
|
|
123
|
+
pageNum: { type: "string", description: "页码" },
|
|
124
|
+
pageSize: { type: "string", description: "每页条数" },
|
|
125
|
+
},
|
|
126
|
+
required: [],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "message_count",
|
|
131
|
+
description: "未读消息数量统计",
|
|
132
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "message_popup",
|
|
136
|
+
description: "获取待弹窗消息",
|
|
137
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
export async function handle(name, args) {
|
|
141
|
+
switch (name) {
|
|
142
|
+
// ---- 退款 ----
|
|
143
|
+
case "refund_list":
|
|
144
|
+
return apiGetPage("/console/refund/list");
|
|
145
|
+
case "refund_detail":
|
|
146
|
+
return apiGet(`/console/refund/${args.orderNo}`);
|
|
147
|
+
case "refund_preview":
|
|
148
|
+
return apiPost("/console/refund/preview", { amount: args.amount });
|
|
149
|
+
// ---- 资源规则 ----
|
|
150
|
+
case "resource_rules":
|
|
151
|
+
return apiGet("/console/resource/rules", { monthType: args.monthType, deptId: args.deptId });
|
|
152
|
+
case "resource_quota_validate":
|
|
153
|
+
return apiGet("/console/resource/quota/validate", {
|
|
154
|
+
targetType: args.targetType, targetId: args.targetId,
|
|
155
|
+
targetDeptId: args.targetDeptId, limitType: args.limitType, quotaTotal: args.quotaTotal,
|
|
156
|
+
});
|
|
157
|
+
case "resource_quota_bounds":
|
|
158
|
+
return apiGet("/console/resource/quota/bounds", {
|
|
159
|
+
monthType: args.monthType, targetType: args.targetType,
|
|
160
|
+
targetId: args.targetId, deptId: args.deptId,
|
|
161
|
+
});
|
|
162
|
+
case "resource_config":
|
|
163
|
+
return apiGet("/console/resource/config", {
|
|
164
|
+
monthType: args.monthType, targetType: args.targetType,
|
|
165
|
+
targetId: args.targetId, deptId: args.deptId,
|
|
166
|
+
});
|
|
167
|
+
// ---- 预警 ----
|
|
168
|
+
case "alert_setting":
|
|
169
|
+
return apiGet("/console/alert/setting");
|
|
170
|
+
case "alert_selected_receivers":
|
|
171
|
+
return apiGet("/console/alert/receivers/selected");
|
|
172
|
+
case "alert_selectable_receivers":
|
|
173
|
+
return apiGet("/console/alert/receivers/selectable");
|
|
174
|
+
case "alert_check":
|
|
175
|
+
return apiGet("/console/alert/check", { groupId: args.groupId });
|
|
176
|
+
// ---- 消息中心 ----
|
|
177
|
+
case "message_list":
|
|
178
|
+
return apiGetPage("/console/message/list", {
|
|
179
|
+
category: args.category, status: args.status, pageNum: args.pageNum, pageSize: args.pageSize,
|
|
180
|
+
});
|
|
181
|
+
case "message_count":
|
|
182
|
+
return apiGet("/console/message/count");
|
|
183
|
+
case "message_popup":
|
|
184
|
+
return apiGet("/console/message/popup");
|
|
185
|
+
default:
|
|
186
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=misc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/tools/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,eAAe;IACf;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;KACvE;IACD;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,OAAO,EAAE,E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wBAAwB,CAAC,CAAC;QAC1C,KAAK,0BAA0B;YAC7B,OAAO,MAAM,CAAC,mCAAmC,CAAC,CAAC;QACrD,KAAK,4BAA4B;YAC/B,OAAO,MAAM,CAAC,qCAAqC,CAAC,CAAC;QACvD,KAAK,aAAa;YAChB,OAAO,MAAM,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACnE,iBAAiB;QACjB,KAAK,cAAc;YACjB,OAAO,UAAU,CAAC,uBAAuB,EAAE;gBACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;aAC7F,CAAC,CAAC;QACL,KAAK,eAAe;YAClB,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAC1C,KAAK,eAAe;YAClB,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAC1C;YACE,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export declare const tools: ({
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
deptId?: undefined;
|
|
8
|
+
userId?: undefined;
|
|
9
|
+
keyword?: undefined;
|
|
10
|
+
roleId?: undefined;
|
|
11
|
+
status?: undefined;
|
|
12
|
+
range?: undefined;
|
|
13
|
+
phoneNumber?: undefined;
|
|
14
|
+
inviteCode?: undefined;
|
|
15
|
+
};
|
|
16
|
+
required: never[];
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
inputSchema: {
|
|
22
|
+
type: "object";
|
|
23
|
+
properties: {
|
|
24
|
+
deptId: {
|
|
25
|
+
type: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
userId?: undefined;
|
|
29
|
+
keyword?: undefined;
|
|
30
|
+
roleId?: undefined;
|
|
31
|
+
status?: undefined;
|
|
32
|
+
range?: undefined;
|
|
33
|
+
phoneNumber?: undefined;
|
|
34
|
+
inviteCode?: undefined;
|
|
35
|
+
};
|
|
36
|
+
required: string[];
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: "object";
|
|
43
|
+
properties: {
|
|
44
|
+
userId: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
deptId?: undefined;
|
|
49
|
+
keyword?: undefined;
|
|
50
|
+
roleId?: undefined;
|
|
51
|
+
status?: undefined;
|
|
52
|
+
range?: undefined;
|
|
53
|
+
phoneNumber?: undefined;
|
|
54
|
+
inviteCode?: undefined;
|
|
55
|
+
};
|
|
56
|
+
required: string[];
|
|
57
|
+
};
|
|
58
|
+
} | {
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
inputSchema: {
|
|
62
|
+
type: "object";
|
|
63
|
+
properties: {
|
|
64
|
+
keyword: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
deptId: {
|
|
69
|
+
type: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
roleId: {
|
|
73
|
+
type: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
status: {
|
|
77
|
+
type: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
userId?: undefined;
|
|
81
|
+
range?: undefined;
|
|
82
|
+
phoneNumber?: undefined;
|
|
83
|
+
inviteCode?: undefined;
|
|
84
|
+
};
|
|
85
|
+
required: never[];
|
|
86
|
+
};
|
|
87
|
+
} | {
|
|
88
|
+
name: string;
|
|
89
|
+
description: string;
|
|
90
|
+
inputSchema: {
|
|
91
|
+
type: "object";
|
|
92
|
+
properties: {
|
|
93
|
+
userId: {
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
range: {
|
|
98
|
+
type: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
deptId?: undefined;
|
|
102
|
+
keyword?: undefined;
|
|
103
|
+
roleId?: undefined;
|
|
104
|
+
status?: undefined;
|
|
105
|
+
phoneNumber?: undefined;
|
|
106
|
+
inviteCode?: undefined;
|
|
107
|
+
};
|
|
108
|
+
required: string[];
|
|
109
|
+
};
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: "object";
|
|
115
|
+
properties: {
|
|
116
|
+
deptId: {
|
|
117
|
+
type: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
phoneNumber: {
|
|
121
|
+
type: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
status: {
|
|
125
|
+
type: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
userId?: undefined;
|
|
129
|
+
keyword?: undefined;
|
|
130
|
+
roleId?: undefined;
|
|
131
|
+
range?: undefined;
|
|
132
|
+
inviteCode?: undefined;
|
|
133
|
+
};
|
|
134
|
+
required: never[];
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
name: string;
|
|
138
|
+
description: string;
|
|
139
|
+
inputSchema: {
|
|
140
|
+
type: "object";
|
|
141
|
+
properties: {
|
|
142
|
+
inviteCode: {
|
|
143
|
+
type: string;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
deptId?: undefined;
|
|
147
|
+
userId?: undefined;
|
|
148
|
+
keyword?: undefined;
|
|
149
|
+
roleId?: undefined;
|
|
150
|
+
status?: undefined;
|
|
151
|
+
range?: undefined;
|
|
152
|
+
phoneNumber?: undefined;
|
|
153
|
+
};
|
|
154
|
+
required: string[];
|
|
155
|
+
};
|
|
156
|
+
})[];
|
|
157
|
+
export declare function handle(name: string, args: Record<string, string>): Promise<unknown>;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { apiGet, apiGetPage } from "./client.js";
|
|
2
|
+
export const tools = [
|
|
3
|
+
{
|
|
4
|
+
name: "team_tree",
|
|
5
|
+
description: "获取团队组织架构树",
|
|
6
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "team_auth_info",
|
|
10
|
+
description: "获取企业认证信息",
|
|
11
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "team_dissolve_info",
|
|
15
|
+
description: "查询团队解散信息",
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: "object",
|
|
18
|
+
properties: {
|
|
19
|
+
deptId: { type: "string", description: "部门ID" },
|
|
20
|
+
},
|
|
21
|
+
required: ["deptId"],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "team_ip_whitelist",
|
|
26
|
+
description: "获取IP白名单列表",
|
|
27
|
+
inputSchema: {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
deptId: { type: "string", description: "部门ID" },
|
|
31
|
+
},
|
|
32
|
+
required: ["deptId"],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "team_ip_whitelist_by_user",
|
|
37
|
+
description: "通过用户ID查询IP白名单",
|
|
38
|
+
inputSchema: {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
userId: { type: "string", description: "用户ID" },
|
|
42
|
+
},
|
|
43
|
+
required: ["userId"],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "team_members",
|
|
48
|
+
description: "团队成员列表(分页)",
|
|
49
|
+
inputSchema: {
|
|
50
|
+
type: "object",
|
|
51
|
+
properties: {
|
|
52
|
+
keyword: { type: "string", description: "搜索关键字" },
|
|
53
|
+
deptId: { type: "string", description: "部门ID" },
|
|
54
|
+
roleId: { type: "string", description: "角色ID" },
|
|
55
|
+
status: { type: "string", description: "成员状态" },
|
|
56
|
+
},
|
|
57
|
+
required: [],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "team_members_all",
|
|
62
|
+
description: "团队成员列表(全量,不分页)",
|
|
63
|
+
inputSchema: {
|
|
64
|
+
type: "object",
|
|
65
|
+
properties: {
|
|
66
|
+
keyword: { type: "string", description: "搜索关键字" },
|
|
67
|
+
deptId: { type: "string", description: "部门ID" },
|
|
68
|
+
roleId: { type: "string", description: "角色ID" },
|
|
69
|
+
status: { type: "string", description: "成员状态" },
|
|
70
|
+
},
|
|
71
|
+
required: [],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "team_member_detail",
|
|
76
|
+
description: "获取成员详情",
|
|
77
|
+
inputSchema: {
|
|
78
|
+
type: "object",
|
|
79
|
+
properties: {
|
|
80
|
+
userId: { type: "string", description: "用户ID" },
|
|
81
|
+
},
|
|
82
|
+
required: ["userId"],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: "team_member_usage_trend",
|
|
87
|
+
description: "获取成员使用趋势",
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: "object",
|
|
90
|
+
properties: {
|
|
91
|
+
userId: { type: "string", description: "用户ID" },
|
|
92
|
+
range: { type: "string", description: "时间范围(默认30d)" },
|
|
93
|
+
},
|
|
94
|
+
required: ["userId"],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "team_member_pending_requests",
|
|
99
|
+
description: "获取待审批的成员加入申请",
|
|
100
|
+
inputSchema: {
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: {
|
|
103
|
+
deptId: { type: "string", description: "部门ID" },
|
|
104
|
+
phoneNumber: { type: "string", description: "手机号" },
|
|
105
|
+
status: { type: "string", description: "状态" },
|
|
106
|
+
},
|
|
107
|
+
required: [],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "team_member_audit_requests",
|
|
112
|
+
description: "获取已审核的成员申请列表",
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: "object",
|
|
115
|
+
properties: {
|
|
116
|
+
deptId: { type: "string", description: "部门ID" },
|
|
117
|
+
phoneNumber: { type: "string", description: "手机号" },
|
|
118
|
+
status: { type: "string", description: "状态" },
|
|
119
|
+
},
|
|
120
|
+
required: [],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "team_invite_links",
|
|
125
|
+
description: "邀请链接列表",
|
|
126
|
+
inputSchema: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
deptId: { type: "string", description: "部门ID" },
|
|
130
|
+
roleId: { type: "string", description: "角色ID" },
|
|
131
|
+
status: { type: "string", description: "状态" },
|
|
132
|
+
keyword: { type: "string", description: "关键字" },
|
|
133
|
+
},
|
|
134
|
+
required: [],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "team_roles",
|
|
139
|
+
description: "获取团队角色列表",
|
|
140
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "team_join_info",
|
|
144
|
+
description: "查询邀请码信息",
|
|
145
|
+
inputSchema: {
|
|
146
|
+
type: "object",
|
|
147
|
+
properties: {
|
|
148
|
+
inviteCode: { type: "string", description: "邀请码" },
|
|
149
|
+
},
|
|
150
|
+
required: ["inviteCode"],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
];
|
|
154
|
+
export async function handle(name, args) {
|
|
155
|
+
switch (name) {
|
|
156
|
+
case "team_tree":
|
|
157
|
+
return apiGet("/console/team/tree");
|
|
158
|
+
case "team_auth_info":
|
|
159
|
+
return apiGet("/console/team/authInfo");
|
|
160
|
+
case "team_dissolve_info":
|
|
161
|
+
return apiGet("/console/team/dissolve/info", { deptId: args.deptId });
|
|
162
|
+
case "team_ip_whitelist":
|
|
163
|
+
return apiGet("/console/team/ip-whitelist", { deptId: args.deptId });
|
|
164
|
+
case "team_ip_whitelist_by_user":
|
|
165
|
+
return apiGet("/console/team/ip-whitelist/user", { userId: args.userId });
|
|
166
|
+
case "team_members":
|
|
167
|
+
return apiGetPage("/console/team/members", {
|
|
168
|
+
keyword: args.keyword, deptId: args.deptId, roleId: args.roleId, status: args.status,
|
|
169
|
+
});
|
|
170
|
+
case "team_members_all":
|
|
171
|
+
return apiGet("/console/team/members/all", {
|
|
172
|
+
keyword: args.keyword, deptId: args.deptId, roleId: args.roleId, status: args.status,
|
|
173
|
+
});
|
|
174
|
+
case "team_member_detail":
|
|
175
|
+
return apiGet(`/console/team/members/${args.userId}`);
|
|
176
|
+
case "team_member_usage_trend":
|
|
177
|
+
return apiGet(`/console/team/members/${args.userId}/usage-trend`, { range: args.range });
|
|
178
|
+
case "team_member_pending_requests":
|
|
179
|
+
return apiGet("/console/team/members/pending-requests", {
|
|
180
|
+
deptId: args.deptId, phoneNumber: args.phoneNumber, status: args.status,
|
|
181
|
+
});
|
|
182
|
+
case "team_member_audit_requests":
|
|
183
|
+
return apiGet("/console/team/members/audit-requests", {
|
|
184
|
+
deptId: args.deptId, phoneNumber: args.phoneNumber, status: args.status,
|
|
185
|
+
});
|
|
186
|
+
case "team_invite_links":
|
|
187
|
+
return apiGet("/console/team/invite-links", {
|
|
188
|
+
deptId: args.deptId, roleId: args.roleId, status: args.status, keyword: args.keyword,
|
|
189
|
+
});
|
|
190
|
+
case "team_roles":
|
|
191
|
+
return apiGet("/console/team/roles");
|
|
192
|
+
case "team_join_info":
|
|
193
|
+
return apiGet("/console/team/join/info", { inviteCode: args.inviteCode });
|
|
194
|
+
default:
|
|
195
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/tools/team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB;QACE,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;KACvE;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;KACvE;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE;aAChD;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE;aAChD;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACv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C,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO;aACrF,CAAC,CAAC;QACL,KAAK,YAAY;YACf,OAAO,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACvC,KAAK,gBAAgB;YACnB,OAAO,MAAM,CAAC,yBAAyB,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC5E;YACE,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const tools: ({
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
status: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
pageNum?: undefined;
|
|
16
|
+
pageSize?: undefined;
|
|
17
|
+
deptId?: undefined;
|
|
18
|
+
ruleMonth?: undefined;
|
|
19
|
+
id?: undefined;
|
|
20
|
+
};
|
|
21
|
+
required: never[];
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: "object";
|
|
28
|
+
properties: {
|
|
29
|
+
status: {
|
|
30
|
+
type: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
name: {
|
|
34
|
+
type: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
pageNum: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
pageSize: {
|
|
42
|
+
type: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
deptId?: undefined;
|
|
46
|
+
ruleMonth?: undefined;
|
|
47
|
+
id?: undefined;
|
|
48
|
+
};
|
|
49
|
+
required: never[];
|
|
50
|
+
};
|
|
51
|
+
} | {
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object";
|
|
56
|
+
properties: {
|
|
57
|
+
status?: undefined;
|
|
58
|
+
name?: undefined;
|
|
59
|
+
pageNum?: undefined;
|
|
60
|
+
pageSize?: undefined;
|
|
61
|
+
deptId?: undefined;
|
|
62
|
+
ruleMonth?: undefined;
|
|
63
|
+
id?: undefined;
|
|
64
|
+
};
|
|
65
|
+
required: never[];
|
|
66
|
+
};
|
|
67
|
+
} | {
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
inputSchema: {
|
|
71
|
+
type: "object";
|
|
72
|
+
properties: {
|
|
73
|
+
deptId: {
|
|
74
|
+
type: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
ruleMonth: {
|
|
78
|
+
type: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
status?: undefined;
|
|
82
|
+
name?: undefined;
|
|
83
|
+
pageNum?: undefined;
|
|
84
|
+
pageSize?: undefined;
|
|
85
|
+
id?: undefined;
|
|
86
|
+
};
|
|
87
|
+
required: never[];
|
|
88
|
+
};
|
|
89
|
+
} | {
|
|
90
|
+
name: string;
|
|
91
|
+
description: string;
|
|
92
|
+
inputSchema: {
|
|
93
|
+
type: "object";
|
|
94
|
+
properties: {
|
|
95
|
+
id: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
status?: undefined;
|
|
100
|
+
name?: undefined;
|
|
101
|
+
pageNum?: undefined;
|
|
102
|
+
pageSize?: undefined;
|
|
103
|
+
deptId?: undefined;
|
|
104
|
+
ruleMonth?: undefined;
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
};
|
|
108
|
+
})[];
|
|
109
|
+
export declare function handle(name: string, args: Record<string, string>): Promise<unknown>;
|