mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 19:27:48 +08:00
80aa7c4019
Co-authored-by: crazywoola <427733928@qq.com>
27 lines
733 B
Python
27 lines
733 B
Python
from flask_restful import fields
|
|
|
|
from libs.helper import AppIconUrlField, TimestampField
|
|
|
|
app_fields = {
|
|
"id": fields.String,
|
|
"name": fields.String,
|
|
"mode": fields.String,
|
|
"icon_type": fields.String,
|
|
"icon": fields.String,
|
|
"icon_background": fields.String,
|
|
"icon_url": AppIconUrlField,
|
|
"use_icon_as_answer_icon": fields.Boolean,
|
|
}
|
|
|
|
installed_app_fields = {
|
|
"id": fields.String,
|
|
"app": fields.Nested(app_fields),
|
|
"app_owner_tenant_id": fields.String,
|
|
"is_pinned": fields.Boolean,
|
|
"last_used_at": TimestampField,
|
|
"editable": fields.Boolean,
|
|
"uninstallable": fields.Boolean,
|
|
}
|
|
|
|
installed_app_list_fields = {"installed_apps": fields.List(fields.Nested(installed_app_fields))}
|