mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 11:18:19 +08:00
86286e1ac8
Co-authored-by: chenhe <guchenhe@gmail.com> Co-authored-by: Pascal M <11357019+perzeuss@users.noreply.github.com>
25 lines
639 B
Python
25 lines
639 B
Python
from flask_restful import fields
|
|
from libs.helper import TimestampField
|
|
|
|
app_fields = {
|
|
'id': fields.String,
|
|
'name': fields.String,
|
|
'mode': fields.String,
|
|
'icon': fields.String,
|
|
'icon_background': fields.String
|
|
}
|
|
|
|
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,
|
|
'is_agent': fields.Boolean,
|
|
}
|
|
|
|
installed_app_list_fields = {
|
|
'installed_apps': fields.List(fields.Nested(installed_app_fields))
|
|
} |