mezon-js-protobuf 1.6.73 → 1.6.74

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
@@ -3015,8 +3015,6 @@ export interface StreamHttpCallbackRequest {
3015
3015
  channel_id: string;
3016
3016
  /** user_id */
3017
3017
  user_id: string;
3018
- /** display name */
3019
- display_name: string;
3020
3018
  /** action */
3021
3019
  action: number;
3022
3020
  /** is_publisher */
@@ -3814,7 +3812,7 @@ export interface SdTopicList {
3814
3812
  }
3815
3813
 
3816
3814
  export interface ListSdTopicRequest {
3817
- channel_id: string;
3815
+ clan_id: string;
3818
3816
  limit: number;
3819
3817
  }
3820
3818
 
@@ -28600,16 +28598,7 @@ export const DeleteCategoryOrderRequest = {
28600
28598
  };
28601
28599
 
28602
28600
  function createBaseStreamHttpCallbackRequest(): StreamHttpCallbackRequest {
28603
- return {
28604
- id: "",
28605
- client_id: "",
28606
- clan_id: "",
28607
- channel_id: "",
28608
- user_id: "",
28609
- display_name: "",
28610
- action: 0,
28611
- is_publisher: false,
28612
- };
28601
+ return { id: "", client_id: "", clan_id: "", channel_id: "", user_id: "", action: 0, is_publisher: false };
28613
28602
  }
28614
28603
 
28615
28604
  export const StreamHttpCallbackRequest = {
@@ -28629,14 +28618,11 @@ export const StreamHttpCallbackRequest = {
28629
28618
  if (message.user_id !== "") {
28630
28619
  writer.uint32(42).string(message.user_id);
28631
28620
  }
28632
- if (message.display_name !== "") {
28633
- writer.uint32(50).string(message.display_name);
28634
- }
28635
28621
  if (message.action !== 0) {
28636
- writer.uint32(56).int32(message.action);
28622
+ writer.uint32(48).int32(message.action);
28637
28623
  }
28638
28624
  if (message.is_publisher !== false) {
28639
- writer.uint32(64).bool(message.is_publisher);
28625
+ writer.uint32(56).bool(message.is_publisher);
28640
28626
  }
28641
28627
  return writer;
28642
28628
  },
@@ -28684,24 +28670,17 @@ export const StreamHttpCallbackRequest = {
28684
28670
  message.user_id = reader.string();
28685
28671
  continue;
28686
28672
  case 6:
28687
- if (tag !== 50) {
28673
+ if (tag !== 48) {
28688
28674
  break;
28689
28675
  }
28690
28676
 
28691
- message.display_name = reader.string();
28677
+ message.action = reader.int32();
28692
28678
  continue;
28693
28679
  case 7:
28694
28680
  if (tag !== 56) {
28695
28681
  break;
28696
28682
  }
28697
28683
 
28698
- message.action = reader.int32();
28699
- continue;
28700
- case 8:
28701
- if (tag !== 64) {
28702
- break;
28703
- }
28704
-
28705
28684
  message.is_publisher = reader.bool();
28706
28685
  continue;
28707
28686
  }
@@ -28720,7 +28699,6 @@ export const StreamHttpCallbackRequest = {
28720
28699
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
28721
28700
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
28722
28701
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
28723
- display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
28724
28702
  action: isSet(object.action) ? globalThis.Number(object.action) : 0,
28725
28703
  is_publisher: isSet(object.is_publisher) ? globalThis.Boolean(object.is_publisher) : false,
28726
28704
  };
@@ -28743,9 +28721,6 @@ export const StreamHttpCallbackRequest = {
28743
28721
  if (message.user_id !== "") {
28744
28722
  obj.user_id = message.user_id;
28745
28723
  }
28746
- if (message.display_name !== "") {
28747
- obj.display_name = message.display_name;
28748
- }
28749
28724
  if (message.action !== 0) {
28750
28725
  obj.action = Math.round(message.action);
28751
28726
  }
@@ -28765,7 +28740,6 @@ export const StreamHttpCallbackRequest = {
28765
28740
  message.clan_id = object.clan_id ?? "";
28766
28741
  message.channel_id = object.channel_id ?? "";
28767
28742
  message.user_id = object.user_id ?? "";
28768
- message.display_name = object.display_name ?? "";
28769
28743
  message.action = object.action ?? 0;
28770
28744
  message.is_publisher = object.is_publisher ?? false;
28771
28745
  return message;
@@ -36968,13 +36942,13 @@ export const SdTopicList = {
36968
36942
  };
36969
36943
 
36970
36944
  function createBaseListSdTopicRequest(): ListSdTopicRequest {
36971
- return { channel_id: "", limit: 0 };
36945
+ return { clan_id: "", limit: 0 };
36972
36946
  }
36973
36947
 
36974
36948
  export const ListSdTopicRequest = {
36975
36949
  encode(message: ListSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36976
- if (message.channel_id !== "") {
36977
- writer.uint32(10).string(message.channel_id);
36950
+ if (message.clan_id !== "") {
36951
+ writer.uint32(10).string(message.clan_id);
36978
36952
  }
36979
36953
  if (message.limit !== 0) {
36980
36954
  writer.uint32(16).int32(message.limit);
@@ -36994,7 +36968,7 @@ export const ListSdTopicRequest = {
36994
36968
  break;
36995
36969
  }
36996
36970
 
36997
- message.channel_id = reader.string();
36971
+ message.clan_id = reader.string();
36998
36972
  continue;
36999
36973
  case 2:
37000
36974
  if (tag !== 16) {
@@ -37014,15 +36988,15 @@ export const ListSdTopicRequest = {
37014
36988
 
37015
36989
  fromJSON(object: any): ListSdTopicRequest {
37016
36990
  return {
37017
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
36991
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37018
36992
  limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
37019
36993
  };
37020
36994
  },
37021
36995
 
37022
36996
  toJSON(message: ListSdTopicRequest): unknown {
37023
36997
  const obj: any = {};
37024
- if (message.channel_id !== "") {
37025
- obj.channel_id = message.channel_id;
36998
+ if (message.clan_id !== "") {
36999
+ obj.clan_id = message.clan_id;
37026
37000
  }
37027
37001
  if (message.limit !== 0) {
37028
37002
  obj.limit = Math.round(message.limit);
@@ -37035,7 +37009,7 @@ export const ListSdTopicRequest = {
37035
37009
  },
37036
37010
  fromPartial<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(object: I): ListSdTopicRequest {
37037
37011
  const message = createBaseListSdTopicRequest();
37038
- message.channel_id = object.channel_id ?? "";
37012
+ message.clan_id = object.clan_id ?? "";
37039
37013
  message.limit = object.limit ?? 0;
37040
37014
  return message;
37041
37015
  },
@@ -2382,8 +2382,6 @@ export interface StreamHttpCallbackRequest {
2382
2382
  channel_id: string;
2383
2383
  /** user_id */
2384
2384
  user_id: string;
2385
- /** display name */
2386
- display_name: string;
2387
2385
  /** action */
2388
2386
  action: number;
2389
2387
  /** is_publisher */
@@ -3066,7 +3064,7 @@ export interface SdTopicList {
3066
3064
  topics: SdTopic[];
3067
3065
  }
3068
3066
  export interface ListSdTopicRequest {
3069
- channel_id: string;
3067
+ clan_id: string;
3070
3068
  limit: number;
3071
3069
  }
3072
3070
  export interface SdTopicDetailRequest {
@@ -16302,7 +16300,6 @@ export declare const StreamHttpCallbackRequest: {
16302
16300
  clan_id?: string | undefined;
16303
16301
  channel_id?: string | undefined;
16304
16302
  user_id?: string | undefined;
16305
- display_name?: string | undefined;
16306
16303
  action?: number | undefined;
16307
16304
  is_publisher?: boolean | undefined;
16308
16305
  } & {
@@ -16311,7 +16308,6 @@ export declare const StreamHttpCallbackRequest: {
16311
16308
  clan_id?: string | undefined;
16312
16309
  channel_id?: string | undefined;
16313
16310
  user_id?: string | undefined;
16314
- display_name?: string | undefined;
16315
16311
  action?: number | undefined;
16316
16312
  is_publisher?: boolean | undefined;
16317
16313
  } & { [K in Exclude<keyof I, keyof StreamHttpCallbackRequest>]: never; }>(base?: I | undefined): StreamHttpCallbackRequest;
@@ -16321,7 +16317,6 @@ export declare const StreamHttpCallbackRequest: {
16321
16317
  clan_id?: string | undefined;
16322
16318
  channel_id?: string | undefined;
16323
16319
  user_id?: string | undefined;
16324
- display_name?: string | undefined;
16325
16320
  action?: number | undefined;
16326
16321
  is_publisher?: boolean | undefined;
16327
16322
  } & {
@@ -16330,7 +16325,6 @@ export declare const StreamHttpCallbackRequest: {
16330
16325
  clan_id?: string | undefined;
16331
16326
  channel_id?: string | undefined;
16332
16327
  user_id?: string | undefined;
16333
- display_name?: string | undefined;
16334
16328
  action?: number | undefined;
16335
16329
  is_publisher?: boolean | undefined;
16336
16330
  } & { [K_1 in Exclude<keyof I_1, keyof StreamHttpCallbackRequest>]: never; }>(object: I_1): StreamHttpCallbackRequest;
@@ -22029,17 +22023,17 @@ export declare const ListSdTopicRequest: {
22029
22023
  fromJSON(object: any): ListSdTopicRequest;
22030
22024
  toJSON(message: ListSdTopicRequest): unknown;
22031
22025
  create<I extends {
22032
- channel_id?: string | undefined;
22026
+ clan_id?: string | undefined;
22033
22027
  limit?: number | undefined;
22034
22028
  } & {
22035
- channel_id?: string | undefined;
22029
+ clan_id?: string | undefined;
22036
22030
  limit?: number | undefined;
22037
22031
  } & { [K in Exclude<keyof I, keyof ListSdTopicRequest>]: never; }>(base?: I | undefined): ListSdTopicRequest;
22038
22032
  fromPartial<I_1 extends {
22039
- channel_id?: string | undefined;
22033
+ clan_id?: string | undefined;
22040
22034
  limit?: number | undefined;
22041
22035
  } & {
22042
- channel_id?: string | undefined;
22036
+ clan_id?: string | undefined;
22043
22037
  limit?: number | undefined;
22044
22038
  } & { [K_1 in Exclude<keyof I_1, keyof ListSdTopicRequest>]: never; }>(object: I_1): ListSdTopicRequest;
22045
22039
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.73",
3
+ "version": "1.6.74",
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",