mezon-js-protobuf 1.5.70 → 1.5.71

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.
@@ -990,6 +990,8 @@ export interface NotificationChannelCategorySetting {
990
990
  notification_setting_type: number;
991
991
  /** */
992
992
  channel_category_title: string;
993
+ /** */
994
+ action: number;
993
995
  }
994
996
  export interface NotificationChannelCategorySettingEvent {
995
997
  clan_id: string;
@@ -1566,6 +1568,7 @@ export declare const Envelope: {
1566
1568
  channel_category_label?: string | undefined;
1567
1569
  notification_setting_type?: number | undefined;
1568
1570
  channel_category_title?: string | undefined;
1571
+ action?: number | undefined;
1569
1572
  }[] | undefined;
1570
1573
  } | undefined;
1571
1574
  add_clan_user_event?: {
@@ -3420,6 +3423,7 @@ export declare const Envelope: {
3420
3423
  channel_category_label?: string | undefined;
3421
3424
  notification_setting_type?: number | undefined;
3422
3425
  channel_category_title?: string | undefined;
3426
+ action?: number | undefined;
3423
3427
  }[] | undefined;
3424
3428
  } & {
3425
3429
  clan_id?: string | undefined;
@@ -3428,21 +3432,25 @@ export declare const Envelope: {
3428
3432
  channel_category_label?: string | undefined;
3429
3433
  notification_setting_type?: number | undefined;
3430
3434
  channel_category_title?: string | undefined;
3435
+ action?: number | undefined;
3431
3436
  }[] & ({
3432
3437
  id?: string | undefined;
3433
3438
  channel_category_label?: string | undefined;
3434
3439
  notification_setting_type?: number | undefined;
3435
3440
  channel_category_title?: string | undefined;
3441
+ action?: number | undefined;
3436
3442
  } & {
3437
3443
  id?: string | undefined;
3438
3444
  channel_category_label?: string | undefined;
3439
3445
  notification_setting_type?: number | undefined;
3440
3446
  channel_category_title?: string | undefined;
3447
+ action?: number | undefined;
3441
3448
  } & { [K_108 in Exclude<keyof I["notification_channel_category_setting_event"]["notification_channel_category_settings_list"][number], keyof NotificationChannelCategorySetting>]: never; })[] & { [K_109 in Exclude<keyof I["notification_channel_category_setting_event"]["notification_channel_category_settings_list"], keyof {
3442
3449
  id?: string | undefined;
3443
3450
  channel_category_label?: string | undefined;
3444
3451
  notification_setting_type?: number | undefined;
3445
3452
  channel_category_title?: string | undefined;
3453
+ action?: number | undefined;
3446
3454
  }[]>]: never; }) | undefined;
3447
3455
  } & { [K_110 in Exclude<keyof I["notification_channel_category_setting_event"], keyof NotificationChannelCategorySettingEvent>]: never; }) | undefined;
3448
3456
  add_clan_user_event?: ({
@@ -4916,6 +4924,7 @@ export declare const Envelope: {
4916
4924
  channel_category_label?: string | undefined;
4917
4925
  notification_setting_type?: number | undefined;
4918
4926
  channel_category_title?: string | undefined;
4927
+ action?: number | undefined;
4919
4928
  }[] | undefined;
4920
4929
  } | undefined;
4921
4930
  add_clan_user_event?: {
@@ -6770,6 +6779,7 @@ export declare const Envelope: {
6770
6779
  channel_category_label?: string | undefined;
6771
6780
  notification_setting_type?: number | undefined;
6772
6781
  channel_category_title?: string | undefined;
6782
+ action?: number | undefined;
6773
6783
  }[] | undefined;
6774
6784
  } & {
6775
6785
  clan_id?: string | undefined;
@@ -6778,21 +6788,25 @@ export declare const Envelope: {
6778
6788
  channel_category_label?: string | undefined;
6779
6789
  notification_setting_type?: number | undefined;
6780
6790
  channel_category_title?: string | undefined;
6791
+ action?: number | undefined;
6781
6792
  }[] & ({
6782
6793
  id?: string | undefined;
6783
6794
  channel_category_label?: string | undefined;
6784
6795
  notification_setting_type?: number | undefined;
6785
6796
  channel_category_title?: string | undefined;
6797
+ action?: number | undefined;
6786
6798
  } & {
6787
6799
  id?: string | undefined;
6788
6800
  channel_category_label?: string | undefined;
6789
6801
  notification_setting_type?: number | undefined;
6790
6802
  channel_category_title?: string | undefined;
6803
+ action?: number | undefined;
6791
6804
  } & { [K_267 in Exclude<keyof I_1["notification_channel_category_setting_event"]["notification_channel_category_settings_list"][number], keyof NotificationChannelCategorySetting>]: never; })[] & { [K_268 in Exclude<keyof I_1["notification_channel_category_setting_event"]["notification_channel_category_settings_list"], keyof {
6792
6805
  id?: string | undefined;
6793
6806
  channel_category_label?: string | undefined;
6794
6807
  notification_setting_type?: number | undefined;
6795
6808
  channel_category_title?: string | undefined;
6809
+ action?: number | undefined;
6796
6810
  }[]>]: never; }) | undefined;
6797
6811
  } & { [K_269 in Exclude<keyof I_1["notification_channel_category_setting_event"], keyof NotificationChannelCategorySettingEvent>]: never; }) | undefined;
