mezon-sdk 2.7.80 → 2.7.82

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.
Files changed (47) hide show
  1. package/dist/cjs/api/api.d.ts +591 -96
  2. package/dist/cjs/api/api.js +833 -77
  3. package/dist/cjs/api/api.js.map +1 -1
  4. package/dist/cjs/client.js +3 -3
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/interfaces/client.d.ts +1 -1
  7. package/dist/cjs/interfaces/socket.d.ts +4 -4
  8. package/dist/cjs/mezon-client/channel_manager.d.ts +2 -0
  9. package/dist/cjs/mezon-client/channel_manager.js +2 -1
  10. package/dist/cjs/mezon-client/channel_manager.js.map +1 -1
  11. package/dist/cjs/mezon-client/message_manager.d.ts +3 -1
  12. package/dist/cjs/mezon-client/message_manager.js +4 -3
  13. package/dist/cjs/mezon-client/message_manager.js.map +1 -1
  14. package/dist/cjs/mezon-client/mezon_client.d.ts +7 -8
  15. package/dist/cjs/mezon-client/mezon_client.js +11 -44
  16. package/dist/cjs/mezon-client/mezon_client.js.map +1 -1
  17. package/dist/cjs/mezon-client/socket_manager.d.ts +12 -1
  18. package/dist/cjs/mezon-client/socket_manager.js +48 -7
  19. package/dist/cjs/mezon-client/socket_manager.js.map +1 -1
  20. package/dist/cjs/rtapi/realtime.d.ts +1704 -377
  21. package/dist/cjs/rtapi/realtime.js +897 -124
  22. package/dist/cjs/rtapi/realtime.js.map +1 -1
  23. package/dist/esm/api/api.d.ts +591 -96
  24. package/dist/esm/api/api.js +805 -58
  25. package/dist/esm/api/api.js.map +1 -1
  26. package/dist/esm/client.js +3 -3
  27. package/dist/esm/client.js.map +1 -1
  28. package/dist/esm/interfaces/client.d.ts +1 -1
  29. package/dist/esm/interfaces/socket.d.ts +4 -4
  30. package/dist/esm/mezon-client/channel_manager.d.ts +2 -0
  31. package/dist/esm/mezon-client/channel_manager.js +2 -1
  32. package/dist/esm/mezon-client/channel_manager.js.map +1 -1
  33. package/dist/esm/mezon-client/message_manager.d.ts +3 -1
  34. package/dist/esm/mezon-client/message_manager.js +4 -3
  35. package/dist/esm/mezon-client/message_manager.js.map +1 -1
  36. package/dist/esm/mezon-client/mezon_client.d.ts +7 -8
  37. package/dist/esm/mezon-client/mezon_client.js +11 -45
  38. package/dist/esm/mezon-client/mezon_client.js.map +1 -1
  39. package/dist/esm/mezon-client/socket_manager.d.ts +12 -1
  40. package/dist/esm/mezon-client/socket_manager.js +51 -7
  41. package/dist/esm/mezon-client/socket_manager.js.map +1 -1
  42. package/dist/esm/rtapi/realtime.d.ts +1704 -377
  43. package/dist/esm/rtapi/realtime.js +884 -115
  44. package/dist/esm/rtapi/realtime.js.map +1 -1
  45. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +1 -1
@@ -2219,7 +2219,7 @@ export const AddGroupUsersRequest = {
2219
2219
  },
2220
2220
  };
2221
2221
  function createBaseSessionRefreshRequest() {
2222
- return { token: "", vars: {} };
2222
+ return { token: "", vars: {}, is_remember: undefined };
2223
2223
  }
2224
2224
  export const SessionRefreshRequest = {
2225
2225
  encode(message, writer = _m0.Writer.create()) {
@@ -2229,6 +2229,9 @@ export const SessionRefreshRequest = {
2229
2229
  Object.entries(message.vars).forEach(([key, value]) => {
2230
2230
  SessionRefreshRequest_VarsEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
2231
2231
  });
2232
+ if (message.is_remember !== undefined) {
2233
+ BoolValue.encode({ value: message.is_remember }, writer.uint32(26).fork()).ldelim();
2234
+ }
2232
2235
  return writer;
2233
2236
  },
2234
2237
  decode(input, length) {
@@ -2253,6 +2256,12 @@ export const SessionRefreshRequest = {
2253
2256
  message.vars[entry2.key] = entry2.value;
2254
2257
  }
2255
2258
  continue;
2259
+ case 3:
2260
+ if (tag !== 26) {
2261
+ break;
2262
+ }
2263
+ message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
2264
+ continue;
2256
2265
  }
2257
2266
  if ((tag & 7) === 4 || tag === 0) {
2258
2267
  break;
@@ -2270,6 +2279,7 @@ export const SessionRefreshRequest = {
2270
2279
  return acc;
2271
2280
  }, {})
2272
2281
  : {},
2282
+ is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
2273
2283
  };
2274
2284
  },
2275
2285
  toJSON(message) {
@@ -2286,6 +2296,9 @@ export const SessionRefreshRequest = {
2286
2296
  });
2287
2297
  }
2288
2298
  }
2299
+ if (message.is_remember !== undefined) {
2300
+ obj.is_remember = message.is_remember;
2301
+ }
2289
2302
  return obj;
2290
2303
  },
2291
2304
  create(base) {
@@ -2300,6 +2313,7 @@ export const SessionRefreshRequest = {
2300
2313
  }
2301
2314
  return acc;
2302
2315
  }, {});
2316
+ message.is_remember = object.is_remember ?? undefined;
2303
2317
  return message;
2304
2318
  },
2305
2319
  };
@@ -2370,7 +2384,7 @@ export const SessionRefreshRequest_VarsEntry = {
2370
2384
  },
2371
2385
  };
2372
2386
  function createBaseSessionLogoutRequest() {
2373
- return { token: "", refresh_token: "", device_id: "", fcm_token: "" };
2387
+ return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
2374
2388
  }
