feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
[
{
"key": "Authorization Code",
"value": 4,
"label": "Authorization Code",
"items": [
{
"key": "client_id",
"type": "text",
"max_len": 100,
"required": true
},
{
"key": "client_secret",
"type": "text",
"max_len": 100,
"required": true
},
{
"key": "client_url",
"type": "url",
"required": true
},
{
"key": "scope",
"type": "text",
"max_len": 500
},
{
"key": "authorization_url",
"type": "url",
"required": true
},
{
"key": "authorization_content_type",
"type": "text",
"default": "application/json",
"required": true
}
]
}
]

View File

@@ -0,0 +1,179 @@
info:
description: 从全网搜索任何网页信息和网页链接结果准确、摘要完整更适合AI使用。
title: 博查搜索
version: v1
openapi: 3.0.1
paths:
/v1/web-search:
post:
operationId: web_search
requestBody:
content:
application/json:
schema:
properties:
count:
default: 10
description: 返回结果的条数实际返回结果数量可能会小于count指定的数量。 - 可填范围1-50最大单次搜索返回50条 - 默认为100
type: integer
freshness:
default: noLimit
description: 搜索指定时间范围内的网页。 可填值: - oneDay一天内 - oneWeek一周内 - oneMonth一个月内 - oneYear一年内 - noLimit不限默认 - YYYY-MM-DD..YYYY-MM-DD搜索日期范围例如"2025-01-01..2025-04-06" - YYYY-MM-DD搜索指定日期例如"2025-04-06" 推荐使用“noLimit”。搜索算法会自动进行时间范围的改写效果更佳。
type: string
page:
default: 1
description: 页码,默认值为 1
type: integer
query:
description: 用户的搜索词
type: string
summary:
default: false
description: 是否显示文本摘要。 可填值: - true显示 - false不显示默认
type: boolean
required:
- query
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码
type: number
data:
description: 返回数据
properties:
_type:
description: 搜索的类型
type: string
images:
properties:
id:
type: string
isFamilyFriendly:
type: string
readLink:
type: string
value:
items:
properties:
contentSize:
type: string
contentUrl:
type: string
datePublished:
type: string
encodingFormat:
type: string
height:
type: number
hostPageDisplayUrl:
type: string
hostPageUrl:
type: string
name:
type: string
thumbnail:
type: string
thumbnailUrl:
type: string
webSearchUrl:
type: string
width:
type: number
type: object
type: array
webSearchUrl:
type: string
type: object
queryContext:
properties:
originalQuery:
description: 原始的搜索关键字
type: string
type: object
videos:
type: string
webPages:
properties:
someResultsRemoved:
description: 结果中是否有被安全过滤
type: boolean
totalEstimatedMatches:
description: 搜索匹配的网页总数
type: number
value:
items:
properties:
cachedPageUrl:
description: 网页的缓存页面URL
type: string
dateLastCrawled:
description: 网页的发布时间此处其实是发布时间名字起为LastCrawled是兼容性适配
type: string
datePublished:
description: 网页的发布时间例如2025-02-23T08:18:30+08:00UTC+8时间
type: string
displayUrl:
description: 网页的展示URLurl decode后的格式
type: string
id:
description: 网页的排序ID
type: string
isFamilyFriendly:
description: 是否为家庭友好的页面
type: boolean
isNavigational:
description: 是否为导航性页面
type: boolean
language:
description: 网页的语言
type: string
name:
description: 网页的标题
type: string
siteIcon:
description: 网页的网站图标
type: string
siteName:
description: 网页的网站名称
type: string
snippet:
description: 网页内容的简短描述
type: string
summary:
description: 网页内容的文本摘要,当请求参数中 summary 为 true 时显示此属性
type: string
url:
description: 网页的URL
type: string
type: object
type: array
webSearchUrl:
description: 网页搜搜的地址
type: string
type: object
type: object
log_id:
description: 日志 id
type: string
msg:
description: 错误信息
type: string
type: object
description: new desc
default:
description: ""
summary: |-
从全网搜索任何网页信息和网页链接结果准确、摘要完整更适合AI使用。
搜索结果:
包括网页、图片、视频Response格式兼容Bing Search API。
- 网页包括name、url、snippet、summary、siteName、siteIcon等信息
[图片]
- 图片包括 contentUrl、hostPageUrl、width、height等信息
servers:
- url: https://api.bochaai.com

View File

@@ -0,0 +1,50 @@
info:
description: 任务拆解
title: 板栗看板
version: v1
openapi: 3.0.1
paths:
/generate_tasks:
post:
operationId: generateTasks
requestBody:
content:
application/json:
schema:
properties:
input:
description: 用户的完整输入内容,只支持中文
type: string
required:
- input
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
data:
properties:
edit_text:
type: string
edit_url:
type: string
img_url:
type: string
view_text:
type: string
type: object
type_for_model:
type: number
x-global-disable: true
type: object
description: new desc
default:
description: ""
summary: 根据用户提问拆解任务,生成任务看板
servers:
- url: https://banlikanban.com/ai/coze

View File

@@ -0,0 +1,754 @@
info:
description: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
title: 高德地图
version: v1
openapi: 3.0.1
paths:
/v3/geocode/geo:
get:
operationId: geocodeGeo
parameters:
- description: 经纬度,经度在前,维度在后,用英文逗号分隔;例如 123,121
in: query
name: address
required: true
schema:
type: string
- description: 指定查询的城市
in: query
name: city
schema:
type: string
responses:
"200":
description: "成功返回"
content:
application/json:
schema:
properties:
status:
type: string
description: "返回结果状态值, 返回值为 0 或 10 表示请求失败1 表示请求成功。"
count:
type: string
description: "返回结果数目, 返回结果的个数。"
info:
type: string
description: "返回状态说明, 当 status 为 0 时info 会返回具体错误原因否则返回“OK”。详情可以参阅 info 状态表"
geocodes:
type: array
description: "地理编码信息列表, 结果对象列表"
items:
type: object
properties:
country:
type: string
description: "国家, 国内地址默认返回中国"
province:
type: string
description: "地址所在的省份名, 例如:北京市。此处需要注意的是,中国的四大直辖市也算作省级单位。"
city:
type: string
description: "地址所在的城市名, 例如:北京市"
citycode:
type: string
description: "城市编码, 例如010"
district:
type: string
description: "地址所在的区, 例如:朝阳区"
street:
type: string
description: "街道, 例如:阜通东大街"
number:
type: string
description: "门牌, 例如6号"
adcode:
type: string
description: "区域编码, 例如110101"
location:
type: string
description: "坐标点, 经度,纬度"
level:
type: string
description: "匹配级别, 参见下方的地理编码匹配级别列表"
type: object
default:
description: ""
summary: 地理编码:将详细的结构化地址转换为高德经纬度坐标
/v3/ip:
get:
operationId: ip
parameters:
- description: 需要搜索的 IP 地址(仅支持国内),若用户不填写 IP则取客户 http 之中的请求来进行定位
in: query
name: ip
required: false
schema:
type: string
- description: 选择数字签名认证的付费用户必填
in: query
name: sig
required: false
schema:
type: string
responses:
"200":
description: "成功返回"
content:
application/json:
schema:
properties:
status:
type: string
description: "返回结果状态值, 值为0或1,0表示失败1表示成功"
info:
type: string
description: "返回状态说明, 返回状态说明status 为0时info 返回错误原因否则返回“OK”。"
infocode:
type: string
description: "状态码, 返回状态说明,10000代表正确,详情参阅 info 状态表"
province:
type: string
description: "省份名称, 若为直辖市则显示直辖市名称; 如果在局域网 IP 网段内,则返回“局域网”; 非法 IP 以及国外 IP 则返回空"
city:
type: string
description: "城市名称, 若为直辖市则显示直辖市名称; 如果为局域网网段内 IP 或者非法 IP 或国外 IP则返回空"
adcode:
type: string
description: "城市的 adcode 编码, adcode 信息可参考 城市编码表 获取"
rectangle:
type: string
description: "所在城市矩形区域范围, 所在城市范围的左下右上对标对"
type: object
default:
description: ""
summary: IP定位
/v3/geocode/regeo:
get:
operationId: geocodeRegeo
parameters:
- name: location
in: query
required: true
description: 传入内容规则:经度在前,纬度在后,经纬度间以“,”分割,经纬度小数点后不要超过 6 位。
schema:
type: string
- name: radius
in: query
required: false
description: 搜索半径, radius 取值范围0~3000默认值1000。单位
schema:
type: string
default: "1000"
- name: extensions
in: query
required: false
description: "返回结果控制, extensions 参数默认取值是 base也就是返回基本地址信息 extensions 参数取值为 all 时会返回基本地址信息、附近 POI 内容、道路信息以及道路交叉口信息。"
schema:
type: string
default: "base"
- name: roadlevel
in: query
required: false
description: "道路等级, 以下内容需要 extensions 参数为 all 时才生效。可选值01 当 roadlevel=0时显示所有道路 当 roadlevel=1时过滤非主干道路仅输出主干道路数据"
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
regeocode:
properties:
addressComponent:
properties:
businessAreas:
items:
properties:
location:
type: string
name:
type: string
type: object
type: array
country:
type: string
district:
type: string
province:
type: string
streetNumber:
properties:
direction:
type: string
distance:
type: string
location:
type: string
number:
type: string
street:
type: string
type: object
township:
type: string
type: object
formatted_address:
type: string
type: object
info:
type: string
infocode:
type: string
type: object
description: new desc
default:
description: ""
summary: 逆地理编码将经纬度转换为详细结构化的地址且返回附近周边的POI、AOI信息
/v5/direction/bicycling:
get:
operationId: directionBicycling
summary: 骑行路径规划
parameters:
- name: origin
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: destination
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
route:
properties:
destination:
type: string
origin:
type: string
paths:
items:
properties:
distance:
type: string
duration:
type: string
steps:
items:
properties:
duration:
type: string
index:
type: integer
instruction:
type: string
road_name:
type: string
step_distance:
type: number
type: object
type: array
type: object
type: array
type: object
type: object
description: new desc
default:
description: ""
/v5/direction/driving:
get:
operationId: directionDriving
summary: 驾车路线规划
parameters:
- name: origin
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: destination
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
route:
properties:
destination:
type: string
origin:
type: string
taxi_cost:
type: string
paths:
items:
properties:
distance:
type: string
restriction:
type: string
steps:
items:
properties:
road_name:
type: integer
instruction:
type: string
orientation:
type: string
step_distance:
type: number
type: object
type: array
type: object
type: array
type: object
type: object
description: new desc
default:
description: ""
/v5/direction/electrobike:
get:
operationId: directionElectrobike
summary: 电动车(骑行)路线规划
parameters:
- name: origin
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: destination
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
route:
properties:
destination:
type: string
origin:
type: string
taxi_cost:
type: string
paths:
items:
properties:
distance:
type: string
steps:
items:
properties:
road_name:
type: integer
instruction:
type: string
orientation:
type: string
step_distance:
type: number
type: object
type: array
type: object
type: array
type: object
type: object
description: new desc
default:
description: ""
/v5/direction/transit/integrated:
get:
operationId: directionTransit
summary: 公交路线规划
parameters:
- name: origin
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: destination
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: city1
in: query
required: true
description: 起点所在城市,仅支持 citycode
schema:
type: string
- name: city2
in: query
required: true
description: 目的地所在城市, 仅支持 citycode
schema:
type: string
- name: strategy
in: query
required: false
description: 公共交通换乘策略 0推荐模式综合权重同高德APP默认 1最经济模式票价最低 2最少换乘模式换乘次数少 3最少步行模式尽可能减少步行距离 4最舒适模式尽可能乘坐空调车5不乘地铁模式不乘坐地铁路线6地铁图模式起终点都是地铁站地铁图模式下 originpoi 及 destinationpoi 为必填项7地铁优先模式步行距离不超过4KM8时间短模式方案花费总时间最少
schema:
type: number
- name: date
in: query
required: false
description: 请求日期
schema:
type: string
- name: time
in: query
required: false
description: 请求时间
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
route:
properties:
destination:
type: string
origin:
type: string
distance:
type: string
transits:
items:
type: object
properties:
distance:
type: string
nightflag:
type: string
paths:
items:
properties:
bus:
properties:
buslines:
items:
properties:
arrival_stop:
properties:
exit:
properties:
location:
type: string
name:
type: string
type: object
id:
type: string
location:
type: string
name:
type: string
type: object
departure_stop:
properties:
entrance:
properties:
location:
type: string
name:
type: string
type: object
id:
type: string
location:
type: string
name:
type: string
type: object
distance:
type: string
duration:
type: string
end_time:
type: string
id:
type: string
name:
type: string
start_time:
type: string
type:
type: string
via_num:
type: string
via_stops:
items:
properties:
id:
type: string
location:
type: string
name:
type: string
type: object
type: array
type: object
type: array
type: object
taxi:
properties:
price:
type: string
drivetime:
type: string
distance:
type: string
polyline:
type: string
startpoint:
type: string
startname:
type: string
endpoint:
type: string
endname:
type: string
type: object
railway:
properties:
destination:
type: string
distance:
type: string
origin:
type: string
steps:
items:
properties:
distance:
type: string
instruction:
type: string
road:
type: string
type: object
type: array
type: object
walking:
properties:
destination:
type: string
distance:
type: string
origin:
type: string
steps:
items:
properties:
distance:
type: string
instruction:
type: string
road:
type: string
type: object
type: array
type: object
type: object
type: array
type: array
type: object
type: object
description: new desc
default:
description: ""
/v5/direction/walking:
get:
operationId: directionWalking
summary: 步行路线规划
parameters:
- name: origin
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: destination
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
route:
properties:
destination:
type: string
origin:
type: string
paths:
items:
properties:
distance:
type: string
steps:
items:
properties:
orientation:
type: string
instruction:
type: string
road_name:
type: string
step_distance:
type: number
type: object
type: array
type: object
type: array
type: object
type: object
description: new desc
default:
description: ""
/v5/place/around:
get:
operationId: placeAround
summary: 周边搜索
parameters:
- name: radius
in: query
required: false
description: 搜索半径,取值范围:0-50000大于50000时按默认值单位
schema:
type: string
- name: location
in: query
required: true
description: 经度在前,纬度在后,经度和纬度用","分割经纬度小数点后不得超过6位。
schema:
type: string
- name: types
in: query
required: false
description: 指定地点类型,地点文本搜索接口支持按照设定的POI类型限定地点搜索结果地点类型与 poi typecode 是同类内容可以传入多个poi typecode相互之间用“|”分隔,内容可以参考 POI 分类码表地点POI列表的排序会按照高德搜索能力进行综合权重排序
schema:
type: string
responses:
"200":
content:
application/json:
schema:
properties:
status:
type: number
info:
type: string
infocode:
type: string
count:
type: number
pois:
items:
properties:
name:
type: string
id:
type: string
location:
type: string
type:
type: string
typecode:
type: string
pname:
type: string
cityname:
type: string
adname:
type: string
address:
type: string
pcode:
type: string
adcode:
type: string
citycode:
type: string
type: object
type: array
type: object
description: new desc
default:
description: ""
servers:
- url: https://restapi.amap.com

