mezon-sdk 2.7.81 → 2.7.82

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.
Files changed (37) hide show
  1. package/dist/cjs/api/api.d.ts +368 -36
  2. package/dist/cjs/api/api.js +459 -64
  3. package/dist/cjs/api/api.js.map +1 -1
  4. package/dist/cjs/google/protobuf/struct.js +1 -1
  5. package/dist/cjs/google/protobuf/timestamp.js +1 -1
  6. package/dist/cjs/google/protobuf/wrappers.js +1 -1
  7. package/dist/cjs/interfaces/client.d.ts +1 -1
  8. package/dist/cjs/interfaces/socket.d.ts +4 -4
  9. package/dist/cjs/mezon-client/message_manager.d.ts +1 -1
  10. package/dist/cjs/mezon-client/message_manager.js +2 -3
  11. package/dist/cjs/mezon-client/message_manager.js.map +1 -1
  12. package/dist/cjs/mezon-client/mezon_client.d.ts +1 -1
  13. package/dist/cjs/mezon-client/mezon_client.js +2 -2
  14. package/dist/cjs/mezon-client/mezon_client.js.map +1 -1
  15. package/dist/cjs/rtapi/realtime.d.ts +546 -206
  16. package/dist/cjs/rtapi/realtime.js +238 -38
  17. package/dist/cjs/rtapi/realtime.js.map +1 -1
  18. package/dist/esm/api/api.d.ts +368 -36
  19. package/dist/esm/api/api.js +436 -46
  20. package/dist/esm/api/api.js.map +1 -1
  21. package/dist/esm/google/protobuf/struct.js +1 -1
  22. package/dist/esm/google/protobuf/timestamp.js +1 -1
  23. package/dist/esm/google/protobuf/wrappers.js +1 -1
  24. package/dist/esm/interfaces/client.d.ts +1 -1
  25. package/dist/esm/interfaces/socket.d.ts +4 -4
  26. package/dist/esm/mezon-client/message_manager.d.ts +1 -1
  27. package/dist/esm/mezon-client/message_manager.js +2 -3
  28. package/dist/esm/mezon-client/message_manager.js.map +1 -1
  29. package/dist/esm/mezon-client/mezon_client.d.ts +1 -1
  30. package/dist/esm/mezon-client/mezon_client.js +2 -2
  31. package/dist/esm/mezon-client/mezon_client.js.map +1 -1
  32. package/dist/esm/rtapi/realtime.d.ts +546 -206
  33. package/dist/esm/rtapi/realtime.js +231 -32
  34. package/dist/esm/rtapi/realtime.js.map +1 -1
  35. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +1 -1
@@ -1,10 +1,9 @@
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 v5.28.3
4
+ // protoc v4.25.2
5
5
  // source: rtapi/realtime.proto
6
6
  /* eslint-disable */
7
- import Long from "long";
8
7
  import _m0 from "protobufjs/minimal";
9
8
  import { ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, CreateEventRequest, GiveCoffeeEvent, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, NotificationUserChannel, PermissionUpdate, Role, Rpc, TokenSentEvent, UserActivity, Webhook, } from "../api/api";
10
9
  import { Timestamp } from "../google/protobuf/timestamp";
@@ -163,6 +162,7 @@ function createBaseEnvelope() {
163
162
  join_channel_app_data: undefined,
164
163
  canvas_event: undefined,
165
164
  unpin_message_event: undefined,
165
+ category_event: undefined,
166
166
  };
167
167
  }
