mezon-js-protobuf 1.7.20 → 1.7.21

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/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.20.3
4
+ // protoc v5.28.3
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -772,6 +772,8 @@ export interface DeleteGroupRequest {
772
772
  export interface DeleteNotificationsRequest {
773
773
  /** The id of notifications. */
774
774
  ids: string[];
775
+ /** The category of notifications. */
776
+ category: number;
775
777
  }
776
778
 
777
779
  /** Represents an event to be passed through the server to registered event handlers. */
@@ -1283,10 +1285,8 @@ export interface ListNotificationsRequest {
1283
1285
  clan_id: string;
1284
1286
  /** The current notification Id. */
1285
1287
  notification_id: string;
1286
- /** The code. */
1287
- code:
1288
- | number
1289
- | undefined;
1288
+ /** The category (0: for you, 1: mentions, 2: mesages). */
1289
+ category: number;
1290
1290
  /** True if listing should be older notifications to newer, false if reverse. */
1291
1291
  direction: number | undefined;
1292
1292
  }
@@ -1339,6 +1339,8 @@ export interface Notification {
1339
1339
  | undefined;
1340
1340
  /** */
1341
1341
  topic_id: string;
1342
+ /** category. */
1343
+ category: number;
1342
1344
  }
1343
1345
 
1344
1346
  /** A collection of zero or more notifications. */
@@ -9402,7 +9404,7 @@ export const DeleteGroupRequest = {
9402
9404
  };
9403
9405
 
9404
9406
  function createBaseDeleteNotificationsRequest(): DeleteNotificationsRequest {
9405
- return { ids: [] };
9407
+ return { ids: [], category: 0 };
9406
9408
  }
9407
9409
 
9408
9410
  export const DeleteNotificationsRequest = {
@@ -9410,6 +9412,9 @@ export const DeleteNotificationsRequest = {
9410
9412
  for (const v of message.ids) {
9411
9413
  writer.uint32(10).string(v!);
9412
9414
  }
9415
+ if (message.category !== 0) {
9416
+ writer.uint32(16).int32(message.category);
9417
+ }
9413
9418
  return writer;
9414
9419
  },
9415
9420
 
@@ -9427,6 +9432,13 @@ export const DeleteNotificationsRequest = {
9427
9432
 
9428
9433
  message.ids.push(reader.string());
9429
9434
  continue;
9435
+ case 2:
9436
+ if (tag !== 16) {
9437
+ break;
9438
+ }
9439
+
9440
+ message.category = reader.int32();
9441
+ continue;
9430
9442
  }
9431
9443
  if ((tag & 7) === 4 || tag === 0) {
9432
9444
  break;
@@ -9437,7 +9449,10 @@ export const DeleteNotificationsRequest = {
9437
9449
  },
9438
9450
 
9439
9451
  fromJSON(object: any): DeleteNotificationsRequest {
9440
- return { ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [] };
9452
+ return {
9453
+ ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
9454
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
9455
+ };
9441
9456
  },
9442
9457
 
9443
9458
  toJSON(message: DeleteNotificationsRequest): unknown {
@@ -9445,6 +9460,9 @@ export const DeleteNotificationsRequest = {
9445
9460
  if (message.ids?.length) {
9446
9461
  obj.ids = message.ids;
9447
9462
  }
9463
+ if (message.category !== 0) {
9464
+ obj.category = Math.round(message.category);
9465
+ }
9448
9466
  return obj;
9449
9467
  },
9450
9468
 
@@ -9454,6 +9472,7 @@ export const DeleteNotificationsRequest = {
9454
9472
  fromPartial<I extends Exact<DeepPartial<DeleteNotificationsRequest>, I>>(object: I): DeleteNotificationsRequest {
9455
9473
  const message = createBaseDeleteNotificationsRequest();
9456
9474
  message.ids = object.ids?.map((e) => e) || [];
9475
+ message.category = object.category ?? 0;
9457
9476
  return message;
9458
9477
  },
9459
9478
  };
@@ -12638,7 +12657,7 @@ export const ListClanUsersRequest = {
12638
12657
  };
12639
12658
 
12640
12659
  function createBaseListNotificationsRequest(): ListNotificationsRequest {
12641
- return { limit: undefined, clan_id: "", notification_id: "", code: undefined, direction: undefined };
12660
+ return { limit: undefined, clan_id: "", notification_id: "", category: 0, direction: undefined };
12642
12661
  }
12643
12662
 
12644
12663
  export const ListNotificationsRequest = {
@@ -12652,8 +12671,8 @@ export const ListNotificationsRequest = {
12652
12671
  if (message.notification_id !== "") {
12653
12672
  writer.uint32(26).string(message.notification_id);
12654
12673
  }
12655
- if (message.code !== undefined) {
12656
- Int32Value.encode({ value: message.code! }, writer.uint32(34).fork()).ldelim();
12674
+ if (message.category !== 0) {
12675
+ writer.uint32(32).int32(message.category);
12657
12676
  }
12658
12677
  if (message.direction !== undefined) {
12659
12678
  Int32Value.encode({ value: message.direction! }, writer.uint32(42).fork()).ldelim();
@@ -12690,11 +12709,11 @@ export const ListNotificationsRequest = {
12690
12709
  message.notification_id = reader.string();
12691
12710
  continue;
12692
12711
  case 4:
12693
- if (tag !== 34) {
12712
+ if (tag !== 32) {
12694
12713
  break;
12695
12714
  }
12696
12715
 
12697
- message.code = Int32Value.decode(reader, reader.uint32()).value;
12716
+ message.category = reader.int32();
12698
12717
  continue;
12699
12718
  case 5:
12700
12719
  if (tag !== 42) {
@@ -12717,7 +12736,7 @@ export const ListNotificationsRequest = {
12717
12736
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
12718
12737
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12719
12738
  notification_id: isSet(object.notification_id) ? globalThis.String(object.notification_id) : "",
12720
- code: isSet(object.code) ? Number(object.code) : undefined,
12739
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
12721
12740
  direction: isSet(object.direction) ? Number(object.direction) : undefined,
12722
12741
  };
12723
12742
  },
@@ -12733,8 +12752,8 @@ export const ListNotificationsRequest = {
12733
12752
  if (message.notification_id !== "") {
12734
12753
  obj.notification_id = message.notification_id;
12735
12754
  }
12736
- if (message.code !== undefined) {
12737
- obj.code = message.code;
12755
+ if (message.category !== 0) {
12756
+ obj.category = Math.round(message.category);
12738
12757
  }
12739
12758
  if (message.direction !== undefined) {
12740
12759
  obj.direction = message.direction;
@@ -12750,7 +12769,7 @@ export const ListNotificationsRequest = {
12750
12769
  message.limit = object.limit ?? undefined;
12751
12770
  message.clan_id = object.clan_id ?? "";
12752
12771
  message.notification_id = object.notification_id ?? "";
12753
- message.code = object.code ?? undefined;
12772
+ message.category = object.category ?? 0;
12754
12773
  message.direction = object.direction ?? undefined;
12755
12774
  return message;
12756
12775
  },
@@ -12875,6 +12894,7 @@ function createBaseNotification(): Notification {
12875
12894
  avatar_url: "",
12876
12895
  channel: undefined,
12877
12896
  topic_id: "",
12897
+ category: 0,
12878
12898
  };
12879
12899
  }
12880
12900
 
@@ -12919,6 +12939,9 @@ export const Notification = {
12919
12939
  if (message.topic_id !== "") {
12920
12940
  writer.uint32(106).string(message.topic_id);
12921
12941
  }
12942
+ if (message.category !== 0) {
12943
+ writer.uint32(112).int32(message.category);
12944
+ }
12922
12945
  return writer;
12923
12946
  },
12924
12947
 
@@ -13020,6 +13043,13 @@ export const Notification = {
13020
13043
 
13021
13044
  message.topic_id = reader.string();
13022
13045
  continue;
13046
+ case 14:
13047
+ if (tag !== 112) {
13048
+ break;
13049
+ }
13050
+
13051
+ message.category = reader.int32();
13052
+ continue;
13023
13053
  }
13024
13054
  if ((tag & 7) === 4 || tag === 0) {
13025
13055
  break;
@@ -13044,6 +13074,7 @@ export const Notification = {
13044
13074
  avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
13045
13075
  channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
13046
13076
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
13077
+ category: isSet(object.category) ? globalThis.Number(object.category) : 0,
13047
13078
  };
13048
13079
  },
13049
13080
 
@@ -13088,6 +13119,9 @@ export const Notification = {
13088
13119
  if (message.topic_id !== "") {
13089
13120
  obj.topic_id = message.topic_id;
13090
13121
  }
13122
+ if (message.category !== 0) {
13123
+ obj.category = Math.round(message.category);
13124
+ }
13091
13125
  return obj;
13092
13126
  },
13093
13127
 
@@ -13111,6 +13145,7 @@ export const Notification = {
13111
13145
  ? ChannelDescription.fromPartial(object.channel)
13112
13146
  : undefined;
13113
13147
  message.topic_id = object.topic_id ?? "";
13148
+ message.category = object.category ?? 0;
13114
13149
  return message;
13115
13150
  },
13116
13151
  };
@@ -571,6 +571,8 @@ export interface DeleteGroupRequest {
571
571
  export interface DeleteNotificationsRequest {
572
572
  /** The id of notifications. */
573
573
  ids: string[];
574
+ /** The category of notifications. */
575
+ category: number;
574
576
  }
575
577
  /** Represents an event to be passed through the server to registered event handlers. */
576
578
  export interface Event {
@@ -930,8 +932,8 @@ export interface ListNotificationsRequest {
930
932
  clan_id: string;
931
933
  /** The current notification Id. */
932
934
  notification_id: string;
933
- /** The code. */
934
- code: number | undefined;
935
+ /** The category (0: for you, 1: mentions, 2: mesages). */
936
+ category: number;
935
937
  /** True if listing should be older notifications to newer, false if reverse. */
936
938
  direction: number | undefined;
937
939
  }
@@ -974,6 +976,8 @@ export interface Notification {
974
976
  channel: ChannelDescription | undefined;
975
977
  /** */
976
978
  topic_id: string;
979
+ /** category. */
980
+ category: number;
977
981
  }
978
982
  /** A collection of zero or more notifications. */
979
983
  export interface NotificationList {
@@ -6006,14 +6010,18 @@ export declare const DeleteNotificationsRequest: {
6006
6010
  toJSON(message: DeleteNotificationsRequest): unknown;
6007
6011
  create<I extends {
6008
6012
  ids?: string[] | undefined;
6013
+ category?: number | undefined;
6009
6014
  } & {
6010
6015
  ids?: (string[] & string[] & { [K in Exclude<keyof I["ids"], keyof string[]>]: never; }) | undefined;
6011
- } & { [K_1 in Exclude<keyof I, "ids">]: never; }>(base?: I | undefined): DeleteNotificationsRequest;
6016
+ category?: number | undefined;
6017
+ } & { [K_1 in Exclude<keyof I, keyof DeleteNotificationsRequest>]: never; }>(base?: I | undefined): DeleteNotificationsRequest;
6012
6018
  fromPartial<I_1 extends {
6013
6019
  ids?: string[] | undefined;
6020
+ category?: number | undefined;
6014
6021
  } & {
6015
6022
  ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["ids"], keyof string[]>]: never; }) | undefined;
6016
- } & { [K_3 in Exclude<keyof I_1, "ids">]: never; }>(object: I_1): DeleteNotificationsRequest;
6023
+ category?: number | undefined;
6024
+ } & { [K_3 in Exclude<keyof I_1, keyof DeleteNotificationsRequest>]: never; }>(object: I_1): DeleteNotificationsRequest;
6017
6025
  };
6018
6026
  export declare const Event: {
6019
6027
  encode(message: Event, writer?: _m0.Writer): _m0.Writer;
@@ -8696,26 +8704,26 @@ export declare const ListNotificationsRequest: {
8696
8704
  limit?: number | undefined;
8697
8705
  clan_id?: string | undefined;
8698
8706
  notification_id?: string | undefined;
8699
- code?: number | undefined;
8707
+ category?: number | undefined;
8700
8708
  direction?: number | undefined;
8701
8709
  } & {
8702
8710
  limit?: number | undefined;
8703
8711
  clan_id?: string | undefined;
8704
8712
  notification_id?: string | undefined;
8705
- code?: number | undefined;
8713
+ category?: number | undefined;
8706
8714
  direction?: number | undefined;
8707
8715
  } & { [K in Exclude<keyof I, keyof ListNotificationsRequest>]: never; }>(base?: I | undefined): ListNotificationsRequest;
8708
8716
  fromPartial<I_1 extends {
8709
8717
  limit?: number | undefined;
8710
8718
  clan_id?: string | undefined;
8711
8719
  notification_id?: string | undefined;
8712
- code?: number | undefined;
8720
+ category?: number | undefined;
8713
8721
  direction?: number | undefined;
8714
8722
  } & {
8715
8723
  limit?: number | undefined;
8716
8724
  clan_id?: string | undefined;
8717
8725
  notification_id?: string | undefined;
8718
- code?: number | undefined;
8726
+ category?: number | undefined;
8719
8727
  direction?: number | undefined;
8720
8728
  } & { [K_1 in Exclude<keyof I_1, keyof ListNotificationsRequest>]: never; }>(object: I_1): ListNotificationsRequest;
8721
8729
  };
@@ -8818,6 +8826,7 @@ export declare const Notification: {
8818
8826
  display_names?: string[] | undefined;
8819
8827
  } | undefined;
8820
8828
  topic_id?: string | undefined;
8829
+ category?: number | undefined;
8821
8830
  } & {
8822
8831
  id?: string | undefined;
8823
8832
  subject?: string | undefined;
@@ -8956,6 +8965,7 @@ export declare const Notification: {
8956
8965
  display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
8957
8966
  } & { [K_11 in Exclude<keyof I["channel"], keyof ChannelDescription>]: never; }) | undefined;
8958
8967
  topic_id?: string | undefined;
8968
+ category?: number | undefined;
8959
8969
  } & { [K_12 in Exclude<keyof I, keyof Notification>]: never; }>(base?: I | undefined): Notification;
8960
8970
  fromPartial<I_1 extends {
8961
8971
  id?: string | undefined;
@@ -9023,6 +9033,7 @@ export declare const Notification: {
9023
9033
  display_names?: string[] | undefined;
9024
9034
  } | undefined;
9025
9035
  topic_id?: string | undefined;
9036
+ category?: number | undefined;
9026
9037
  } & {
9027
9038
  id?: string | undefined;
9028
9039
  subject?: string | undefined;
@@ -9161,6 +9172,7 @@ export declare const Notification: {
9161
9172
  display_names?: (string[] & string[] & { [K_23 in Exclude<keyof I_1["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
9162
9173
  } & { [K_24 in Exclude<keyof I_1["channel"], keyof ChannelDescription>]: never; }) | undefined;
9163
9174
  topic_id?: string | undefined;
9175
+ category?: number | undefined;
9164
9176
  } & { [K_25 in Exclude<keyof I_1, keyof Notification>]: never; }>(object: I_1): Notification;
9165
9177
  };
9166
9178
  export declare const NotificationList: {
@@ -9235,6 +9247,7 @@ export declare const NotificationList: {
9235
9247
  display_names?: string[] | undefined;
9236
9248
  } | undefined;
9237
9249
  topic_id?: string | undefined;
9250
+ category?: number | undefined;
9238
9251
  }[] | undefined;
9239
9252
  cacheable_cursor?: string | undefined;
9240
9253
  } & {
@@ -9304,6 +9317,7 @@ export declare const NotificationList: {
9304
9317
  display_names?: string[] | undefined;
9305
9318
  } | undefined;
9306
9319
  topic_id?: string | undefined;
9320
+ category?: number | undefined;
9307
9321
  }[] & ({
9308
9322
  id?: string | undefined;
9309
9323
  subject?: string | undefined;
@@ -9370,6 +9384,7 @@ export declare const NotificationList: {
9370
9384
  display_names?: string[] | undefined;
9371
9385
  } | undefined;
9372
9386
  topic_id?: string | undefined;
9387
+ category?: number | undefined;
9373
9388
  } & {
9374
9389
  id?: string | undefined;
9375
9390
  subject?: string | undefined;
@@ -9508,6 +9523,7 @@ export declare const NotificationList: {
9508
9523
  display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
9509
9524
  } & { [K_11 in Exclude<keyof I["notifications"][number]["channel"], keyof ChannelDescription>]: never; }) | undefined;
9510
9525
  topic_id?: string | undefined;
9526
+ category?: number | undefined;
9511
9527
  } & { [K_12 in Exclude<keyof I["notifications"][number], keyof Notification>]: never; })[] & { [K_13 in Exclude<keyof I["notifications"], keyof {
9512
9528
  id?: string | undefined;
9513
9529
  subject?: string | undefined;
@@ -9574,6 +9590,7 @@ export declare const NotificationList: {
9574
9590
  display_names?: string[] | undefined;
9575
9591
  } | undefined;
9576
9592
  topic_id?: string | undefined;
9593
+ category?: number | undefined;
9577
9594
  }[]>]: never; }) | undefined;
9578
9595
  cacheable_cursor?: string | undefined;
9579
9596
  } & { [K_14 in Exclude<keyof I, keyof NotificationList>]: never; }>(base?: I | undefined): NotificationList;
@@ -9644,6 +9661,7 @@ export declare const NotificationList: {
9644
9661
  display_names?: string[] | undefined;
9645
9662
  } | undefined;
9646
9663
  topic_id?: string | undefined;
9664
+ category?: number | undefined;
9647
9665
  }[] | undefined;
9648
9666
  cacheable_cursor?: string | undefined;
9649
9667
  } & {
@@ -9713,6 +9731,7 @@ export declare const NotificationList: {
9713
9731
  display_names?: string[] | undefined;
9714
9732
  } | undefined;
9715
9733
  topic_id?: string | undefined;
9734
+ category?: number | undefined;
9716
9735
  }[] & ({
9717
9736
  id?: string | undefined;
9718
9737
  subject?: string | undefined;
@@ -9779,6 +9798,7 @@ export declare const NotificationList: {
9779
9798
  display_names?: string[] | undefined;
9780
9799
  } | undefined;
9781
9800
  topic_id?: string | undefined;
9801
+ category?: number | undefined;
9782
9802
  } & {
9783
9803
  id?: string | undefined;
9784
9804
  subject?: string | undefined;
@@ -9917,6 +9937,7 @@ export declare const NotificationList: {
9917
9937
  display_names?: (string[] & string[] & { [K_25 in Exclude<keyof I_1["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
9918
9938
  } & { [K_26 in Exclude<keyof I_1["notifications"][number]["channel"], keyof ChannelDescription>]: never; }) | undefined;
9919
9939
  topic_id?: string | undefined;
9940
+ category?: number | undefined;
9920
9941
  } & { [K_27 in Exclude<keyof I_1["notifications"][number], keyof Notification>]: never; })[] & { [K_28 in Exclude<keyof I_1["notifications"], keyof {
9921
9942
  id?: string | undefined;
9922
9943
  subject?: string | undefined;
@@ -9983,6 +10004,7 @@ export declare const NotificationList: {
9983
10004
  display_names?: string[] | undefined;
9984
10005
  } | undefined;
9985
10006
  topic_id?: string | undefined;
10007
+ category?: number | undefined;
9986
10008
  }[]>]: never; }) | undefined;
9987
10009
  cacheable_cursor?: string | undefined;
9988
10010
  } & { [K_29 in Exclude<keyof I_1, keyof NotificationList>]: never; }>(object: I_1): NotificationList;
@@ -1297,6 +1297,7 @@ export declare const Envelope: {
1297
1297
  display_names?: string[] | undefined;
1298
1298
  } | undefined;
1299
1299
  topic_id?: string | undefined;
1300
+ category?: number | undefined;
1300
1301
  }[] | undefined;
1301
1302
  } | undefined;
1302
1303
  rpc?: {
@@ -2627,6 +2628,7 @@ export declare const Envelope: {
2627
2628
  display_names?: string[] | undefined;
2628
2629
  } | undefined;
2629
2630
  topic_id?: string | undefined;
2631
+ category?: number | undefined;
2630
2632
  }[] | undefined;
2631
2633
  } & {
2632
2634
  notifications?: ({
@@ -2695,6 +2697,7 @@ export declare const Envelope: {
2695
2697
  display_names?: string[] | undefined;
2696
2698
  } | undefined;
2697
2699
  topic_id?: string | undefined;
2700
+ category?: number | undefined;
2698
2701
  }[] & ({
2699
2702
  id?: string | undefined;
2700
2703
  subject?: string | undefined;
@@ -2761,6 +2764,7 @@ export declare const Envelope: {
2761
2764
  display_names?: string[] | undefined;
2762
2765
  } | undefined;
2763
2766
  topic_id?: string | undefined;
2767
+ category?: number | undefined;
2764
2768
  } & {
2765
2769
  id?: string | undefined;
2766
2770
  subject?: string | undefined;
@@ -2899,6 +2903,7 @@ export declare const Envelope: {
2899
2903
  display_names?: (string[] & string[] & { [K_39 in Exclude<keyof I["notifications"]["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
2900
2904
  } & { [K_40 in Exclude<keyof I["notifications"]["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
2901
2905
  topic_id?: string | undefined;
2906
+ category?: number | undefined;
2902
2907
  } & { [K_41 in Exclude<keyof I["notifications"]["notifications"][number], keyof Notification>]: never; })[] & { [K_42 in Exclude<keyof I["notifications"]["notifications"], keyof {
2903
2908
  id?: string | undefined;
2904
2909
  subject?: string | undefined;
@@ -2965,6 +2970,7 @@ export declare const Envelope: {
2965
2970
  display_names?: string[] | undefined;
2966
2971
  } | undefined;
2967
2972
  topic_id?: string | undefined;
2973
+ category?: number | undefined;
2968
2974
  }[]>]: never; }) | undefined;
2969
2975
  } & { [K_43 in Exclude<keyof I["notifications"], "notifications">]: never; }) | undefined;
2970
2976
  rpc?: ({
@@ -5077,6 +5083,7 @@ export declare const Envelope: {
5077
5083
  display_names?: string[] | undefined;
5078
5084
  } | undefined;
5079
5085
  topic_id?: string | undefined;
5086
+ category?: number | undefined;
5080
5087
  }[] | undefined;
5081
5088
  } | undefined;
5082
5089
  rpc?: {
@@ -6407,6 +6414,7 @@ export declare const Envelope: {
6407
6414
  display_names?: string[] | undefined;
6408
6415
  } | undefined;
6409
6416
  topic_id?: string | undefined;
6417
+ category?: number | undefined;
6410
6418
  }[] | undefined;
6411
6419
  } & {
6412
6420
  notifications?: ({
@@ -6475,6 +6483,7 @@ export declare const Envelope: {
6475
6483
  display_names?: string[] | undefined;
6476
6484
  } | undefined;
6477
6485
  topic_id?: string | undefined;
6486
+ category?: number | undefined;
6478
6487
  }[] & ({
6479
6488
  id?: string | undefined;
6480
6489
  subject?: string | undefined;
@@ -6541,6 +6550,7 @@ export declare const Envelope: {
6541
6550
  display_names?: string[] | undefined;
6542
6551
  } | undefined;
6543
6552
  topic_id?: string | undefined;
6553
+ category?: number | undefined;
6544
6554
  } & {
6545
6555
  id?: string | undefined;
6546
6556
  subject?: string | undefined;
@@ -6679,6 +6689,7 @@ export declare const Envelope: {
6679
6689
  display_names?: (string[] & string[] & { [K_216 in Exclude<keyof I_1["notifications"]["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
6680
6690
  } & { [K_217 in Exclude<keyof I_1["notifications"]["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
6681
6691
  topic_id?: string | undefined;
6692
+ category?: number | undefined;
6682
6693
  } & { [K_218 in Exclude<keyof I_1["notifications"]["notifications"][number], keyof Notification>]: never; })[] & { [K_219 in Exclude<keyof I_1["notifications"]["notifications"], keyof {
6683
6694
  id?: string | undefined;
6684
6695
  subject?: string | undefined;
@@ -6745,6 +6756,7 @@ export declare const Envelope: {
6745
6756
  display_names?: string[] | undefined;
6746
6757
  } | undefined;
6747
6758
  topic_id?: string | undefined;
6759
+ category?: number | undefined;
6748
6760
  }[]>]: never; }) | undefined;
6749
6761
  } & { [K_220 in Exclude<keyof I_1["notifications"], "notifications">]: never; }) | undefined;
6750
6762
  rpc?: ({
@@ -10331,6 +10343,7 @@ export declare const Notifications: {
10331
10343
  display_names?: string[] | undefined;
10332
10344
  } | undefined;
10333
10345
  topic_id?: string | undefined;
10346
+ category?: number | undefined;
10334
10347
  }[] | undefined;
10335
10348
  } & {
10336
10349
  notifications?: ({
@@ -10399,6 +10412,7 @@ export declare const Notifications: {
10399
10412
  display_names?: string[] | undefined;
10400
10413
  } | undefined;
10401
10414
  topic_id?: string | undefined;
10415
+ category?: number | undefined;
10402
10416
  }[] & ({
10403
10417
  id?: string | undefined;
10404
10418
  subject?: string | undefined;
@@ -10465,6 +10479,7 @@ export declare const Notifications: {
10465
10479
  display_names?: string[] | undefined;
10466
10480
  } | undefined;
10467
10481
  topic_id?: string | undefined;
10482
+ category?: number | undefined;
10468
10483
  } & {
10469
10484
  id?: string | undefined;
10470
10485
  subject?: string | undefined;
@@ -10603,6 +10618,7 @@ export declare const Notifications: {
10603
10618
  display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
10604
10619
  } & { [K_11 in Exclude<keyof I["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
10605
10620
  topic_id?: string | undefined;
10621
+ category?: number | undefined;
10606
10622
  } & { [K_12 in Exclude<keyof I["notifications"][number], keyof Notification>]: never; })[] & { [K_13 in Exclude<keyof I["notifications"], keyof {
10607
10623
  id?: string | undefined;
10608
10624
  subject?: string | undefined;
@@ -10669,6 +10685,7 @@ export declare const Notifications: {
10669
10685
  display_names?: string[] | undefined;
10670
10686
  } | undefined;
10671
10687
  topic_id?: string | undefined;
10688
+ category?: number | undefined;
10672
10689
  }[]>]: never; }) | undefined;
10673
10690
  } & { [K_14 in Exclude<keyof I, "notifications">]: never; }>(base?: I | undefined): Notifications;
10674
10691
  fromPartial<I_1 extends {
@@ -10738,6 +10755,7 @@ export declare const Notifications: {
10738
10755
  display_names?: string[] | undefined;
10739
10756
  } | undefined;
10740
10757
  topic_id?: string | undefined;
10758
+ category?: number | undefined;
10741
10759
  }[] | undefined;
10742
10760
  } & {
10743
10761
  notifications?: ({
@@ -10806,6 +10824,7 @@ export declare const Notifications: {
10806
10824
  display_names?: string[] | undefined;
10807
10825
  } | undefined;
10808
10826
  topic_id?: string | undefined;
10827
+ category?: number | undefined;
10809
10828
  }[] & ({
10810
10829
  id?: string | undefined;
10811
10830
  subject?: string | undefined;
@@ -10872,6 +10891,7 @@ export declare const Notifications: {
10872
10891
  display_names?: string[] | undefined;
10873
10892
  } | undefined;
10874
10893
  topic_id?: string | undefined;
10894
+ category?: number | undefined;
10875
10895
  } & {
10876
10896
  id?: string | undefined;
10877
10897
  subject?: string | undefined;
@@ -11010,6 +11030,7 @@ export declare const Notifications: {
11010
11030
  display_names?: (string[] & string[] & { [K_25 in Exclude<keyof I_1["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
11011
11031
  } & { [K_26 in Exclude<keyof I_1["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
11012
11032
  topic_id?: string | undefined;
11033
+ category?: number | undefined;
11013
11034
  } & { [K_27 in Exclude<keyof I_1["notifications"][number], keyof Notification>]: never; })[] & { [K_28 in Exclude<keyof I_1["notifications"], keyof {
11014
11035
  id?: string | undefined;
11015
11036
  subject?: string | undefined;
@@ -11076,6 +11097,7 @@ export declare const Notifications: {
11076
11097
  display_names?: string[] | undefined;
11077
11098
  } | undefined;
11078
11099
  topic_id?: string | undefined;
11100
+ category?: number | undefined;
11079
11101
  }[]>]: never; }) | undefined;
11080
11102
  } & { [K_29 in Exclude<keyof I_1, "notifications">]: never; }>(object: I_1): Notifications;
11081
11103
  };
@@ -3719,7 +3719,8 @@ function createBaseNotification() {
3719
3719
  channel_type: 0,
3720
3720
  avatar_url: "",
3721
3721
  channel: void 0,
3722
- topic_id: ""
3722
+ topic_id: "",
3723
+ category: 0
3723
3724
  };
3724
3725
  }
3725
3726
  var Notification = {
@@ -3763,6 +3764,9 @@ var Notification = {
3763
3764
  if (message.topic_id !== "") {
3764
3765
  writer.uint32(106).string(message.topic_id);
3765
3766
  }
3767
+ if (message.category !== 0) {
3768
+ writer.uint32(112).int32(message.category);
3769
+ }
3766
3770
  return writer;
3767
3771
  },
3768
3772
  decode(input, length) {
@@ -3850,6 +3854,12 @@ var Notification = {
3850
3854
  }
3851
3855
  message.topic_id = reader.string();
3852
3856
  continue;
3857
+ case 14:
3858
+ if (tag !== 112) {
3859
+ break;
3860
+ }
3861
+ message.category = reader.int32();
3862
+ continue;
3853
3863
  }
3854
3864
  if ((tag & 7) === 4 || tag === 0) {
3855
3865
  break;
@@ -3872,7 +3882,8 @@ var Notification = {
3872
3882
  channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
3873
3883
  avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
3874
3884
  channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
3875
- topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
3885
+ topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : "",
3886
+ category: isSet3(object.category) ? globalThis.Number(object.category) : 0
3876
3887
  };
3877
3888
  },
3878
3889
  toJSON(message) {
@@ -3916,13 +3927,16 @@ var Notification = {
3916
3927
  if (message.topic_id !== "") {
3917
3928
  obj.topic_id = message.topic_id;
3918
3929
  }
3930
+ if (message.category !== 0) {
3931
+ obj.category = Math.round(message.category);
3932
+ }
3919
3933
  return obj;
3920
3934
  },
3921
3935
  create(base) {
3922
3936
  return Notification.fromPartial(base != null ? base : {});
3923
3937
  },
3924
3938
  fromPartial(object) {
3925
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
3939
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
3926
3940
  const message = createBaseNotification();
3927
3941
  message.id = (_a = object.id) != null ? _a : "";
3928
3942
  message.subject = (_b = object.subject) != null ? _b : "";
@@ -3937,6 +3951,7 @@ var Notification = {
3937
3951
  message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
3938
3952
  message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
3939
3953
  message.topic_id = (_l = object.topic_id) != null ? _l : "";
3954
+ message.category = (_m = object.category) != null ? _m : 0;
3940
3955
  return message;
3941
3956
  }
3942
3957
  };
@@ -3706,7 +3706,8 @@ function createBaseNotification() {
3706
3706
  channel_type: 0,
3707
3707
  avatar_url: "",
3708
3708
  channel: void 0,
3709
- topic_id: ""
3709
+ topic_id: "",
3710
+ category: 0
3710
3711
  };
3711
3712
  }
3712
3713
  var Notification = {
@@ -3750,6 +3751,9 @@ var Notification = {
3750
3751
  if (message.topic_id !== "") {
3751
3752
  writer.uint32(106).string(message.topic_id);
3752
3753
  }
3754
+ if (message.category !== 0) {
3755
+ writer.uint32(112).int32(message.category);
3756
+ }
3753
3757
  return writer;
3754
3758
  },
3755
3759
  decode(input, length) {
@@ -3837,6 +3841,12 @@ var Notification = {
3837
3841
  }
3838
3842
  message.topic_id = reader.string();
3839
3843
  continue;
3844
+ case 14:
3845
+ if (tag !== 112) {
3846
+ break;
3847
+ }
3848
+ message.category = reader.int32();
3849
+ continue;
3840
3850
  }
3841
3851
  if ((tag & 7) === 4 || tag === 0) {
3842
3852
  break;
@@ -3859,7 +3869,8 @@ var Notification = {
3859
3869
  channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
3860
3870
  avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
3861
3871
  channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
3862
- topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
3872
+ topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : "",
3873
+ category: isSet3(object.category) ? globalThis.Number(object.category) : 0
3863
3874
  };
3864
3875
  },
3865
3876
  toJSON(message) {
@@ -3903,13 +3914,16 @@ var Notification = {
3903
3914
  if (message.topic_id !== "") {
3904
3915
  obj.topic_id = message.topic_id;
3905
3916
  }
3917
+ if (message.category !== 0) {
3918
+ obj.category = Math.round(message.category);
3919
+ }
3906
3920
  return obj;
3907
3921
  },
3908
3922
  create(base) {
3909
3923
  return Notification.fromPartial(base != null ? base : {});
3910
3924
  },
3911
3925
  fromPartial(object) {
3912
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
3926
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
3913
3927
  const message = createBaseNotification();
3914
3928
  message.id = (_a = object.id) != null ? _a : "";
3915
3929
  message.subject = (_b = object.subject) != null ? _b : "";
@@ -3924,6 +3938,7 @@ var Notification = {
3924
3938
  message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
3925
3939
  message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
3926
3940
  message.topic_id = (_l = object.topic_id) != null ? _l : "";
3941
+ message.category = (_m = object.category) != null ? _m : 0;
3927
3942
  return message;
3928
3943
  }
3929
3944
  };
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.20.3
4
+ // protoc v5.28.3
5
5
  // source: google/protobuf/struct.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.20.3
4
+ // protoc v5.28.3
5
5
  // source: google/protobuf/timestamp.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.20.3
4
+ // protoc v5.28.3
5
5
  // source: google/protobuf/wrappers.proto
6
6
 
7
7
  /* eslint-disable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.7.20",
3
+ "version": "1.7.21",
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
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v5.28.3
5
5
  // source: rtapi/realtime.proto
6
6
 
7
7
  /* eslint-disable */