View File

@@ -0,0 +1,58 @@
info:
description: 上传图片链接返回压缩后的base64
title: 图片压缩
version: v1
openapi: 3.0.1
paths:
/img2base64/img2base64:
post:
operationId: img2base64
requestBody:
content:
application/json:
schema:
properties:
output_height:
description: 压缩后图片高度
type: integer
output_width:
description: 压缩后图片宽度
type: integer
quality:
description: 压缩质量。范围1-100数字越大压缩后图片质量越高
type: integer
url:
description: 图片链接
format: image_url
type: string
x-assist-type: image
required:
- quality
- url
- output_height
- output_width
type: object
responses:
"200":
content:
application/json:
schema:
properties:
compressed_size:
description: 压缩后文件大小
type: string
content:
description: base64图片
type: string
error:
type: string
original_size:
description: 压缩前文件大小
type: string
type: object
description: new desc
default:
description: ""
summary: 压缩图片后返回base64
servers:
- url: https://7458701539994107904.cozefn.cn

View File

@@ -0,0 +1,56 @@
info:
description: 飞书认证及授权
title: 飞书认证及授权
version: v1
openapi: 3.0.1
paths:
/access_token/get_tenant_access_token:
post:
operationId: get_tenant_access_token
requestBody:
content:
application/json:
schema:
properties:
app_id:
description: 应用唯一标识,创建应用后获得。
type: string
app_secret:
description: 应用秘钥,创建应用后获得。
type: string
required:
- app_id
- app_secret
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 取值表示失败
type: number
expire:
description: tenant_access_token 的过期时间,单位为秒
type: number
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
tenant_access_token:
description: 租户访问凭证
type: string
type: object
description: new desc
default:
description: ""
summary: |-
自建应用通过此接口获取 tenant_access_token。
说明: tenant_access_token 的最大有效期是 2 小时。如果在有效期小于 30 分钟的情况下,调用本接口,会返回一个新的 tenant_access_token这会同时存在两个有效的 tenant_access_token。
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,479 @@
info:
description: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
title: 飞书日历
version: v1
openapi: 3.0.1
paths:
/calendar/create_event:
post:
operationId: create_event
requestBody:
content:
application/json:
schema:
properties:
auto_record:
description: 是否开启自动录制true开启会议开始后自动录制false不开启
type: boolean
description:
description: 日程描述
type: string
end_time:
description: 日程结束时间格式2006-01-02 15:04:05
type: string
need_notification:
description: 更新日程时是否发送bot消息true发送false不发送
type: boolean
start_time:
description: 日程开始时间格式2006-01-02 15:04:05
type: string
summary:
description: 日程标题,若不填则日程标题显示 (无主题)
type: string
required:
- start_time
- end_time
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示错误
type: number
data:
description: 返回数据
properties:
appLink:
description: 日程的 app_link跳转到具体的某个日程
type: string
create_time:
description: 日程创建时间,格式:yyyy-MM-dd HH:mm:ss如 2024-07-23 14:55:33
type: string
description:
description: 日程描述
type: string
end_time:
description: 日程结束时间,格式:yyyy-MM-dd HH:mm:ss如 2024-07-22 17:05:00
type: string
event_id:
description: 日程 ID
type: string
event_organizer:
description: 日程组织者信息
properties:
display_name:
description: 日程组织者姓名
type: string
user_id:
description: 日程组织者 ID
type: string
type: object
organizer_calendar_id:
description: 日程组织者日历 ID
type: string
recurrence:
description: 重复日程的重复性规则
type: string
start_time:
description: 日程开始时间,格式:yyyy-MM-dd HH:mm:ss如 2024-07-22 16:05:00
type: string
status:
description: 日程状态
type: string
summary:
description: 日程标题
type: string
type: object
log_id:
description: 日志id
type: string
msg:
description: 返回信息
type: string
type: object
description: new desc
default:
description: ""
summary: 创建日程
/calendar/delete_event/{event_id}:
delete:
operationId: delete_event
parameters:
- description: 日程 ID例如e8b9791c-39ae-4908-8ad8-66b13159b9fb_0
in: path
name: event_id
required: true
schema:
type: string
- description: 删除日程是否给日程参与人发送Bot通知
in: query
name: need_notification
schema:
default: "true"
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 删除日程
/calendar/get_primary_calendar:
get:
operationId: get_primary_calendar
parameters:
- description: 用户 ID 类型
in: query
name: user_id_type
schema:
default: open_id
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
calendars:
description: 主日历列表
items:
description: 日历实体信息
properties:
calendar:
description: 日历实体信息
properties:
calendar_id:
description: 日历 ID
type: string
color:
description: 日历颜色,由颜色 RGB 值的 int32 表示
type: integer
description:
description: 日历描述
type: string
is_deleted:
description: 对于当前身份,日历是否已经被标记为删除
type: boolean
is_third_party:
description: 当前日历是否是第三方数据
type: boolean
permissions:
description: 日历公开范围private私密show_only_free_busy仅展示忙闲信息public公开他人可查看日程详情
type: string
role:
description: 当前身份对于该日历的访问权限
type: string
summary:
description: 日历标题
type: string
summary_alias:
description: 日历备注名
type: string
type:
description: 日历类型
type: string
type: object
user_id:
description: 日历创建者的 User ID
type: string
type: object
type: array
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 查询主日历信息
/calendar/list_events:
get:
operationId: list_events
parameters:
- description: 一次请求要求返回的最大日程数量范围50-1000
in: query
name: page_size
schema:
default: "50"
type: string
- description: 分页标记
in: query
name: page_token
schema:
type: string
- description: 开始时间,不传值时默认当天0点时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
in: query
name: start_time
schema:
type: string
- description: 结束时间,不传值时默认当天23:59分时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
in: query
name: end_time
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
has_more:
description: 是否还有更多项
type: boolean
items:
description: 日程列表,结果为空时返回空数组
items:
description: 日程信息
properties:
app_link:
description: 日程的 app_link跳转到具体的某个日程
type: string
create_time:
description: 日程创建时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
type: string
description:
description: 日程描述
type: string
end_time:
description: 结束时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 17:04:05
type: string
event_id:
description: 日程 ID
type: string
event_organizer:
description: 日程组织者信息
properties:
display_name:
description: 日程组织者姓名
type: string
user_id:
description: 日程组织者 user ID
type: string
type: object
organizer_calendar_id:
description: 日程组织者的日历 ID
type: string
recurrence:
description: 重复日程的重复性规则
type: string
start_time:
description: 开始时间,格式:yyyy-MM-dd HH:mm:ss,如:2006-01-02 15:04:05
type: string
status:
description: 日程状态
type: string
summary:
description: 日程标题
type: string
type: object
type: array
page_token:
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token否则不返回 page_token
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取日程列表
/calendar/search_events:
post:
operationId: search_events
requestBody:
content:
application/json:
schema:
properties:
end_time:
description: 日程搜索区间的结束时间不传默认取当天23:59分时间格式2024-08-12 23:00:00
type: string
page_size:
default: 20
description: 一次调用所返回的最大日程数量最大值100
type: integer
page_token:
description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token下次遍历可采用该 page_token 获取查询结果
type: string
query:
description: 搜索关键字用于模糊查询日程名称最大输入200字符数必填不允许空串
type: string
start_time:
description: 日程搜索区间的开始时间不传默认取当天0点时间格式2024-08-01 10:00:00
type: string
user_id_type:
default: open_id
description: 用户 ID 类型枚举值open_id、union_id、user_id
type: string
required:
- query
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码0表示成功其他值表示失败
type: integer
data:
description: 返回数据
properties:
items:
description: 日程列表
items:
description: 日程信息
properties:
app_link:
description: 日程的 app_link跳转到具体的某个日程
type: string
description:
description: 日程描述
type: string
end_time:
description: 日程结束时间,格式2024-08-18 01:00:00
type: string
event_id:
description: 日程 ID46b9231b-244e-4d3c-845e-0a4d25469b5b_0
type: string
organizer_calendar_id:
description: 日程组织者的日历 ID
type: string
recurrence:
description: 重复日程的重复性规则
type: string
start_time:
description: 日程开始时间,格式2024-08-18 00:30:00
type: string
status:
description: 日程状态,可选值有 tentative 未回应confirmed已确认
type: string
summary:
description: 日程标题
type: string
type: object
type: array
page_token:
description: 分页token
type: string
type: object
log_id:
description: 日志 ID
type: string
msg:
description: 错误信息
type: string
type: object
description: new desc
default:
description: ""
summary: 搜索日程
/calendar/update_event/{event_id}:
patch:
operationId: update_event
parameters:
- description: 日程 ID例如e8b9791c-39ae-4908-8ad8-66b13159b9fb_0
in: path
name: event_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
properties:
auto_record:
description: 开启自动录制true录制false不录制不传则不更新此字段
type: boolean
description:
description: 日程描述,空表示不更新该字段
type: string
end_time:
description: 日程结束时间格式2024-07-22 22:30:00不传该字段则不更新
type: string
need_notification:
description: 更新日程时是否发送bot消息不传则不更新
type: boolean
start_time:
description: 日程开始时间格式2024-07-22 22:30:00不传该字段则不更新
type: string
summary:
description: 日程标题,空表示不更新该字段
type: string
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: number
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 更新日程
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,552 @@
info:
description: |-
飞书云文档,支持以下操作:
1. 创建文档;
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
4. 获取文档的所有块;
5. 获取文档的基本信息;
6. 搜索文档类型的文档;
7. 搜索 PPT 类型的文档;
title: 飞书云文档
version: v1
openapi: 3.0.1
paths:
/document/create_document:
post:
operationId: create_document
requestBody:
content:
application/json:
schema:
properties:
content:
description: 文档内容,支持 markdown 语法,可以为空。
type: string
folder_token:
description: 指定文档所在文件夹 的 Token不传或传空表示根目录。支持输入文件夹 token 或者 文件夹 URL。
type: string
title:
description: 文档标题,只支持纯文本。
type: string
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
title:
description: 文档标题
type: string
token:
description: 文档唯一标识
type: string
type:
description: 文档类型
type: string
url:
description: 文档链接
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 创建文档,支持创建空文档和带内容的文档,支持 markdown 语法创建。
/document/get_document_content:
get:
operationId: get_document_content
parameters:
- description: 文档的唯一标识,支持输入文档的 URL。支持新文档和老文档老文档不支持 markdown 格式获取。
in: query
name: document_id
required: true
schema:
type: string
- description: 指定返回的 MentionUser 即 @用户 的语言,可选值有 [0,1]。0该用户的默认名称1该用户的英文名称默认值为 0。
in: query
name: lang
schema:
default: 0
type: integer
- description: 文档返回格式,可选值有 text、markdown可以为空默认值为 markdown。
in: query
name: mode
schema:
default: markdown
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
content:
description: 文档纯文本
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取文档的内容,支持以纯文本或者 markdown 格式返回。
/document/get_document_info:
get:
operationId: get_document_info
parameters:
- description: 文档的唯一标识,支持输入文档的 URL。
in: query
name: document_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
document:
description: 文档信息
properties:
document_id:
description: 文档的唯一标识
type: string
title:
description: 文档标题
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取文档的基本信息
/document/list_document_blocks:
get:
operationId: list_document_blocks
parameters:
- description: 查询的文档版本,-1 表示文档最新版本。文档创建后,版本为 1。若查询的版本为文档最新版本则需要持有文档的阅读权限若查询的版本为文档的历史版本则需要持有文档的编辑权限。你可通过调用获取文档基本信息获取文档的 revision_id。
in: query
name: document_revision_id
schema:
default: -1
type: integer
x-global-disable: true
- description: 用户 ID 类型,可选值有 open_id、union_id、user_id默认值为 open_id。
in: query
name: user_id_type
schema:
default: open_id
type: string
- description: 文档的唯一标识,支持输入文档的 URL。
in: query
name: document_id
required: true
schema:
type: string
- description: 分页大小
in: query
name: page_size
schema:
default: 500
type: integer
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token下次遍历可采用该 page_token 获取查询结果。
in: query
name: page_token
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
has_more:
description: 是否还有更多项
type: boolean
items:
description: 文档的 Block 信息
items:
description: 文档的 Block 信息项,格式为 json 字符串。
type: string
type: array
page_token:
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token否则不返回 page_token。
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取文档的所有块,获取文档所有块的富文本内容并分页返回。
/document/search_document:
post:
operationId: search_document
requestBody:
content:
application/json:
schema:
properties:
count:
description: 指定搜索返回的文件数量。取值范围为 [0,50]。
type: integer
offset:
description: 指定搜索的偏移量,该参数最小为 0即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200即 offset + count < 200
type: integer
search_key:
description: 指定搜索的关键字
type: string
required:
- search_key
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
docs_entities:
description: 包含搜索关键词的文件列表
items:
description: 包含搜索关键词的文件
properties:
docs_token:
description: 文件的 token
type: string
docs_type:
description: 文件的类型
type: string
owner_id:
description: 文件的所有者
type: string
title:
description: 文件的标题
type: string
url:
description: 文档的链接
type: string
type: object
type: array
has_more:
description: 结果列表后是否还有数据
type: boolean
total:
description: 包含搜索关键词的文件总数量
type: number
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 搜索文档类型的文档
/document/search_slides:
post:
operationId: search_slides
requestBody:
content:
application/json:
schema:
properties:
count:
description: 指定搜索返回的文件数量。取值范围为 [0,50]。
type: integer
offset:
description: 指定搜索的偏移量,该参数最小为 0即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200即 offset + count < 200
type: integer
search_key:
description: 指定搜索的关键字
type: string
required:
- search_key
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
docs_entities:
description: 包含搜索关键词的文件列表
items:
description: 包含搜索关键词的文件
properties:
docs_token:
description: 文件的 token
type: string
docs_type:
description: 文件的类型
type: string
owner_id:
description: 文件的所有者
type: string
title:
description: 文件的标题
type: string
url:
description: 文档的链接
type: string
type: object
type: array
has_more:
description: 结果列表后是否还有数据
type: boolean
total:
description: 包含搜索关键词的文件总数量
type: number
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 搜索 PPT 类型的文档
/document/write_document:
post:
operationId: write_document
requestBody:
content:
application/json:
schema:
properties:
content:
description: 纯文本或者 markdown 内容,注意文档的内嵌套表格不允许有单元格合并。
type: string
document_id:
description: 文档的唯一标识,支持输入文档的 URL。
type: string
position:
default: end
description: '枚举值 start、endstart: 在文档开头添加内容end: 在文档结尾添加内容,默认值为 end。'
type: string
required:
- document_id
- content
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: integer
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 在文档中新增内容,支持纯文本或者 markdown 格式。
/drive/download_media:
get:
operationId: download_media
parameters:
- description: 素材唯一标识
in: query
name: file_token
required: true
schema:
type: string
- description: 拥有高级权限的多维表格在下载素材时,需要添加额外的扩展信息作为 URL 查询参数鉴权。详情参考https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction
in: query
name: extra
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 响应数据
properties:
file_base64:
description: 素材base64
type: string
file_name:
description: 素材名称
type: string
file_token:
description: 素材唯一标识
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 失败描述
type: string
type: object
description: new desc
default:
description: ""
summary: 下载素材
/drive/upload_media:
post:
operationId: upload_media
requestBody:
content:
application/json:
schema:
properties:
extra:
description: 额外参数。参考文档https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction#3b8635d3
type: string
x-global-disable: true
file_name:
description: 待上传的素材的名称 示例值:"demo.jpeg" 数据校验规则: - 最大长度250 字符
type: string
file_url:
description: 待上传的素材链接,需要在国内可公开访问
type: string
parent_node:
description: 上传点的 token即要上传的云文档的 token用于指定素材将要上传到的云文档或位置。支持填写文档URL
type: string
parent_type:
description: 上传点的类型。 示例值:"docx_image"、"bitable_image"参考文档https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction
type: string
required:
- file_url
- file_name
- parent_type
- parent_node
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 响应结果
properties:
file_token:
description: 上传的素材唯一标识
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 上传素材到飞书云文档、文档空间、多维表格、电子表格。上传成功后获取对应素材的飞书file_token。详见飞书开发文档 https://open.larkoffice.com/document/server-docs/docs/drive-v1/media/introduction
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,499 @@
info:
description: |-
飞书消息,支持以下功能
1. 使用飞书自定义机器人 webhook 发送消息;
2. 使用飞书应用机器人发送消息;
3. 获取指定单聊、群聊的消息历史;
4. 获取指定话题的消息历史;
title: 飞书消息
version: v1
openapi: 3.0.1
paths:
/message/get_chat_messages:
get:
operationId: get_chat_messages
parameters:
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
in: header
name: appid
schema:
type: string
- description: appsecret 应用秘钥,创建应用后获得。
in: header
name: appsecret
schema:
type: string
- description: 群聊或单聊的 ID获取方式参见群 ID 说明。https://open.larkoffice.com/document/server-docs/group/chat/chat-id-description
in: query
name: container_id
required: true
schema:
type: string
- description: 待查询历史信息的起始时间,格式为 "2006-01-02 15:04:05"。
in: query
name: start_time
schema:
type: string
- description: 待查询历史信息的结束时间,格式为 "2006-01-02 15:04:05"。
in: query
name: end_time
schema:
type: string
- description: 消息排序方式,可选值有 ByCreateTimeAsc按消息创建时间升序排列ByCreateTimeDesc按消息创建时间降序排列。默认值为ByCreateTimeAsc。注意使用 page_token 分页请求时排序方式sort_type均与第一次请求一致不支持中途改换排序方式。
in: query
name: sort_type
schema:
default: ByCreateTimeAsc
type: string
- description: 分页大小,即单次请求所返回的数据条目数。默认值为 20取值范围为 [1,50]。
in: query
name: page_size
schema:
default: 20
type: integer
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token下次遍历可采用该 page_token 获取查询结果。
in: query
name: page_token
schema:
type: string
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
in: header
name: tenant-access-token
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回数据
properties:
has_more:
description: 是否还有更多项
type: boolean
items:
description: 历史消息数据
items:
description: 消息详情
properties:
body:
description: 通过 body 内的 content 参数,返回当前的消息内容。
properties:
content:
description: 消息内容JSON 结构序列化后的字符串不同消息类型msg_type对应不同内容。 注意:卡片消息内容与在卡片搭建工具中获取的卡片 JSON 不一致,暂不支持返回原始卡片 JSON。
type: string
type: object
chat_id:
description: 消息所属的群 ID。你可以调用获取群信息接口根据群 ID 获取群详情。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get
type: string
create_time:
description: 消息生成的时间
type: string
deleted:
description: '消息是否被撤回或删除。true: 是false: 否'
type: boolean
mentions:
description: 消息内被 @ 的用户或机器人列表。
properties:
id:
description: 被 @ 的用户或机器人的 open_id。
type: string
id_type:
description: 被 @ 的用户或机器人的 ID 类型,目前仅支持 open_id。
type: string
key:
description: 被 @ 的用户或机器人序号。例如,第 3 个被 @ 到的成员,取值为 @_user_3。
type: string
name:
description: 被 @ 的用户或机器人的姓名。
type: string
tenant_key:
description: 租户唯一标识。该标识用来识别被 @ 用户或机器人的租户也可以用来获取租户访问凭证tenant_access_token
type: string
type: object
message_id:
description: 消息 ID由系统生成的唯一 ID 标识。后续对消息的管理维护操作均需要使用该 ID。
type: string
msg_type:
description: 消息类型。各类型详情参考 https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/message_content
type: string
parent_id:
description: 父消息 ID。在有多个回复的消息树中parent_id 为当前消息上一层的消息 message_id。如果回复的是话题则 parent_id 始终为话题内根消息的 message_id。关于 parent_id 的更多说明参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
root_id:
description: 根消息 ID。在有多个回复的消息树中root_id 为根消息的 message_id。如果回复的是话题则 root_id 为话题内根消息的 message_id。关于 root_id 的更多说明参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
sender:
description: 当前消息的发送者信息。
properties:
id:
description: 发送者的 ID。
type: string
id_type:
description: 发送者的 ID 类型。可能值有: open_id表示发送者为用户且返回的 ID 是用户的 open_id。 app_id表示发送者为应用切返回的 ID 是应用的 app_id。
type: string
sender_type:
description: '发送者类型。 可能值有: user: 用户 app: 应用 anonymous: 匿名 unknown: 未知。'
type: string
tenant_key:
description: 租户唯一标识。该标识用来识别租户也可以用来获取租户访问凭证tenant_access_token
type: string
type: object
thread_id:
description: 消息所属的话题 ID不返回说明该消息不是话题形式的消息。了解话题可参见话题概述。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
type: string
update_time:
description: 消息更新的时间
type: string
updated:
description: 消息是否被更新。 truefalse否。
type: boolean
upper_message_id:
description: 合并转发消息中,上一层级的消息 ID仅在合并转发场景会有返回值。了解 upper_message_id 可参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
type: object
type: array
page_token:
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token否则不返回 page_token。
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取指定单聊、群聊的消息历史
/message/get_thread_messages:
get:
operationId: get_thread_messages
parameters:
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
in: header
name: appid
schema:
type: string
- description: appsecret 应用秘钥,创建应用后获得。
in: header
name: appsecret
schema:
type: string
- description: 话题 ID获取方式参见话题概述的如何获取 thread_id 章节。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
in: query
name: container_id
required: true
schema:
type: string
- description: 待查询历史信息的起始时间,格式为 "2006-01-02 15:04:05"。
in: query
name: start_time
schema:
type: string
x-global-disable: true
- description: 待查询历史信息的结束时间,格式为 "2006-01-02 15:04:05"。
in: query
name: end_time
schema:
type: string
x-global-disable: true
- description: 消息排序方式,可选值有 ByCreateTimeAsc按消息创建时间升序排列ByCreateTimeDesc按消息创建时间降序排列。默认值为ByCreateTimeAsc。注意使用 page_token 分页请求时排序方式sort_type均与第一次请求一致不支持中途改换排序方式。
in: query
name: sort_type
schema:
default: ByCreateTimeAsc
type: string
- description: 分页大小,即单次请求所返回的数据条目数。默认值为 20取值范围为 [1,50]。
in: query
name: page_size
schema:
default: 20
type: integer
- description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token下次遍历可采用该 page_token 获取查询结果。
in: query
name: page_token
schema:
type: string
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
in: header
name: tenant-access-token
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回数据
properties:
has_more:
description: 是否还有更多项
type: boolean
items:
description: 历史消息数据
items:
description: 消息详情
properties:
body:
description: 通过 body 内的 content 参数,返回当前的消息内容。
properties:
content:
description: 消息内容JSON 结构序列化后的字符串不同消息类型msg_type对应不同内容。 注意:卡片消息内容与在卡片搭建工具中获取的卡片 JSON 不一致,暂不支持返回原始卡片 JSON。
type: string
type: object
chat_id:
description: 消息所属的群 ID。你可以调用获取群信息接口根据群 ID 获取群详情。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get
type: string
create_time:
description: 消息生成的时间
type: string
deleted:
description: '消息是否被撤回或删除。true: 是false: 否'
type: boolean
mentions:
description: 消息内被 @ 的用户或机器人列表。
properties:
id:
description: 被 @ 的用户或机器人的 open_id。
type: string
id_type:
description: 被 @ 的用户或机器人的 ID 类型,目前仅支持 open_id。
type: string
key:
description: 被 @ 的用户或机器人序号。例如,第 3 个被 @ 到的成员,取值为 @_user_3。
type: string
name:
description: 被 @ 的用户或机器人的姓名。
type: string
tenant_key:
description: 租户唯一标识。该标识用来识别被 @ 用户或机器人的租户也可以用来获取租户访问凭证tenant_access_token
type: string
type: object
message_id:
description: 消息 ID由系统生成的唯一 ID 标识。后续对消息的管理维护操作均需要使用该 ID。
type: string
msg_type:
description: 消息类型。各类型详情参考 https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/message_content
type: string
parent_id:
description: 父消息 ID。在有多个回复的消息树中parent_id 为当前消息上一层的消息 message_id。如果回复的是话题则 parent_id 始终为话题内根消息的 message_id。关于 parent_id 的更多说明参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
root_id:
description: 根消息 ID。在有多个回复的消息树中root_id 为根消息的 message_id。如果回复的是话题则 root_id 为话题内根消息的 message_id。关于 root_id 的更多说明参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
sender:
description: 当前消息的发送者信息。
properties:
id:
description: 发送者的 ID。
type: string
id_type:
description: 发送者的 ID 类型。可能值有: open_id表示发送者为用户且返回的 ID 是用户的 open_id。 app_id表示发送者为应用切返回的 ID 是应用的 app_id。
type: string
sender_type:
description: '发送者类型。 可能值有: user: 用户 app: 应用 anonymous: 匿名 unknown: 未知。'
type: string
tenant_key:
description: 租户唯一标识。该标识用来识别租户也可以用来获取租户访问凭证tenant_access_token
type: string
type: object
thread_id:
description: 消息所属的话题 ID不返回说明该消息不是话题形式的消息。了解话题可参见话题概述。https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/thread-introduction
type: string
update_time:
description: 消息更新的时间
type: string
updated:
description: 消息是否被更新。 truefalse否。
type: boolean
upper_message_id:
description: 合并转发消息中,上一层级的消息 ID仅在合并转发场景会有返回值。了解 upper_message_id 可参见消息管理概述。https://open.larkoffice.com/document/server-docs/im-v1/message/intro
type: string
type: object
type: array
page_token:
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token否则不返回 page_token。
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取指定话题的消息历史
/message/send_bot_message:
post:
operationId: send_bot_message
parameters:
- description: 租户访问凭证,即以租户(企业或团队)身份调用 API。
in: header
name: tenant-access-token
schema:
type: string
- description: 用户 ID 类型,可选值有 open_id、union_id、user_id、email、chat_id。
in: query
name: receive_id_type
required: true
schema:
type: string
- description: appid 是飞书开放平台应用的唯一标识,创建应用后获得。
in: header
name: appid
schema:
type: string
- description: appsecret 应用秘钥,创建应用后获得。
in: header
name: appsecret
schema:
type: string
requestBody:
content:
application/json:
schema:
properties:
content:
description: 消息内容文本字符串或者JSON 结构序列化后的字符串,其中 msg_type 为 text、share_chat、share_user、image 时支持文本字符串。不同 msg_type 对应不同的消息内容具体格式说明参考https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json
type: string
msg_type:
description: '消息类型 包括text、post、image、file、audio、media、sticker、interactive、share_chat、share_user 等,类型定义请参考: https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json'
type: string
receive_id:
description: 消息接收者的 IDID 类型应与查询参数 receive_id_type 对应。
type: string
required:
- receive_id
- msg_type
- content
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
data:
description: 返回结果
properties:
chat_id:
description: 所属的群
type: string
create_time:
description: 消息生成的时间戳(毫秒)
type: string
deleted:
description: 消息是否被撤回
type: boolean
message_id:
description: 消息 id
type: string
msg_type:
description: 消息类型 包括text、post、image、file、audio、media、sticker、interactive、share_chat、share_user 等。
type: string
parent_id:
description: 父消息的 id用于回复消息场景。
type: string
root_id:
description: 根消息 id用于回复消息场景。
type: string
thread_id:
description: 消息所属的话题 id
type: string
update_time:
description: 消息更新的时间戳(毫秒)
type: string
updated:
description: 消息是否被更新
type: boolean
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 使用应用机器人发送飞书消息
/message/send_webhook_message:
post:
operationId: send_webhook_message
requestBody:
content:
application/json:
schema:
properties:
content:
description: 消息内容,文本字符串或者 JSON 结构序列化后的字符串,其中 msg_type 为 text、share_chat、image 时支持文本字符串。不同 msg_type 对应不同内容,具体格式说明参考:发送消息内容(https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json)
type: string
msg_type:
default: text
description: '消息类型 支持text、image、interactive、share_chat 类型,不支持 post、audio、media、share_user 等类型。类型定义请参考: https://open.larkoffice.com/document/server-docs/im-v1/message-content-description/create_json'
type: string
webhook:
description: webhook key支持 webhook URL。
type: string
required:
- webhook
- msg_type
- content
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败。
type: number
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 使用飞书自定义机器人 webhook 发送消息
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,795 @@
info:
description: |-
对飞书电子表格做操作,包含以下操作:
1.创建电子表格;
2.新增多行至工作表;
3.新增多列至工作表;
4.搜索电子表格类型文档;
5.获取电子表格信息;
6.获取所有工作表;
7.读取工作表行列内容;
title: 飞书电子表格
version: v1
openapi: 3.0.1
paths:
/spreadsheet/add_cols:
post:
operationId: add_cols
requestBody:
content:
application/json:
schema:
properties:
length:
description: 要增加的列数
type: number
sheet_id:
description: 工作表 ID与sheet_name二者其一必填
type: string
sheet_name:
description: 工作表名称与sheet_id二者其一必填
type: string
spreadsheet_token:
description: 电子表格 token支持输入电子表格 url
type: string
values:
description: 新增列的单元格内容,数组对象字符串,每个数组一行表格数据,格式:[["编号","姓名","年龄"],[1,"张三",10],[2,"李四",11]]
type: string
required:
- spreadsheet_token
- length
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
addCount:
description: 增加的列数
type: number
majorDimension:
description: 增加的表维度COLUMNS
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 新增多列至工作表最后
/spreadsheet/add_rows:
post:
operationId: add_rows
requestBody:
content:
application/json:
schema:
properties:
length:
description: 要增加行数,范围(0-5000]
type: number
sheet_id:
description: 工作表 ID与sheet_name二者其一必填
type: string
sheet_name:
description: 工作表名称与sheet_id二者其一必填
type: string
spreadsheet_token:
description: 电子表格 token支持输入电子表格 url
type: string
values:
description: 新增行的表格内容,数组对象字符串,每个数组一行表格数据,格式,如:[["编号","姓名","年龄"],[1,"张三",10],[2,"李四",11]]
type: string
required:
- spreadsheet_token
- length
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
addCount:
description: 增加的行数
type: number
majorDimension:
description: 增加的表格维度,ROWS
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 新增多行至工作表最后
/spreadsheet/create_spreadsheet:
post:
operationId: create_spreadsheet
requestBody:
content:
application/json:
schema:
properties:
folder_token:
description: 文件夹 token支持文件夹url输入https://bytedance.larkoffice.com/drive/folder/CxHEf4DCSlNkL2dUTCJcPRgentg
type: string
title:
description: 电子表格标题
type: string
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
spreadsheet:
description: 电子表格的基础信息
properties:
folder_token:
description: 文件夹 token
type: string
spreadsheet_token:
description: 电子表格 token
type: string
title:
description: 电子表格标题
type: string
url:
description: 电子表格的 URL 链接
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 创建电子表格
/spreadsheet/delete_cols:
delete:
operationId: delete_cols
requestBody:
content:
application/json:
schema:
properties:
end_index:
description: 要删除的列结束的位置。从 1 开始计数
type: number
sheet_id:
description: 工作表的 ID
type: string
sheet_name:
description: 工作表的名称
type: string
spreadsheet_token:
description: 电子表格的 token支持填写电子表格的 URL或Token
type: string
start_index:
description: 要删除的列结束的位置。从 1 开始计数
type: number
required:
- spreadsheet_token
- start_index
- end_index
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码
type: integer
data:
properties:
delCount:
description: 一共删除的列数
type: number
majorDimension:
description: 删除的维度COLUMNS代表列
type: string
type: object
log_id:
description: 日志ID
type: string
msg:
description: 错误信息
type: string
type: object
description: new desc
default:
description: ""
summary: 删除电子表格工作表列
/spreadsheet/delete_rows:
delete:
operationId: delete_rows
requestBody:
content:
application/json:
schema:
properties:
end_index:
description: 要删除的行结束的位置。从 1 开始计数
type: number
sheet_id:
description: 工作表的 ID
type: string
sheet_name:
description: 工作表名称
type: string
spreadsheet_token:
description: 电子表格的 token支持填写电子表格的 URL或Token
type: string
start_index:
description: 要删除的行起始位置,从 1 开始计数
type: number
required:
- spreadsheet_token
- start_index
- end_index
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码
type: integer
data:
properties:
delCount:
description: 一共删除的行数
type: number
majorDimension:
description: 删除的维度。ROWS代表行
type: string
type: object
log_id:
description: 日志ID
type: string
msg:
description: 错误信息
type: string
type: object
description: new desc
default:
description: ""
summary: 删除电子表格工作表行
/spreadsheet/get_spreadsheet:
get:
operationId: get_spreadsheet
parameters:
- description: 电子表格 token支持输入电子表格 url
in: query
name: spreadsheet_token
required: true
schema:
type: string
- description: 用户 ID 类型
in: query
name: user_id_type
schema:
default: open_id
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
spreadsheet:
description: 电子表格的基础信息
properties:
owner_id:
description: 电子表格的所有者 IDID 类型由查询参数 user_id_type 决定
type: string
title:
description: 电子表格标题
type: string
token:
description: 电子表格 token
type: string
url:
description: 电子表格的 URL 链接
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取电子表格信息
/spreadsheet/list_spreadsheet_sheets:
get:
operationId: list_spreadsheet_sheets
parameters:
- description: 电子表格 token支持输入电子表格 url
in: query
name: spreadsheet_token
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
sheets:
description: 工作表列表
items:
description: 工作表信息
properties:
grid_properties:
description: 单元格属性,仅当 resource_type 为 sheet 即工作表类型为电子表格时返回
properties:
column_count:
description: 工作表的列数量
type: number
frozen_column_count:
description: 冻结的列数量
type: number
frozen_row_count:
description: 冻结的行数量
type: number
row_count:
description: 工作表的行数
type: number
type: object
hidden:
description: 工作表是否被隐藏true被隐藏false未被隐藏
type: boolean
index:
description: 工作表索引位置,索引从 0 开始计数
type: integer
merges:
description: 合并单元格的相关信息,没有合并单元格则不返回
items:
description: 单元格信息
properties:
end_column_index:
description: 结束列,从 0 开始计数
type: number
end_row_index:
description: 结束行,从 0 开始计数
type: number
start_column_index:
description: 起始列,从 0 开始计数
type: number
start_row_index:
description: 起始行,从 0 开始计数
type: number
type: object
type: array
resource_type:
description: 工作表类型sheet工作表bitable多维表格#UNSUPPORTED_TYPE不支持的类型
type: string
sheet_id:
description: 工作表 ID
type: string
title:
description: 工作表标题
type: string
type: object
type: array
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 获取电子表格所有工作表
/spreadsheet/read_cols:
get:
operationId: read_cols
parameters:
- description: 电子表格 token支持输入电子表格 url
in: query
name: spreadsheet_token
required: true
schema:
type: string
- description: 工作表 ID与sheet_name二者其一必填
in: query
name: sheet_id
schema:
type: string
- description: 用户 ID 类型,默认 open_id
in: query
name: user_id_type
schema:
default: open_id
type: string
- description: 起始列号从1开始
in: query
name: start_col
schema:
default: 1
type: integer
- description: 读取列数
in: query
name: num_cols
required: true
schema:
type: integer
- description: 工作表名称与sheet_id二者其一必填
in: query
name: sheet_name
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
type: number
spreadsheetToken:
description: 表格 token
type: string
valueRange:
description: 读取的值与范围
properties:
majorDimension:
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS即数据为从左到右、从上到下的读取顺序
type: string
range:
description: 读取的范围。为空时表示查询范围没有数据。
type: string
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
type: number
valuesJsonString:
description: 返回的数据内容
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 返回信息
type: string
type: object
description: new desc
default:
description: ""
summary: 读取工作表列数据
/spreadsheet/read_rows:
get:
operationId: read_rows
parameters:
- description: 电子表格 token支持输入电子表格 url
in: query
name: spreadsheet_token
required: true
schema:
type: string
- description: 工作表 ID与sheet_name二者其一必填
in: query
name: sheet_id
schema:
type: string
- description: 用户 ID 类型
in: query
name: user_id_type
schema:
default: open_id
type: string
- description: 起始行号从1开始
in: query
name: start_row
schema:
default: 1
type: integer
- description: 读取行数
in: query
name: num_rows
required: true
schema:
type: integer
- description: 工作表名称与sheet_id二者其一必填
in: query
name: sheet_name
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: number
data:
description: 返回数据
properties:
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
type: number
spreadsheetToken:
description: 表格的 token
type: string
valueRange:
description: 读取的值与范围
properties:
majorDimension:
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS即数据为从左到右、从上到下的读取顺序。
type: string
range:
description: 读取的范围
type: string
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一
type: number
valuesJsonString:
description: 读取的表格内容
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 读取工作表行数据
/spreadsheet/read_table:
get:
operationId: read_table
parameters:
- description: 电子表格 token支持输入电子表格 url
in: query
name: spreadsheet_token
required: true
schema:
type: string
- description: 工作表 ID与sheet_name二者其一必填
in: query
name: sheet_id
schema:
type: string
- description: '用户 ID 类型 '
in: query
name: user_id_type
schema:
default: open_id
type: string
- description: 取数范围,格式如:A1:B2query=all时可为空
in: query
name: range
schema:
type: string
- description: 传 all,表示查询表格所有数据,但最多查询100列数据
in: query
name: query
schema:
type: string
- description: 工作表名称与sheet_id二者其一必填
in: query
name: sheet_name
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
type: number
spreadsheetToken:
description: 电子表格 token
type: string
valueRange:
description: 读取的值与范围
properties:
majorDimension:
description: 返回的 values 数组中数据的呈现维度。固定取值 ROWS即数据为从左到右、从上到下的读取顺序。
type: string
range:
description: 读取的范围。为空时表示查询范围没有数据。
type: string
revision:
description: 工作表的版本号。从 0 开始计数,更新一次版本号加一。
type: number
valuesJsonString:
description: 读取的表格数据内容
type: string
type: object
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误信息
type: string
type: object
description: new desc
default:
description: ""
summary: 自定义读取电子表格行列数据
/spreadsheet/search_spreadsheet:
post:
operationId: search_spreadsheet
requestBody:
content:
application/json:
schema:
properties:
count:
description: 指定搜索返回的文件数量,取值范围为 [0,50]
type: integer
offset:
description: 指定搜索的偏移量,该参数最小为 0即不偏移。该参数的值与返回的文件数量之和不得小于或等于 200即 offset + count < 200
type: integer
search_key:
description: 指定搜索的关键字
type: string
required:
- search_key
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
docs_entities:
description: 包含搜索关键词的文件列表
items:
description: 文件列表
properties:
docs_token:
description: 文件 token
type: string
docs_type:
description: 文件类型
type: string
owner_id:
description: 文件所有者
type: string
title:
description: 文件标题
type: string
url:
description: 文档链接
type: string
type: object
type: array
has_more:
description: 结果列表后是否还有数据
type: boolean
total:
description: 包含搜索关键词的文件总数量
type: number
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 搜索电子表格
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,409 @@
info:
description: |-
调用飞书开放平台任务相关API支持以下操作
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
3.删除任务:对创建的飞书任务做删除;
4.列出所有任务:查询用户下单所有飞书任务;
title: 飞书任务
version: v1
openapi: 3.0.1
paths:
/task/create_task:
post:
operationId: create_task
requestBody:
content:
application/json:
schema:
properties:
completed_at:
description: 任务完成时间格式2006-01-02 15:04:05不填写表示创建一个未完成任务填写一个具体的时间表示创建一个已完成任务
type: string
description:
description: 任务备注
type: string
end_time:
description: 任务结束时间格式2006-01-02 15:04:05
type: string
start_time:
description: 任务开始时间格式2006-01-02 15:04:05
type: string
summary:
description: 任务标题
type: string
required:
- summary
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码非0表示失败
type: number
data:
description: 返回数据
properties:
completed_at:
description: 任务完成时间格式2024-07-19 20:50:00
type: string
created_at:
description: 任务创建时间格式2024-07-19 20:50:00
type: string
creator:
description: 任务创建者信息
properties:
id:
description: 创建者用户 ID
type: string
type:
description: 创建者类型
type: string
type: object
description:
description: 任务描述
type: string
end_time:
description: 任务截止时间格式2024-07-19 21:20:00
type: string
guid:
description: 任务guid任务的唯一ID
type: string
is_end_time_all_day:
description: 结束时间是否截止到一个日期
type: boolean
is_start_time_all_day:
description: 开始时间是否截止到一个日期
type: boolean
members:
description: 成员列表
items:
description: 成员信息
properties:
id:
description: 成员 ID
type: string
name:
description: 成员名称
type: string
role:
description: 成员角色
type: string
type:
description: 成员类型
type: string
type: object
type: array
mode:
description: 任务的模式。1 - 会签任务2 - 或签任务
type: integer
parent_task_guid:
description: 如果当前任务为某个任务的子任务返回父任务的guid
type: string
repeat_rule:
description: 如果任务为重复任务,返回重复任务的配置
type: string
source:
description: 任务来源
type: integer
start_time:
description: 任务开始时间格式2024-07-19 20:20:00
type: string
status:
description: 任务状态,支持"todo"和"done"两种状态
type: string
subtask_count:
description: 该任务的子任务的个数
type: integer
summary:
description: 任务标题
type: string
task_id:
description: 任务界面上的代码
type: string
url:
description: 任务的分享链接
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 创建飞书任务,根据输入的任务标题、任务时间创建飞书任务
/task/delete_task:
delete:
operationId: delete_task
requestBody:
content:
application/json:
schema:
properties:
task_guid:
description: 要删除的任务guid支持传任务ID和任务链接URL任务ID 例如8b5425ec-9f2a-43bd-a3ab-01912f50282b任务链接url 例如https://applink.feishu-pre.net/client/todo/detail?guid=8c6bf822-e4da-449a-b82a-dc44020f9be9&suite_entity_num=t21587362
type: string
required:
- task_guid
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
log_id:
description: 链路追踪 id
type: string
msg:
description: ' 错误描述'
type: string
type: object
description: new desc
default:
description: ""
summary: 删除飞书任务
/task/list_tasks:
get:
operationId: list_tasks
parameters:
- description: 用户 ID 类型
in: query
name: user_id_type
schema:
default: open_id
type: string
- description: 每页的任务数量取值范围1-100
in: query
name: page_size
schema:
default: 10
type: integer
- description: 查询结果还有更多项时会同时返回新的 page_token下次遍历可采用该 page_token 获取查询结果
in: query
name: page_token
schema:
type: string
- description: 是否按任务完成进行过滤。填写true表示只列出已完成任务填写false表示只列出未完成任务。不填写表示不过滤。
in: query
name: completed
schema:
type: boolean
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码非0表示失败
type: integer
data:
description: 返回数据
properties:
has_more:
description: 是否还有更多项
type: boolean
items:
description: 返回的任务列表
items:
description: 任务信息
properties:
completed_at:
description: 任务完成的时间格式2024-07-19 21:20:00
type: string
created_at:
description: 任务创建时间格式2024-07-19 21:20:00
type: string
creator:
description: 任务创建者
properties:
id:
description: 表示member的id
type: string
role:
description: 成员角色
type: string
type:
description: 成员的类型
type: string
type: object
description:
description: 任务备注
type: string
end_time:
description: 任务结束时间格式2024-07-19 21:20:00
type: string
guid:
description: 任务guid任务的唯一ID
type: string
is_end_time_all_day:
description: 结束时间是否截止到一个日期
type: boolean
is_milestone:
description: 是否是里程碑任务
type: boolean
is_start_time_all_day:
description: 开始时间是否截止到一个日期
type: boolean
members:
description: 任务成员列表
items:
description: 成员信息
properties:
id:
description: 表示member的id
type: string
role:
description: 成员角色
type: string
type:
description: 成员的类型
type: string
type: object
type: array
mode:
description: 任务的模式。1 - 会签任务2 - 或签任务
type: integer
parent_task_guid:
description: 如果当前任务为某个任务的子任务返回父任务的guid
type: string
repeat_rule:
description: 如果任务为重复任务,返回重复任务的配置
type: string
source:
description: 任务创建的来源
type: integer
start_time:
description: 任务开始时间格式2024-07-19 21:20:00
type: string
status:
description: 任务的状态,支持"todo"和"done"两种状态
type: string
subtask_count:
description: 该任务的子任务个数
type: integer
summary:
description: 任务标题
type: string
task_id:
description: 任务界面上的代码
type: string
updated_at:
description: 任务最后一次更新的时间格式2024-07-19 21:20:00
type: string
url:
description: 任务的分享链接
type: string
type: object
type: array
page_token:
description: 分页标记,当 has_more 为 true 时,会同时返回新的 page_token否则不返回 page_token
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 列取飞书任务列表
/task/update_task:
patch:
operationId: update_task
requestBody:
content:
application/json:
schema:
properties:
completed_time:
description: 任务完成时间,有传入才更新格式2024-08-19 11:20:00
type: string
description:
description: 任务描述:如:进行一场需求评审会
type: string
end_time:
description: 任务结束时间,有传入才更新格式2024-08-15 23:20:00
type: string
start_time:
description: 任务开始时间,有传入才更新格式2024-08-15 23:00:00
type: string
summary:
description: 任务标题,如:需求评审
type: string
task_guid:
description: 任务ID支持 传入任务ID和任务链接URL任务ID 如42cad8a0-f8c8-4344-9be2-d1d7e8e91b64任务链接url 如https://applink.feishu-pre.net/client/todo/detail?guid=42cad8a0-f8c8-4344-9be2-d1d7e8e91b64&suite_entity_num=t21700217
type: string
required:
- task_guid
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 任务信息
properties:
completed_time:
description: 任务完成时间格式2024-09-17 23:30:00
type: string
created_at:
description: 创建时间格式2024-09-17 23:30:00
type: string
description:
description: 任务描述
type: string
end_time:
description: 任务结束时间格式2024-08-17 12:00:00
type: string
start_time:
description: 任务开始时间格式2024-08-16 10:00:00
type: string
summary:
description: ' 任务标题'
type: string
task_guid:
description: 任务 ID
type: string
updated_at:
description: 更新时间格式2024-09-17 23:30:00
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 更新飞书任务
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,95 @@
info:
description: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
title: 飞书知识库
version: v1
openapi: 3.0.1
paths:
/wiki/search_wiki:
post:
operationId: search_wiki
parameters:
- description: 下一页的分页 token首页不需要填写根据返回的 token 获取下一页数据
in: query
name: page_token
schema:
type: string
- description: 本页返回数量的最大值范围0-50
in: query
name: page_size
schema:
default: 20
type: integer
requestBody:
content:
application/json:
schema:
properties:
node_id:
description: 不为空搜索该节点及其所有子节点,为空搜索所有 wiki使用 node_id 过滤必须传入 space_id
type: string
query:
description: 搜索关键词
type: string
space_id:
description: 文档所属的知识空间ID为空搜索全部知识空间支持输入空间urlhttps://svi136aogf123.feishu.cn/wiki/settings/7166950623940706332
type: string
required:
- query
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 错误码,非 0 表示失败
type: integer
data:
description: 返回数据
properties:
has_more:
description: 是否还有下一页数据
type: boolean
items:
description: wiki 信息数组
items:
description: wiki 信息
properties:
icon:
description: wiki 对应图标的 url
type: string
node_id:
description: wiki 节点 Id
type: string
obj_type:
description: wiki 类型, 参考文档类型表
type: integer
space_id:
description: wiki 所属知识空间 Id
type: string
title:
description: wiki 标题
type: string
url:
description: wiki 的访问 url
type: string
type: object
type: array
page_token:
description: 如果 has_more 为 true 则返回下一页的 token
type: string
type: object
log_id:
description: 链路追踪 id
type: string
msg:
description: 错误描述
type: string
type: object
description: new desc
default:
description: ""
summary: 搜索 Wiki 文档列表
servers:
- url: https://lark-plugin-api.solutionsuite.cn/lark-plugin

