mezon-sdk 2.7.3 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.ts CHANGED
@@ -27,6 +27,42 @@ const DEFAULT_TIMEOUT_MS = 7000;
27
27
  const DEFAULT_EXPIRED_TIMESPAN_MS = 5 * 60 * 1000;
28
28
 
29
29
 
30
+ /** */
31
+ export interface ClanDesc {
32
+ //
33
+ banner?: string;
34
+ //
35
+ clan_id?: string;
36
+ //
37
+ clan_name?: string;
38
+ //
39
+ creator_id?: string;
40
+ //
41
+ logo?: string;
42
+ //
43
+ status?: number;
44
+ }
45
+
46
+ /** */
47
+ export interface ChannelDescription {
48
+ // The clan of this channel
49
+ clan_id?: string;
50
+ // The channel this message belongs to.
51
+ channel_id?: string;
52
+ // The channel type.
53
+ type?: number;
54
+ // The channel lable
55
+ channel_label?: string;
56
+ // The channel private
57
+ channel_private?: number;
58
+ // meeting code
59
+ meeting_code?: string;
60
+ //
61
+ clan_name?: string;
62
+ //
63
+ parrent_id?: string;
64
+ }
65
+
30
66
  /** */
31
67
  export interface ApiMessageAttachment {
32
68
  //
@@ -81,7 +117,7 @@ export interface ApiMessageMention {
81
117
  e?: number;
82
118
  /** The channel this message belongs to. */
83
119
  channel_id?:string;
84
- // The mode
120
+ // The mode
85
121
  mode?: number;
86
122
  // The channel label
87
123
  channel_label?: string;
@@ -205,6 +241,49 @@ export interface ChannelMessage {
205
241
  message_id?: string;
206
242
  }
207
243
 
244
+
245
+ /** A user in the server. */
246
+ export interface ApiUser {
247
+ //
248
+ about_me?: string;
249
+ //The Apple Sign In ID in the user's account.
250
+ apple_id?: string;
251
+ //A URL for an avatar image.
252
+ avatar_url?: string;
253
+ //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
254
+ create_time?: string;
255
+ //The display name of the user.
256
+ display_name?: string;
257
+ //Number of related edges to this user.
258
+ edge_count?: number;
259
+ //The Facebook id in the user's account.
260
+ facebook_id?: string;
261
+ //The Apple Game Center in of the user's account.
262
+ gamecenter_id?: string;
263
+ //The Google id in the user's account.
264
+ google_id?: string;
265
+ //The id of the user's account.
266
+ id?: string;
267
+ //
268
+ join_time?: string;
269
+ //The language expected to be a tag which follows the BCP-47 spec.
270
+ lang_tag?: string;
271
+ //The location set by the user.
272
+ location?: string;
273
+ //Additional information stored as a JSON object.
274
+ metadata?: string;
275
+ //Indicates whether the user is currently online.
276
+ online?: boolean;
277
+ //The Steam id in the user's account.
278
+ steam_id?: string;
279
+ //The timezone set by the user.
280
+ timezone?: string;
281
+ //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
282
+ update_time?: string;
283
+ //The username of the user's account.
284
+ username?: string;
285
+ }
286
+
208
287
  export interface Client {
209
288
  authenticate: () => Promise<string>;
210
289