6798
6812
  add_clan_user_event?: ({
@@ -13333,22 +13347,26 @@ export declare const NotificationChannelCategorySetting: {
13333
13347
  channel_category_label?: string | undefined;
13334
13348
  notification_setting_type?: number | undefined;
13335
13349
  channel_category_title?: string | undefined;
13350
+ action?: number | undefined;
13336
13351
  } & {
13337
13352
  id?: string | undefined;
13338
13353
  channel_category_label?: string | undefined;
13339
13354
  notification_setting_type?: number | undefined;
13340
13355
  channel_category_title?: string | undefined;
13356
+ action?: number | undefined;
13341
13357
  } & { [K in Exclude<keyof I, keyof NotificationChannelCategorySetting>]: never; }>(base?: I | undefined): NotificationChannelCategorySetting;
13342
13358
  fromPartial<I_1 extends {
13343
13359
  id?: string | undefined;
13344
13360
  channel_category_label?: string | undefined;
13345
13361
  notification_setting_type?: number | undefined;
13346
13362
  channel_category_title?: string | undefined;
13363
+ action?: number | undefined;
13347
13364
  } & {
13348
13365
  id?: string | undefined;
13349
13366
  channel_category_label?: string | undefined;
13350
13367
  notification_setting_type?: number | undefined;
13351
13368
  channel_category_title?: string | undefined;
13369
+ action?: number | undefined;
13352
13370
  } & { [K_1 in Exclude<keyof I_1, keyof NotificationChannelCategorySetting>]: never; }>(object: I_1): NotificationChannelCategorySetting;
13353
13371
  };
13354
13372
  export declare const NotificationChannelCategorySettingEvent: {
@@ -13363,6 +13381,7 @@ export declare const NotificationChannelCategorySettingEvent: {
13363
13381
  channel_category_label?: string | undefined;
13364
13382
  notification_setting_type?: number | undefined;
13365
13383
  channel_category_title?: string | undefined;
13384
+ action?: number | undefined;
13366
13385
  }[] | undefined;
13367
13386
  } & {
13368
13387
  clan_id?: string | undefined;
@@ -13371,21 +13390,25 @@ export declare const NotificationChannelCategorySettingEvent: {
13371
13390
  channel_category_label?: string | undefined;
13372
13391
  notification_setting_type?: number | undefined;
13373
13392
  channel_category_title?: string | undefined;
13393
+ action?: number | undefined;
13374
13394
  }[] & ({
13375
13395
  id?: string | undefined;
13376
13396
  channel_category_label?: string | undefined;
13377
13397
  notification_setting_type?: number | undefined;
13378
13398
  channel_category_title?: string | undefined;
13399
+ action?: number | undefined;
13379
13400
  } & {
13380
13401
  id?: string | undefined;
13381
13402
  channel_category_label?: string | undefined;
13382
13403
  notification_setting_type?: number | undefined;
13383
13404
  channel_category_title?: string | undefined;
13405
+ action?: number | undefined;
13384
13406
  } & { [K in Exclude<keyof I["notification_channel_category_settings_list"][number], keyof NotificationChannelCategorySetting>]: never; })[] & { [K_1 in Exclude<keyof I["notification_channel_category_settings_list"], keyof {
13385
13407
  id?: string | undefined;
13386
13408
  channel_category_label?: string | undefined;
13387
13409
  notification_setting_type?: number | undefined;
13388
13410
  channel_category_title?: string | undefined;
13411
+ action?: number | undefined;
13389
13412
  }[]>]: never; }) | undefined;
13390
13413
  } & { [K_2 in Exclude<keyof I, keyof NotificationChannelCategorySettingEvent>]: never; }>(base?: I | undefined): NotificationChannelCategorySettingEvent;