View File

@@ -0,0 +1,73 @@
info:
description: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
title: 文库搜索
version: v1
openapi: 3.0.1
paths:
/document/coze:
get:
operationId: document_search
parameters:
- description: 用以检索的关键词
in: query
name: keyword
required: true
schema:
description: 用以检索的关键词
type: string
- description: 获得的数据条数默认10条最大50条
in: query
name: number
schema:
description: 获得的数据条数默认10条最大50条
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
data:
description: 返回的数据
properties:
documents:
description: 文档数据集合
items:
description: 单个文档数据
properties:
name:
description: 文档名称
type: string
precis:
description: 文档预览
type: string
url:
description: 文档链接
type: string
required:
- name
- precis
- url
type: object
type: array
required:
- documents
type: object
message:
description: 提示信息默认为success
type: string
required:
- message
- data
type: object
description: new desc
default:
description: ""
summary: 根据关键词检索豆柴文档
servers:
- url: https://www.douchai.cn

View File

@@ -0,0 +1,82 @@
info:
description: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
title: 创客贴智能设计
version: v1
openapi: 3.0.1
paths:
/coze:
get:
operationId: ckt_intelligent_design
parameters:
- description: 用户输入主题
in: query
name: query
required: true
schema:
description: 用户输入主题
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
body:
description: api调用返回消息体
properties:
code:
description: api调用code码
type: number
data:
description: 结果数据
properties:
result:
description: 生成的设计结果集合
items:
properties:
designId:
description: 设计Id
type: string
imageUrl:
description: 设计缩略图地址
type: string
redirectUrl:
description: 设计编辑下载跳转地址
type: string
taskId:
description: 任务Id
type: string
required:
- designId
- imageUrl
- redirectUrl
- taskId
type: object
type: array
type: object
msg:
description: api调用返回信息
type: string
required:
- code
- msg
type: object
header:
properties:
code:
type: string
type: object
required:
- body
type: object
description: new desc
default:
description: ""
summary: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
servers:
- url: https://gw.chuangkit.com/openplatform/intelligentDesign

