@@ -44,6 +44,17 @@ Follow this schema for the user data in your apps:
4444 "description" : " URL to a user avatar that you can display in the UI" ,
4545 "type" : " string"
4646 },
47+ "type" : {
48+ "description" : " Type of the user" ,
49+ "type" : " string" ,
50+ "examples" : [" default" , " admin" , " moderator" ],
51+ "default" : " default"
52+ },
53+ "status" : {
54+ "description" : " Status of the user" ,
55+ "type" : " string" ,
56+ "examples" : [" default" , " deleted" ]
57+ },
4758 "custom" : {
4859 "description" : " Any additional payload information" ,
4960 "type" : " object" ,
@@ -63,7 +74,7 @@ Follow this schema for the user data in your apps:
6374 "type" : " string"
6475 }
6576 },
66- "required" : [" id" ]
77+ "required" : [" id" , " type " ]
6778}
6879```
6980
@@ -76,6 +87,8 @@ Example:
7687 "email" : " jane.doe@example.com" ,
7788 "externalId" : " some-external-user-id" ,
7889 "profileUrl" : " https://randomuser.me/api/portraits/men/1.jpg" ,
90+ "type" : " default" ,
91+ "status" : " default" ,
7992 "custom" : {
8093 "description" : " Office Assistant"
8194 },
@@ -93,6 +106,7 @@ Follow this schema for the channel data in your apps:
93106 "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
94107 "title" : " Channel" ,
95108 "description" : " Channel in the chat application" ,
109+ "type" : " object" ,
96110 "properties" : {
97111 "id" : {
98112 "description" : " Unique identifier for a channel" ,
@@ -106,6 +120,17 @@ Follow this schema for the channel data in your apps:
106120 "description" : " Description of the channel that you can display in the UI" ,
107121 "type" : " string"
108122 },
123+ "type" : {
124+ "description" : " Type of the channel" ,
125+ "type" : " string" ,
126+ "examples" : [" default" , " group" , " direct" ],
127+ "default" : " default"
128+ },
129+ "status" : {
130+ "description" : " Status of the channel" ,
131+ "type" : " string" ,
132+ "examples" : [" default" , " deleted" ]
133+ },
109134 "custom" : {
110135 "description" : " Any additional payload information" ,
111136 "type" : " object" ,
@@ -136,6 +161,8 @@ Example:
136161 "id" : " some-channel-id" ,
137162 "name" : " Off-topic" ,
138163 "description" : " Off-topic channel for random chatter and fun" ,
164+ "type" : " default" ,
165+ "status" : " default" ,
139166 "custom" : {
140167 "profileUrl" : " https://www.gravatar.com/avatar/149e60f311749f2a7c6515f7b34?s=256&d=identicon"
141168 },
0 commit comments