168
168
  export const Envelope = {
@@ -392,6 +392,9 @@ export const Envelope = {
392
392
  if (message.unpin_message_event !== undefined) {
393
393
  UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
394
394
  }
395
+ if (message.category_event !== undefined) {
396
+ CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
397
+ }
395
398
  return writer;
396
399
  },
397
400
  decode(input, length) {
@@ -851,6 +854,12 @@ export const Envelope = {
851
854
  }
852
855
  message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
853
856
  continue;
857
+ case 76:
858
+ if (tag !== 610) {
859
+ break;
860
+ }
861
+ message.category_event = CategoryEvent.decode(reader, reader.uint32());
862
+ continue;
854
863
  }
855
864
  if ((tag & 7) === 4 || tag === 0) {
856
865
  break;
@@ -1034,6 +1043,7 @@ export const Envelope = {
1034
1043
  unpin_message_event: isSet(object.unpin_message_event)
1035
1044
  ? UnpinMessageEvent.fromJSON(object.unpin_message_event)
1036
1045
  : undefined,
1046
+ category_event: isSet(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : undefined,
1037
1047
  };
1038
1048
  },
1039
1049
  toJSON(message) {
@@ -1263,6 +1273,9 @@ export const Envelope = {
1263
1273
  if (message.unpin_message_event !== undefined) {
1264
1274
  obj.unpin_message_event = UnpinMessageEvent.toJSON(message.unpin_message_event);
1265
1275
  }
1276
+ if (message.category_event !== undefined) {
1277
+ obj.category_event = CategoryEvent.toJSON(message.category_event);
1278
+ }
1266
1279
  return obj;
1267
1280
  },
1268
1281
  create(base) {
@@ -1510,6 +1523,9 @@ export const Envelope = {
1510
1523
  message.unpin_message_event = (object.unpin_message_event !== undefined && object.unpin_message_event !== null)
1511
1524
  ? UnpinMessageEvent.fromPartial(object.unpin_message_event)
1512
1525
  : undefined;
1526
+ message.category_event = (object.category_event !== undefined && object.category_event !== null)
1527
+ ? CategoryEvent.fromPartial(object.category_event)
1528
+ : undefined;
1513
1529
  return message;
1514
1530
  },
1515
1531
  };
@@ -4681,7 +4697,7 @@ export const LastPinMessageEvent = {
4681
4697
  },
4682
4698
  };
4683
4699
  function createBaseLastSeenMessageEvent() {
4684
- return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
4700
+ return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0, badge_count: 0 };
4685
4701
  }
4686
4702
  export const LastSeenMessageEvent = {
4687
4703
  encode(message, writer = _m0.Writer.create()) {
@@ -4700,6 +4716,9 @@ export const LastSeenMessageEvent = {
4700
4716
  if (message.timestamp_seconds !== 0) {
4701
4717
  writer.uint32(40).uint32(message.timestamp_seconds);
4702
4718
  }
4719
+ if (message.badge_count !== 0) {
4720
+ writer.uint32(48).int32(message.badge_count);
4721
+ }
4703
4722
  return writer;
4704
4723
  },
4705
4724
  decode(input, length) {
@@ -4739,6 +4758,12 @@ export const LastSeenMessageEvent = {
4739
4758
  }
4740
4759
  message.timestamp_seconds = reader.uint32();
4741
4760
  continue;
4761
+ case 6:
4762
+ if (tag !== 48) {
4763
+ break;
4764
+ }
4765
+ message.badge_count = reader.int32();
4766
+ continue;
4742
4767
  }
4743
4768
  if ((tag & 7) === 4 || tag === 0) {
4744
4769
  break;
@@ -4754,6 +4779,7 @@ export const LastSeenMessageEvent = {
4754
4779
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
4755
4780
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
4756
4781
  timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
4782
+ badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
4757
4783
  };
4758
4784
  },
4759
4785
  toJSON(message) {
@@ -4773,6 +4799,9 @@ export const LastSeenMessageEvent = {
4773
4799
  if (message.timestamp_seconds !== 0) {
4774
4800
  obj.timestamp_seconds = Math.round(message.timestamp_seconds);
4775
4801
  }
4802
+ if (message.badge_count !== 0) {
4803
+ obj.badge_count = Math.round(message.badge_count);
4804
+ }
4776
4805
  return obj;
4777
4806
  },
4778
4807
  create(base) {
@@ -4785,6 +4814,7 @@ export const LastSeenMessageEvent = {
4785
4814
  message.message_id = object.message_id ?? "";
4786
4815
  message.mode = object.mode ?? 0;
4787
4816
  message.timestamp_seconds = object.timestamp_seconds ?? 0;
4817
+ message.badge_count = object.badge_count ?? 0;
4788
4818
  return message;
4789
4819
  },
4790
4820
  };
@@ -5913,6 +5943,114 @@ export const ChannelCreatedEvent = {
5913
5943
  return message;
5914
5944
  },
5915
5945
  };
5946
+ function createBaseCategoryEvent() {
5947
+ return { creator_id: "", clan_id: "", category_name: "", id: "", status: 0 };
5948
+ }
5949
+ export const CategoryEvent = {
5950
+ encode(message, writer = _m0.Writer.create()) {
5951
+ if (message.creator_id !== "") {
5952
+ writer.uint32(10).string(message.creator_id);
5953
+ }
5954
+ if (message.clan_id !== "") {
5955
+ writer.uint32(18).string(message.clan_id);
5956
+ }
5957
+ if (message.category_name !== "") {
5958
+ writer.uint32(26).string(message.category_name);
5959
+ }
5960
+ if (message.id !== "") {
5961
+ writer.uint32(34).string(message.id);
5962
+ }
5963
+ if (message.status !== 0) {
5964
+ writer.uint32(40).int32(message.status);
5965
+ }
5966
+ return writer;
5967
+ },
5968
+ decode(input, length) {
5969
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5970
+ let end = length === undefined ? reader.len : reader.pos + length;
5971
+ const message = createBaseCategoryEvent();
5972
+ while (reader.pos < end) {
5973
+ const tag = reader.uint32();
5974
+ switch (tag >>> 3) {
5975
+ case 1:
5976
+ if (tag !== 10) {
5977
+ break;
5978
+ }
5979
+ message.creator_id = reader.string();
5980
+ continue;
5981
+ case 2:
5982
+ if (tag !== 18) {
5983
+ break;
5984
+ }
5985
+ message.clan_id = reader.string();
5986
+ continue;
5987
+ case 3:
5988
+ if (tag !== 26) {
5989
+ break;
5990
+ }
5991
+ message.category_name = reader.string();
5992
+ continue;
5993
+ case 4:
5994
+ if (tag !== 34) {
5995
+ break;
5996
+ }
5997
+ message.id = reader.string();
5998
+ continue;
5999
+ case 5:
6000
+ if (tag !== 40) {
6001
+ break;
6002
+ }
6003
+ message.status = reader.int32();
6004
+ continue;
6005
+ }
6006
+ if ((tag & 7) === 4 || tag === 0) {
6007
+ break;
6008
+ }
6009
+ reader.skipType(tag & 7);
6010
+ }
6011
+ return message;
6012
+ },
6013
+ fromJSON(object) {
6014
+ return {
6015
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
6016
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
6017
+ category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
6018
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
6019
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
6020
+ };
6021
+ },
6022
+ toJSON(message) {
6023
+ const obj = {};
6024
+ if (message.creator_id !== "") {
6025
+ obj.creator_id = message.creator_id;
6026
+ }
6027
+ if (message.clan_id !== "") {
6028
+ obj.clan_id = message.clan_id;
6029
+ }
6030
+ if (message.category_name !== "") {
6031
+ obj.category_name = message.category_name;
6032
+ }
6033
+ if (message.id !== "") {
6034
+ obj.id = message.id;
6035
+ }
6036
+ if (message.status !== 0) {
6037
+ obj.status = Math.round(message.status);
6038
+ }
6039
+ return obj;
6040
+ },
6041
+ create(base) {
6042
+ return CategoryEvent.fromPartial(base ?? {});
6043
+ },
6044
+ fromPartial(object) {
6045
+ const message = createBaseCategoryEvent();
6046
+ message.creator_id = object.creator_id ?? "";
6047
+ message.clan_id = object.clan_id ?? "";
6048
+ message.category_name = object.category_name ?? "";
6049
+ message.id = object.id ?? "";
6050
+ message.status = object.status ?? 0;
6051
+ return message;
6052
+ },
6053
+ };
5916
6054
  function createBaseRoleEvent() {
5917
6055
  return {
5918
6056
  role: undefined,
@@ -6561,6 +6699,7 @@ function createBaseChannelUpdatedEvent() {
6561
6699
  e2ee: 0,
6562
6700
  topic: "",
6563
6701
  age_restricted: 0,
6702
+ active: 0,
6564
6703
  };
6565
6704
  }
6566
6705
  export const ChannelUpdatedEvent = {
@@ -6610,6 +6749,9 @@ export const ChannelUpdatedEvent = {
6610
6749
  if (message.age_restricted !== 0) {
6611
6750
  writer.uint32(120).int32(message.age_restricted);
6612
6751
  }
6752
+ if (message.active !== 0) {
6753
+ writer.uint32(128).int32(message.active);
6754
+ }
6613
6755
  return writer;
6614
6756
  },
6615
6757
  decode(input, length) {
@@ -6709,6 +6851,12 @@ export const ChannelUpdatedEvent = {
6709
6851
  }
6710
6852
  message.age_restricted = reader.int32();
6711
6853
  continue;
6854
+ case 16:
6855
+ if (tag !== 128) {
6856
+ break;
6857
+ }
6858
+ message.active = reader.int32();
6859
+ continue;
6712
6860
  }
6713
6861
  if ((tag & 7) === 4 || tag === 0) {
6714
6862
  break;
@@ -6734,6 +6882,7 @@ export const ChannelUpdatedEvent = {
6734
6882
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
6735
6883
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
6736
6884
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
6885
+ active: isSet(object.active) ? globalThis.Number(object.active) : 0,
6737
6886
  };
6738
6887
  },
6739
6888
  toJSON(message) {
@@ -6783,6 +6932,9 @@ export const ChannelUpdatedEvent = {
6783
6932
  if (message.age_restricted !== 0) {
6784
6933
  obj.age_restricted = Math.round(message.age_restricted);
6785
6934
  }
6935
+ if (message.active !== 0) {
6936
+ obj.active = Math.round(message.active);
6937
+ }
6786
6938
  return obj;
6787
6939
  },
6788
6940
  create(base) {
@@ -6805,6 +6957,7 @@ export const ChannelUpdatedEvent = {
6805
6957
  message.e2ee = object.e2ee ?? 0;
6806
6958
  message.topic = object.topic ?? "";
6807
6959
  message.age_restricted = object.age_restricted ?? 0;
6960
+ message.active = object.active ?? 0;
6808
6961
  return message;
6809
6962
  },
6810
6963
  };
@@ -7759,7 +7912,16 @@ export const UserClanRemoved = {
7759
7912
  },
7760
7913
  };
7761
7914
  function createBaseClanUpdatedEvent() {
7762
- return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
7915
+ return {
7916
+ clan_id: "",
7917
+ clan_name: "",
7918
+ logo: "",
7919
+ banner: "",
7920
+ status: 0,
7921
+ is_onboarding: false,
7922
+ welcome_channel_id: "",
7923
+ onboarding_banner: "",
7924
+ };
7763
7925
  }
7764
7926
  export const ClanUpdatedEvent = {
7765
7927
  encode(message, writer = _m0.Writer.create()) {
@@ -7784,6 +7946,9 @@ export const ClanUpdatedEvent = {
7784
7946
  if (message.welcome_channel_id !== "") {
7785
7947
  writer.uint32(58).string(message.welcome_channel_id);
7786
7948
  }
7949
+ if (message.onboarding_banner !== "") {
7950
+ writer.uint32(66).string(message.onboarding_banner);
7951
+ }
7787
7952
  return writer;
7788
7953
  },
7789
7954
  decode(input, length) {
@@ -7835,6 +8000,12 @@ export const ClanUpdatedEvent = {
7835
8000
  }
7836
8001
  message.welcome_channel_id = reader.string();
7837
8002
  continue;
8003
+ case 8:
8004
+ if (tag !== 66) {
8005
+ break;
8006
+ }
8007
+ message.onboarding_banner = reader.string();
8008
+ continue;
7838
8009
  }
7839
8010
  if ((tag & 7) === 4 || tag === 0) {
7840
8011
  break;
@@ -7852,6 +8023,7 @@ export const ClanUpdatedEvent = {
7852
8023
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
7853
8024
  is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
7854
8025
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
8026
+ onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
7855
8027
  };
7856
8028
  },
7857
8029
  toJSON(message) {
@@ -7877,6 +8049,9 @@ export const ClanUpdatedEvent = {
7877
8049
  if (message.welcome_channel_id !== "") {
7878
8050
  obj.welcome_channel_id = message.welcome_channel_id;
7879
8051
  }
8052
+ if (message.onboarding_banner !== "") {
8053
+ obj.onboarding_banner = message.onboarding_banner;
8054
+ }
7880
8055
  return obj;
7881
8056
  },
7882
8057
  create(base) {
@@ -7891,6 +8066,7 @@ export const ClanUpdatedEvent = {
7891
8066
  message.status = object.status ?? 0;
7892
8067
  message.is_onboarding = object.is_onboarding ?? false;
7893
8068
  message.welcome_channel_id = object.welcome_channel_id ?? "";
8069
+ message.onboarding_banner = object.onboarding_banner ?? "";
7894
8070
  return message;
7895
8071
  },
7896
8072
  };
@@ -8146,6 +8322,9 @@ function createBaseUserProfileRedis() {
8146
8322
  metadata: "",
8147
8323
  is_disabled: false,
8148
8324
  joined_clans: [],
8325
+ pubkey: "",
8326
+ mezon_id: "",
8327
+ app_token: "",
8149
8328
  };
8150
8329
  }
8151
8330
  export const UserProfileRedis = {
@@ -8183,11 +8362,18 @@ export const UserProfileRedis = {
8183
8362
  if (message.is_disabled !== false) {
8184
8363
  writer.uint32(88).bool(message.is_disabled);
8185
8364
  }
8186
- writer.uint32(98).fork();
8187
8365
  for (const v of message.joined_clans) {
8188
- writer.int64(v);
8366
+ writer.uint32(98).string(v);
8367
+ }
8368
+ if (message.pubkey !== "") {
8369
+ writer.uint32(106).string(message.pubkey);
8370
+ }
8371
+ if (message.mezon_id !== "") {
8372
+ writer.uint32(114).string(message.mezon_id);
8373
+ }
8374
+ if (message.app_token !== "") {
8375
+ writer.uint32(122).string(message.app_token);
8189
8376
  }
8190
- writer.ldelim();
8191
8377
  return writer;
8192
8378
  },
8193
8379
  decode(input, length) {
@@ -8264,18 +8450,29 @@ export const UserProfileRedis = {
8264
8450
  message.is_disabled = reader.bool();
8265
8451
  continue;
8266
8452
  case 12:
8267
- if (tag === 96) {
8268
- message.joined_clans.push(longToNumber(reader.int64()));
8269
- continue;
8453
+ if (tag !== 98) {
8454
+ break;
8270
8455
  }
8271
- if (tag === 98) {
8272
- const end2 = reader.uint32() + reader.pos;
8273
- while (reader.pos < end2) {
8274
- message.joined_clans.push(longToNumber(reader.int64()));
8275
- }
8276
- continue;
8456
+ message.joined_clans.push(reader.string());
8457
+ continue;
8458
+ case 13:
8459
+ if (tag !== 106) {
8460
+ break;
8461
+ }
8462
+ message.pubkey = reader.string();
8463
+ continue;
8464
+ case 14:
8465
+ if (tag !== 114) {
8466
+ break;
8467
+ }
8468
+ message.mezon_id = reader.string();
8469
+ continue;
8470
+ case 15:
8471
+ if (tag !== 122) {
8472
+ break;
8277
8473
  }
8278
- break;
8474
+ message.app_token = reader.string();
8475
+ continue;
8279
8476
  }
8280
8477
  if ((tag & 7) === 4 || tag === 0) {
8281
8478
  break;
@@ -8300,8 +8497,11 @@ export const UserProfileRedis = {
8300
8497
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
8301
8498
  is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
8302
8499
  joined_clans: globalThis.Array.isArray(object?.joined_clans)
8303
- ? object.joined_clans.map((e) => globalThis.Number(e))
8500
+ ? object.joined_clans.map((e) => globalThis.String(e))
8304
8501
  : [],
8502
+ pubkey: isSet(object.pubkey) ? globalThis.String(object.pubkey) : "",
8503
+ mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
8504
+ app_token: isSet(object.app_token) ? globalThis.String(object.app_token) : "",
8305
8505
  };
8306
8506
  },
8307
8507
  toJSON(message) {
@@ -8340,7 +8540,16 @@ export const UserProfileRedis = {
8340
8540
  obj.is_disabled = message.is_disabled;
8341
8541
  }
8342
8542
  if (message.joined_clans?.length) {
8343
- obj.joined_clans = message.joined_clans.map((e) => Math.round(e));
8543
+ obj.joined_clans = message.joined_clans;
8544
+ }
8545
+ if (message.pubkey !== "") {
8546
+ obj.pubkey = message.pubkey;
8547
+ }
8548
+ if (message.mezon_id !== "") {
8549
+ obj.mezon_id = message.mezon_id;
8550
+ }
8551
+ if (message.app_token !== "") {
8552
+ obj.app_token = message.app_token;
8344
8553
  }
8345
8554
  return obj;
8346
8555
  },
@@ -8361,6 +8570,9 @@ export const UserProfileRedis = {
8361
8570
  message.metadata = object.metadata ?? "";
8362
8571
  message.is_disabled = object.is_disabled ?? false;
8363
8572
  message.joined_clans = object.joined_clans?.map((e) => e) || [];
8573
+ message.pubkey = object.pubkey ?? "";
8574
+ message.mezon_id = object.mezon_id ?? "";
8575
+ message.app_token = object.app_token ?? "";
8364
8576
  return message;
8365
8577
  },
8366
8578
  };
@@ -9945,19 +10157,6 @@ function fromJsonTimestamp(o) {
9945
10157
  return fromTimestamp(Timestamp.fromJSON(o));
9946
10158
  }
9947
10159
  }
9948
- function longToNumber(long) {
9949
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
9950
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
9951
- }
9952
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
9953
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
9954
- }
9955
- return long.toNumber();
9956
- }
9957
- if (_m0.util.Long !== Long) {
9958
- _m0.util.Long = Long;
9959
- _m0.configure();
9960
- }
9961
10160
  function isObject(value) {
9962
10161
  return typeof value === "object" && value !== null;
9963
10162
  }