View File

@@ -0,0 +1,913 @@
- plugin_id: 2
product_id: 7376228190244618278
deprecated: false
version: v1.0.0
openapi_doc_file: library_search.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: wenkusousuo
name_for_human: 文库搜索
description_for_model: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
description_for_human: 根据文库文档标题关键字,搜索豆柴文库内容和网页 URL
auth:
type: none
logo_url: official_plugin_icon/plugin_library_search.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
- name: X-Requested-With
value: XMLHttpRequest
path: [ ]
query: [ ]
tools:
- tool_id: 20001
deprecated: false
method: get
sub_url: /document/coze
- plugin_id: 3
product_id: 7496002227321143350
deprecated: false
version: v1.0.0
openapi_doc_file: bocha_search.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: bochasousuo
name_for_human: 博查搜索
description_for_model: 从全网搜索任何网页信息和网页链接结果准确、摘要完整更适合AI使用。
description_for_human: 从全网搜索任何网页信息和网页链接结果准确、摘要完整更适合AI使用。
auth:
type: service_http
key: Authorization
sub_type: token/api_key
# service token apply to https://open.bochaai.com/
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
logo_url: official_plugin_icon/plugin_bocha_search.jpeg
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 30001
deprecated: false
method: post
sub_url: /v1/web-search
- plugin_id: 4
product_id: 7328314516272463923
deprecated: false
version: v1.0.0
openapi_doc_file: wolfram_alpha.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: Wolfram_Alpha
name_for_human: Wolfram Alpha
description_for_model: 强大的数学工具
description_for_human: 强大的数学工具
auth:
type: service_http
key: appid
sub_type: token/api_key
# service token apply to https://developer.wolframalpha.com/
payload: '{"key": "appid", "service_token": "", "location": "Query"}'
logo_url: official_plugin_icon/plugin_wolfram_alpha.png
api:
type: openapi
common_params:
body: [ ]
header: [ ]
path: [ ]
query: [ ]
tools:
- tool_id: 40001
deprecated: false
method: get
sub_url: /v1/conversation.jsp
- tool_id: 40002
deprecated: false
method: get
sub_url: /v2/query
- plugin_id: 5
product_id: 7351267469065011241
deprecated: false
version: v1.0.0
openapi_doc_file: maker_smart_design.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: chuangketiezhinengsheji
name_for_human: 创客贴智能设计
description_for_model: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
description_for_human: 输入设计需求,即刻生成精美设计图;涵盖手机海报、宣传图、电商图、店铺广告、日签、社交媒体配图等多样场景。
auth:
type: none
logo_url: official_plugin_icon/plugin_maker_smart_design.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 50001
deprecated: false
method: get
sub_url: /coze
- plugin_id: 6
product_id: 7343894357063385100
deprecated: false
version: v1.0.0
openapi_doc_file: sohu_hot_news.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: souhurewen
name_for_human: 搜狐热闻
description_for_model: 帮助用户获取搜狐网上的每日热闻
description_for_human: 帮助用户获取搜狐网上的每日热闻
auth:
type: none
logo_url: official_plugin_icon/plugin_sohu_hot_news.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 60001
deprecated: false
method: get
sub_url: /blog/outer/temp/feeds/ark
- plugin_id: 9
product_id: 7461926057290153993
deprecated: false
version: v1.0.0
openapi_doc_file: image_compression.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: tupianyasuo
name_for_human: 图片压缩
description_for_model: 上传图片链接返回压缩后的base64
description_for_human: 上传图片链接返回压缩后的base64
auth:
type: service_http
key: Authorization
sub_type: token/api_key
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
logo_url: official_plugin_icon/plugin_image_compression.jpeg
api:
type: openapi
common_params: { }
tools:
- tool_id: 90001
deprecated: false
method: post
sub_url: /img2base64/img2base64
- plugin_id: 10
product_id: 7355060468744044595
deprecated: false
version: v1.0.0
openapi_doc_file: worth_buying.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: shenmezhidemai
name_for_human: 什么值得买
description_for_model: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
description_for_human: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
auth:
type: service_http
key: token
sub_type: token/api_key
# service token apply to https://openapi.zhidemai.com/
payload: '{"key": "token", "service_token": "", "location": "Query"}'
logo_url: official_plugin_icon/plugin_worth_buying.jpeg
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 100001
deprecated: false
method: get
sub_url: /query
- plugin_id: 11
product_id: 7358789295274049572
deprecated: false
version: v1.0.0
openapi_doc_file: chestnut_sign.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: banlikanban
name_for_human: 板栗看板
description_for_model: 任务拆解
description_for_human: 任务拆解
auth:
type: none
logo_url: official_plugin_icon/plugin_chestnut_sign.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 110001
deprecated: false
method: post
sub_url: /generate_tasks
- plugin_id: 12
product_id: 7407722060627247143
deprecated: false
version: v1.0.0
openapi_doc_file: sky_eye_check.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: tianyancha
name_for_human: 天眼查
description_for_model: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
description_for_human: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
auth:
type: service_http
key: Authorization
sub_type: token/api_key
# apply token [https://open.tianyancha.com/console/mydata]
payload: '{"key": "Authorization", "service_token": "", "location": "Header"}'
logo_url: official_plugin_icon/plugin_sky_eye_check.jpeg
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 120001
deprecated: false
method: get
sub_url: /ic/baseinfoV2/2.0
- tool_id: 120002
deprecated: false
method: get
sub_url: /ic/changeinfo/2.0
- tool_id: 120003
deprecated: false
method: get
sub_url: /mr/abnormal/2.0
- tool_id: 120004
deprecated: false
method: get
sub_url: /ps/news/2.0
- tool_id: 120005
deprecated: false
method: get
sub_url: /search/2.0
- plugin_id: 14
product_id: 7395041877151514662
deprecated: false
version: v1.0.0
openapi_doc_file: lark_authentication_authorization.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishurenzhengjishouquan
name_for_human: 飞书认证及授权
description_for_model: 飞书认证及授权
description_for_human: 飞书认证及授权
auth:
type: none
logo_url: official_plugin_icon/plugin_lark_authentication_authorization.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 140001
deprecated: false
method: post
sub_url: /access_token/get_tenant_access_token
- plugin_id: 15
product_id: 7395041302766944275
deprecated: false
version: v1.0.0
openapi_doc_file: lark_message.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishuxiaoxi
name_for_human: 飞书消息
description_for_model: '飞书消息,支持以下功能
1. 使用飞书自定义机器人 webhook 发送消息;
2. 使用飞书应用机器人发送消息;
3. 获取指定单聊、群聊的消息历史;
4. 获取指定话题的消息历史;'
description_for_human: '飞书消息,支持以下功能
1. 使用飞书自定义机器人 webhook 发送消息;
2. 使用飞书应用机器人发送消息;
3. 获取指定单聊、群聊的消息历史;
4. 获取指定话题的消息历史;'
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"im:message im:message.group_msg","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_message.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 150001
deprecated: false
method: get
sub_url: /message/get_chat_messages
- tool_id: 15002
deprecated: false
method: get
sub_url: /message/get_thread_messages
- tool_id: 150003
deprecated: false
method: post
sub_url: /message/send_bot_message
- tool_id: 150004
deprecated: false
method: post
sub_url: /message/send_webhook_message
- plugin_id: 16
product_id: 7395043460165779483
deprecated: false
version: v1.0.0
openapi_doc_file: lark_base.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishuduoweibiaoge
name_for_human: 飞书多维表格
description_for_model: '飞书多维表格,支持以下功能:
1. 创建多维表格;
2. 创建多维表格数据表;
3. 列出多维表格下的全部数据表;
4. 获取多维表格的元数据;
5. 在多维表格数据表中新增多条记录;
6. 根据 record_id 检索多维表格数据表中的记录;
7. 批量更新多维表格数据表中的现有记录;
8. 查询多维表格数据表中的记录;
9. 搜索多维表格类型的文档;'
description_for_human: '飞书多维表格,支持以下功能:
1. 创建多维表格;
2. 创建多维表格数据表;
3. 列出多维表格下的全部数据表;
4. 获取多维表格的元数据;
5. 在多维表格数据表中新增多条记录;
6. 根据 record_id 检索多维表格数据表中的记录;
7. 批量更新多维表格数据表中的现有记录;
8. 查询多维表格数据表中的记录;
9. 搜索多维表格类型的文档;'
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"bitable:app","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_base.png
api:
type: openapi
common_params:
path: [ ]
query: [ ]
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
- name: x-use-ppe
value: '1'
- name: x-tt-env
value: ppe_lark_plugin_coze
tools:
- tool_id: 160001
deprecated: false
method: post
sub_url: /base/add_field
- tool_id: 160002
deprecated: false
method: post
sub_url: /base/add_records
- tool_id: 160003
deprecated: false
method: post
sub_url: /base/create_base
- tool_id: 160004
deprecated: false
method: post
sub_url: /base/create_table
- tool_id: 160005
deprecated: false
method: delete
sub_url: /base/delete_field
- tool_id: 160006
deprecated: false
method: post
sub_url: /base/delete_records
- tool_id: 160007
deprecated: false
method: post
sub_url: /base/delete_tables
- tool_id: 160008
deprecated: false
method: get
sub_url: /base/get_base_info
- tool_id: 160009
deprecated: false
method: get
sub_url: /base/list_fields
- tool_id: 160010
deprecated: false
method: get
sub_url: /base/list_tables
- tool_id: 160011
deprecated: false
method: post
sub_url: /base/search_base
- tool_id: 160012
deprecated: false
method: post
sub_url: /base/search_record
- tool_id: 160013
deprecated: false
method: post
sub_url: /base/update_field
- tool_id: 160014
deprecated: false
method: post
sub_url: /base/update_records
- plugin_id: 17
product_id: 7395040352337559578
deprecated: false
version: v1.0.0
openapi_doc_file: lark_sheet.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishudianzibiaoge
name_for_human: 飞书电子表格
description_for_model: '对飞书电子表格做操作,包含以下操作:
1.创建电子表格;
2.新增多行至工作表;
3.新增多列至工作表;
4.搜索电子表格类型文档;
5.获取电子表格信息;
6.获取所有工作表;
7.读取工作表行列内容;'
description_for_human: '对飞书电子表格做操作,包含以下操作:
1.创建电子表格;
2.新增多行至工作表;
3.新增多列至工作表;
4.搜索电子表格类型文档;
5.获取电子表格信息;
6.获取所有工作表;
7.读取工作表行列内容;'
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"drive:drive","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_sheet.png
api:
type: openapi
common_params:
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
tools:
- tool_id: 170001
deprecated: false
method: post
sub_url: /spreadsheet/add_cols
- tool_id: 170002
deprecated: false
method: post
sub_url: /spreadsheet/add_rows
- tool_id: 170003
deprecated: false
method: post
sub_url: /spreadsheet/create_spreadsheet
- tool_id: 170004
deprecated: false
method: delete
sub_url: /spreadsheet/delete_cols
- tool_id: 170005
deprecated: false
method: delete
sub_url: /spreadsheet/delete_rows
- tool_id: 170006
deprecated: false
method: get
sub_url: /spreadsheet/get_spreadsheet
- tool_id: 170007
deprecated: false
method: get
sub_url: /spreadsheet/list_spreadsheet_sheets
- tool_id: 170008
deprecated: false
method: get
sub_url: /spreadsheet/read_cols
- tool_id: 170009
deprecated: false
method: get
sub_url: /spreadsheet/read_rows
- tool_id: 170010
deprecated: false
method: get
sub_url: /spreadsheet/read_table
- tool_id: 170011
deprecated: false
method: post
sub_url: /spreadsheet/search_spreadsheet
- plugin_id: 18
product_id: 7395041172152156186
deprecated: false
version: v1.0.0
openapi_doc_file: lark_task.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishurenwu
name_for_human: 飞书任务
description_for_model: '调用飞书开放平台任务相关API支持以下操作
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
3.删除任务:对创建的飞书任务做删除;
4.列出所有任务:查询用户下单所有飞书任务;'
description_for_human: '调用飞书开放平台任务相关API支持以下操作
1.创建任务:输入任务标题、开始时间、结束时间等信息创建飞书任务;
2.更新任务:对飞书任务的任务标题、任务时间等信息做修改;
3.删除任务:对创建的飞书任务做删除;
4.列出所有任务:查询用户下单所有飞书任务;'
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"task:task:write","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_task.png
api:
type: openapi
common_params:
query: [ ]
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
tools:
- tool_id: 180001
deprecated: false
method: post
sub_url: /task/create_task
- tool_id: 180002
deprecated: false
method: delete
sub_url: /task/delete_task
- tool_id: 180003
deprecated: false
method: get
sub_url: /task/list_tasks
- tool_id: 180004
deprecated: false
method: patch
sub_url: /task/update_task
- plugin_id: 19
product_id: 7395041536909574154
deprecated: false
version: v1.0.0
openapi_doc_file: lark_docx.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishuyunwendang
name_for_human: 飞书云文档
description_for_model: '飞书云文档,支持以下操作:
1. 创建文档;
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
4. 获取文档的所有块;
5. 获取文档的基本信息;
6. 搜索文档类型的文档;
7. 搜索 PPT 类型的文档;'
description_for_human: '飞书云文档,支持以下操作:
1. 创建文档;
2. 在文档中新增内容,支持 纯文本或者 markdown 格式;
3. 获取文档的内容,支持以纯文本或者 Markdown 格式返回;
4. 获取文档的所有块;
5. 获取文档的基本信息;
6. 搜索文档类型的文档;
7. 搜索 PPT 类型的文档;'
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"drive:drive","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_docx.png
api:
type: openapi
common_params:
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
body: [ ]
tools:
- tool_id: 190001
deprecated: false
method: post
sub_url: /document/create_document
- tool_id: 190002
deprecated: false
method: get
sub_url: /document/get_document_content
- tool_id: 190003
deprecated: false
method: get
sub_url: /document/get_document_info
- tool_id: 190004
deprecated: false
method: get
sub_url: /document/list_document_blocks
- tool_id: 190005
deprecated: false
method: post
sub_url: /document/search_document
- tool_id: 190006
deprecated: false
method: post
sub_url: /document/search_slides
- tool_id: 190007
deprecated: false
method: post
sub_url: /document/write_document
- tool_id: 190008
deprecated: false
method: get
sub_url: /drive/download_media
- tool_id: 190009
deprecated: false
method: post
sub_url: /drive/upload_media
- plugin_id: 20
product_id: 7408195262340104230
deprecated: false
version: v1.0.0
openapi_doc_file: lark_wiki.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishuzhishiku
name_for_human: 飞书知识库
description_for_model: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
description_for_human: 飞书知识库搜索Wiki、获取Wiki全部子节点列表
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"wiki:wiki","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_wiki.png
api:
type: openapi
common_params:
header:
- name: User-Agent
value: Coze/1.0
path: [ ]
query: [ ]
body: [ ]
tools:
- tool_id: 200001
deprecated: false
method: post
sub_url: /wiki/search_wiki
- plugin_id: 21
product_id: 7395041856574423075
deprecated: false
version: v1.0.0
openapi_doc_file: lark_calendar.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: feishurili
name_for_human: 飞书日历
description_for_model: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
description_for_human: 在飞书上日历上创建日程、更新日程、删除日程、查询日程信息
auth:
type: oauth
sub_type: authorization_code
# client_id and client_secret apply to https://open.larkoffice.com/app
payload: '{"client_id":"","client_secret":"","client_url":"https://accounts.feishu.cn/open-apis/authen/v1/authorize","scope":"calendar:calendar calendar:calendar:read","authorization_url":"https://open.larkoffice.com/open-apis/authen/v2/oauth/token","authorization_content_type":"application/json"}'
logo_url: official_plugin_icon/plugin_lark_calendar.png
api:
type: openapi
common_params:
path: [ ]
query: [ ]
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
tools:
- tool_id: 210001
deprecated: false
method: post
sub_url: /calendar/create_event
- tool_id: 210002
deprecated: false
method: delete
sub_url: /calendar/delete_event/{event_id}
- tool_id: 210003
deprecated: false
method: get
sub_url: /calendar/get_primary_calendar
- tool_id: 210004
deprecated: false
method: get
sub_url: /calendar/list_events
- tool_id: 210005
deprecated: false
method: post
sub_url: /calendar/search_events
- tool_id: 210006
deprecated: false
method: patch
sub_url: /calendar/update_event/{event_id}
- plugin_id: 22
product_id: 7379953949534715956
deprecated: false
version: v1.0.0
openapi_doc_file: gaode_map.yaml
plugin_type: 1
manifest:
schema_version: v1
name_for_model: gaodedetu
name_for_human: 高德地图
description_for_model: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
description_for_human: 高德地图相关工具,可以帮助用户规划路线、搜索附近相关地点、还有其他常用小工具
logo_url: official_plugin_icon/plugin_gaode_map.jpeg
api:
type: openapi
common_params:
path: [ ]
query: [ ]
body: [ ]
header:
- name: User-Agent
value: Coze/1.0
auth:
type: service_http
key: Authorization
sub_type: token/api_key
payload: '{"key": "key", "service_token": "", "location": "Query"}' # apply token on the Gaode Open Platform(https://lbs.amap.com/api).
tools:
- tool_id: 220001
deprecated: false
method: get
sub_url: /v3/geocode/geo
- tool_id: 220002
deprecated: false
method: get
sub_url: /v3/ip
- tool_id: 220003
deprecated: false
method: get
sub_url: /v3/geocode/regeo
- tool_id: 220004
deprecated: false
method: get
sub_url: /v5/direction/bicycling
- tool_id: 220005
deprecated: false
method: get
sub_url: /v5/direction/driving
- tool_id: 220006
deprecated: false
method: get
sub_url: /v5/direction/electrobike
- tool_id: 220007
deprecated: false
method: get
sub_url: /v5/direction/transit/integrated
- tool_id: 220008
deprecated: false
method: get
sub_url: /v5/direction/walking
- tool_id: 220009
deprecated: false
method: get
sub_url: /v5/place/around

