mezon-js-protobuf 1.6.33 → 1.6.34

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
- // 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: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -318,6 +318,8 @@ export interface ChannelMessageSend {
318
318
  avatar: string;
319
319
  /** is public */
320
320
  is_public: boolean;
321
+ /** code */
322
+ code: number;
321
323
  }
322
324
  /** Update a message previously sent to a realtime channel. */
323
325
  export interface ChannelMessageUpdate {
@@ -1067,6 +1069,7 @@ export declare const Envelope: {
1067
1069
  mention_everyone?: boolean | undefined;
1068
1070
  avatar?: string | undefined;
1069
1071
  is_public?: boolean | undefined;
1072
+ code?: number | undefined;
1070
1073
  } | undefined;
1071
1074
  channel_message_update?: {
1072
1075
  clan_id?: string | undefined;
@@ -1858,6 +1861,7 @@ export declare const Envelope: {
1858
1861
  mention_everyone?: boolean | undefined;
1859
1862
  avatar?: string | undefined;
1860
1863
  is_public?: boolean | undefined;
1864
+ code?: number | undefined;
1861
1865
  } & {
1862
1866
  clan_id?: string | undefined;
1863
1867
  channel_id?: string | undefined;
@@ -1978,6 +1982,7 @@ export declare const Envelope: {
1978
1982
  mention_everyone?: boolean | undefined;
1979
1983
  avatar?: string | undefined;
1980
1984
  is_public?: boolean | undefined;
1985
+ code?: number | undefined;
1981
1986
  } & { [K_15 in Exclude<keyof I["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
1982
1987
  channel_message_update?: ({
1983
1988
  clan_id?: string | undefined;
@@ -3678,6 +3683,7 @@ export declare const Envelope: {
3678
3683
  mention_everyone?: boolean | undefined;
3679
3684
  avatar?: string | undefined;
3680
3685
  is_public?: boolean | undefined;
3686
+ code?: number | undefined;
3681
3687
  } | undefined;
3682
3688
  channel_message_update?: {
3683
3689
  clan_id?: string | undefined;
@@ -4469,6 +4475,7 @@ export declare const Envelope: {
4469
4475
  mention_everyone?: boolean | undefined;
4470
4476
  avatar?: string | undefined;
4471
4477
  is_public?: boolean | undefined;
4478
+ code?: number | undefined;
4472
4479
  } & {
4473
4480
  clan_id?: string | undefined;
4474
4481
  channel_id?: string | undefined;
@@ -4589,6 +4596,7 @@ export declare const Envelope: {
4589
4596
  mention_everyone?: boolean | undefined;
4590
4597
  avatar?: string | undefined;
4591
4598
  is_public?: boolean | undefined;
4599
+ code?: number | undefined;
4592
4600
  } & { [K_142 in Exclude<keyof I_1["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
4593
4601
  channel_message_update?: ({
4594
4602
  clan_id?: string | undefined;
@@ -6931,6 +6939,7 @@ export declare const ChannelMessageSend: {
6931
6939
  mention_everyone?: boolean | undefined;
6932
6940
  avatar?: string | undefined;
6933
6941
  is_public?: boolean | undefined;
6942
+ code?: number | undefined;
6934
6943
  } & {
6935
6944
  clan_id?: string | undefined;
6936
6945
  channel_id?: string | undefined;
@@ -7051,6 +7060,7 @@ export declare const ChannelMessageSend: {
7051
7060
  mention_everyone?: boolean | undefined;
7052
7061
  avatar?: string | undefined;
7053
7062
  is_public?: boolean | undefined;
7063
+ code?: number | undefined;
7054
7064
  } & { [K_6 in Exclude<keyof I, keyof ChannelMessageSend>]: never; }>(base?: I | undefined): ChannelMessageSend;
7055
7065
  fromPartial<I_1 extends {
7056
7066
  clan_id?: string | undefined;
@@ -7091,6 +7101,7 @@ export declare const ChannelMessageSend: {
7091
7101
  mention_everyone?: boolean | undefined;
7092
7102
  avatar?: string | undefined;
7093
7103
  is_public?: boolean | undefined;
7104
+ code?: number | undefined;
7094
7105
  } & {
7095
7106
  clan_id?: string | undefined;
7096
7107
  channel_id?: string | undefined;
@@ -7211,6 +7222,7 @@ export declare const ChannelMessageSend: {
7211
7222
  mention_everyone?: boolean | undefined;
7212
7223
  avatar?: string | undefined;
7213
7224
  is_public?: boolean | undefined;
7225
+ code?: number | undefined;
7214
7226
  } & { [K_13 in Exclude<keyof I_1, keyof ChannelMessageSend>]: never; }>(object: I_1): ChannelMessageSend;
7215
7227
  };
7216
7228
  export declare const ChannelMessageUpdate: {
@@ -7315,7 +7315,8 @@ function createBaseChannelMessageSend() {
7315
7315
  anonymous_message: false,
7316
7316
  mention_everyone: false,
7317
7317
  avatar: "",
7318
- is_public: false
7318
+ is_public: false,
7319
+ code: 0
7319
7320
  };
7320
7321
  }
7321
7322
  var ChannelMessageSend = {
@@ -7353,6 +7354,9 @@ var ChannelMessageSend = {
7353
7354
  if (message.is_public !== false) {
7354
7355
  writer.uint32(88).bool(message.is_public);
7355
7356
  }
7357
+ if (message.code !== 0) {
7358
+ writer.uint32(96).int32(message.code);
7359
+ }
7356
7360
  return writer;
7357
7361
  },
7358
7362
  decode(input, length) {
@@ -7428,6 +7432,12 @@ var ChannelMessageSend = {
7428
7432
  }
7429
7433
  message.is_public = reader.bool();
7430
7434
  continue;
7435
+ case 12:
7436
+ if (tag !== 96) {
7437
+ break;
7438
+ }
7439
+ message.code = reader.int32();
7440
+ continue;
7431
7441
  }
7432
7442
  if ((tag & 7) === 4 || tag === 0) {
7433
7443
  break;
@@ -7448,7 +7458,8 @@ var ChannelMessageSend = {
7448
7458
  anonymous_message: isSet4(object.anonymous_message) ? globalThis.Boolean(object.anonymous_message) : false,
7449
7459
  mention_everyone: isSet4(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
7450
7460
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
7451
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
7461
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
7462
+ code: isSet4(object.code) ? globalThis.Number(object.code) : 0
7452
7463
  };
7453
7464
  },
7454
7465
  toJSON(message) {
@@ -7487,13 +7498,16 @@ var ChannelMessageSend = {
7487
7498
  if (message.is_public !== false) {
7488
7499
  obj.is_public = message.is_public;
7489
7500
  }
7501
+ if (message.code !== 0) {
7502
+ obj.code = Math.round(message.code);
7503
+ }
7490
7504
  return obj;
7491
7505
  },
7492
7506
  create(base) {
7493
7507
  return ChannelMessageSend.fromPartial(base != null ? base : {});
7494
7508
  },
7495
7509
  fromPartial(object) {
7496
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7510
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
7497
7511
  const message = createBaseChannelMessageSend();
7498
7512
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7499
7513
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -7506,6 +7520,7 @@ var ChannelMessageSend = {
7506
7520
  message.mention_everyone = (_i = object.mention_everyone) != null ? _i : false;
7507
7521
  message.avatar = (_j = object.avatar) != null ? _j : "";
7508
7522
  message.is_public = (_k = object.is_public) != null ? _k : false;
7523
+ message.code = (_l = object.code) != null ? _l : 0;
7509
7524
  return message;
7510
7525
  }
7511
7526
  };
@@ -7302,7 +7302,8 @@ function createBaseChannelMessageSend() {
7302
7302
  anonymous_message: false,
7303
7303
  mention_everyone: false,
7304
7304
  avatar: "",
7305
- is_public: false
7305
+ is_public: false,
7306
+ code: 0
7306
7307
  };
7307
7308
  }
7308
7309
  var ChannelMessageSend = {
@@ -7340,6 +7341,9 @@ var ChannelMessageSend = {
7340
7341
  if (message.is_public !== false) {
7341
7342
  writer.uint32(88).bool(message.is_public);
7342
7343
  }
7344
+ if (message.code !== 0) {
7345
+ writer.uint32(96).int32(message.code);
7346
+ }
7343
7347
  return writer;
7344
7348
  },
7345
7349
  decode(input, length) {
@@ -7415,6 +7419,12 @@ var ChannelMessageSend = {
7415
7419
  }
7416
7420
  message.is_public = reader.bool();
7417
7421
  continue;
7422
+ case 12:
7423
+ if (tag !== 96) {
7424
+ break;
7425
+ }
7426
+ message.code = reader.int32();
7427
+ continue;
7418
7428
  }
7419
7429
  if ((tag & 7) === 4 || tag === 0) {
7420
7430
  break;
@@ -7435,7 +7445,8 @@ var ChannelMessageSend = {
7435
7445
  anonymous_message: isSet4(object.anonymous_message) ? globalThis.Boolean(object.anonymous_message) : false,
7436
7446
  mention_everyone: isSet4(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
7437
7447
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
7438
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
7448
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
7449
+ code: isSet4(object.code) ? globalThis.Number(object.code) : 0
7439
7450
  };
7440
7451
  },
7441
7452
  toJSON(message) {
@@ -7474,13 +7485,16 @@ var ChannelMessageSend = {
7474
7485
  if (message.is_public !== false) {
7475
7486
  obj.is_public = message.is_public;
7476
7487
  }
7488
+ if (message.code !== 0) {
7489
+ obj.code = Math.round(message.code);
7490
+ }
7477
7491
  return obj;
7478
7492
  },
7479
7493
  create(base) {
7480
7494
  return ChannelMessageSend.fromPartial(base != null ? base : {});
7481
7495
  },
7482
7496
  fromPartial(object) {
7483
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7497
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
7484
7498
  const message = createBaseChannelMessageSend();
7485
7499
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7486
7500
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -7493,6 +7507,7 @@ var ChannelMessageSend = {
7493
7507
  message.mention_everyone = (_i = object.mention_everyone) != null ? _i : false;
7494
7508
  message.avatar = (_j = object.avatar) != null ? _j : "";
7495
7509
  message.is_public = (_k = object.is_public) != null ? _k : false;
7510
+ message.code = (_l = object.code) != null ? _l : 0;
7496
7511
  return message;
7497
7512
  }
7498
7513
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.33",
3
+ "version": "1.6.34",
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 */
@@ -499,6 +499,8 @@ export interface ChannelMessageSend {
499
499
  avatar: string;
500
500
  /** is public */
501
501
  is_public: boolean;
502
+ /** code */
503
+ code: number;
502
504
  }
503
505
 
504
506
  /** Update a message previously sent to a realtime channel. */
@@ -4216,6 +4218,7 @@ function createBaseChannelMessageSend(): ChannelMessageSend {
4216
4218
  mention_everyone: false,
4217
4219
  avatar: "",
4218
4220
  is_public: false,
4221
+ code: 0,
4219
4222
  };
4220
4223
  }
4221
4224
 
@@ -4254,6 +4257,9 @@ export const ChannelMessageSend = {
4254
4257
  if (message.is_public !== false) {
4255
4258
  writer.uint32(88).bool(message.is_public);
4256
4259
  }
4260
+ if (message.code !== 0) {
4261
+ writer.uint32(96).int32(message.code);
4262
+ }
4257
4263
  return writer;
4258
4264
  },
4259
4265
 
@@ -4341,6 +4347,13 @@ export const ChannelMessageSend = {
4341
4347
 
4342
4348
  message.is_public = reader.bool();
4343
4349
  continue;
4350
+ case 12:
4351
+ if (tag !== 96) {
4352
+ break;
4353
+ }
4354
+
4355
+ message.code = reader.int32();
4356
+ continue;
4344
4357
  }
4345
4358
  if ((tag & 7) === 4 || tag === 0) {
4346
4359
  break;
@@ -4369,6 +4382,7 @@ export const ChannelMessageSend = {
4369
4382
  mention_everyone: isSet(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
4370
4383
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
4371
4384
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
4385
+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,
4372
4386
  };
4373
4387
  },
4374
4388
 
@@ -4407,6 +4421,9 @@ export const ChannelMessageSend = {
4407
4421
  if (message.is_public !== false) {
4408
4422
  obj.is_public = message.is_public;
4409
4423
  }
4424
+ if (message.code !== 0) {
4425
+ obj.code = Math.round(message.code);
4426
+ }
4410
4427
  return obj;
4411
4428
  },
4412
4429
 
@@ -4426,6 +4443,7 @@ export const ChannelMessageSend = {
4426
4443
  message.mention_everyone = object.mention_everyone ?? false;
4427
4444
  message.avatar = object.avatar ?? "";
4428
4445
  message.is_public = object.is_public ?? false;
4446
+ message.code = object.code ?? 0;
4429
4447
  return message;
4430
4448
  },
4431
4449
  };