13391
13414
  fromPartial<I_1 extends {
@@ -13395,6 +13418,7 @@ export declare const NotificationChannelCategorySettingEvent: {
13395
13418
  channel_category_label?: string | undefined;
13396
13419
  notification_setting_type?: number | undefined;
13397
13420
  channel_category_title?: string | undefined;
13421
+ action?: number | undefined;
13398
13422
  }[] | undefined;
13399
13423
  } & {
13400
13424
  clan_id?: string | undefined;
@@ -13403,21 +13427,25 @@ export declare const NotificationChannelCategorySettingEvent: {
13403
13427
  channel_category_label?: string | undefined;
13404
13428
  notification_setting_type?: number | undefined;
13405
13429
  channel_category_title?: string | undefined;
13430
+ action?: number | undefined;
13406
13431
  }[] & ({
13407
13432
  id?: string | undefined;
13408
13433
  channel_category_label?: string | undefined;
13409
13434
  notification_setting_type?: number | undefined;
13410
13435
  channel_category_title?: string | undefined;
13436
+ action?: number | undefined;
13411
13437
  } & {
13412
13438
  id?: string | undefined;
13413
13439
  channel_category_label?: string | undefined;
13414
13440
  notification_setting_type?: number | undefined;
13415
13441
  channel_category_title?: string | undefined;
13442
+ action?: number | undefined;
13416
13443
  } & { [K_3 in Exclude<keyof I_1["notification_channel_category_settings_list"][number], keyof NotificationChannelCategorySetting>]: never; })[] & { [K_4 in Exclude<keyof I_1["notification_channel_category_settings_list"], keyof {
13417
13444
  id?: string | undefined;
13418
13445
  channel_category_label?: string | undefined;
13419
13446
  notification_setting_type?: number | undefined;
13420
13447
  channel_category_title?: string | undefined;
13448
+ action?: number | undefined;
13421
13449
  }[]>]: never; }) | undefined;
13422
13450
  } & { [K_5 in Exclude<keyof I_1, keyof NotificationChannelCategorySettingEvent>]: never; }>(object: I_1): NotificationChannelCategorySettingEvent;
13423
13451
  };
@@ -14307,7 +14307,7 @@ var NotifiReactMessage = {
14307
14307
  }
14308
14308
  };
14309
14309
  function createBaseNotificationChannelCategorySetting() {
14310
- return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "" };
14310
+ return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "", action: 0 };
14311
14311
  }
