49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
import { z } from "zod";
|
|
import type { KyInstance } from "ky";
|
|
import * as api from "../api.js";
|
|
|
|
export const billingCapabilities = [
|
|
{
|
|
name: "seal_llm_config_get",
|
|
description: "查询当前 Seal 租户的大模型 (LLM) 配置",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.getLlmConfig(client)
|
|
},
|
|
{
|
|
name: "seal_llm_providers_list",
|
|
description: "查询支持的大模型 (LLM) 供应商与配置属性字段",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.listLlmProviders(client)
|
|
},
|
|
{
|
|
name: "seal_permissions_available_list",
|
|
description: "查询系统可选权限清单(如超级管理员、智能审核管理、数据管理等)",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.listAvailablePermissions(client)
|
|
},
|
|
{
|
|
name: "seal_permissions_configs_list",
|
|
description: "查询当前租户已绑定的权限配置",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.listPermissionConfigs(client)
|
|
},
|
|
{
|
|
name: "seal_billing_status_get",
|
|
description: "查询当前 Seal 租户的订阅状态与各功能额度(AI审批、审核规则、知识文档等)",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.getBillingStatus(client)
|
|
},
|
|
{
|
|
name: "seal_billing_plans_list",
|
|
description: "查询系统支持的订阅套餐列表",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.listBillingPlans(client)
|
|
},
|
|
{
|
|
name: "seal_billing_features_list",
|
|
description: "查询系统支持的功能特性定义列表",
|
|
parameters: z.object({}),
|
|
handler: async (client: KyInstance) => api.listBillingFeatures(client)
|
|
}
|
|
];
|