@dcl/protocol 1.0.0-16572701298.commit-25e60c0 → 1.0.0-16670787325.commit-554f0f2

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.
@@ -632,12 +632,21 @@ export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
632
632
  /** Community voice chat updates/events - 'started' and 'ended' status */
633
633
  export interface CommunityVoiceChatUpdate {
634
634
  communityId: string;
635
- voiceChatId: string;
636
635
  createdAt: number;
637
636
  /** 'started' or 'ended' */
638
637
  status: CommunityVoiceChatStatus;
639
638
  /** Only present when status is 'ended' */
640
639
  endedAt?: number | undefined;
640
+ /** Positions/coordinates associated with the community (world: false) */
641
+ positions: string[];
642
+ /** Whether the receiving user is a member of the community */
643
+ isMember: boolean;
644
+ /** Name of the community */
645
+ communityName: string;
646
+ /** Image/picture of the community */
647
+ communityImage?: string | undefined;
648
+ /** World names associated with the community (world: true) */
649
+ worlds: string[];
641
650
  }
642
651
  export declare namespace User {
643
652
  function encode(message: User, writer?: _m0.Writer): _m0.Writer;
@@ -7778,7 +7778,17 @@ var KickPlayerFromCommunityVoiceChatResponse_Ok;
7778
7778
  KickPlayerFromCommunityVoiceChatResponse_Ok.fromPartial = fromPartial;
7779
7779
  })(KickPlayerFromCommunityVoiceChatResponse_Ok || (exports.KickPlayerFromCommunityVoiceChatResponse_Ok = KickPlayerFromCommunityVoiceChatResponse_Ok = {}));
7780
7780
  function createBaseCommunityVoiceChatUpdate() {
7781
- return { communityId: "", voiceChatId: "", createdAt: 0, status: 0, endedAt: undefined };
7781
+ return {
7782
+ communityId: "",
7783
+ createdAt: 0,
7784
+ status: 0,
7785
+ endedAt: undefined,
7786
+ positions: [],
7787
+ isMember: false,
7788
+ communityName: "",
7789
+ communityImage: undefined,
7790
+ worlds: [],
7791
+ };
7782
7792
  }
7783
7793
  var CommunityVoiceChatUpdate;