2375
2389
  export const SessionLogoutRequest = {
2376
2390
  encode(message, writer = _m0.Writer.create()) {
@@ -2386,6 +2400,9 @@ export const SessionLogoutRequest = {
2386
2400
  if (message.fcm_token !== "") {
2387
2401
  writer.uint32(34).string(message.fcm_token);
2388
2402
  }
2403
+ if (message.platform !== "") {
2404
+ writer.uint32(42).string(message.platform);
2405
+ }
2389
2406
  return writer;
2390
2407
  },
2391
2408
  decode(input, length) {
@@ -2419,6 +2436,12 @@ export const SessionLogoutRequest = {
2419
2436
  }
2420
2437
  message.fcm_token = reader.string();
2421
2438
  continue;
2439
+ case 5:
2440
+ if (tag !== 42) {
2441
+ break;
2442
+ }
2443
+ message.platform = reader.string();
2444
+ continue;
2422
2445
  }
2423
2446
  if ((tag & 7) === 4 || tag === 0) {
2424
2447
  break;
@@ -2433,6 +2456,7 @@ export const SessionLogoutRequest = {
2433
2456
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
2434
2457
  device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
2435
2458
  fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
2459
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
2436
2460
  };
2437
2461
  },
2438
2462
  toJSON(message) {
@@ -2449,6 +2473,9 @@ export const SessionLogoutRequest = {
2449
2473
  if (message.fcm_token !== "") {
2450
2474
  obj.fcm_token = message.fcm_token;
2451
2475
  }
2476
+ if (message.platform !== "") {
2477
+ obj.platform = message.platform;
2478
+ }
2452
2479
  return obj;
2453
2480
  },
2454
2481
  create(base) {
@@ -2460,6 +2487,7 @@ export const SessionLogoutRequest = {
2460
2487
  message.refresh_token = object.refresh_token ?? "";
2461
2488
  message.device_id = object.device_id ?? "";
2462
2489
  message.fcm_token = object.fcm_token ?? "";
2490
+ message.platform = object.platform ?? "";
2463
2491
  return message;
2464
2492
  },
2465
2493
  };
@@ -2969,20 +2997,23 @@ export const AuthenticateGameCenterRequest = {
2969
2997
  return message;
2970
2998
  },
2971
2999
  };
2972
- function createBaseAuthenticateGoogleRedirectRequest() {
2973
- return { code: "" };
3000
+ function createBaseMezonAuthenticatedRequest() {
3001
+ return { email: "", secret: "" };
2974
3002
  }
2975
- export const AuthenticateGoogleRedirectRequest = {
3003
+ export const MezonAuthenticatedRequest = {
2976
3004
  encode(message, writer = _m0.Writer.create()) {
2977
- if (message.code !== "") {
2978
- writer.uint32(10).string(message.code);
3005
+ if (message.email !== "") {
3006
+ writer.uint32(10).string(message.email);
3007
+ }
3008
+ if (message.secret !== "") {
3009
+ writer.uint32(18).string(message.secret);
2979
3010
  }
2980
3011
  return writer;
2981
3012
  },
2982
3013
  decode(input, length) {
2983
3014
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2984
3015
  let end = length === undefined ? reader.len : reader.pos + length;
2985
- const message = createBaseAuthenticateGoogleRedirectRequest();
3016
+ const message = createBaseMezonAuthenticatedRequest();
2986
3017
  while (reader.pos < end) {
2987
3018
  const tag = reader.uint32();
2988
3019
  switch (tag >>> 3) {
@@ -2990,7 +3021,13 @@ export const AuthenticateGoogleRedirectRequest = {
2990
3021
  if (tag !== 10) {
2991
3022
  break;
2992
3023
  }
2993
- message.code = reader.string();
3024
+ message.email = reader.string();
3025
+ continue;
3026
+ case 2:
3027
+ if (tag !== 18) {
3028
+ break;
3029
+ }
3030
+ message.secret = reader.string();
2994
3031
  continue;
2995
3032
  }
2996
3033
  if ((tag & 7) === 4 || tag === 0) {
@@ -3001,21 +3038,136 @@ export const AuthenticateGoogleRedirectRequest = {
3001
3038
  return message;
3002
3039
  },
3003
3040
  fromJSON(object) {
3004
- return { code: isSet(object.code) ? globalThis.String(object.code) : "" };
3041
+ return {
3042
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
3043
+ secret: isSet(object.secret) ? globalThis.String(object.secret) : "",
3044
+ };
3005
3045
  },
3006
3046
  toJSON(message) {
3007
3047
  const obj = {};
3008
- if (message.code !== "") {
3009
- obj.code = message.code;
3048
+ if (message.email !== "") {
3049
+ obj.email = message.email;
3050
+ }
3051
+ if (message.secret !== "") {
3052
+ obj.secret = message.secret;
3053
+ }
3054
+ return obj;
3055
+ },
3056
+ create(base) {
3057
+ return MezonAuthenticatedRequest.fromPartial(base ?? {});
3058
+ },
3059
+ fromPartial(object) {
3060
+ const message = createBaseMezonAuthenticatedRequest();
3061
+ message.email = object.email ?? "";
3062
+ message.secret = object.secret ?? "";
3063
+ return message;
3064
+ },
3065
+ };
3066
+ function createBaseMezonAuthenticatedResponse() {
3067
+ return { authenticated: false, userId: "", username: "", display_name: "", avatar: "" };
3068
+ }
3069
+ export const MezonAuthenticatedResponse = {
3070
+ encode(message, writer = _m0.Writer.create()) {
3071
+ if (message.authenticated !== false) {
3072
+ writer.uint32(8).bool(message.authenticated);
3073
+ }
3074
+ if (message.userId !== "") {
3075
+ writer.uint32(18).string(message.userId);
3076
+ }
3077
+ if (message.username !== "") {
3078
+ writer.uint32(26).string(message.username);
3079
+ }
3080
+ if (message.display_name !== "") {
3081
+ writer.uint32(34).string(message.display_name);
3082
+ }
3083
+ if (message.avatar !== "") {
3084
+ writer.uint32(42).string(message.avatar);
3085
+ }
3086
+ return writer;
3087
+ },
3088
+ decode(input, length) {
3089
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3090
+ let end = length === undefined ? reader.len : reader.pos + length;
3091
+ const message = createBaseMezonAuthenticatedResponse();
3092
+ while (reader.pos < end) {
3093
+ const tag = reader.uint32();
3094
+ switch (tag >>> 3) {
3095
+ case 1:
3096
+ if (tag !== 8) {
3097
+ break;
3098
+ }
3099
+ message.authenticated = reader.bool();
3100
+ continue;
3101
+ case 2:
3102
+ if (tag !== 18) {
3103
+ break;
3104
+ }
3105
+ message.userId = reader.string();
3106
+ continue;
3107
+ case 3:
3108
+ if (tag !== 26) {
3109
+ break;
3110
+ }
3111
+ message.username = reader.string();
3112
+ continue;
3113
+ case 4:
3114
+ if (tag !== 34) {
3115
+ break;
3116
+ }
3117
+ message.display_name = reader.string();
3118
+ continue;
3119
+ case 5:
3120
+ if (tag !== 42) {
3121
+ break;
3122
+ }
3123
+ message.avatar = reader.string();
3124
+ continue;
3125
+ }
3126
+ if ((tag & 7) === 4 || tag === 0) {
3127
+ break;
3128
+ }
3129
+ reader.skipType(tag & 7);
3130
+ }
3131
+ return message;
3132
+ },
3133
+ fromJSON(object) {
3134
+ return {
3135
+ authenticated: isSet(object.authenticated) ? globalThis.Boolean(object.authenticated) : false,
3136
+ userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
3137
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
3138
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
3139
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
3140
+ };
3141
+ },
3142
+ toJSON(message) {
3143
+ const obj = {};
3144
+ if (message.authenticated !== false) {
3145
+ obj.authenticated = message.authenticated;
3146
+ }
3147
+ if (message.userId !== "") {
3148
+ obj.userId = message.userId;
3149
+ }
3150
+ if (message.username !== "") {
3151
+ obj.username = message.username;
3152
+ }
3153
+ if (message.display_name !== "") {
3154
+ obj.display_name = message.display_name;
3155
+ }
3156
+ if (message.avatar !== "") {
3157
+ obj.avatar = message.avatar;
3010
3158
  }
3011
3159
  return obj;
3012
3160
  },
3013
3161
  create(base) {
3014
- return AuthenticateGoogleRedirectRequest.fromPartial(base ?? {});
3162
+ return MezonAuthenticatedResponse.fromPartial(base ?? {});
3015
3163
  },
3016
3164
  fromPartial(object) {
3017
- const message = createBaseAuthenticateGoogleRedirectRequest();
3018
- message.code = object.code ?? "";
3165
+ const message = createBaseMezonAuthenticatedResponse();
3166
+ message.authenticated = object.authenticated ?? false;
3167
+ message.userId = object.userId ?? "";
3168
+ message.username = object.username ?? "";
3169
+ message.display_name = object.display_name ?? "";
3170
+ message.avatar = object.avatar ?? "";
3019
3171
  return message;
3020
3172
  },
3021
3173
  };
@@ -3102,7 +3254,7 @@ export const AuthenticateGoogleRequest = {
3102
3254
  },
3103
3255
  };
3104
3256
  function createBaseAuthenticateMezonRequest() {
3105
- return { account: undefined, create: undefined, username: "" };
3257
+ return { account: undefined, create: undefined, username: "", is_remember: undefined };
3106
3258
  }
3107
3259
  export const AuthenticateMezonRequest = {
3108
3260
  encode(message, writer = _m0.Writer.create()) {
@@ -3115,6 +3267,9 @@ export const AuthenticateMezonRequest = {
3115
3267
  if (message.username !== "") {
3116
3268
  writer.uint32(26).string(message.username);
3117
3269
  }
3270
+ if (message.is_remember !== undefined) {
3271
+ BoolValue.encode({ value: message.is_remember }, writer.uint32(34).fork()).ldelim();
3272
+ }
3118
3273
  return writer;
3119
3274
  },
3120
3275
  decode(input, length) {
@@ -3142,6 +3297,12 @@ export const AuthenticateMezonRequest = {
3142
3297
  }
3143
3298
  message.username = reader.string();
3144
3299
  continue;
3300
+ case 4:
3301
+ if (tag !== 34) {
3302
+ break;
3303
+ }
3304
+ message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
3305
+ continue;
3145
3306
  }
3146
3307
  if ((tag & 7) === 4 || tag === 0) {
3147
3308
  break;
@@ -3155,6 +3316,7 @@ export const AuthenticateMezonRequest = {
3155
3316
  account: isSet(object.account) ? AccountMezon.fromJSON(object.account) : undefined,
3156
3317
  create: isSet(object.create) ? Boolean(object.create) : undefined,
3157
3318
  username: isSet(object.username) ? globalThis.String(object.username) : "",
3319
+ is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
3158
3320
  };
3159
3321
  },
3160
3322
  toJSON(message) {
@@ -3168,6 +3330,9 @@ export const AuthenticateMezonRequest = {
3168
3330
  if (message.username !== "") {
3169
3331
  obj.username = message.username;
3170
3332
  }
3333
+ if (message.is_remember !== undefined) {
3334
+ obj.is_remember = message.is_remember;
3335
+ }
3171
3336
  return obj;
3172
3337
  },
3173
3338
  create(base) {
@@ -3180,6 +3345,7 @@ export const AuthenticateMezonRequest = {
3180
3345
  : undefined;
3181
3346
  message.create = object.create ?? undefined;
3182
3347
  message.username = object.username ?? "";
3348
+ message.is_remember = object.is_remember ?? undefined;
3183
3349
  return message;
3184
3350
  },
3185
3351
  };
@@ -4230,6 +4396,7 @@ function createBaseMessageReaction() {
4230
4396
  message_sender_id: "",
4231
4397
  is_public: false,
4232
4398
  topic_id: "",
4399
+ emoji_recent_id: "",
4233
4400
  };
4234
4401
  }
4235
4402
  export const MessageReaction = {
@@ -4279,6 +4446,9 @@ export const MessageReaction = {
4279
4446
  if (message.topic_id !== "") {
4280
4447
  writer.uint32(122).string(message.topic_id);
4281
4448
  }
4449
+ if (message.emoji_recent_id !== "") {
4450
+ writer.uint32(130).string(message.emoji_recent_id);
4451
+ }
4282
4452
  return writer;
4283
4453
  },
4284
4454
  decode(input, length) {
@@ -4378,6 +4548,12 @@ export const MessageReaction = {
4378
4548
  }
4379
4549
  message.topic_id = reader.string();
4380
4550
  continue;
4551
+ case 16:
4552
+ if (tag !== 130) {
4553
+ break;
4554
+ }
4555
+ message.emoji_recent_id = reader.string();
4556
+ continue;
4381
4557
  }
4382
4558
  if ((tag & 7) === 4 || tag === 0) {
4383
4559
  break;
@@ -4403,6 +4579,7 @@ export const MessageReaction = {
4403
4579
  message_sender_id: isSet(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
4404
4580
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
4405
4581
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
4582
+ emoji_recent_id: isSet(object.emoji_recent_id) ? globalThis.String(object.emoji_recent_id) : "",
4406
4583
  };
4407
4584
  },
4408
4585
  toJSON(message) {
@@ -4452,6 +4629,9 @@ export const MessageReaction = {
4452
4629
  if (message.topic_id !== "") {
4453
4630
  obj.topic_id = message.topic_id;
4454
4631
  }
4632
+ if (message.emoji_recent_id !== "") {
4633
+ obj.emoji_recent_id = message.emoji_recent_id;
4634
+ }
4455
4635
  return obj;
4456
4636
  },
4457
4637
  create(base) {
@@ -4474,11 +4654,12 @@ export const MessageReaction = {
4474
4654
  message.message_sender_id = object.message_sender_id ?? "";
4475
4655
  message.is_public = object.is_public ?? false;
4476
4656
  message.topic_id = object.topic_id ?? "";
4657
+ message.emoji_recent_id = object.emoji_recent_id ?? "";
4477
4658
  return message;
4478
4659
  },
4479
4660
  };
4480
4661
  function createBaseMessageAttachment() {
4481
- return { filename: "", size: 0, url: "", filetype: "", width: 0, height: 0 };
4662
+ return { filename: "", size: 0, url: "", filetype: "", width: 0, height: 0, thumbnail: "" };
4482
4663
  }
4483
4664
  export const MessageAttachment = {
4484
4665
  encode(message, writer = _m0.Writer.create()) {
@@ -4500,6 +4681,9 @@ export const MessageAttachment = {
4500
4681
  if (message.height !== 0) {
4501
4682
  writer.uint32(48).int32(message.height);
4502
4683
  }
4684
+ if (message.thumbnail !== "") {
4685
+ writer.uint32(58).string(message.thumbnail);
4686
+ }
4503
4687
  return writer;
4504
4688
  },
4505
4689
  decode(input, length) {
@@ -4545,6 +4729,12 @@ export const MessageAttachment = {
4545
4729
  }
4546
4730
  message.height = reader.int32();
4547
4731
  continue;
4732
+ case 7:
4733
+ if (tag !== 58) {
4734
+ break;
4735
+ }
4736
+ message.thumbnail = reader.string();
4737
+ continue;
4548
4738
  }
4549
4739
  if ((tag & 7) === 4 || tag === 0) {
4550
4740
  break;
@@ -4561,6 +4751,7 @@ export const MessageAttachment = {
4561
4751
  filetype: isSet(object.filetype) ? globalThis.String(object.filetype) : "",
4562
4752
  width: isSet(object.width) ? globalThis.Number(object.width) : 0,
4563
4753
  height: isSet(object.height) ? globalThis.Number(object.height) : 0,
4754
+ thumbnail: isSet(object.thumbnail) ? globalThis.String(object.thumbnail) : "",
4564
4755
  };
4565
4756
  },
4566
4757
  toJSON(message) {
@@ -4583,6 +4774,9 @@ export const MessageAttachment = {
4583
4774
  if (message.height !== 0) {
4584
4775
  obj.height = Math.round(message.height);
4585
4776
  }
4777
+ if (message.thumbnail !== "") {
4778
+ obj.thumbnail = message.thumbnail;
4779
+ }
4586
4780
  return obj;
4587
4781
  },
4588
4782
  create(base) {
@@ -4596,6 +4790,7 @@ export const MessageAttachment = {
4596
4790
  message.filetype = object.filetype ?? "";
4597
4791
  message.width = object.width ?? 0;
4598
4792
  message.height = object.height ?? 0;
4793
+ message.thumbnail = object.thumbnail ?? "";
4599
4794
  return message;
4600
4795
  },
4601
4796
  };
@@ -5191,13 +5386,16 @@ export const DeleteGroupRequest = {
5191
5386
  },
5192
5387
  };
5193
5388
  function createBaseDeleteNotificationsRequest() {
5194
- return { ids: [] };
5389
+ return { ids: [], category: 0 };
5195
5390
  }
5196
5391
  export const DeleteNotificationsRequest = {
5197
5392
  encode(message, writer = _m0.Writer.create()) {
5198
5393
  for (const v of message.ids) {
5199
5394
  writer.uint32(10).string(v);
5200
5395
  }
5396
+ if (message.category !== 0) {
5397
+ writer.uint32(16).int32(message.category);
5398
+ }
5201
5399
  return writer;
5202
5400
  },
5203
5401
  decode(input, length) {
@@ -5213,6 +5411,12 @@ export const DeleteNotificationsRequest = {
5213
5411
  }
5214
5412
  message.ids.push(reader.string());
5215
5413
  continue;
5414
+ case 2:
5415
+ if (tag !== 16) {
5416
+ break;
5417
+ }
5418
+ message.category = reader.int32();
5419
+ continue;
5216
5420
  }
5217
5421
  if ((tag & 7) === 4 || tag === 0) {
5218
5422
  break;
@@ -5222,13 +5426,19 @@ export const DeleteNotificationsRequest = {
5222
5426
  return message;
5223
5427
  },
5224
5428
  fromJSON(object) {
5225
- return { ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [] };
5429
+ return {
5430
+ ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
5431
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
5432
+ };
5226
5433
  },
5227
5434
  toJSON(message) {
5228
5435
  const obj = {};
5229
5436
  if (message.ids?.length) {
5230
5437
  obj.ids = message.ids;
5231
5438
  }
5439
+ if (message.category !== 0) {
5440
+ obj.category = Math.round(message.category);
5441
+ }
5232
5442
  return obj;
5233
5443
  },
5234
5444
  create(base) {
@@ -5237,6 +5447,7 @@ export const DeleteNotificationsRequest = {
5237
5447
  fromPartial(object) {
5238
5448
  const message = createBaseDeleteNotificationsRequest();
5239
5449
  message.ids = object.ids?.map((e) => e) || [];
5450
+ message.category = object.category ?? 0;
5240
5451
  return message;
5241
5452
  },
5242
5453
  };
@@ -8115,7 +8326,7 @@ export const ListClanUsersRequest = {
8115
8326
  },
8116
8327
  };
8117
8328
  function createBaseListNotificationsRequest() {
8118
- return { limit: undefined, clan_id: "", notification_id: "", code: undefined, direction: undefined };
8329
+ return { limit: undefined, clan_id: "", notification_id: "", category: 0, direction: undefined };
8119
8330
  }
8120
8331
  export const ListNotificationsRequest = {
8121
8332
  encode(message, writer = _m0.Writer.create()) {
@@ -8128,8 +8339,8 @@ export const ListNotificationsRequest = {
8128
8339
  if (message.notification_id !== "") {
8129
8340
  writer.uint32(26).string(message.notification_id);
8130
8341
  }
8131
- if (message.code !== undefined) {
8132
- Int32Value.encode({ value: message.code }, writer.uint32(34).fork()).ldelim();
8342
+ if (message.category !== 0) {
8343
+ writer.uint32(32).int32(message.category);
8133
8344
  }
8134
8345
  if (message.direction !== undefined) {
8135
8346
  Int32Value.encode({ value: message.direction }, writer.uint32(42).fork()).ldelim();
@@ -8162,10 +8373,10 @@ export const ListNotificationsRequest = {
8162
8373
  message.notification_id = reader.string();
8163
8374
  continue;
8164
8375
  case 4:
8165
- if (tag !== 34) {
8376
+ if (tag !== 32) {
8166
8377
  break;
8167
8378
  }
8168
- message.code = Int32Value.decode(reader, reader.uint32()).value;
8379
+ message.category = reader.int32();
8169
8380
  continue;
8170
8381
  case 5:
8171
8382
  if (tag !== 42) {
@@ -8186,7 +8397,7 @@ export const ListNotificationsRequest = {
8186
8397
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
8187
8398
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
8188
8399
  notification_id: isSet(object.notification_id) ? globalThis.String(object.notification_id) : "",
8189
- code: isSet(object.code) ? Number(object.code) : undefined,
8400
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
8190
8401
  direction: isSet(object.direction) ? Number(object.direction) : undefined,
8191
8402
  };
8192
8403
  },
@@ -8201,8 +8412,8 @@ export const ListNotificationsRequest = {
8201
8412
  if (message.notification_id !== "") {
8202
8413
  obj.notification_id = message.notification_id;
8203
8414
  }
8204
- if (message.code !== undefined) {
8205
- obj.code = message.code;
8415
+ if (message.category !== 0) {
8416
+ obj.category = Math.round(message.category);
8206
8417
  }
8207
8418
  if (message.direction !== undefined) {
8208
8419
  obj.direction = message.direction;
@@ -8217,7 +8428,7 @@ export const ListNotificationsRequest = {
8217
8428
  message.limit = object.limit ?? undefined;
8218
8429
  message.clan_id = object.clan_id ?? "";
8219
8430
  message.notification_id = object.notification_id ?? "";
8220
- message.code = object.code ?? undefined;
8431
+ message.category = object.category ?? 0;
8221
8432
  message.direction = object.direction ?? undefined;
8222
8433
  return message;
8223
8434
  },
@@ -8330,6 +8541,8 @@ function createBaseNotification() {
8330
8541
  channel_type: 0,
8331
8542
  avatar_url: "",
8332
8543
  channel: undefined,
8544
+ topic_id: "",
8545
+ category: 0,
8333
8546
  };
8334
8547
  }
8335
8548
  export const Notification = {
@@ -8370,6 +8583,12 @@ export const Notification = {
8370
8583
  if (message.channel !== undefined) {
8371
8584
  ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
8372
8585
  }
8586
+ if (message.topic_id !== "") {
8587
+ writer.uint32(106).string(message.topic_id);
8588
+ }
8589
+ if (message.category !== 0) {
8590
+ writer.uint32(112).int32(message.category);
8591
+ }
8373
8592
  return writer;
8374
8593
  },
8375
8594
  decode(input, length) {
@@ -8451,6 +8670,18 @@ export const Notification = {
8451
8670
  }
8452
8671
  message.channel = ChannelDescription.decode(reader, reader.uint32());
8453
8672
  continue;
8673
+ case 13:
8674
+ if (tag !== 106) {
8675
+ break;
8676
+ }
8677
+ message.topic_id = reader.string();
8678
+ continue;
8679
+ case 14:
8680
+ if (tag !== 112) {
8681
+ break;
8682
+ }
8683
+ message.category = reader.int32();
8684
+ continue;
8454
8685
  }
8455
8686
  if ((tag & 7) === 4 || tag === 0) {
8456
8687
  break;
@@ -8473,6 +8704,8 @@ export const Notification = {
8473
8704
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
8474
8705
  avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
8475
8706
  channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
8707
+ topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
8708
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
8476
8709
  };
8477
8710
  },
8478
8711
  toJSON(message) {
@@ -8513,6 +8746,12 @@ export const Notification = {
8513
8746
  if (message.channel !== undefined) {
8514
8747
  obj.channel = ChannelDescription.toJSON(message.channel);
8515
8748
  }
8749
+ if (message.topic_id !== "") {
8750
+ obj.topic_id = message.topic_id;
8751
+ }
8752
+ if (message.category !== 0) {
8753
+ obj.category = Math.round(message.category);
8754
+ }
8516
8755
  return obj;
8517
8756
  },
8518
8757
  create(base) {
@@ -8534,6 +8773,142 @@ export const Notification = {
8534
8773
  message.channel = (object.channel !== undefined && object.channel !== null)
8535
8774
  ? ChannelDescription.fromPartial(object.channel)
8536
8775
  : undefined;
8776
+ message.topic_id = object.topic_id ?? "";
8777
+ message.category = object.category ?? 0;
8778
+ return message;
8779
+ },
8780
+ };
8781
+ function createBaseEmojiRecent() {
8782
+ return { emoji_recents_id: "", emoji_id: "", update_time: undefined };
8783
+ }
8784
+ export const EmojiRecent = {
8785
+ encode(message, writer = _m0.Writer.create()) {
8786
+ if (message.emoji_recents_id !== "") {
8787
+ writer.uint32(10).string(message.emoji_recents_id);
8788
+ }
8789
+ if (message.emoji_id !== "") {
8790
+ writer.uint32(18).string(message.emoji_id);
8791
+ }
8792
+ if (message.update_time !== undefined) {
8793
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(26).fork()).ldelim();
8794
+ }
8795
+ return writer;
8796
+ },
8797
+ decode(input, length) {
8798
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
8799
+ let end = length === undefined ? reader.len : reader.pos + length;
8800
+ const message = createBaseEmojiRecent();
8801
+ while (reader.pos < end) {
8802
+ const tag = reader.uint32();
8803
+ switch (tag >>> 3) {
8804
+ case 1:
8805
+ if (tag !== 10) {
8806
+ break;
8807
+ }
8808
+ message.emoji_recents_id = reader.string();
8809
+ continue;
8810
+ case 2:
8811
+ if (tag !== 18) {
8812
+ break;
8813
+ }
8814
+ message.emoji_id = reader.string();
8815
+ continue;
8816
+ case 3:
8817
+ if (tag !== 26) {
8818
+ break;
8819
+ }
8820
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8821
+ continue;
8822
+ }
8823
+ if ((tag & 7) === 4 || tag === 0) {
8824
+ break;
8825
+ }
8826
+ reader.skipType(tag & 7);
8827
+ }
8828
+ return message;
8829
+ },
8830
+ fromJSON(object) {
8831
+ return {
8832
+ emoji_recents_id: isSet(object.emoji_recents_id) ? globalThis.String(object.emoji_recents_id) : "",
8833
+ emoji_id: isSet(object.emoji_id) ? globalThis.String(object.emoji_id) : "",
8834
+ update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
8835
+ };
8836
+ },
8837
+ toJSON(message) {
8838
+ const obj = {};
8839
+ if (message.emoji_recents_id !== "") {
8840
+ obj.emoji_recents_id = message.emoji_recents_id;
8841
+ }
8842
+ if (message.emoji_id !== "") {
8843
+ obj.emoji_id = message.emoji_id;
8844
+ }
8845
+ if (message.update_time !== undefined) {
8846
+ obj.update_time = message.update_time.toISOString();
8847
+ }
8848
+ return obj;
8849
+ },
8850
+ create(base) {
8851
+ return EmojiRecent.fromPartial(base ?? {});
8852
+ },
8853
+ fromPartial(object) {
8854
+ const message = createBaseEmojiRecent();
8855
+ message.emoji_recents_id = object.emoji_recents_id ?? "";
8856
+ message.emoji_id = object.emoji_id ?? "";
8857
+ message.update_time = object.update_time ?? undefined;
8858
+ return message;
8859
+ },
8860
+ };
8861
+ function createBaseEmojiRecentList() {
8862
+ return { emoji_recents: [] };
8863
+ }
8864
+ export const EmojiRecentList = {
8865
+ encode(message, writer = _m0.Writer.create()) {
8866
+ for (const v of message.emoji_recents) {
8867
+ EmojiRecent.encode(v, writer.uint32(10).fork()).ldelim();
8868
+ }
8869
+ return writer;
8870
+ },
8871
+ decode(input, length) {
8872
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
8873
+ let end = length === undefined ? reader.len : reader.pos + length;
8874
+ const message = createBaseEmojiRecentList();
8875
+ while (reader.pos < end) {
8876
+ const tag = reader.uint32();
8877
+ switch (tag >>> 3) {
8878
+ case 1:
8879
+ if (tag !== 10) {
8880
+ break;
8881
+ }
8882
+ message.emoji_recents.push(EmojiRecent.decode(reader, reader.uint32()));
8883
+ continue;
8884
+ }
8885
+ if ((tag & 7) === 4 || tag === 0) {
8886
+ break;
8887
+ }
8888
+ reader.skipType(tag & 7);
8889
+ }
8890
+ return message;
8891
+ },
8892
+ fromJSON(object) {
8893
+ return {
8894
+ emoji_recents: globalThis.Array.isArray(object?.emoji_recents)
8895
+ ? object.emoji_recents.map((e) => EmojiRecent.fromJSON(e))
8896
+ : [],
8897
+ };
8898
+ },
8899
+ toJSON(message) {
8900
+ const obj = {};
8901
+ if (message.emoji_recents?.length) {
8902
+ obj.emoji_recents = message.emoji_recents.map((e) => EmojiRecent.toJSON(e));
8903
+ }
8904
+ return obj;
8905
+ },
8906
+ create(base) {
8907
+ return EmojiRecentList.fromPartial(base ?? {});
8908
+ },
8909
+ fromPartial(object) {
8910
+ const message = createBaseEmojiRecentList();
8911
+ message.emoji_recents = object.emoji_recents?.map((e) => EmojiRecent.fromPartial(e)) || [];
8537
8912
  return message;
8538
8913
  },
8539
8914
  };
@@ -8818,7 +9193,7 @@ export const Rpc = {
8818
9193
  },
8819
9194
  };
8820
9195
  function createBaseSession() {
8821
- return { created: false, token: "", refresh_token: "", user_id: "" };
9196
+ return { created: false, token: "", refresh_token: "", user_id: "", is_remember: false };
8822
9197
  }
8823
9198
  export const Session = {
8824
9199
  encode(message, writer = _m0.Writer.create()) {
@@ -8834,6 +9209,9 @@ export const Session = {
8834
9209
  if (message.user_id !== "") {
8835
9210
  writer.uint32(34).string(message.user_id);
8836
9211
  }
9212
+ if (message.is_remember !== false) {
9213
+ writer.uint32(40).bool(message.is_remember);
9214
+ }
8837
9215
  return writer;
8838
9216
  },
8839
9217
  decode(input, length) {
@@ -8867,6 +9245,12 @@ export const Session = {
8867
9245
  }
8868
9246
  message.user_id = reader.string();
8869
9247
  continue;
9248
+ case 5:
9249
+ if (tag !== 40) {
9250
+ break;
9251
+ }
9252
+ message.is_remember = reader.bool();
9253
+ continue;
8870
9254
  }
8871
9255
  if ((tag & 7) === 4 || tag === 0) {
8872
9256
  break;
@@ -8881,6 +9265,7 @@ export const Session = {
8881
9265
  token: isSet(object.token) ? globalThis.String(object.token) : "",
8882
9266
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
8883
9267
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
9268
+ is_remember: isSet(object.is_remember) ? globalThis.Boolean(object.is_remember) : false,
8884
9269
  };
8885
9270
  },
8886
9271
  toJSON(message) {
@@ -8897,6 +9282,9 @@ export const Session = {
8897
9282
  if (message.user_id !== "") {
8898
9283
  obj.user_id = message.user_id;
8899
9284
  }
9285
+ if (message.is_remember !== false) {
9286
+ obj.is_remember = message.is_remember;
9287
+ }
8900
9288
  return obj;
8901
9289
  },
8902
9290
  create(base) {
@@ -8908,6 +9296,7 @@ export const Session = {
8908
9296
  message.token = object.token ?? "";
8909
9297
  message.refresh_token = object.refresh_token ?? "";
8910
9298
  message.user_id = object.user_id ?? "";
9299
+ message.is_remember = object.is_remember ?? false;
8911
9300
  return message;
8912
9301
  },
8913
9302
  };
@@ -9347,6 +9736,7 @@ function createBaseUser() {
9347
9736
  join_time: undefined,
9348
9737
  is_mobile: false,
9349
9738
  dob: undefined,
9739
+ mezon_id: "",
9350
9740
  };
9351
9741
  }
9352
9742
  export const User = {
@@ -9414,6 +9804,9 @@ export const User = {
9414
9804
  if (message.dob !== undefined) {
9415
9805
  Timestamp.encode(toTimestamp(message.dob), writer.uint32(170).fork()).ldelim();
9416
9806
  }
9807
+ if (message.mezon_id !== "") {
9808
+ writer.uint32(178).string(message.mezon_id);
9809
+ }
9417
9810
  return writer;
9418
9811
  },
9419
9812
  decode(input, length) {
@@ -9549,6 +9942,12 @@ export const User = {
9549
9942
  }
9550
9943
  message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
9551
9944
  continue;
9945
+ case 22:
9946
+ if (tag !== 178) {
9947
+ break;
9948
+ }
9949
+ message.mezon_id = reader.string();
9950
+ continue;
9552
9951
  }
9553
9952
  if ((tag & 7) === 4 || tag === 0) {
9554
9953
  break;
@@ -9580,6 +9979,7 @@ export const User = {
9580
9979
  join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
9581
9980
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
9582
9981
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
9982
+ mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
9583
9983
  };
9584
9984
  },
9585
9985
  toJSON(message) {
@@ -9647,6 +10047,9 @@ export const User = {
9647
10047
  if (message.dob !== undefined) {
9648
10048
  obj.dob = message.dob.toISOString();
9649
10049
  }
10050
+ if (message.mezon_id !== "") {
10051
+ obj.mezon_id = message.mezon_id;
10052
+ }
9650
10053
  return obj;
9651
10054
  },
9652
10055
  create(base) {
@@ -9675,6 +10078,7 @@ export const User = {
9675
10078
  message.join_time = object.join_time ?? undefined;
9676
10079
  message.is_mobile = object.is_mobile ?? false;
9677
10080
  message.dob = object.dob ?? undefined;
10081
+ message.mezon_id = object.mezon_id ?? "";
9678
10082
  return message;
9679
10083
  },
9680
10084
  };
@@ -10152,6 +10556,8 @@ function createBaseClanDesc() {
10152
10556
  status: 0,
10153
10557
  badge_count: 0,
10154
10558
  is_onboarding: false,
10559
+ welcome_channel_id: "",
10560
+ onboarding_banner: "",
10155
10561
  };
10156
10562
  }
10157
10563
  export const ClanDesc = {
@@ -10180,6 +10586,12 @@ export const ClanDesc = {
10180
10586
  if (message.is_onboarding !== false) {
10181
10587
  writer.uint32(64).bool(message.is_onboarding);
10182
10588
  }
10589
+ if (message.welcome_channel_id !== "") {
10590
+ writer.uint32(74).string(message.welcome_channel_id);
10591
+ }
10592
+ if (message.onboarding_banner !== "") {
10593
+ writer.uint32(82).string(message.onboarding_banner);
10594
+ }
10183
10595
  return writer;
10184
10596
  },
10185
10597
  decode(input, length) {
@@ -10237,6 +10649,18 @@ export const ClanDesc = {
10237
10649
  }
10238
10650
  message.is_onboarding = reader.bool();
10239
10651
  continue;
10652
+ case 9:
10653
+ if (tag !== 74) {
10654
+ break;
10655
+ }
10656
+ message.welcome_channel_id = reader.string();
10657
+ continue;
10658
+ case 10:
10659
+ if (tag !== 82) {
10660
+ break;
10661
+ }
10662
+ message.onboarding_banner = reader.string();
10663
+ continue;
10240
10664
  }
10241
10665
  if ((tag & 7) === 4 || tag === 0) {
10242
10666
  break;
@@ -10255,6 +10679,8 @@ export const ClanDesc = {
10255
10679
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
10256
10680
  badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
10257
10681
  is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
10682
+ welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
10683
+ onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
10258
10684
  };
10259
10685
  },
10260
10686
  toJSON(message) {
@@ -10283,6 +10709,12 @@ export const ClanDesc = {
10283
10709
  if (message.is_onboarding !== false) {
10284
10710
  obj.is_onboarding = message.is_onboarding;
10285
10711
  }
10712
+ if (message.welcome_channel_id !== "") {
10713
+ obj.welcome_channel_id = message.welcome_channel_id;
10714
+ }
10715
+ if (message.onboarding_banner !== "") {
10716
+ obj.onboarding_banner = message.onboarding_banner;
10717
+ }
10286
10718
  return obj;
10287
10719
  },
10288
10720
  create(base) {
@@ -10298,6 +10730,8 @@ export const ClanDesc = {
10298
10730
  message.status = object.status ?? 0;
10299
10731
  message.badge_count = object.badge_count ?? 0;
10300
10732
  message.is_onboarding = object.is_onboarding ?? false;
10733
+ message.welcome_channel_id = object.welcome_channel_id ?? "";
10734
+ message.onboarding_banner = object.onboarding_banner ?? "";
10301
10735
  return message;
10302
10736
  },
10303
10737
  };
@@ -10382,7 +10816,16 @@ export const CreateClanDescRequest = {
10382
10816
  },
10383
10817
  };
10384
10818
  function createBaseUpdateClanDescRequest() {
10385
- return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: undefined };
10819
+ return {
10820
+ clan_id: "",
10821
+ clan_name: "",
10822
+ logo: "",
10823
+ banner: "",
10824
+ status: 0,
10825
+ is_onboarding: undefined,
10826
+ welcome_channel_id: "",
10827
+ onboarding_banner: "",
10828
+ };
10386
10829
  }
10387
10830
  export const UpdateClanDescRequest = {
10388
10831
  encode(message, writer = _m0.Writer.create()) {
@@ -10404,6 +10847,12 @@ export const UpdateClanDescRequest = {
10404
10847
  if (message.is_onboarding !== undefined) {
10405
10848
  BoolValue.encode({ value: message.is_onboarding }, writer.uint32(50).fork()).ldelim();
10406
10849
  }
10850
+ if (message.welcome_channel_id !== "") {
10851
+ writer.uint32(58).string(message.welcome_channel_id);
10852
+ }
10853
+ if (message.onboarding_banner !== "") {
10854
+ writer.uint32(66).string(message.onboarding_banner);
10855
+ }
10407
10856
  return writer;
10408
10857
  },
10409
10858
  decode(input, length) {
@@ -10447,7 +10896,19 @@ export const UpdateClanDescRequest = {
10447
10896
  if (tag !== 50) {
10448
10897
  break;
10449
10898
  }
10450
- message.is_onboarding = BoolValue.decode(reader, reader.uint32()).value;
10899
+ message.is_onboarding = BoolValue.decode(reader, reader.uint32()).value;
10900
+ continue;
10901
+ case 7:
10902
+ if (tag !== 58) {
10903
+ break;
10904
+ }
10905
+ message.welcome_channel_id = reader.string();
10906
+ continue;
10907
+ case 8:
10908
+ if (tag !== 66) {
10909
+ break;
10910
+ }
10911
+ message.onboarding_banner = reader.string();
10451
10912
  continue;
10452
10913
  }
10453
10914
  if ((tag & 7) === 4 || tag === 0) {
@@ -10465,6 +10926,8 @@ export const UpdateClanDescRequest = {
10465
10926
  banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
10466
10927
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
10467
10928
  is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
10929
+ welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
10930
+ onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
10468
10931
  };
10469
10932
  },
10470
10933
  toJSON(message) {
@@ -10487,6 +10950,12 @@ export const UpdateClanDescRequest = {
10487
10950
  if (message.is_onboarding !== undefined) {
10488
10951
  obj.is_onboarding = message.is_onboarding;
10489
10952
  }
10953
+ if (message.welcome_channel_id !== "") {
10954
+ obj.welcome_channel_id = message.welcome_channel_id;
10955
+ }
10956
+ if (message.onboarding_banner !== "") {
10957
+ obj.onboarding_banner = message.onboarding_banner;
10958
+ }
10490
10959
  return obj;
10491
10960
  },
10492
10961
  create(base) {
@@ -10500,6 +10969,8 @@ export const UpdateClanDescRequest = {
10500
10969
  message.banner = object.banner ?? "";
10501
10970
  message.status = object.status ?? 0;
10502
10971
  message.is_onboarding = object.is_onboarding ?? undefined;
10972
+ message.welcome_channel_id = object.welcome_channel_id ?? "";
10973
+ message.onboarding_banner = object.onboarding_banner ?? "";
10503
10974
  return message;
10504
10975
  },
10505
10976
  };
@@ -12094,7 +12565,7 @@ export const ChannelMessageHeader = {
12094
12565
  function createBaseChannelDescription() {
12095
12566
  return {
12096
12567
  clan_id: "",
12097
- parrent_id: "",
12568
+ parent_id: "",
12098
12569
  channel_id: "",
12099
12570
  category_id: "",
12100
12571
  category_name: "",
@@ -12131,8 +12602,8 @@ export const ChannelDescription = {
12131
12602
  if (message.clan_id !== "") {
12132
12603
  writer.uint32(10).string(message.clan_id);
12133
12604
  }
12134
- if (message.parrent_id !== "") {
12135
- writer.uint32(18).string(message.parrent_id);
12605
+ if (message.parent_id !== "") {
12606
+ writer.uint32(18).string(message.parent_id);
12136
12607
  }
12137
12608
  if (message.channel_id !== "") {
12138
12609
  writer.uint32(26).string(message.channel_id);
@@ -12242,7 +12713,7 @@ export const ChannelDescription = {
12242
12713
  if (tag !== 18) {
12243
12714
  break;
12244
12715
  }
12245
- message.parrent_id = reader.string();
12716
+ message.parent_id = reader.string();
12246
12717
  continue;
12247
12718
  case 3:
12248
12719
  if (tag !== 26) {
@@ -12436,7 +12907,7 @@ export const ChannelDescription = {
12436
12907
  fromJSON(object) {
12437
12908
  return {
12438
12909
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12439
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
12910
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
12440
12911
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
12441
12912
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
12442
12913
  category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
@@ -12487,8 +12958,8 @@ export const ChannelDescription = {
12487
12958
  if (message.clan_id !== "") {
12488
12959
  obj.clan_id = message.clan_id;
12489
12960
  }
12490
- if (message.parrent_id !== "") {
12491
- obj.parrent_id = message.parrent_id;
12961
+ if (message.parent_id !== "") {
12962
+ obj.parent_id = message.parent_id;
12492
12963
  }
12493
12964
  if (message.channel_id !== "") {
12494
12965
  obj.channel_id = message.channel_id;
@@ -12585,7 +13056,7 @@ export const ChannelDescription = {
12585
13056
  fromPartial(object) {
12586
13057
  const message = createBaseChannelDescription();
12587
13058
  message.clan_id = object.clan_id ?? "";
12588
- message.parrent_id = object.parrent_id ?? "";
13059
+ message.parent_id = object.parent_id ?? "";
12589
13060
  message.channel_id = object.channel_id ?? "";
12590
13061
  message.category_id = object.category_id ?? "";
12591
13062
  message.category_name = object.category_name ?? "";
@@ -13031,7 +13502,7 @@ export const AddRoleChannelDescRequest = {
13031
13502
  function createBaseCreateChannelDescRequest() {
13032
13503
  return {
13033
13504
  clan_id: "",
13034
- parrent_id: "",
13505
+ parent_id: "",
13035
13506
  channel_id: "",
13036
13507
  category_id: "",
13037
13508
  type: undefined,
@@ -13046,8 +13517,8 @@ export const CreateChannelDescRequest = {
13046
13517
  if (message.clan_id !== "") {
13047
13518
  writer.uint32(10).string(message.clan_id);
13048
13519
  }
13049
- if (message.parrent_id !== "") {
13050
- writer.uint32(18).string(message.parrent_id);
13520
+ if (message.parent_id !== "") {
13521
+ writer.uint32(18).string(message.parent_id);
13051
13522
  }
13052
13523
  if (message.channel_id !== "") {
13053
13524
  writer.uint32(26).string(message.channel_id);
@@ -13089,7 +13560,7 @@ export const CreateChannelDescRequest = {
13089
13560
  if (tag !== 18) {
13090
13561
  break;
13091
13562
  }
13092
- message.parrent_id = reader.string();
13563
+ message.parent_id = reader.string();
13093
13564
  continue;
13094
13565
  case 3:
13095
13566
  if (tag !== 26) {
@@ -13144,7 +13615,7 @@ export const CreateChannelDescRequest = {
13144
13615
  fromJSON(object) {
13145
13616
  return {
13146
13617
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
13147
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
13618
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
13148
13619
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
13149
13620
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
13150
13621
  type: isSet(object.type) ? Number(object.type) : undefined,
@@ -13159,8 +13630,8 @@ export const CreateChannelDescRequest = {
13159
13630
  if (message.clan_id !== "") {
13160
13631
  obj.clan_id = message.clan_id;
13161
13632
  }
13162
- if (message.parrent_id !== "") {
13163
- obj.parrent_id = message.parrent_id;
13633
+ if (message.parent_id !== "") {
13634
+ obj.parent_id = message.parent_id;
13164
13635
  }
13165
13636
  if (message.channel_id !== "") {
13166
13637
  obj.channel_id = message.channel_id;
@@ -13191,7 +13662,7 @@ export const CreateChannelDescRequest = {
13191
13662
  fromPartial(object) {
13192
13663
  const message = createBaseCreateChannelDescRequest();
13193
13664
  message.clan_id = object.clan_id ?? "";
13194
- message.parrent_id = object.parrent_id ?? "";
13665
+ message.parent_id = object.parent_id ?? "";
13195
13666
  message.channel_id = object.channel_id ?? "";
13196
13667
  message.category_id = object.category_id ?? "";
13197
13668
  message.type = object.type ?? undefined;
@@ -15641,7 +16112,7 @@ function createBaseHashtagDm() {
15641
16112
  meeting_code: "",
15642
16113
  type: 0,
15643
16114
  channel_private: 0,
15644
- parrent_id: "",
16115
+ parent_id: "",
15645
16116
  };
15646
16117
  }
15647
16118
  export const HashtagDm = {
@@ -15667,8 +16138,8 @@ export const HashtagDm = {
15667
16138
  if (message.channel_private !== 0) {
15668
16139
  writer.uint32(56).int32(message.channel_private);
15669
16140
  }
15670
- if (message.parrent_id !== "") {
15671
- writer.uint32(66).string(message.parrent_id);
16141
+ if (message.parent_id !== "") {
16142
+ writer.uint32(66).string(message.parent_id);
15672
16143
  }
15673
16144
  return writer;
15674
16145
  },
@@ -15725,7 +16196,7 @@ export const HashtagDm = {
15725
16196
  if (tag !== 66) {
15726
16197
  break;
15727
16198
  }
15728
- message.parrent_id = reader.string();
16199
+ message.parent_id = reader.string();
15729
16200
  continue;
15730
16201
  }
15731
16202
  if ((tag & 7) === 4 || tag === 0) {
@@ -15744,7 +16215,7 @@ export const HashtagDm = {
15744
16215
  meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
15745
16216
  type: isSet(object.type) ? globalThis.Number(object.type) : 0,
15746
16217
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
15747
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
16218
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
15748
16219
  };
15749
16220
  },
15750
16221
  toJSON(message) {
@@ -15770,8 +16241,8 @@ export const HashtagDm = {
15770
16241
  if (message.channel_private !== 0) {
15771
16242
  obj.channel_private = Math.round(message.channel_private);
15772
16243
  }
15773
- if (message.parrent_id !== "") {
15774
- obj.parrent_id = message.parrent_id;
16244
+ if (message.parent_id !== "") {
16245
+ obj.parent_id = message.parent_id;
15775
16246
  }
15776
16247
  return obj;
15777
16248
  },
@@ -15787,7 +16258,7 @@ export const HashtagDm = {
15787
16258
  message.meeting_code = object.meeting_code ?? "";
15788
16259
  message.type = object.type ?? 0;
15789
16260
  message.channel_private = object.channel_private ?? 0;
15790
- message.parrent_id = object.parrent_id ?? "";
16261
+ message.parent_id = object.parent_id ?? "";
15791
16262
  return message;
15792
16263
  },
15793
16264
  };
@@ -25171,7 +25642,7 @@ export const MarkAsReadRequest = {
25171
25642
  },
25172
25643
  };
25173
25644
  function createBaseEditChannelCanvasRequest() {
25174
- return { id: undefined, channel_id: "", clan_id: "", title: "", content: "", is_default: false };
25645
+ return { id: undefined, channel_id: "", clan_id: "", title: "", content: "", is_default: false, status: 0 };
25175
25646
  }
25176
25647
  export const EditChannelCanvasRequest = {
25177
25648
  encode(message, writer = _m0.Writer.create()) {
@@ -25193,6 +25664,9 @@ export const EditChannelCanvasRequest = {
25193
25664
  if (message.is_default !== false) {
25194
25665
  writer.uint32(48).bool(message.is_default);
25195
25666
  }
25667
+ if (message.status !== 0) {
25668
+ writer.uint32(56).int32(message.status);
25669
+ }
25196
25670
  return writer;
25197
25671
  },
25198
25672
  decode(input, length) {
@@ -25238,6 +25712,12 @@ export const EditChannelCanvasRequest = {
25238
25712
  }
25239
25713
  message.is_default = reader.bool();
25240
25714
  continue;
25715
+ case 7:
25716
+ if (tag !== 56) {
25717
+ break;
25718
+ }
25719
+ message.status = reader.int32();
25720
+ continue;
25241
25721
  }
25242
25722
  if ((tag & 7) === 4 || tag === 0) {
25243
25723
  break;
@@ -25254,6 +25734,7 @@ export const EditChannelCanvasRequest = {
25254
25734
  title: isSet(object.title) ? globalThis.String(object.title) : "",
25255
25735
  content: isSet(object.content) ? globalThis.String(object.content) : "",
25256
25736
  is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
25737
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
25257
25738
  };
25258
25739
  },
25259
25740
  toJSON(message) {
@@ -25276,6 +25757,9 @@ export const EditChannelCanvasRequest = {
25276
25757
  if (message.is_default !== false) {
25277
25758
  obj.is_default = message.is_default;
25278
25759
  }
25760
+ if (message.status !== 0) {
25761
+ obj.status = Math.round(message.status);
25762
+ }
25279
25763
  return obj;
25280
25764
  },
25281
25765
  create(base) {
@@ -25289,6 +25773,7 @@ export const EditChannelCanvasRequest = {
25289
25773
  message.title = object.title ?? "";
25290
25774
  message.content = object.content ?? "";
25291
25775
  message.is_default = object.is_default ?? false;
25776
+ message.status = object.status ?? 0;
25292
25777
  return message;
25293
25778
  },
25294
25779
  };
@@ -26765,13 +27250,16 @@ export const LoginRequest = {
26765
27250
  },
26766
27251
  };
26767
27252
  function createBaseConfirmLoginRequest() {
26768
- return { login_id: "" };
27253
+ return { login_id: "", is_remember: undefined };
26769
27254
  }
26770
27255
  export const ConfirmLoginRequest = {
26771
27256
  encode(message, writer = _m0.Writer.create()) {
26772
27257
  if (message.login_id !== "") {
26773
27258
  writer.uint32(10).string(message.login_id);
26774
27259
  }
27260
+ if (message.is_remember !== undefined) {
27261
+ BoolValue.encode({ value: message.is_remember }, writer.uint32(18).fork()).ldelim();
27262
+ }
26775
27263
  return writer;
26776
27264
  },
26777
27265
  decode(input, length) {
@@ -26787,6 +27275,12 @@ export const ConfirmLoginRequest = {
26787
27275
  }
26788
27276
  message.login_id = reader.string();
26789
27277
  continue;
27278
+ case 2:
27279
+ if (tag !== 18) {
27280
+ break;
27281
+ }
27282
+ message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
27283
+ continue;
26790
27284
  }
26791
27285
  if ((tag & 7) === 4 || tag === 0) {
26792
27286
  break;
@@ -26796,13 +27290,19 @@ export const ConfirmLoginRequest = {
26796
27290
  return message;
26797
27291
  },
26798
27292
  fromJSON(object) {
26799
- return { login_id: isSet(object.login_id) ? globalThis.String(object.login_id) : "" };
27293
+ return {
27294
+ login_id: isSet(object.login_id) ? globalThis.String(object.login_id) : "",
27295
+ is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
27296
+ };
26800
27297
  },
26801
27298
  toJSON(message) {
26802
27299
  const obj = {};
26803
27300
  if (message.login_id !== "") {
26804
27301
  obj.login_id = message.login_id;
26805
27302
  }
27303
+ if (message.is_remember !== undefined) {
27304
+ obj.is_remember = message.is_remember;
27305
+ }
26806
27306
  return obj;
26807
27307
  },
26808
27308
  create(base) {
@@ -26811,6 +27311,7 @@ export const ConfirmLoginRequest = {
26811
27311
  fromPartial(object) {
26812
27312
  const message = createBaseConfirmLoginRequest();
26813
27313
  message.login_id = object.login_id ?? "";
27314
+ message.is_remember = object.is_remember ?? undefined;
26814
27315
  return message;
26815
27316
  },
26816
27317
  };
@@ -32118,6 +32619,252 @@ export const MezonOauthClientList = {
32118
32619
  return message;
32119
32620
  },
32120
32621
  };
32622
+ function createBaseGetMezonOauthClientRequest() {
32623
+ return { client_id: "", client_name: "" };
32624
+ }
32625
+ export const GetMezonOauthClientRequest = {
32626
+ encode(message, writer = _m0.Writer.create()) {
32627
+ if (message.client_id !== "") {
32628
+ writer.uint32(10).string(message.client_id);
32629
+ }
32630
+ if (message.client_name !== "") {
32631
+ writer.uint32(18).string(message.client_name);
32632
+ }
32633
+ return writer;
32634
+ },
32635
+ decode(input, length) {
32636
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32637
+ let end = length === undefined ? reader.len : reader.pos + length;
32638
+ const message = createBaseGetMezonOauthClientRequest();
32639
+ while (reader.pos < end) {
32640
+ const tag = reader.uint32();
32641
+ switch (tag >>> 3) {
32642
+ case 1:
32643
+ if (tag !== 10) {
32644
+ break;
32645
+ }
32646
+ message.client_id = reader.string();
32647
+ continue;
32648
+ case 2:
32649
+ if (tag !== 18) {
32650
+ break;
32651
+ }
32652
+ message.client_name = reader.string();
32653
+ continue;
32654
+ }
32655
+ if ((tag & 7) === 4 || tag === 0) {
32656
+ break;
32657
+ }
32658
+ reader.skipType(tag & 7);
32659
+ }
32660
+ return message;
32661
+ },
32662
+ fromJSON(object) {
32663
+ return {
32664
+ client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
32665
+ client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
32666
+ };
32667
+ },
32668
+ toJSON(message) {
32669
+ const obj = {};
32670
+ if (message.client_id !== "") {
32671
+ obj.client_id = message.client_id;
32672
+ }
32673
+ if (message.client_name !== "") {
32674
+ obj.client_name = message.client_name;
32675
+ }
32676
+ return obj;
32677
+ },
32678
+ create(base) {
32679
+ return GetMezonOauthClientRequest.fromPartial(base ?? {});
32680
+ },
32681
+ fromPartial(object) {
32682
+ const message = createBaseGetMezonOauthClientRequest();
32683
+ message.client_id = object.client_id ?? "";
32684
+ message.client_name = object.client_name ?? "";
32685
+ return message;
32686
+ },
32687
+ };
32688
+ function createBaseSearchThreadRequest() {
32689
+ return { clan_id: "", channel_id: "", label: "" };
32690
+ }
32691
+ export const SearchThreadRequest = {
32692
+ encode(message, writer = _m0.Writer.create()) {
32693
+ if (message.clan_id !== "") {
32694
+ writer.uint32(10).string(message.clan_id);
32695
+ }
32696
+ if (message.channel_id !== "") {
32697
+ writer.uint32(18).string(message.channel_id);
32698
+ }
32699
+ if (message.label !== "") {
32700
+ writer.uint32(26).string(message.label);
32701
+ }
32702
+ return writer;
32703
+ },
32704
+ decode(input, length) {
32705
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32706
+ let end = length === undefined ? reader.len : reader.pos + length;
32707
+ const message = createBaseSearchThreadRequest();
32708
+ while (reader.pos < end) {
32709
+ const tag = reader.uint32();
32710
+ switch (tag >>> 3) {
32711
+ case 1:
32712
+ if (tag !== 10) {
32713
+ break;
32714
+ }
32715
+ message.clan_id = reader.string();
32716
+ continue;
32717
+ case 2:
32718
+ if (tag !== 18) {
32719
+ break;
32720
+ }
32721
+ message.channel_id = reader.string();
32722
+ continue;
32723
+ case 3:
32724
+ if (tag !== 26) {
32725
+ break;
32726
+ }
32727
+ message.label = reader.string();
32728
+ continue;
32729
+ }
32730
+ if ((tag & 7) === 4 || tag === 0) {
32731
+ break;
32732
+ }
32733
+ reader.skipType(tag & 7);
32734
+ }
32735
+ return message;
32736
+ },
32737
+ fromJSON(object) {
32738
+ return {
32739
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
32740
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
32741
+ label: isSet(object.label) ? globalThis.String(object.label) : "",
32742
+ };
32743
+ },
32744
+ toJSON(message) {
32745
+ const obj = {};
32746
+ if (message.clan_id !== "") {
32747
+ obj.clan_id = message.clan_id;
32748
+ }
32749
+ if (message.channel_id !== "") {
32750
+ obj.channel_id = message.channel_id;
32751
+ }
32752
+ if (message.label !== "") {
32753
+ obj.label = message.label;
32754
+ }
32755
+ return obj;
32756
+ },
32757
+ create(base) {
32758
+ return SearchThreadRequest.fromPartial(base ?? {});
32759
+ },
32760
+ fromPartial(object) {
32761
+ const message = createBaseSearchThreadRequest();
32762
+ message.clan_id = object.clan_id ?? "";
32763
+ message.channel_id = object.channel_id ?? "";
32764
+ message.label = object.label ?? "";
32765
+ return message;
32766
+ },
32767
+ };
32768
+ function createBaseGenerateHashChannelAppsRequest() {
32769
+ return { app_id: "" };
32770
+ }
32771
+ export const GenerateHashChannelAppsRequest = {
32772
+ encode(message, writer = _m0.Writer.create()) {
32773
+ if (message.app_id !== "") {
32774
+ writer.uint32(10).string(message.app_id);
32775
+ }
32776
+ return writer;
32777
+ },
32778
+ decode(input, length) {
32779
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32780
+ let end = length === undefined ? reader.len : reader.pos + length;
32781
+ const message = createBaseGenerateHashChannelAppsRequest();
32782
+ while (reader.pos < end) {
32783
+ const tag = reader.uint32();
32784
+ switch (tag >>> 3) {
32785
+ case 1:
32786
+ if (tag !== 10) {
32787
+ break;
32788
+ }
32789
+ message.app_id = reader.string();
32790
+ continue;
32791
+ }
32792
+ if ((tag & 7) === 4 || tag === 0) {
32793
+ break;
32794
+ }
32795
+ reader.skipType(tag & 7);
32796
+ }
32797
+ return message;
32798
+ },
32799
+ fromJSON(object) {
32800
+ return { app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "" };
32801
+ },
32802
+ toJSON(message) {
32803
+ const obj = {};
32804
+ if (message.app_id !== "") {
32805
+ obj.app_id = message.app_id;
32806
+ }
32807
+ return obj;
32808
+ },
32809
+ create(base) {
32810
+ return GenerateHashChannelAppsRequest.fromPartial(base ?? {});
32811
+ },
32812
+ fromPartial(object) {
32813
+ const message = createBaseGenerateHashChannelAppsRequest();
32814
+ message.app_id = object.app_id ?? "";
32815
+ return message;
32816
+ },
32817
+ };
32818
+ function createBaseGenerateHashChannelAppsResponse() {
32819
+ return { web_app_data: "" };
32820
+ }
32821
+ export const GenerateHashChannelAppsResponse = {
32822
+ encode(message, writer = _m0.Writer.create()) {
32823
+ if (message.web_app_data !== "") {
32824
+ writer.uint32(10).string(message.web_app_data);
32825
+ }
32826
+ return writer;
32827
+ },
32828
+ decode(input, length) {
32829
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32830
+ let end = length === undefined ? reader.len : reader.pos + length;
32831
+ const message = createBaseGenerateHashChannelAppsResponse();
32832
+ while (reader.pos < end) {
32833
+ const tag = reader.uint32();
32834
+ switch (tag >>> 3) {
32835
+ case 1:
32836
+ if (tag !== 10) {
32837
+ break;
32838
+ }
32839
+ message.web_app_data = reader.string();
32840
+ continue;
32841
+ }
32842
+ if ((tag & 7) === 4 || tag === 0) {
32843
+ break;
32844
+ }
32845
+ reader.skipType(tag & 7);
32846
+ }
32847
+ return message;
32848
+ },
32849
+ fromJSON(object) {
32850
+ return { web_app_data: isSet(object.web_app_data) ? globalThis.String(object.web_app_data) : "" };
32851
+ },
32852
+ toJSON(message) {
32853
+ const obj = {};
32854
+ if (message.web_app_data !== "") {
32855
+ obj.web_app_data = message.web_app_data;
32856
+ }
32857
+ return obj;
32858
+ },
32859
+ create(base) {
32860
+ return GenerateHashChannelAppsResponse.fromPartial(base ?? {});
32861
+ },
32862
+ fromPartial(object) {
32863
+ const message = createBaseGenerateHashChannelAppsResponse();
32864
+ message.web_app_data = object.web_app_data ?? "";
32865
+ return message;
32866
+ },
32867
+ };
32121
32868
  function bytesFromBase64(b64) {
32122
32869
  if (globalThis.Buffer) {
32123
32870
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));