View File

@@ -0,0 +1,431 @@
info:
description: 利用天眼查官方API接口,以关键词检索企业列表实现企业搜索功能,并支持查询企业基本信息、新闻舆情、经营异常及变更记录等信息。
title: 天眼查
version: v1
openapi: 3.0.1
paths:
/ic/baseinfoV2/2.0:
get:
operationId: company_detail
parameters:
- description: 搜索关键字公司名称、公司id、注册号或社会统一信用代码
in: query
name: keyword
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
error_code:
type: number
reason:
type: string
result:
properties:
actualCapital:
type: string
actualCapitalCurrency:
type: string
alias:
type: string
approvedTime:
type: number
base:
type: string
bondName:
type: string
bondNum:
type: string
bondType:
type: string
businessScope:
type: string
cancelDate:
type: integer
cancelReason:
type: string
city:
type: string
companyOrgType:
type: string
creditCode:
type: string
district:
type: string
email:
type: string
estiblishTime:
type: number
fromTime:
type: number
historyNameList:
items:
type: string
type: array
historyNames:
type: string
id:
type: number
industry:
type: string
industryAll:
properties:
category:
type: string
categoryBig:
type: string
categoryMiddle:
type: string
categorySmall:
type: string
type: object
isMicroEnt:
type: number
legalPersonName:
type: string
name:
type: string
orgNumber:
type: string
percentileScore:
type: number
phoneNumber:
type: string
property3:
type: string
regCapital:
type: string
regCapitalCurrency:
type: string
regInstitute:
type: string
regLocation:
type: string
regNumber:
type: string
regStatus:
type: string
revokeDate:
type: integer
revokeReason:
type: string
socialStaffNum:
type: number
staffNumRange:
type: string
tags:
type: string
taxNumber:
type: string
toTime:
type: integer
type:
type: number
updateTimes:
type: number
usedBondName:
type: string
websiteList:
type: string
type: object
type: object
description: new desc
default:
description: ""
summary: 可以通过公司名称需公司全称或ID获取企业基本信息和企业联系方式包括公司名称或ID、类型、成立日期、电话、邮箱、网址等字段的详细信息。
/ic/changeinfo/2.0:
get:
operationId: change_log
parameters:
- description: 搜索关键字公司名称、公司id、注册号或社会统一信用代码
in: query
name: keyword
required: true
schema:
type: string
- description: 当前页数默认第1页
in: query
name: pageNum
schema:
type: integer
- description: 每页条数默认20条最大20条
in: query
name: pageSize
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
error_code:
type: number
reason:
type: string
result:
properties:
items:
items:
properties:
changeItem:
type: string
changeTime:
type: string
contentAfter:
type: string
contentBefore:
type: string
createTime:
type: string
type: object
type: array
total:
type: number
type: object
type: object
description: new desc
default:
description: ""
summary: 可以通过公司名称需公司全称或ID获取企业变更记录变更记录包括工商变更事项、变更前后信息等字段的详细信息。
/mr/abnormal/2.0:
get:
operationId: abnormal_operation
parameters:
- description: "String\t搜索关键字公司名称、公司id、注册号或社会统一信用代码"
in: query
name: keyword
required: true
schema:
type: string
- description: 每页条数默认20条最大20条
in: query
name: pageSize
schema:
type: integer
- description: 当前页数默认第1页
in: query
name: pageNum
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
error_code:
type: number
reason:
type: string
result:
properties:
items:
items:
properties:
putDate:
type: string
putDepartment:
type: string
putReason:
type: string
removeDate:
type: string
removeDepartment:
type: string
removeReason:
type: string
type: object
type: array
total:
type: number
type: object
type: object
description: new desc
default:
description: ""
summary: 可以通过公司名称需公司全称或ID获取企业经营异常信息经营异常信息包括列入/移除原因、时间、做出决定机关等字段的详细信息。
/ps/news/2.0:
get:
operationId: news
parameters:
- description: 公司名称精确匹配、name和id其一为必填即可
in: query
name: name
schema:
type: string
- description: 每页条数默认20条最大20条
in: query
name: pageSize
schema:
type: integer
- description: 开始时间
in: query
name: startTime
schema:
type: string
- description: 公司idname和id其一为必填即可
in: query
name: id
schema:
type: integer
- description: 结束时间
in: query
name: endTime
schema:
type: string
- description: 当前页数默认第1页
in: query
name: pageNum
schema:
type: integer
- description: 标签(多个逗号分隔,默认返回全部)
in: query
name: tags
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
error_code:
type: number
reason:
type: string
result:
properties:
items:
items:
properties:
abstracts:
type: string
docid:
type: string
emotion:
type: number
rtm:
type: number
tags:
items:
type: string
type: array
title:
type: string
uri:
type: string
website:
type: string
type: object
type: array
total:
type: number
type: object
type: object
description: new desc
default:
description: ""
summary: 可以通过公司名称需公司全称或ID精确匹配获取新闻列表。
/search/2.0:
get:
operationId: search
parameters:
- description: 关键词
in: query
name: word
required: true
schema:
type: string
- description: 每页条数默认20条最大20条
in: query
name: pageSize
schema:
type: integer
- description: 当前页数默认第1页
in: query
name: pageNum
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
error_code:
type: number
reason:
type: string
result:
properties:
items:
items:
properties:
base:
type: string
companyType:
type: number
creditCode:
type: string
estiblishTime:
type: string
id:
type: number
legalPersonName:
type: string
matchType:
type: string
name:
type: string
orgNumber:
type: string
regCapital:
type: string
regNumber:
type: string
regStatus:
type: string
type:
type: number
type: object
type: array
total:
type: number
type: object
type: object
description: new desc
default:
description: ""
summary: 可以通过关键词获取企业列表企业列表包括公司名称或ID、类型、成立日期、经营状态、统一社会信用代码等字段的详细信息。
servers:
- url: https://open.api.tianyancha.com/services/open