7784
7794
  (function (CommunityVoiceChatUpdate) {
@@ -7786,17 +7796,29 @@ var CommunityVoiceChatUpdate;
7786
7796
  if (message.communityId !== "") {
7787
7797
  writer.uint32(10).string(message.communityId);
7788
7798
  }
7789
- if (message.voiceChatId !== "") {
7790
- writer.uint32(18).string(message.voiceChatId);
7791
- }
7792
7799
  if (message.createdAt !== 0) {
7793
- writer.uint32(24).int64(message.createdAt);
7800
+ writer.uint32(16).int64(message.createdAt);
7794
7801
  }
7795
7802
  if (message.status !== 0) {
7796
- writer.uint32(32).int32(message.status);
7803
+ writer.uint32(24).int32(message.status);
7797
7804
  }
7798
7805
  if (message.endedAt !== undefined) {
7799
- writer.uint32(40).int64(message.endedAt);
7806
+ writer.uint32(32).int64(message.endedAt);
7807
+ }
7808
+ for (const v of message.positions) {
7809
+ writer.uint32(42).string(v);
7810
+ }
7811
+ if (message.isMember === true) {
7812
+ writer.uint32(48).bool(message.isMember);
7813
+ }
7814
+ if (message.communityName !== "") {
7815
+ writer.uint32(58).string(message.communityName);
7816
+ }
7817
+ if (message.communityImage !== undefined) {
7818
+ writer.uint32(66).string(message.communityImage);
7819
+ }
7820
+ for (const v of message.worlds) {
7821
+ writer.uint32(74).string(v);
7800
7822
  }
7801
7823
  return writer;
7802
7824
  }
@@ -7815,28 +7837,52 @@ var CommunityVoiceChatUpdate;
7815
7837
  message.communityId = reader.string();
7816
7838
  continue;
7817
7839
  case 2:
7818
- if (tag !== 18) {
7840
+ if (tag !== 16) {
7819
7841
  break;
7820
7842
  }
7821
- message.voiceChatId = reader.string();
7843
+ message.createdAt = longToNumber(reader.int64());
7822
7844
  continue;
7823
7845
  case 3:
7824
7846
  if (tag !== 24) {
7825
7847
  break;
7826
7848
  }
7827
- message.createdAt = longToNumber(reader.int64());
7849
+ message.status = reader.int32();
7828
7850
  continue;
7829
7851
  case 4:
7830
7852
  if (tag !== 32) {
7831
7853
  break;
7832
7854
  }
7833
- message.status = reader.int32();
7855
+ message.endedAt = longToNumber(reader.int64());
7834
7856
  continue;
7835
7857
  case 5:
7836
- if (tag !== 40) {
7858
+ if (tag !== 42) {
7837
7859
  break;
7838
7860
  }
7839
- message.endedAt = longToNumber(reader.int64());
7861
+ message.positions.push(reader.string());
7862
+ continue;
7863
+ case 6:
7864
+ if (tag !== 48) {
7865
+ break;
7866
+ }
7867
+ message.isMember = reader.bool();
7868
+ continue;
7869
+ case 7:
7870
+ if (tag !== 58) {
7871
+ break;
7872
+ }
7873
+ message.communityName = reader.string();
7874
+ continue;
7875
+ case 8:
7876
+ if (tag !== 66) {
7877
+ break;
7878
+ }
7879
+ message.communityImage = reader.string();
7880
+ continue;
7881
+ case 9:
7882
+ if (tag !== 74) {
7883
+ break;
7884
+ }
7885
+ message.worlds.push(reader.string());
7840
7886
  continue;
7841
7887
  }
7842
7888
  if ((tag & 7) === 4 || tag === 0) {
@@ -7850,20 +7896,38 @@ var CommunityVoiceChatUpdate;
7850
7896
  function fromJSON(object) {
7851
7897
  return {
7852
7898
  communityId: isSet(object.communityId) ? String(object.communityId) : "",
7853
- voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
7854
7899
  createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
7855
7900
  status: isSet(object.status) ? communityVoiceChatStatusFromJSON(object.status) : 0,
7856
7901
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : undefined,
7902
+ positions: Array.isArray(object === null || object === void 0 ? void 0 : object.positions) ? object.positions.map((e) => String(e)) : [],
7903
+ isMember: isSet(object.isMember) ? Boolean(object.isMember) : false,
7904
+ communityName: isSet(object.communityName) ? String(object.communityName) : "",
7905
+ communityImage: isSet(object.communityImage) ? String(object.communityImage) : undefined,
7906
+ worlds: Array.isArray(object === null || object === void 0 ? void 0 : object.worlds) ? object.worlds.map((e) => String(e)) : [],
7857
7907
  };
7858
7908
  }
7859
7909
  CommunityVoiceChatUpdate.fromJSON = fromJSON;
7860
7910
  function toJSON(message) {
7861
7911
  const obj = {};
7862
7912
  message.communityId !== undefined && (obj.communityId = message.communityId);
7863
- message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
7864
7913
  message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
7865
7914
  message.status !== undefined && (obj.status = communityVoiceChatStatusToJSON(message.status));
7866
7915
  message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
7916
+ if (message.positions) {
7917
+ obj.positions = message.positions.map((e) => e);
7918
+ }
7919
+ else {
7920
+ obj.positions = [];
7921
+ }
7922
+ message.isMember !== undefined && (obj.isMember = message.isMember);
7923
+ message.communityName !== undefined && (obj.communityName = message.communityName);
7924
+ message.communityImage !== undefined && (obj.communityImage = message.communityImage);
7925
+ if (message.worlds) {
7926
+ obj.worlds = message.worlds.map((e) => e);
7927
+ }
7928
+ else {
7929
+ obj.worlds = [];
7930
+ }
7867
7931
  return obj;
7868
7932
  }
7869
7933
  CommunityVoiceChatUpdate.toJSON = toJSON;
@@ -7872,13 +7936,17 @@ var CommunityVoiceChatUpdate;
7872
7936
  }
7873
7937
  CommunityVoiceChatUpdate.create = create;
7874
7938
  function fromPartial(object) {
7875
- var _a, _b, _c, _d, _e;
7939
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
7876
7940
  const message = createBaseCommunityVoiceChatUpdate();
7877
7941
  message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
7878
- message.voiceChatId = (_b = object.voiceChatId) !== null && _b !== void 0 ? _b : "";
7879
- message.createdAt = (_c = object.createdAt) !== null && _c !== void 0 ? _c : 0;
7880
- message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
7881
- message.endedAt = (_e = object.endedAt) !== null && _e !== void 0 ? _e : undefined;
7942
+ message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : 0;
7943
+ message.status = (_c = object.status) !== null && _c !== void 0 ? _c : 0;
7944
+ message.endedAt = (_d = object.endedAt) !== null && _d !== void 0 ? _d : undefined;
7945
+ message.positions = ((_e = object.positions) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
7946
+ message.isMember = (_f = object.isMember) !== null && _f !== void 0 ? _f : false;
7947
+ message.communityName = (_g = object.communityName) !== null && _g !== void 0 ? _g : "";
7948
+ message.communityImage = (_h = object.communityImage) !== null && _h !== void 0 ? _h : undefined;
7949
+ message.worlds = ((_j = object.worlds) === null || _j === void 0 ? void 0 : _j.map((e) => e)) || [];
7882
7950
  return message;
7883
7951
  }
7884
7952
  CommunityVoiceChatUpdate.fromPartial = fromPartial;