14312
14312
  var NotificationChannelCategorySetting = {
14313
14313
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -14323,6 +14323,9 @@ var NotificationChannelCategorySetting = {
14323
14323
  if (message.channel_category_title !== "") {
14324
14324
  writer.uint32(34).string(message.channel_category_title);
14325
14325
  }
14326
+ if (message.action !== 0) {
14327
+ writer.uint32(40).int32(message.action);
14328
+ }
14326
14329
  return writer;
14327
14330
  },
14328
14331
  decode(input, length) {
@@ -14356,6 +14359,12 @@ var NotificationChannelCategorySetting = {
14356
14359
  }
14357
14360
  message.channel_category_title = reader.string();
14358
14361
  continue;
14362
+ case 5:
14363
+ if (tag !== 40) {
14364
+ break;
14365
+ }
14366
+ message.action = reader.int32();
14367
+ continue;
14359
14368
  }
14360
14369
  if ((tag & 7) === 4 || tag === 0) {
14361
14370
  break;
@@ -14369,7 +14378,8 @@ var NotificationChannelCategorySetting = {
14369
14378
  id: isSet4(object.id) ? globalThis.String(object.id) : "",
14370
14379
  channel_category_label: isSet4(object.channel_category_label) ? globalThis.String(object.channel_category_label) : "",
14371
14380
  notification_setting_type: isSet4(object.notification_setting_type) ? globalThis.Number(object.notification_setting_type) : 0,
14372
- channel_category_title: isSet4(object.channel_category_title) ? globalThis.String(object.channel_category_title) : ""
14381
+ channel_category_title: isSet4(object.channel_category_title) ? globalThis.String(object.channel_category_title) : "",
14382
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
14373
14383
  };
14374
14384
  },
14375
14385
  toJSON(message) {
@@ -14386,18 +14396,22 @@ var NotificationChannelCategorySetting = {
14386
14396
  if (message.channel_category_title !== "") {
14387
14397
  obj.channel_category_title = message.channel_category_title;
14388
14398
  }
14399
+ if (message.action !== 0) {
14400
+ obj.action = Math.round(message.action);
14401
+ }
14389
14402
  return obj;
14390
14403
  },
14391
14404
  create(base) {
14392
14405
  return NotificationChannelCategorySetting.fromPartial(base != null ? base : {});
14393
14406
  },
14394
14407
  fromPartial(object) {
14395
- var _a, _b, _c, _d;
14408
+ var _a, _b, _c, _d, _e;
14396
14409
  const message = createBaseNotificationChannelCategorySetting();
14397
14410
  message.id = (_a = object.id) != null ? _a : "";
14398
14411
  message.channel_category_label = (_b = object.channel_category_label) != null ? _b : "";
14399
14412
  message.notification_setting_type = (_c = object.notification_setting_type) != null ? _c : 0;
14400
14413
  message.channel_category_title = (_d = object.channel_category_title) != null ? _d : "";
14414
+ message.action = (_e = object.action) != null ? _e : 0;
14401
14415
  return message;
14402
14416
  }
14403
14417
  };
@@ -14294,7 +14294,7 @@ var NotifiReactMessage = {
14294
14294
  }
14295
14295
  };
14296
14296
  function createBaseNotificationChannelCategorySetting() {
14297
- return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "" };
14297
+ return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "", action: 0 };
14298
14298
  }
