export interface CloudFunctionHttpTriggerOptions { /** * 小程序appId */ appId: string; /** * 服务空间ID */ spaceId: string; /** * 开启/关闭云函数触发功能 */ enable: boolean; /** * 云函数名 */ name: string; /** * 云函数HTTP触发路径,必须以/http开头,不能以/结尾, * 同一个Space下不允许重复,只支持(/)、(-)、(_)、(.)、字母和数字组合,最长不超过128个字符 */ httpTriggerPath?: string; } export interface CloudFunctionHttpTriggerResult { /** * 是否开启 */ enable: boolean; /** * 云函数HTTP触发器全路径 */ httpTriggerPath?: string; } /** * 开启或者关闭云函数的http触发器 */ declare function updateFunctionHttpTrigger(options: CloudFunctionHttpTriggerOptions): Promise; export default updateFunctionHttpTrigger;