mezon-js-protobuf 1.4.12 → 1.4.14

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
@@ -1002,6 +1002,10 @@ export interface ImportSteamFriendsRequest {
1002
1002
  export interface RegistFcmDeviceTokenRequest {
1003
1003
  /** The token */
1004
1004
  token: string;
1005
+ /** */
1006
+ device_id: string;
1007
+ /** */
1008
+ platform: string;
1005
1009
  }
1006
1010
 
1007
1011
  /** Link Facebook to the current user's account. */
@@ -7567,7 +7571,7 @@ export const ImportSteamFriendsRequest = {
7567
7571
  };
7568
7572
 
7569
7573
  function createBaseRegistFcmDeviceTokenRequest(): RegistFcmDeviceTokenRequest {
7570
- return { token: "" };
7574
+ return { token: "", device_id: "", platform: "" };
7571
7575
  }
7572
7576
 
7573
7577
  export const RegistFcmDeviceTokenRequest = {
@@ -7575,6 +7579,12 @@ export const RegistFcmDeviceTokenRequest = {
7575
7579
  if (message.token !== "") {
7576
7580
  writer.uint32(10).string(message.token);
7577
7581
  }
7582
+ if (message.device_id !== "") {
7583
+ writer.uint32(18).string(message.device_id);
7584
+ }
7585
+ if (message.platform !== "") {
7586
+ writer.uint32(26).string(message.platform);
7587
+ }
7578
7588
  return writer;
7579
7589
  },
7580
7590
 
@@ -7588,6 +7598,12 @@ export const RegistFcmDeviceTokenRequest = {
7588
7598
  case 1:
7589
7599
  message.token = reader.string();
7590
7600
  break;
7601
+ case 2:
7602
+ message.device_id = reader.string();
7603
+ break;
7604
+ case 3:
7605
+ message.platform = reader.string();
7606
+ break;
7591
7607
  default:
7592
7608
  reader.skipType(tag & 7);
7593
7609
  break;
@@ -7597,12 +7613,18 @@ export const RegistFcmDeviceTokenRequest = {
7597
7613
  },
7598
7614
 
7599
7615
  fromJSON(object: any): RegistFcmDeviceTokenRequest {
7600
- return { token: isSet(object.token) ? String(object.token) : "" };
7616
+ return {
7617
+ token: isSet(object.token) ? String(object.token) : "",
7618
+ device_id: isSet(object.device_id) ? String(object.device_id) : "",
7619
+ platform: isSet(object.platform) ? String(object.platform) : "",
7620
+ };
7601
7621
  },
7602
7622
 
7603
7623
  toJSON(message: RegistFcmDeviceTokenRequest): unknown {
7604
7624
  const obj: any = {};
7605
7625
  message.token !== undefined && (obj.token = message.token);
7626
+ message.device_id !== undefined && (obj.device_id = message.device_id);
7627
+ message.platform !== undefined && (obj.platform = message.platform);
7606
7628
  return obj;
7607
7629
  },
7608
7630
 
@@ -7613,6 +7635,8 @@ export const RegistFcmDeviceTokenRequest = {
7613
7635
  fromPartial<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(object: I): RegistFcmDeviceTokenRequest {
7614
7636
  const message = createBaseRegistFcmDeviceTokenRequest();
7615
7637
  message.token = object.token ?? "";
7638
+ message.device_id = object.device_id ?? "";
7639
+ message.platform = object.platform ?? "";
7616
7640
  return message;
7617
7641
  },
7618
7642
  };
@@ -703,6 +703,10 @@ export interface ImportSteamFriendsRequest {
703
703
  export interface RegistFcmDeviceTokenRequest {
704
704
  /** The token */
705
705
  token: string;
706
+ /** */
707
+ device_id: string;
708
+ /** */
709
+ platform: string;
706
710
  }
707
711
  /** Link Facebook to the current user's account. */
708
712
  export interface LinkFacebookRequest {
@@ -6097,14 +6101,22 @@ export declare const RegistFcmDeviceTokenRequest: {
6097
6101
  toJSON(message: RegistFcmDeviceTokenRequest): unknown;
6098
6102
  create<I extends {
6099
6103
  token?: string | undefined;
6104
+ device_id?: string | undefined;
6105
+ platform?: string | undefined;
6100
6106
  } & {
6101
6107
  token?: string | undefined;
6102
- } & { [K in Exclude<keyof I, "token">]: never; }>(base?: I | undefined): RegistFcmDeviceTokenRequest;
6108
+ device_id?: string | undefined;
6109
+ platform?: string | undefined;
6110
+ } & { [K in Exclude<keyof I, keyof RegistFcmDeviceTokenRequest>]: never; }>(base?: I | undefined): RegistFcmDeviceTokenRequest;
6103
6111
  fromPartial<I_1 extends {
6104
6112
  token?: string | undefined;
6113
+ device_id?: string | undefined;
6114
+ platform?: string | undefined;
6105
6115
  } & {
6106
6116
  token?: string | undefined;
6107
- } & { [K_1 in Exclude<keyof I_1, "token">]: never; }>(object: I_1): RegistFcmDeviceTokenRequest;
6117
+ device_id?: string | undefined;
6118
+ platform?: string | undefined;
6119
+ } & { [K_1 in Exclude<keyof I_1, keyof RegistFcmDeviceTokenRequest>]: never; }>(object: I_1): RegistFcmDeviceTokenRequest;
6108
6120
  };
6109
6121
  export declare const LinkFacebookRequest: {
6110
6122
  encode(message: LinkFacebookRequest, writer?: _m0.Writer): _m0.Writer;
@@ -568,8 +568,8 @@ export interface VoiceLeavedEvent {
568
568
  clan_id: string;
569
569
  /** voice channel name */
570
570
  voice_channel_id: string;
571
- /** last participant */
572
- last_participant: boolean;
571
+ /** voice user_id */
572
+ voice_user_id: string;
573
573
  }
574
574
  /** Voice Joined event */
575
575
  export interface VoiceJoinedEvent {
@@ -1075,7 +1075,7 @@ export declare const Envelope: {
1075
1075
  id?: string | undefined;
1076
1076
  clan_id?: string | undefined;
1077
1077
  voice_channel_id?: string | undefined;
1078
- last_participant?: boolean | undefined;
1078
+ voice_user_id?: string | undefined;
1079
1079
  } | undefined;
1080
1080
  channel_created_event?: {
1081
1081
  clan_id?: string | undefined;
@@ -2210,12 +2210,12 @@ export declare const Envelope: {
2210
2210
  id?: string | undefined;
2211
2211
  clan_id?: string | undefined;
2212
2212
  voice_channel_id?: string | undefined;
2213
- last_participant?: boolean | undefined;
2213
+ voice_user_id?: string | undefined;
2214
2214
  } & {
2215
2215
  id?: string | undefined;
2216
2216
  clan_id?: string | undefined;
2217
2217
  voice_channel_id?: string | undefined;
2218
- last_participant?: boolean | undefined;
2218
+ voice_user_id?: string | undefined;
2219
2219
  } & { [K_86 in Exclude<keyof I["voice_leaved_event"], keyof VoiceLeavedEvent>]: never; }) | undefined;
2220
2220
  channel_created_event?: ({
2221
2221
  clan_id?: string | undefined;
@@ -2646,7 +2646,7 @@ export declare const Envelope: {
2646
2646
  id?: string | undefined;
2647
2647
  clan_id?: string | undefined;
2648
2648
  voice_channel_id?: string | undefined;
2649
- last_participant?: boolean | undefined;
2649
+ voice_user_id?: string | undefined;
2650
2650
  } | undefined;
2651
2651
  channel_created_event?: {
2652
2652
  clan_id?: string | undefined;
@@ -3781,12 +3781,12 @@ export declare const Envelope: {
3781
3781
  id?: string | undefined;
3782
3782
  clan_id?: string | undefined;
3783
3783
  voice_channel_id?: string | undefined;
3784
- last_participant?: boolean | undefined;
3784
+ voice_user_id?: string | undefined;
3785
3785
  } & {
3786
3786
  id?: string | undefined;
3787
3787
  clan_id?: string | undefined;
3788
3788
  voice_channel_id?: string | undefined;
3789
- last_participant?: boolean | undefined;
3789
+ voice_user_id?: string | undefined;
3790
3790
  } & { [K_176 in Exclude<keyof I_1["voice_leaved_event"], keyof VoiceLeavedEvent>]: never; }) | undefined;
3791
3791
  channel_created_event?: ({
3792
3792
  clan_id?: string | undefined;
@@ -6185,23 +6185,23 @@ export declare const VoiceLeavedEvent: {
6185
6185
  id?: string | undefined;
6186
6186
  clan_id?: string | undefined;
6187
6187
  voice_channel_id?: string | undefined;
6188
- last_participant?: boolean | undefined;
6188
+ voice_user_id?: string | undefined;
6189
6189
  } & {
6190
6190
  id?: string | undefined;
6191
6191
  clan_id?: string | undefined;
6192
6192
  voice_channel_id?: string | undefined;
6193
- last_participant?: boolean | undefined;
6193
+ voice_user_id?: string | undefined;
6194
6194
  } & { [K in Exclude<keyof I, keyof VoiceLeavedEvent>]: never; }>(base?: I | undefined): VoiceLeavedEvent;
6195
6195
  fromPartial<I_1 extends {
6196
6196
  id?: string | undefined;
6197
6197
  clan_id?: string | undefined;
6198
6198
  voice_channel_id?: string | undefined;
6199
- last_participant?: boolean | undefined;
6199
+ voice_user_id?: string | undefined;
6200
6200
  } & {
6201
6201
  id?: string | undefined;
6202
6202
  clan_id?: string | undefined;
6203
6203
  voice_channel_id?: string | undefined;
6204
- last_participant?: boolean | undefined;
6204
+ voice_user_id?: string | undefined;
6205
6205
  } & { [K_1 in Exclude<keyof I_1, keyof VoiceLeavedEvent>]: never; }>(object: I_1): VoiceLeavedEvent;
6206
6206
  };
6207
6207
  export declare const VoiceJoinedEvent: {
@@ -6081,7 +6081,7 @@ var MessageReactionEvent = {
6081
6081
  }
6082
6082
  };
6083
6083
  function createBaseVoiceLeavedEvent() {
6084
- return { id: "", clan_id: "", voice_channel_id: "", last_participant: false };
6084
+ return { id: "", clan_id: "", voice_channel_id: "", voice_user_id: "" };
6085
6085
  }
6086
6086
  var VoiceLeavedEvent = {
6087
6087
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -6094,8 +6094,8 @@ var VoiceLeavedEvent = {
6094
6094
  if (message.voice_channel_id !== "") {
6095
6095
  writer.uint32(26).string(message.voice_channel_id);
6096
6096
  }
6097
- if (message.last_participant === true) {
6098
- writer.uint32(32).bool(message.last_participant);
6097
+ if (message.voice_user_id !== "") {
6098
+ writer.uint32(34).string(message.voice_user_id);
6099
6099
  }
6100
6100
  return writer;
6101
6101
  },
@@ -6116,7 +6116,7 @@ var VoiceLeavedEvent = {
6116
6116
  message.voice_channel_id = reader.string();
6117
6117
  break;
6118
6118
  case 4:
6119
- message.last_participant = reader.bool();
6119
+ message.voice_user_id = reader.string();
6120
6120
  break;
6121
6121
  default:
6122
6122
  reader.skipType(tag & 7);
@@ -6130,7 +6130,7 @@ var VoiceLeavedEvent = {
6130
6130
  id: isSet4(object.id) ? String(object.id) : "",
6131
6131
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6132
6132
  voice_channel_id: isSet4(object.voice_channel_id) ? String(object.voice_channel_id) : "",
6133
- last_participant: isSet4(object.last_participant) ? Boolean(object.last_participant) : false
6133
+ voice_user_id: isSet4(object.voice_user_id) ? String(object.voice_user_id) : ""
6134
6134
  };
6135
6135
  },
6136
6136
  toJSON(message) {
@@ -6138,7 +6138,7 @@ var VoiceLeavedEvent = {
6138
6138
  message.id !== void 0 && (obj.id = message.id);
6139
6139
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6140
6140
  message.voice_channel_id !== void 0 && (obj.voice_channel_id = message.voice_channel_id);
6141
- message.last_participant !== void 0 && (obj.last_participant = message.last_participant);
6141
+ message.voice_user_id !== void 0 && (obj.voice_user_id = message.voice_user_id);
6142
6142
  return obj;
6143
6143
  },
6144
6144
  create(base) {
@@ -6150,7 +6150,7 @@ var VoiceLeavedEvent = {
6150
6150
  message.id = (_a = object.id) != null ? _a : "";
6151
6151
  message.clan_id = (_b = object.clan_id) != null ? _b : "";
6152
6152
  message.voice_channel_id = (_c = object.voice_channel_id) != null ? _c : "";
6153
- message.last_participant = (_d = object.last_participant) != null ? _d : false;
6153
+ message.voice_user_id = (_d = object.voice_user_id) != null ? _d : "";
6154
6154
  return message;
6155
6155
  }
6156
6156
  };
@@ -6068,7 +6068,7 @@ var MessageReactionEvent = {
6068
6068
  }
6069
6069
  };
6070
6070
  function createBaseVoiceLeavedEvent() {
6071
- return { id: "", clan_id: "", voice_channel_id: "", last_participant: false };
6071
+ return { id: "", clan_id: "", voice_channel_id: "", voice_user_id: "" };
6072
6072
  }
6073
6073
  var VoiceLeavedEvent = {
6074
6074
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -6081,8 +6081,8 @@ var VoiceLeavedEvent = {
6081
6081
  if (message.voice_channel_id !== "") {
6082
6082
  writer.uint32(26).string(message.voice_channel_id);
6083
6083
  }
6084
- if (message.last_participant === true) {
6085
- writer.uint32(32).bool(message.last_participant);
6084
+ if (message.voice_user_id !== "") {
6085
+ writer.uint32(34).string(message.voice_user_id);
6086
6086
  }
6087
6087
  return writer;
6088
6088
  },
@@ -6103,7 +6103,7 @@ var VoiceLeavedEvent = {
6103
6103
  message.voice_channel_id = reader.string();
6104
6104
  break;
6105
6105
  case 4:
6106
- message.last_participant = reader.bool();
6106
+ message.voice_user_id = reader.string();
6107
6107
  break;
6108
6108
  default:
6109
6109
  reader.skipType(tag & 7);
@@ -6117,7 +6117,7 @@ var VoiceLeavedEvent = {
6117
6117
  id: isSet4(object.id) ? String(object.id) : "",
6118
6118
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6119
6119
  voice_channel_id: isSet4(object.voice_channel_id) ? String(object.voice_channel_id) : "",
6120
- last_participant: isSet4(object.last_participant) ? Boolean(object.last_participant) : false
6120
+ voice_user_id: isSet4(object.voice_user_id) ? String(object.voice_user_id) : ""
6121
6121
  };
6122
6122
  },
6123
6123
  toJSON(message) {
@@ -6125,7 +6125,7 @@ var VoiceLeavedEvent = {
6125
6125
  message.id !== void 0 && (obj.id = message.id);
6126
6126
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6127
6127
  message.voice_channel_id !== void 0 && (obj.voice_channel_id = message.voice_channel_id);
6128
- message.last_participant !== void 0 && (obj.last_participant = message.last_participant);
6128
+ message.voice_user_id !== void 0 && (obj.voice_user_id = message.voice_user_id);
6129
6129
  return obj;
6130
6130
  },
6131
6131
  create(base) {
@@ -6137,7 +6137,7 @@ var VoiceLeavedEvent = {
6137
6137
  message.id = (_a = object.id) != null ? _a : "";
6138
6138
  message.clan_id = (_b = object.clan_id) != null ? _b : "";
6139
6139
  message.voice_channel_id = (_c = object.voice_channel_id) != null ? _c : "";
6140
- message.last_participant = (_d = object.last_participant) != null ? _d : false;
6140
+ message.voice_user_id = (_d = object.voice_user_id) != null ? _d : "";
6141
6141
  return message;
6142
6142
  }
6143
6143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.4.12",
3
+ "version": "1.4.14",
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",