@dcl/protocol 1.0.0-16572701298.commit-25e60c0 → 1.0.0-16721006271.commit-e03db90

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.
@@ -629,15 +629,49 @@ export interface KickPlayerFromCommunityVoiceChatResponse {
629
629
  export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
630
630
  message: string;
631
631
  }
632
+ /** End community voice chat (moderator/owner only) */
633
+ export interface EndCommunityVoiceChatPayload {
634
+ communityId: string;
635
+ }
636
+ export interface EndCommunityVoiceChatResponse {
637
+ response?: {
638
+ $case: "ok";
639
+ ok: EndCommunityVoiceChatResponse_Ok;
640
+ } | {
641
+ $case: "invalidRequest";
642
+ invalidRequest: InvalidRequest;
643
+ } | {
644
+ $case: "forbiddenError";
645
+ forbiddenError: ForbiddenError;
646
+ } | {
647
+ $case: "notFoundError";
648
+ notFoundError: NotFoundError;
649
+ } | {
650
+ $case: "internalServerError";
651
+ internalServerError: InternalServerError;
652
+ } | undefined;
653
+ }
654
+ export interface EndCommunityVoiceChatResponse_Ok {
655
+ message: string;
656
+ }
632
657
  /** Community voice chat updates/events - 'started' and 'ended' status */
633
658
  export interface CommunityVoiceChatUpdate {
634
659
  communityId: string;
635
- voiceChatId: string;
636
660
  createdAt: number;
637
661
  /** 'started' or 'ended' */
638
662
  status: CommunityVoiceChatStatus;
639
663
  /** Only present when status is 'ended' */
640
664
  endedAt?: number | undefined;
665
+ /** Positions/coordinates associated with the community (world: false) */
666
+ positions: string[];
667
+ /** Whether the receiving user is a member of the community */
668
+ isMember: boolean;
669
+ /** Name of the community */
670
+ communityName: string;
671
+ /** Image/picture of the community */
672
+ communityImage?: string | undefined;
673
+ /** World names associated with the community (world: true) */
674
+ worlds: string[];
641
675
  }