View File

@@ -0,0 +1,69 @@
info:
description: 帮助用户获取搜狐网上的每日热闻
title: 搜狐热闻
version: v1
openapi: 3.0.1
paths:
/blog/outer/temp/feeds/ark:
get:
operationId: top_news
parameters:
- description: 获取新闻条数
in: query
name: count
required: true
schema:
description: 获取新闻条数
type: integer
- description: 搜索关键词
in: query
name: q
schema:
description: 搜索关键词
type: string
requestBody:
content:
application/json:
schema:
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
data:
properties:
coze_ark_001:
properties:
list:
items:
properties:
brief:
type: string
title:
type: string
url:
type: string
type: object
type: array
type: object
type: object
message:
type: string
success:
type: boolean
total:
type: number
traceId:
type: string
type: object
description: new desc
default:
description: ""
summary: 帮助用户获取搜狐网上的每日热闻
servers:
- url: https://uis.mp.sohu.com

View File

@@ -0,0 +1,100 @@
info:
description: 强大的数学工具
title: Wolfram Alpha
version: v1
openapi: 3.0.1
paths:
/v1/conversation.jsp:
get:
operationId: query
parameters:
- description: '数学表达式,需要转成英文,不接受与数学无关的问题 '
in: query
name: i
schema:
description: '数学表达式,需要转成英文,不接受与数学无关的问题 '
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
conversationID:
type: string
error:
type: string
host:
type: string
result:
type: string
type: object
description:
""
summary: 计算数学表达式的结果
/v2/query:
get:
operationId: calculate
parameters:
- description: 输入一个数学表达式。如果输入不是英文,请先将其翻译成英文。
in: query
name: input
required: true
schema:
type: string
- description: 返回数据格式仅支持json。
in: query
name: output
schema:
default: json
type: string
x-global-disable: true
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
queryresult:
properties:
inputstring:
type: string
pods:
items:
properties:
subpods:
items:
properties:
img:
properties:
src:
type: string
title:
type: string
type: object
plaintext:
type: string
type: object
type: array
title:
type: string
type: object
type: array
type: object
type: object
description: new desc
default:
description: ""
summary: 逐步计算数学表达式。
servers:
- url: https://api.wolframalpha.com

