enhance(rtc): update malli-schema for user-info related api response

pull/11433/head
rcmerci 2024-07-16 19:37:18 +08:00
parent e4a1f723e2
commit d651b86dc1
2 changed files with 15 additions and 5 deletions

View File

@ -1146,7 +1146,7 @@
[:div.flex.flex-row.items-center.gap-2 {:key (str "user-" user-name)}
[:div user-name]
(when user-email [:div.opacity-50.text-sm user-email])
(when graph<->user-user-type [:div.opacity-50.text-sm graph<->user-user-type])])]
(when graph<->user-user-type [:div.opacity-50.text-sm (name graph<->user-user-type)])])]
[:div.flex.flex-col.gap-4.mt-4
(shui/input
{:placeholder "Email address"

View File

@ -78,10 +78,20 @@
[:failed-ops {:optional true} [:sequential to-ws-op-schema]]
[:s3-presign-url {:optional true} :string]
[:diff-data {:optional true} [:map-of :keyword :any]]
[:online-users {:optional true} [:sequential [:map
[:user/uuid :uuid]
[:user/name :string]
[:user/email :string]]]]
[:users {:optional true} [:sequential
[:map {:closed true}
[:user/uuid :uuid]
[:user/name :string]
[:user/email :string]
[:user/online? :boolean]
[:user/avatar {:optional true} :string]
[:graph<->user/user-type :keyword]]]]
[:online-users {:optional true} [:sequential
[:map {:closed true}
[:user/uuid :uuid]
[:user/name :string]
[:user/email :string]
[:user/avatar {:optional true} :string]]]]
[:refed-blocks {:optional true}
[:maybe
[:sequential