mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-21 11:56:09 +00:00
9044f2d747
The 12 old adapters that now have an EBA replacement are tagged `spec.legacy: true` in their source manifests. Principle: don't delete, de-emphasize. - sources/*.yaml (aiocqhttp, dingtalk, discord, kook, lark, officialaccount, qqofficial, slack, telegram, wecom, wecombot, wecomcs): add spec.legacy: true - Adapter / IChooseAdapterEntity types: add optional legacy flag - BotForm adapter Select: split legacy adapters into a collapsed, grayscale group at the bottom with an explanatory hint; auto-expand when the bot already uses a legacy adapter - Wizard platform picker: same collapsed legacy section - i18n: legacyAdapters / legacyAdaptersHint (zh-Hans, en-US) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
94 lines
3.3 KiB
YAML
94 lines
3.3 KiB
YAML
apiVersion: v1
|
|
kind: MessagePlatformAdapter
|
|
metadata:
|
|
name: wecomcs
|
|
label:
|
|
en_US: WeComCustomerService
|
|
zh_Hans: 企业微信客服
|
|
zh_Hant: 企業微信客服
|
|
description:
|
|
en_US: WeComCSAdapter
|
|
zh_Hans: 企业微信对外客服机器人,需要公网地址以接收消息推送,请查看文档了解使用方式
|
|
zh_Hant: 企業微信對外客服機器人,需要公網地址以接收訊息推送,請查看文件了解使用方式
|
|
icon: wecom.png
|
|
spec:
|
|
legacy: true
|
|
categories:
|
|
- china
|
|
help_links:
|
|
zh: https://link.langbot.app/zh/platforms/wecomcs
|
|
en: https://link.langbot.app/en/platforms/wecomcs
|
|
ja: https://link.langbot.app/ja/platforms/wecomcs
|
|
config:
|
|
- name: webhook_url
|
|
label:
|
|
en_US: Webhook Callback URL
|
|
zh_Hans: Webhook 回调地址
|
|
zh_Hant: Webhook 回調地址
|
|
description:
|
|
en_US: Copy this URL and paste it into your WeCom Customer Service webhook configuration
|
|
zh_Hans: 复制此地址并粘贴到企业微信客服的 Webhook 配置中
|
|
zh_Hant: 複製此地址並貼到企業微信客服的 Webhook 設定中
|
|
type: webhook-url
|
|
required: false
|
|
default: ""
|
|
- name: __system.outbound_ips
|
|
label:
|
|
en_US: Trusted IPs
|
|
zh_Hans: 企业可信 IP
|
|
zh_Hant: 企業可信 IP
|
|
description:
|
|
en_US: Add these outbound IPs of the LangBot server to the "Trusted Enterprise IPs" of WeChat Customer Service in the WeCom admin console
|
|
zh_Hans: 请将这些 LangBot 服务器的出网 IP 添加到企业微信管理后台微信客服的「企业可信 IP」中
|
|
zh_Hant: 請將這些 LangBot 伺服器的出網 IP 加入企業微信管理後台微信客服的「企業可信 IP」中
|
|
type: array[string]
|
|
required: false
|
|
default: []
|
|
- name: corpid
|
|
label:
|
|
en_US: Corpid
|
|
zh_Hans: 企业ID
|
|
zh_Hant: 企業ID
|
|
type: string
|
|
required: true
|
|
default: ""
|
|
- name: secret
|
|
label:
|
|
en_US: Secret
|
|
zh_Hans: 密钥
|
|
zh_Hant: 密鑰
|
|
type: string
|
|
required: true
|
|
default: ""
|
|
- name: token
|
|
label:
|
|
en_US: Token
|
|
zh_Hans: 令牌
|
|
zh_Hant: 令牌
|
|
type: string
|
|
required: true
|
|
default: ""
|
|
- name: EncodingAESKey
|
|
label:
|
|
en_US: EncodingAESKey
|
|
zh_Hans: 消息加解密密钥
|
|
zh_Hant: 訊息加解密密鑰
|
|
type: string
|
|
required: true
|
|
default: ""
|
|
- name: api_base_url
|
|
label:
|
|
en_US: API Base URL
|
|
zh_Hans: API 基础 URL
|
|
zh_Hant: API 基礎 URL
|
|
description:
|
|
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
|
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档修改此项
|
|
zh_Hant: 可選,若您部署在內網環境並透過反向代理存取企業微信 API,可根據文件修改此項
|
|
type: string
|
|
required: false
|
|
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
|
execution:
|
|
python:
|
|
path: ./wecomcs.py
|
|
attr: WecomCSAdapter |