View File

@@ -0,0 +1,77 @@
info:
description: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址。
title: 什么值得买
version: v1
openapi: 3.0.1
paths:
/query:
get:
operationId: smzdm_haojia_articles
parameters:
- description: 搜索词商品的品类词、品牌词、型号词等如手机、iPhone、iphone15
in: query
name: Query
required: true
schema:
type: string
- description: 最低价如“1000”“1500”
in: query
name: min_price
schema:
type: string
- description: 最高价如“5000”“5500”
in: query
name: max_price
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
content:
application/json:
schema:
properties:
Content:
description: 总结
type: string
Content_source:
description: 商品列表
items:
properties:
coin_unit:
description: 价格的单位
type: string
desc:
description: 商品描述
type: string
digital_price:
description: 价格的数字
type: string
focus_pic_url:
description: 商品图
type: string
subtitle:
description: 价格描述如”2178.01元包邮双重优惠”299元“
type: string
title:
description: 商品标题
type: string
url:
description: 购买链接
type: string
type: object
type: array
Query:
description: 关键词
type: string
type: object
description: new desc
default:
description: ""
summary: 帮助用户查询商品的优惠信息,根据用户输入的商品相关提问,返回商品概况、价格、购买渠道、性价比推荐等信息,并给出优惠商品的链接地址
servers:
- url: https://open.smzdm.com/byte/coze