642
676
  export declare namespace User {
643
677
  function encode(message: User, writer?: _m0.Writer): _m0.Writer;
@@ -1327,6 +1361,30 @@ export declare namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
1327
1361
  function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(base?: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
1328
1362
  function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(object: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
1329
1363
  }
1364
+ export declare namespace EndCommunityVoiceChatPayload {
1365
+ function encode(message: EndCommunityVoiceChatPayload, writer?: _m0.Writer): _m0.Writer;
1366
+ function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatPayload;
1367
+ function fromJSON(object: any): EndCommunityVoiceChatPayload;
1368
+ function toJSON(message: EndCommunityVoiceChatPayload): unknown;
1369
+ function create<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(base?: I): EndCommunityVoiceChatPayload;
1370
+ function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(object: I): EndCommunityVoiceChatPayload;
1371
+ }
1372
+ export declare namespace EndCommunityVoiceChatResponse {
1373
+ function encode(message: EndCommunityVoiceChatResponse, writer?: _m0.Writer): _m0.Writer;
1374
+ function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse;
1375
+ function fromJSON(object: any): EndCommunityVoiceChatResponse;
1376
+ function toJSON(message: EndCommunityVoiceChatResponse): unknown;
1377
+ function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(base?: I): EndCommunityVoiceChatResponse;
1378
+ function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(object: I): EndCommunityVoiceChatResponse;
1379
+ }
1380
+ export declare namespace EndCommunityVoiceChatResponse_Ok {
1381
+ function encode(message: EndCommunityVoiceChatResponse_Ok, writer?: _m0.Writer): _m0.Writer;
1382
+ function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse_Ok;
1383
+ function fromJSON(object: any): EndCommunityVoiceChatResponse_Ok;
1384
+ function toJSON(message: EndCommunityVoiceChatResponse_Ok): unknown;
1385
+ function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(base?: I): EndCommunityVoiceChatResponse_Ok;
1386
+ function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(object: I): EndCommunityVoiceChatResponse_Ok;
1387
+ }
1330
1388
  export declare namespace CommunityVoiceChatUpdate {
1331
1389
  function encode(message: CommunityVoiceChatUpdate, writer?: _m0.Writer): _m0.Writer;
1332
1390
  function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityVoiceChatUpdate;
@@ -1596,6 +1654,15 @@ export declare const SocialServiceDefinition: {
1596
1654
  readonly responseStream: false;
1597
1655
  readonly options: {};
1598
1656
  };
1657
+ /** End community voice chat (moderator/owner only) */
1658
+ readonly endCommunityVoiceChat: {
1659
+ readonly name: "EndCommunityVoiceChat";
1660
+ readonly requestType: typeof EndCommunityVoiceChatPayload;
1661
+ readonly requestStream: false;
1662
+ readonly responseType: typeof EndCommunityVoiceChatResponse;
1663
+ readonly responseStream: false;
1664
+ readonly options: {};
1665
+ };
1599
1666
  /** Subscribe to community voice chat updates (only 'started' events) */
1600
1667
  readonly subscribeToCommunityVoiceChatUpdates: {
1601
1668
  readonly name: "SubscribeToCommunityVoiceChatUpdates";
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.GetPrivateMessagesSettingsPayload = exports.UpsertSocialSettingsResponse = exports.UpsertSocialSettingsPayload = exports.GetSocialSettingsResponse_Ok = exports.GetSocialSettingsResponse = exports.SocialSettings = exports.UnblockUserResponse_Ok = exports.UnblockUserResponse = exports.UnblockUserPayload = exports.BlockUserResponse_Ok = exports.BlockUserResponse = exports.BlockUserPayload = exports.GetFriendshipStatusResponse_Ok = exports.GetFriendshipStatusResponse = exports.GetFriendshipStatusPayload = exports.FriendConnectivityUpdate = exports.FriendshipUpdate_BlockResponse = exports.FriendshipUpdate_CancelResponse = exports.FriendshipUpdate_DeleteResponse = exports.FriendshipUpdate_RejectResponse = exports.FriendshipUpdate_AcceptResponse = exports.FriendshipUpdate_RequestResponse = exports.FriendshipUpdate = exports.UpsertFriendshipResponse_Accepted = exports.UpsertFriendshipResponse = exports.PaginatedFriendshipRequestsResponse = exports.PaginatedFriendsProfilesResponse = exports.PaginatedResponse = exports.GetMutualFriendsPayload = exports.UpsertFriendshipPayload_CancelPayload = exports.UpsertFriendshipPayload_DeletePayload = exports.UpsertFriendshipPayload_RejectPayload = exports.UpsertFriendshipPayload_AcceptPayload = exports.UpsertFriendshipPayload_RequestPayload = exports.UpsertFriendshipPayload = exports.GetFriendshipRequestsPayload = exports.GetFriendsPayload = exports.FriendshipRequests = exports.FriendshipRequestResponse = exports.Pagination = exports.BlockedUserProfile = exports.FriendProfile = exports.User = exports.CommunityVoiceChatStatus = exports.PrivateVoiceChatStatus = exports.BlockedUsersMessagesVisibilitySetting = exports.PrivateMessagePrivacySetting = exports.FriendshipStatus = exports.ConnectivityStatus = exports.protobufPackage = void 0;
7
- exports.SocialServiceDefinition = exports.CommunityVoiceChatUpdate = exports.KickPlayerFromCommunityVoiceChatResponse_Ok = exports.KickPlayerFromCommunityVoiceChatResponse = exports.KickPlayerFromCommunityVoiceChatPayload = exports.DemoteSpeakerInCommunityVoiceChatResponse_Ok = exports.DemoteSpeakerInCommunityVoiceChatResponse = exports.DemoteSpeakerInCommunityVoiceChatPayload = exports.PromoteSpeakerInCommunityVoiceChatResponse_Ok = exports.PromoteSpeakerInCommunityVoiceChatResponse = exports.PromoteSpeakerInCommunityVoiceChatPayload = exports.RequestToSpeakInCommunityVoiceChatResponse_Ok = exports.RequestToSpeakInCommunityVoiceChatResponse = exports.RequestToSpeakInCommunityVoiceChatPayload = exports.JoinCommunityVoiceChatResponse_Ok = exports.JoinCommunityVoiceChatResponse = exports.JoinCommunityVoiceChatPayload = exports.StartCommunityVoiceChatResponse_Ok = exports.StartCommunityVoiceChatResponse = exports.StartCommunityVoiceChatPayload = exports.CommunityVoiceChatCredentials = exports.GetIncomingPrivateVoiceChatRequestResponse_Ok = exports.GetIncomingPrivateVoiceChatRequestResponse = exports.EndPrivateVoiceChatResponse_Ok = exports.EndPrivateVoiceChatResponse = exports.EndPrivateVoiceChatPayload = exports.PrivateVoiceChatUpdate = exports.PrivateVoiceChatCredentials = exports.RejectPrivateVoiceChatResponse_Ok = exports.RejectPrivateVoiceChatResponse = exports.RejectPrivateVoiceChatPayload = exports.AcceptPrivateVoiceChatResponse_Ok = exports.AcceptPrivateVoiceChatResponse = exports.AcceptPrivateVoiceChatPayload = exports.StartPrivateVoiceChatResponse_Ok = exports.StartPrivateVoiceChatResponse = exports.StartPrivateVoiceChatPayload = exports.CommunityMemberConnectivityUpdate = exports.BlockUpdate = exports.GetBlockingStatusResponse = exports.GetBlockedUsersResponse = exports.GetBlockedUsersPayload = exports.GetPrivateMessagesSettingsResponse_Ok = exports.GetPrivateMessagesSettingsResponse_PrivateMessagesSettings = exports.GetPrivateMessagesSettingsResponse = void 0;
7
+ exports.SocialServiceDefinition = exports.CommunityVoiceChatUpdate = exports.EndCommunityVoiceChatResponse_Ok = exports.EndCommunityVoiceChatResponse = exports.EndCommunityVoiceChatPayload = exports.KickPlayerFromCommunityVoiceChatResponse_Ok = exports.KickPlayerFromCommunityVoiceChatResponse = exports.KickPlayerFromCommunityVoiceChatPayload = exports.DemoteSpeakerInCommunityVoiceChatResponse_Ok = exports.DemoteSpeakerInCommunityVoiceChatResponse = exports.DemoteSpeakerInCommunityVoiceChatPayload = exports.PromoteSpeakerInCommunityVoiceChatResponse_Ok = exports.PromoteSpeakerInCommunityVoiceChatResponse = exports.PromoteSpeakerInCommunityVoiceChatPayload = exports.RequestToSpeakInCommunityVoiceChatResponse_Ok = exports.RequestToSpeakInCommunityVoiceChatResponse = exports.RequestToSpeakInCommunityVoiceChatPayload = exports.JoinCommunityVoiceChatResponse_Ok = exports.JoinCommunityVoiceChatResponse = exports.JoinCommunityVoiceChatPayload = exports.StartCommunityVoiceChatResponse_Ok = exports.StartCommunityVoiceChatResponse = exports.StartCommunityVoiceChatPayload = exports.CommunityVoiceChatCredentials = exports.GetIncomingPrivateVoiceChatRequestResponse_Ok = exports.GetIncomingPrivateVoiceChatRequestResponse = exports.EndPrivateVoiceChatResponse_Ok = exports.EndPrivateVoiceChatResponse = exports.EndPrivateVoiceChatPayload = exports.PrivateVoiceChatUpdate = exports.PrivateVoiceChatCredentials = exports.RejectPrivateVoiceChatResponse_Ok = exports.RejectPrivateVoiceChatResponse = exports.RejectPrivateVoiceChatPayload = exports.AcceptPrivateVoiceChatResponse_Ok = exports.AcceptPrivateVoiceChatResponse = exports.AcceptPrivateVoiceChatPayload = exports.StartPrivateVoiceChatResponse_Ok = exports.StartPrivateVoiceChatResponse = exports.StartPrivateVoiceChatPayload = exports.CommunityMemberConnectivityUpdate = exports.BlockUpdate = exports.GetBlockingStatusResponse = exports.GetBlockedUsersResponse = exports.GetBlockedUsersPayload = exports.GetPrivateMessagesSettingsResponse_Ok = exports.GetPrivateMessagesSettingsResponse_PrivateMessagesSettings = exports.GetPrivateMessagesSettingsResponse = void 0;
8
8
  exports.connectivityStatusFromJSON = connectivityStatusFromJSON;
9
9
  exports.connectivityStatusToJSON = connectivityStatusToJSON;
10
10
  exports.friendshipStatusFromJSON = friendshipStatusFromJSON;
@@ -7777,8 +7777,301 @@ var KickPlayerFromCommunityVoiceChatResponse_Ok;
7777
7777
  }
7778
7778
  KickPlayerFromCommunityVoiceChatResponse_Ok.fromPartial = fromPartial;
7779
7779
  })(KickPlayerFromCommunityVoiceChatResponse_Ok || (exports.KickPlayerFromCommunityVoiceChatResponse_Ok = KickPlayerFromCommunityVoiceChatResponse_Ok = {}));
7780
+ function createBaseEndCommunityVoiceChatPayload() {
7781
+ return { communityId: "" };
7782
+ }
7783
+ var EndCommunityVoiceChatPayload;
7784
+ (function (EndCommunityVoiceChatPayload) {
7785
+ function encode(message, writer = minimal_1.default.Writer.create()) {
7786
+ if (message.communityId !== "") {
7787
+ writer.uint32(10).string(message.communityId);
7788
+ }
7789
+ return writer;
7790
+ }
7791
+ EndCommunityVoiceChatPayload.encode = encode;
7792
+ function decode(input, length) {
7793
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
7794
+ let end = length === undefined ? reader.len : reader.pos + length;
7795
+ const message = createBaseEndCommunityVoiceChatPayload();
7796
+ while (reader.pos < end) {
7797
+ const tag = reader.uint32();
7798
+ switch (tag >>> 3) {
7799
+ case 1:
7800
+ if (tag !== 10) {
7801
+ break;
7802
+ }
7803
+ message.communityId = reader.string();
7804
+ continue;
7805
+ }
7806
+ if ((tag & 7) === 4 || tag === 0) {
7807
+ break;
7808
+ }
7809
+ reader.skipType(tag & 7);
7810
+ }
7811
+ return message;
7812
+ }
7813
+ EndCommunityVoiceChatPayload.decode = decode;
7814
+ function fromJSON(object) {
7815
+ return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
7816
+ }
7817
+ EndCommunityVoiceChatPayload.fromJSON = fromJSON;
7818
+ function toJSON(message) {
7819
+ const obj = {};
7820
+ message.communityId !== undefined && (obj.communityId = message.communityId);
7821
+ return obj;
7822
+ }
7823
+ EndCommunityVoiceChatPayload.toJSON = toJSON;
7824
+ function create(base) {
7825
+ return EndCommunityVoiceChatPayload.fromPartial(base !== null && base !== void 0 ? base : {});
7826
+ }
7827
+ EndCommunityVoiceChatPayload.create = create;
7828
+ function fromPartial(object) {
7829
+ var _a;
7830
+ const message = createBaseEndCommunityVoiceChatPayload();
7831
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
7832
+ return message;
7833
+ }
7834
+ EndCommunityVoiceChatPayload.fromPartial = fromPartial;
7835
+ })(EndCommunityVoiceChatPayload || (exports.EndCommunityVoiceChatPayload = EndCommunityVoiceChatPayload = {}));
7836
+ function createBaseEndCommunityVoiceChatResponse() {
7837
+ return { response: undefined };
7838
+ }
7839
+ var EndCommunityVoiceChatResponse;
7840
+ (function (EndCommunityVoiceChatResponse) {
7841
+ function encode(message, writer = minimal_1.default.Writer.create()) {
7842
+ var _a;
7843
+ switch ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) {
7844
+ case "ok":
7845
+ EndCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
7846
+ break;
7847
+ case "invalidRequest":
7848
+ errors_gen_1.InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
7849
+ break;
7850
+ case "forbiddenError":
7851
+ errors_gen_1.ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
7852
+ break;
7853
+ case "notFoundError":
7854
+ errors_gen_1.NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
7855
+ break;
7856
+ case "internalServerError":
7857
+ errors_gen_1.InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
7858
+ break;
7859
+ }
7860
+ return writer;
7861
+ }
7862
+ EndCommunityVoiceChatResponse.encode = encode;
7863
+ function decode(input, length) {
7864
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
7865
+ let end = length === undefined ? reader.len : reader.pos + length;
7866
+ const message = createBaseEndCommunityVoiceChatResponse();
7867
+ while (reader.pos < end) {
7868
+ const tag = reader.uint32();
7869
+ switch (tag >>> 3) {
7870
+ case 1:
7871
+ if (tag !== 10) {
7872
+ break;
7873
+ }
7874
+ message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()) };
7875
+ continue;
7876
+ case 2:
7877
+ if (tag !== 18) {
7878
+ break;
7879
+ }
7880
+ message.response = {
7881
+ $case: "invalidRequest",
7882
+ invalidRequest: errors_gen_1.InvalidRequest.decode(reader, reader.uint32()),
7883
+ };
7884
+ continue;
7885
+ case 3:
7886
+ if (tag !== 26) {
7887
+ break;
7888
+ }
7889
+ message.response = {
7890
+ $case: "forbiddenError",
7891
+ forbiddenError: errors_gen_1.ForbiddenError.decode(reader, reader.uint32()),
7892
+ };
7893
+ continue;
7894
+ case 4:
7895
+ if (tag !== 34) {
7896
+ break;
7897
+ }
7898
+ message.response = { $case: "notFoundError", notFoundError: errors_gen_1.NotFoundError.decode(reader, reader.uint32()) };
7899
+ continue;
7900
+ case 5:
7901
+ if (tag !== 42) {
7902
+ break;
7903
+ }
7904
+ message.response = {
7905
+ $case: "internalServerError",
7906
+ internalServerError: errors_gen_1.InternalServerError.decode(reader, reader.uint32()),
7907
+ };
7908
+ continue;
7909
+ }
7910
+ if ((tag & 7) === 4 || tag === 0) {
7911
+ break;
7912
+ }
7913
+ reader.skipType(tag & 7);
7914
+ }
7915
+ return message;
7916
+ }
7917
+ EndCommunityVoiceChatResponse.decode = decode;
7918
+ function fromJSON(object) {
7919
+ return {
7920
+ response: isSet(object.ok)
7921
+ ? { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
7922
+ : isSet(object.invalidRequest)
7923
+ ? { $case: "invalidRequest", invalidRequest: errors_gen_1.InvalidRequest.fromJSON(object.invalidRequest) }
7924
+ : isSet(object.forbiddenError)
7925
+ ? { $case: "forbiddenError", forbiddenError: errors_gen_1.ForbiddenError.fromJSON(object.forbiddenError) }
7926
+ : isSet(object.notFoundError)
7927
+ ? { $case: "notFoundError", notFoundError: errors_gen_1.NotFoundError.fromJSON(object.notFoundError) }
7928
+ : isSet(object.internalServerError)
7929
+ ? {
7930
+ $case: "internalServerError",
7931
+ internalServerError: errors_gen_1.InternalServerError.fromJSON(object.internalServerError),
7932
+ }
7933
+ : undefined,
7934
+ };
7935
+ }
7936
+ EndCommunityVoiceChatResponse.fromJSON = fromJSON;
7937
+ function toJSON(message) {
7938
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
7939
+ const obj = {};
7940
+ ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" &&
7941
+ (obj.ok = ((_b = message.response) === null || _b === void 0 ? void 0 : _b.ok) ? EndCommunityVoiceChatResponse_Ok.toJSON((_c = message.response) === null || _c === void 0 ? void 0 : _c.ok) : undefined);
7942
+ ((_d = message.response) === null || _d === void 0 ? void 0 : _d.$case) === "invalidRequest" &&
7943
+ (obj.invalidRequest = ((_e = message.response) === null || _e === void 0 ? void 0 : _e.invalidRequest)
7944
+ ? errors_gen_1.InvalidRequest.toJSON((_f = message.response) === null || _f === void 0 ? void 0 : _f.invalidRequest)
7945
+ : undefined);
7946
+ ((_g = message.response) === null || _g === void 0 ? void 0 : _g.$case) === "forbiddenError" &&
7947
+ (obj.forbiddenError = ((_h = message.response) === null || _h === void 0 ? void 0 : _h.forbiddenError)
7948
+ ? errors_gen_1.ForbiddenError.toJSON((_j = message.response) === null || _j === void 0 ? void 0 : _j.forbiddenError)
7949
+ : undefined);
7950
+ ((_k = message.response) === null || _k === void 0 ? void 0 : _k.$case) === "notFoundError" &&
7951
+ (obj.notFoundError = ((_l = message.response) === null || _l === void 0 ? void 0 : _l.notFoundError)
7952
+ ? errors_gen_1.NotFoundError.toJSON((_m = message.response) === null || _m === void 0 ? void 0 : _m.notFoundError)
7953
+ : undefined);
7954
+ ((_o = message.response) === null || _o === void 0 ? void 0 : _o.$case) === "internalServerError" &&
7955
+ (obj.internalServerError = ((_p = message.response) === null || _p === void 0 ? void 0 : _p.internalServerError)
7956
+ ? errors_gen_1.InternalServerError.toJSON((_q = message.response) === null || _q === void 0 ? void 0 : _q.internalServerError)
7957
+ : undefined);
7958
+ return obj;
7959
+ }
7960
+ EndCommunityVoiceChatResponse.toJSON = toJSON;
7961
+ function create(base) {
7962
+ return EndCommunityVoiceChatResponse.fromPartial(base !== null && base !== void 0 ? base : {});
7963
+ }
7964
+ EndCommunityVoiceChatResponse.create = create;
7965
+ function fromPartial(object) {
7966
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
7967
+ const message = createBaseEndCommunityVoiceChatResponse();
7968
+ if (((_a = object.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" && ((_b = object.response) === null || _b === void 0 ? void 0 : _b.ok) !== undefined && ((_c = object.response) === null || _c === void 0 ? void 0 : _c.ok) !== null) {
7969
+ message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok) };
7970
+ }
7971
+ if (((_d = object.response) === null || _d === void 0 ? void 0 : _d.$case) === "invalidRequest" &&
7972
+ ((_e = object.response) === null || _e === void 0 ? void 0 : _e.invalidRequest) !== undefined &&
7973
+ ((_f = object.response) === null || _f === void 0 ? void 0 : _f.invalidRequest) !== null) {
7974
+ message.response = {
7975
+ $case: "invalidRequest",
7976
+ invalidRequest: errors_gen_1.InvalidRequest.fromPartial(object.response.invalidRequest),
7977
+ };
7978
+ }
7979
+ if (((_g = object.response) === null || _g === void 0 ? void 0 : _g.$case) === "forbiddenError" &&
7980
+ ((_h = object.response) === null || _h === void 0 ? void 0 : _h.forbiddenError) !== undefined &&
7981
+ ((_j = object.response) === null || _j === void 0 ? void 0 : _j.forbiddenError) !== null) {
7982
+ message.response = {
7983
+ $case: "forbiddenError",
7984
+ forbiddenError: errors_gen_1.ForbiddenError.fromPartial(object.response.forbiddenError),
7985
+ };
7986
+ }
7987
+ if (((_k = object.response) === null || _k === void 0 ? void 0 : _k.$case) === "notFoundError" &&
7988
+ ((_l = object.response) === null || _l === void 0 ? void 0 : _l.notFoundError) !== undefined &&
7989
+ ((_m = object.response) === null || _m === void 0 ? void 0 : _m.notFoundError) !== null) {
7990
+ message.response = {
7991
+ $case: "notFoundError",
7992
+ notFoundError: errors_gen_1.NotFoundError.fromPartial(object.response.notFoundError),
7993
+ };
7994
+ }
7995
+ if (((_o = object.response) === null || _o === void 0 ? void 0 : _o.$case) === "internalServerError" &&
7996
+ ((_p = object.response) === null || _p === void 0 ? void 0 : _p.internalServerError) !== undefined &&
7997
+ ((_q = object.response) === null || _q === void 0 ? void 0 : _q.internalServerError) !== null) {
7998
+ message.response = {
7999
+ $case: "internalServerError",
8000
+ internalServerError: errors_gen_1.InternalServerError.fromPartial(object.response.internalServerError),
8001
+ };
8002
+ }
8003
+ return message;
8004
+ }
8005
+ EndCommunityVoiceChatResponse.fromPartial = fromPartial;
8006
+ })(EndCommunityVoiceChatResponse || (exports.EndCommunityVoiceChatResponse = EndCommunityVoiceChatResponse = {}));
8007
+ function createBaseEndCommunityVoiceChatResponse_Ok() {
8008
+ return { message: "" };
8009
+ }
8010
+ var EndCommunityVoiceChatResponse_Ok;
8011
+ (function (EndCommunityVoiceChatResponse_Ok) {
8012
+ function encode(message, writer = minimal_1.default.Writer.create()) {
8013
+ if (message.message !== "") {
8014
+ writer.uint32(10).string(message.message);
8015
+ }
8016
+ return writer;
8017
+ }
8018
+ EndCommunityVoiceChatResponse_Ok.encode = encode;
8019
+ function decode(input, length) {
8020
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
8021
+ let end = length === undefined ? reader.len : reader.pos + length;
8022
+ const message = createBaseEndCommunityVoiceChatResponse_Ok();
8023
+ while (reader.pos < end) {
8024
+ const tag = reader.uint32();
8025
+ switch (tag >>> 3) {
8026
+ case 1:
8027
+ if (tag !== 10) {
8028
+ break;
8029
+ }
8030
+ message.message = reader.string();
8031
+ continue;
8032
+ }
8033
+ if ((tag & 7) === 4 || tag === 0) {
8034
+ break;
8035
+ }
8036
+ reader.skipType(tag & 7);
8037
+ }
8038
+ return message;
8039
+ }
8040
+ EndCommunityVoiceChatResponse_Ok.decode = decode;
8041
+ function fromJSON(object) {
8042
+ return { message: isSet(object.message) ? String(object.message) : "" };
8043
+ }
8044
+ EndCommunityVoiceChatResponse_Ok.fromJSON = fromJSON;
8045
+ function toJSON(message) {
8046
+ const obj = {};
8047
+ message.message !== undefined && (obj.message = message.message);
8048
+ return obj;
8049
+ }
8050
+ EndCommunityVoiceChatResponse_Ok.toJSON = toJSON;
8051
+ function create(base) {
8052
+ return EndCommunityVoiceChatResponse_Ok.fromPartial(base !== null && base !== void 0 ? base : {});
8053
+ }
8054
+ EndCommunityVoiceChatResponse_Ok.create = create;
8055
+ function fromPartial(object) {
8056
+ var _a;
8057
+ const message = createBaseEndCommunityVoiceChatResponse_Ok();
8058
+ message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
8059
+ return message;
8060
+ }
8061
+ EndCommunityVoiceChatResponse_Ok.fromPartial = fromPartial;
8062
+ })(EndCommunityVoiceChatResponse_Ok || (exports.EndCommunityVoiceChatResponse_Ok = EndCommunityVoiceChatResponse_Ok = {}));
7780
8063
  function createBaseCommunityVoiceChatUpdate() {
7781
- return { communityId: "", voiceChatId: "", createdAt: 0, status: 0, endedAt: undefined };
8064
+ return {
8065
+ communityId: "",
8066
+ createdAt: 0,
8067
+ status: 0,
8068
+ endedAt: undefined,
8069
+ positions: [],
8070
+ isMember: false,
8071
+ communityName: "",
8072
+ communityImage: undefined,
8073
+ worlds: [],
8074
+ };
7782
8075
  }
