dify
This commit is contained in:
12
dify/api/fields/end_user_fields.py
Normal file
12
dify/api/fields/end_user_fields.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from flask_restx import Api, Namespace, fields
|
||||
|
||||
simple_end_user_fields = {
|
||||
"id": fields.String,
|
||||
"type": fields.String,
|
||||
"is_anonymous": fields.Boolean,
|
||||
"session_id": fields.String,
|
||||
}
|
||||
|
||||
|
||||
def build_simple_end_user_model(api_or_ns: Api | Namespace):
|
||||
return api_or_ns.model("SimpleEndUser", simple_end_user_fields)
|
||||
Reference in New Issue
Block a user