14299
14299
  var NotificationChannelCategorySetting = {
14300
14300
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -14310,6 +14310,9 @@ var NotificationChannelCategorySetting = {
14310
14310
  if (message.channel_category_title !== "") {
14311
14311
  writer.uint32(34).string(message.channel_category_title);
14312
14312
  }
14313
+ if (message.action !== 0) {
14314
+ writer.uint32(40).int32(message.action);
14315
+ }
14313
14316
  return writer;
14314
14317
  },
14315
14318
  decode(input, length) {
@@ -14343,6 +14346,12 @@ var NotificationChannelCategorySetting = {
14343
14346
  }
14344
14347
  message.channel_category_title = reader.string();
14345
14348
  continue;
14349
+ case 5:
14350
+ if (tag !== 40) {
14351
+ break;
14352
+ }
14353
+ message.action = reader.int32();
14354
+ continue;
14346
14355
  }
14347
14356
  if ((tag & 7) === 4 || tag === 0) {
14348
14357
  break;
@@ -14356,7 +14365,8 @@ var NotificationChannelCategorySetting = {
14356
14365
  id: isSet4(object.id) ? globalThis.String(object.id) : "",
14357
14366
  channel_category_label: isSet4(object.channel_category_label) ? globalThis.String(object.channel_category_label) : "",
14358
14367
  notification_setting_type: isSet4(object.notification_setting_type) ? globalThis.Number(object.notification_setting_type) : 0,
14359
- channel_category_title: isSet4(object.channel_category_title) ? globalThis.String(object.channel_category_title) : ""
14368
+ channel_category_title: isSet4(object.channel_category_title) ? globalThis.String(object.channel_category_title) : "",
14369
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
14360
14370
  };
14361
14371
  },
14362
14372
  toJSON(message) {
@@ -14373,18 +14383,22 @@ var NotificationChannelCategorySetting = {
14373
14383
  if (message.channel_category_title !== "") {
14374
14384
  obj.channel_category_title = message.channel_category_title;
14375
14385
  }
14386
+ if (message.action !== 0) {
14387
+ obj.action = Math.round(message.action);
14388
+ }
14376
14389
  return obj;
14377
14390
  },
14378
14391
  create(base) {
14379
14392
  return NotificationChannelCategorySetting.fromPartial(base != null ? base : {});
14380
14393
  },
14381
14394
  fromPartial(object) {
14382
- var _a, _b, _c, _d;
14395
+ var _a, _b, _c, _d, _e;
14383
14396
  const message = createBaseNotificationChannelCategorySetting();
14384
14397
  message.id = (_a = object.id) != null ? _a : "";
14385
14398
  message.channel_category_label = (_b = object.channel_category_label) != null ? _b : "";
14386
14399
  message.notification_setting_type = (_c = object.notification_setting_type) != null ? _c : 0;
14387
14400
  message.channel_category_title = (_d = object.channel_category_title) != null ? _d : "";
14401
+ message.action = (_e = object.action) != null ? _e : 0;
14388
14402
  return message;
14389
14403
  }
14390
14404
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.70",
3
+ "version": "1.5.71",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -1309,6 +1309,8 @@ export interface NotificationChannelCategorySetting {
1309
1309
  notification_setting_type: number;
1310
1310
  /** */
1311
1311
  channel_category_title: string;
1312
+ /** */
1313
+ action: number;
1312
1314
  }
1313
1315
 
1314
1316
  export interface NotificationChannelCategorySettingEvent {
@@ -11111,7 +11113,7 @@ export const NotifiReactMessage = {
11111
11113
  };
11112
11114
 
11113
11115
  function createBaseNotificationChannelCategorySetting(): NotificationChannelCategorySetting {
11114
- return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "" };
11116
+ return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "", action: 0 };
11115
11117
  }
11116
11118
 
11117
11119
  export const NotificationChannelCategorySetting = {
@@ -11128,6 +11130,9 @@ export const NotificationChannelCategorySetting = {
11128
11130
  if (message.channel_category_title !== "") {
11129
11131
  writer.uint32(34).string(message.channel_category_title);
11130
11132
  }
11133
+ if (message.action !== 0) {
11134
+ writer.uint32(40).int32(message.action);
11135
+ }
11131
11136
  return writer;
11132
11137
  },
11133
11138
 
@@ -11166,6 +11171,13 @@ export const NotificationChannelCategorySetting = {
11166
11171
 
11167
11172
  message.channel_category_title = reader.string();
11168
11173
  continue;
11174
+ case 5:
11175
+ if (tag !== 40) {
11176
+ break;
11177
+ }
11178
+
11179
+ message.action = reader.int32();
11180
+ continue;
11169
11181
  }
11170
11182
  if ((tag & 7) === 4 || tag === 0) {
11171
11183
  break;
@@ -11187,6 +11199,7 @@ export const NotificationChannelCategorySetting = {
11187
11199
  channel_category_title: isSet(object.channel_category_title)
11188
11200
  ? globalThis.String(object.channel_category_title)
11189
11201
  : "",
11202
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
11190
11203
  };
11191
11204
  },
11192
11205
 
@@ -11204,6 +11217,9 @@ export const NotificationChannelCategorySetting = {
11204
11217
  if (message.channel_category_title !== "") {
11205
11218
  obj.channel_category_title = message.channel_category_title;
11206
11219
  }
11220
+ if (message.action !== 0) {
11221
+ obj.action = Math.round(message.action);
11222
+ }
11207
11223
  return obj;
11208
11224
  },
11209
11225
 
@@ -11220,6 +11236,7 @@ export const NotificationChannelCategorySetting = {
11220
11236
  message.channel_category_label = object.channel_category_label ?? "";
11221
11237
  message.notification_setting_type = object.notification_setting_type ?? 0;
11222
11238
  message.channel_category_title = object.channel_category_title ?? "";
11239
+ message.action = object.action ?? 0;
11223
11240
  return message;
11224
11241
  },
11225
11242
  };