7783
8076
  var CommunityVoiceChatUpdate;
7784
8077
  (function (CommunityVoiceChatUpdate) {
@@ -7786,17 +8079,29 @@ var CommunityVoiceChatUpdate;
7786
8079
  if (message.communityId !== "") {
7787
8080
  writer.uint32(10).string(message.communityId);
7788
8081
  }
7789
- if (message.voiceChatId !== "") {
7790
- writer.uint32(18).string(message.voiceChatId);
7791
- }
7792
8082
  if (message.createdAt !== 0) {
7793
- writer.uint32(24).int64(message.createdAt);
8083
+ writer.uint32(16).int64(message.createdAt);
7794
8084
  }
7795
8085
  if (message.status !== 0) {
7796
- writer.uint32(32).int32(message.status);
8086
+ writer.uint32(24).int32(message.status);
7797
8087
  }
7798
8088
  if (message.endedAt !== undefined) {
7799
- writer.uint32(40).int64(message.endedAt);
8089
+ writer.uint32(32).int64(message.endedAt);
8090
+ }
8091
+ for (const v of message.positions) {
8092
+ writer.uint32(42).string(v);
8093
+ }
8094
+ if (message.isMember === true) {
8095
+ writer.uint32(48).bool(message.isMember);
8096
+ }
8097
+ if (message.communityName !== "") {
8098
+ writer.uint32(58).string(message.communityName);
8099
+ }
8100
+ if (message.communityImage !== undefined) {
8101
+ writer.uint32(66).string(message.communityImage);
8102
+ }
8103
+ for (const v of message.worlds) {
8104
+ writer.uint32(74).string(v);
7800
8105
  }
7801
8106
  return writer;
7802
8107
  }
@@ -7815,28 +8120,52 @@ var CommunityVoiceChatUpdate;
7815
8120
  message.communityId = reader.string();
7816
8121
  continue;
7817
8122
  case 2:
7818
- if (tag !== 18) {
8123
+ if (tag !== 16) {
7819
8124
  break;
7820
8125
  }
7821
- message.voiceChatId = reader.string();
8126
+ message.createdAt = longToNumber(reader.int64());
7822
8127
  continue;
7823
8128
  case 3:
7824
8129
  if (tag !== 24) {
7825
8130
  break;
7826
8131
  }
7827
- message.createdAt = longToNumber(reader.int64());
8132
+ message.status = reader.int32();
7828
8133
  continue;
7829
8134
  case 4:
7830
8135
  if (tag !== 32) {
7831
8136
  break;
7832
8137
  }
7833
- message.status = reader.int32();
8138
+ message.endedAt = longToNumber(reader.int64());
7834
8139
  continue;
7835
8140
  case 5:
7836
- if (tag !== 40) {
8141
+ if (tag !== 42) {
7837
8142
  break;
7838
8143
  }
7839
- message.endedAt = longToNumber(reader.int64());
8144
+ message.positions.push(reader.string());
8145
+ continue;
8146
+ case 6:
8147
+ if (tag !== 48) {
8148
+ break;
8149
+ }
8150
+ message.isMember = reader.bool();
8151
+ continue;
8152
+ case 7:
8153
+ if (tag !== 58) {
8154
+ break;
8155
+ }
8156
+ message.communityName = reader.string();
8157
+ continue;
8158
+ case 8:
8159
+ if (tag !== 66) {
8160
+ break;
8161
+ }
8162
+ message.communityImage = reader.string();
8163
+ continue;
8164
+ case 9:
8165
+ if (tag !== 74) {
8166
+ break;
8167
+ }
8168
+ message.worlds.push(reader.string());
7840
8169
  continue;
7841
8170
  }
7842
8171
  if ((tag & 7) === 4 || tag === 0) {
@@ -7850,20 +8179,38 @@ var CommunityVoiceChatUpdate;
7850
8179
  function fromJSON(object) {
7851
8180
  return {
7852
8181
  communityId: isSet(object.communityId) ? String(object.communityId) : "",
7853
- voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
7854
8182
  createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
7855
8183
  status: isSet(object.status) ? communityVoiceChatStatusFromJSON(object.status) : 0,
7856
8184
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : undefined,
8185
+ positions: Array.isArray(object === null || object === void 0 ? void 0 : object.positions) ? object.positions.map((e) => String(e)) : [],
8186
+ isMember: isSet(object.isMember) ? Boolean(object.isMember) : false,
8187
+ communityName: isSet(object.communityName) ? String(object.communityName) : "",
8188
+ communityImage: isSet(object.communityImage) ? String(object.communityImage) : undefined,
8189
+ worlds: Array.isArray(object === null || object === void 0 ? void 0 : object.worlds) ? object.worlds.map((e) => String(e)) : [],
7857
8190
  };
7858
8191
  }
7859
8192
  CommunityVoiceChatUpdate.fromJSON = fromJSON;
7860
8193
  function toJSON(message) {
7861
8194
  const obj = {};
7862
8195
  message.communityId !== undefined && (obj.communityId = message.communityId);
7863
- message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
7864
8196
  message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
7865
8197
  message.status !== undefined && (obj.status = communityVoiceChatStatusToJSON(message.status));
7866
8198
  message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
8199
+ if (message.positions) {
8200
+ obj.positions = message.positions.map((e) => e);
8201
+ }
8202
+ else {
8203
+ obj.positions = [];
8204
+ }
8205
+ message.isMember !== undefined && (obj.isMember = message.isMember);
8206
+ message.communityName !== undefined && (obj.communityName = message.communityName);
8207
+ message.communityImage !== undefined && (obj.communityImage = message.communityImage);
8208
+ if (message.worlds) {
8209
+ obj.worlds = message.worlds.map((e) => e);
8210
+ }
8211
+ else {
8212
+ obj.worlds = [];
8213
+ }
7867
8214
  return obj;
7868
8215
  }
7869
8216
  CommunityVoiceChatUpdate.toJSON = toJSON;
@@ -7872,13 +8219,17 @@ var CommunityVoiceChatUpdate;
7872
8219
  }
7873
8220
  CommunityVoiceChatUpdate.create = create;
7874
8221
  function fromPartial(object) {
7875
- var _a, _b, _c, _d, _e;
8222
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
7876
8223
  const message = createBaseCommunityVoiceChatUpdate();
7877
8224
  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;
8225
+ message.createdAt = (_b = object.createdAt) !== null && _b !== void 0 ? _b : 0;
8226
+ message.status = (_c = object.status) !== null && _c !== void 0 ? _c : 0;
8227
+ message.endedAt = (_d = object.endedAt) !== null && _d !== void 0 ? _d : undefined;
8228
+ message.positions = ((_e = object.positions) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
8229
+ message.isMember = (_f = object.isMember) !== null && _f !== void 0 ? _f : false;
8230
+ message.communityName = (_g = object.communityName) !== null && _g !== void 0 ? _g : "";
8231
+ message.communityImage = (_h = object.communityImage) !== null && _h !== void 0 ? _h : undefined;
8232
+ message.worlds = ((_j = object.worlds) === null || _j === void 0 ? void 0 : _j.map((e) => e)) || [];
7882
8233
  return message;
7883
8234
  }
7884
8235
  CommunityVoiceChatUpdate.fromPartial = fromPartial;
@@ -8143,6 +8494,15 @@ exports.SocialServiceDefinition = {
8143
8494
  responseStream: false,
8144
8495
  options: {},
8145
8496
  },
8497
+ /** End community voice chat (moderator/owner only) */
8498
+ endCommunityVoiceChat: {
8499
+ name: "EndCommunityVoiceChat",
8500
+ requestType: EndCommunityVoiceChatPayload,
8501
+ requestStream: false,
8502
+ responseType: EndCommunityVoiceChatResponse,
8503
+ responseStream: false,
8504
+ options: {},
8505
+ },
8146
8506
  /** Subscribe to community voice chat updates (only 'started' events) */
8147
8507
  subscribeToCommunityVoiceChatUpdates: {
8148
8508
  name: "SubscribeToCommunityVoiceChatUpdates",