@dcl/protocol 1.0.0-16721006271.commit-e03db90 → 1.0.0-16751971069.commit-16c6dee

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,6 +629,32 @@ export interface KickPlayerFromCommunityVoiceChatResponse {
629
629
  export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
630
630
  message: string;
631
631
  }
632
+ /** Reject speak request in community voice chat */
633
+ export interface RejectSpeakRequestInCommunityVoiceChatPayload {
634
+ communityId: string;
635
+ userAddress: string;
636
+ }
637
+ export interface RejectSpeakRequestInCommunityVoiceChatResponse {
638
+ response?: {
639
+ $case: "ok";
640
+ ok: RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
641
+ } | {
642
+ $case: "invalidRequest";
643
+ invalidRequest: InvalidRequest;
644
+ } | {
645
+ $case: "forbiddenError";
646
+ forbiddenError: ForbiddenError;
647
+ } | {
648
+ $case: "notFoundError";
649
+ notFoundError: NotFoundError;
650
+ } | {
651
+ $case: "internalServerError";
652
+ internalServerError: InternalServerError;
653
+ } | undefined;
654
+ }
655
+ export interface RejectSpeakRequestInCommunityVoiceChatResponse_Ok {
656
+ message: string;
657
+ }
632
658
  /** End community voice chat (moderator/owner only) */
633
659
  export interface EndCommunityVoiceChatPayload {
634
660
  communityId: string;
@@ -1361,6 +1387,30 @@ export declare namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
1361
1387
  function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(base?: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
1362
1388
  function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(object: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
1363
1389
  }
1390
+ export declare namespace RejectSpeakRequestInCommunityVoiceChatPayload {
1391
+ function encode(message: RejectSpeakRequestInCommunityVoiceChatPayload, writer?: _m0.Writer): _m0.Writer;
1392
+ function decode(input: _m0.Reader | Uint8Array, length?: number): RejectSpeakRequestInCommunityVoiceChatPayload;
1393
+ function fromJSON(object: any): RejectSpeakRequestInCommunityVoiceChatPayload;
1394
+ function toJSON(message: RejectSpeakRequestInCommunityVoiceChatPayload): unknown;
1395
+ function create<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatPayload>, I>>(base?: I): RejectSpeakRequestInCommunityVoiceChatPayload;
1396
+ function fromPartial<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatPayload>, I>>(object: I): RejectSpeakRequestInCommunityVoiceChatPayload;
1397
+ }
1398
+ export declare namespace RejectSpeakRequestInCommunityVoiceChatResponse {
1399
+ function encode(message: RejectSpeakRequestInCommunityVoiceChatResponse, writer?: _m0.Writer): _m0.Writer;
1400
+ function decode(input: _m0.Reader | Uint8Array, length?: number): RejectSpeakRequestInCommunityVoiceChatResponse;
1401
+ function fromJSON(object: any): RejectSpeakRequestInCommunityVoiceChatResponse;
1402
+ function toJSON(message: RejectSpeakRequestInCommunityVoiceChatResponse): unknown;
1403
+ function create<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatResponse>, I>>(base?: I): RejectSpeakRequestInCommunityVoiceChatResponse;
1404
+ function fromPartial<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatResponse>, I>>(object: I): RejectSpeakRequestInCommunityVoiceChatResponse;
1405
+ }
1406
+ export declare namespace RejectSpeakRequestInCommunityVoiceChatResponse_Ok {
1407
+ function encode(message: RejectSpeakRequestInCommunityVoiceChatResponse_Ok, writer?: _m0.Writer): _m0.Writer;
1408
+ function decode(input: _m0.Reader | Uint8Array, length?: number): RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
1409
+ function fromJSON(object: any): RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
1410
+ function toJSON(message: RejectSpeakRequestInCommunityVoiceChatResponse_Ok): unknown;
1411
+ function create<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatResponse_Ok>, I>>(base?: I): RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
1412
+ function fromPartial<I extends Exact<DeepPartial<RejectSpeakRequestInCommunityVoiceChatResponse_Ok>, I>>(object: I): RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
1413
+ }
1364
1414
  export declare namespace EndCommunityVoiceChatPayload {
1365
1415
  function encode(message: EndCommunityVoiceChatPayload, writer?: _m0.Writer): _m0.Writer;
1366
1416
  function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatPayload;
@@ -1654,6 +1704,15 @@ export declare const SocialServiceDefinition: {
1654
1704
  readonly responseStream: false;
1655
1705
  readonly options: {};
1656
1706
  };
1707
+ /** Reject speak request in community voice chat (moderator only) */
1708
+ readonly rejectSpeakRequestInCommunityVoiceChat: {
1709
+ readonly name: "RejectSpeakRequestInCommunityVoiceChat";
1710
+ readonly requestType: typeof RejectSpeakRequestInCommunityVoiceChatPayload;
1711
+ readonly requestStream: false;
1712
+ readonly responseType: typeof RejectSpeakRequestInCommunityVoiceChatResponse;
1713
+ readonly responseStream: false;
1714
+ readonly options: {};
1715
+ };
1657
1716
  /** End community voice chat (moderator/owner only) */
1658
1717
  readonly endCommunityVoiceChat: {
1659
1718
  readonly name: "EndCommunityVoiceChat";
@@ -4,7 +4,8 @@ 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.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;
7
+ exports.CommunityVoiceChatUpdate = exports.EndCommunityVoiceChatResponse_Ok = exports.EndCommunityVoiceChatResponse = exports.EndCommunityVoiceChatPayload = exports.RejectSpeakRequestInCommunityVoiceChatResponse_Ok = exports.RejectSpeakRequestInCommunityVoiceChatResponse = exports.RejectSpeakRequestInCommunityVoiceChatPayload = 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
+ exports.SocialServiceDefinition = void 0;
8
9
  exports.connectivityStatusFromJSON = connectivityStatusFromJSON;
9
10
  exports.connectivityStatusToJSON = connectivityStatusToJSON;
10
11
  exports.friendshipStatusFromJSON = friendshipStatusFromJSON;
@@ -7777,6 +7778,312 @@ var KickPlayerFromCommunityVoiceChatResponse_Ok;
7777
7778
  }
7778
7779
  KickPlayerFromCommunityVoiceChatResponse_Ok.fromPartial = fromPartial;
7779
7780
  })(KickPlayerFromCommunityVoiceChatResponse_Ok || (exports.KickPlayerFromCommunityVoiceChatResponse_Ok = KickPlayerFromCommunityVoiceChatResponse_Ok = {}));
7781
+ function createBaseRejectSpeakRequestInCommunityVoiceChatPayload() {
7782
+ return { communityId: "", userAddress: "" };
7783
+ }
7784
+ var RejectSpeakRequestInCommunityVoiceChatPayload;
7785
+ (function (RejectSpeakRequestInCommunityVoiceChatPayload) {
7786
+ function encode(message, writer = minimal_1.default.Writer.create()) {
7787
+ if (message.communityId !== "") {
7788
+ writer.uint32(10).string(message.communityId);
7789
+ }
7790
+ if (message.userAddress !== "") {
7791
+ writer.uint32(18).string(message.userAddress);
7792
+ }
7793
+ return writer;
7794
+ }
7795
+ RejectSpeakRequestInCommunityVoiceChatPayload.encode = encode;
7796
+ function decode(input, length) {
7797
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
7798
+ let end = length === undefined ? reader.len : reader.pos + length;
7799
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatPayload();
7800
+ while (reader.pos < end) {
7801
+ const tag = reader.uint32();
7802
+ switch (tag >>> 3) {
7803
+ case 1:
7804
+ if (tag !== 10) {
7805
+ break;
7806
+ }
7807
+ message.communityId = reader.string();
7808
+ continue;
7809
+ case 2:
7810
+ if (tag !== 18) {
7811
+ break;
7812
+ }
7813
+ message.userAddress = reader.string();
7814
+ continue;
7815
+ }
7816
+ if ((tag & 7) === 4 || tag === 0) {
7817
+ break;
7818
+ }
7819
+ reader.skipType(tag & 7);
7820
+ }
7821
+ return message;
7822
+ }
7823
+ RejectSpeakRequestInCommunityVoiceChatPayload.decode = decode;
7824
+ function fromJSON(object) {
7825
+ return {
7826
+ communityId: isSet(object.communityId) ? String(object.communityId) : "",
7827
+ userAddress: isSet(object.userAddress) ? String(object.userAddress) : "",
7828
+ };
7829
+ }
7830
+ RejectSpeakRequestInCommunityVoiceChatPayload.fromJSON = fromJSON;
7831
+ function toJSON(message) {
7832
+ const obj = {};
7833
+ message.communityId !== undefined && (obj.communityId = message.communityId);
7834
+ message.userAddress !== undefined && (obj.userAddress = message.userAddress);
7835
+ return obj;
7836
+ }
7837
+ RejectSpeakRequestInCommunityVoiceChatPayload.toJSON = toJSON;
7838
+ function create(base) {
7839
+ return RejectSpeakRequestInCommunityVoiceChatPayload.fromPartial(base !== null && base !== void 0 ? base : {});
7840
+ }
7841
+ RejectSpeakRequestInCommunityVoiceChatPayload.create = create;
7842
+ function fromPartial(object) {
7843
+ var _a, _b;
7844
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatPayload();
7845
+ message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
7846
+ message.userAddress = (_b = object.userAddress) !== null && _b !== void 0 ? _b : "";
7847
+ return message;
7848
+ }
7849
+ RejectSpeakRequestInCommunityVoiceChatPayload.fromPartial = fromPartial;
7850
+ })(RejectSpeakRequestInCommunityVoiceChatPayload || (exports.RejectSpeakRequestInCommunityVoiceChatPayload = RejectSpeakRequestInCommunityVoiceChatPayload = {}));
7851
+ function createBaseRejectSpeakRequestInCommunityVoiceChatResponse() {
7852
+ return { response: undefined };
7853
+ }
7854
+ var RejectSpeakRequestInCommunityVoiceChatResponse;
7855
+ (function (RejectSpeakRequestInCommunityVoiceChatResponse) {
7856
+ function encode(message, writer = minimal_1.default.Writer.create()) {
7857
+ var _a;
7858
+ switch ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) {
7859
+ case "ok":
7860
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork())
7861
+ .ldelim();
7862
+ break;
7863
+ case "invalidRequest":
7864
+ errors_gen_1.InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
7865
+ break;
7866
+ case "forbiddenError":
7867
+ errors_gen_1.ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
7868
+ break;
7869
+ case "notFoundError":
7870
+ errors_gen_1.NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
7871
+ break;
7872
+ case "internalServerError":
7873
+ errors_gen_1.InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
7874
+ break;
7875
+ }
7876
+ return writer;
7877
+ }
7878
+ RejectSpeakRequestInCommunityVoiceChatResponse.encode = encode;
7879
+ function decode(input, length) {
7880
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
7881
+ let end = length === undefined ? reader.len : reader.pos + length;
7882
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatResponse();
7883
+ while (reader.pos < end) {
7884
+ const tag = reader.uint32();
7885
+ switch (tag >>> 3) {
7886
+ case 1:
7887
+ if (tag !== 10) {
7888
+ break;
7889
+ }
7890
+ message.response = {
7891
+ $case: "ok",
7892
+ ok: RejectSpeakRequestInCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
7893
+ };
7894
+ continue;
7895
+ case 2:
7896
+ if (tag !== 18) {
7897
+ break;
7898
+ }
7899
+ message.response = {
7900
+ $case: "invalidRequest",
7901
+ invalidRequest: errors_gen_1.InvalidRequest.decode(reader, reader.uint32()),
7902
+ };
7903
+ continue;
7904
+ case 3:
7905
+ if (tag !== 26) {
7906
+ break;
7907
+ }
7908
+ message.response = {
7909
+ $case: "forbiddenError",
7910
+ forbiddenError: errors_gen_1.ForbiddenError.decode(reader, reader.uint32()),
7911
+ };
7912
+ continue;
7913
+ case 4:
7914
+ if (tag !== 34) {
7915
+ break;
7916
+ }
7917
+ message.response = { $case: "notFoundError", notFoundError: errors_gen_1.NotFoundError.decode(reader, reader.uint32()) };
7918
+ continue;
7919
+ case 5:
7920
+ if (tag !== 42) {
7921
+ break;
7922
+ }
7923
+ message.response = {
7924
+ $case: "internalServerError",
7925
+ internalServerError: errors_gen_1.InternalServerError.decode(reader, reader.uint32()),
7926
+ };
7927
+ continue;
7928
+ }
7929
+ if ((tag & 7) === 4 || tag === 0) {
7930
+ break;
7931
+ }
7932
+ reader.skipType(tag & 7);
7933
+ }
7934
+ return message;
7935
+ }
7936
+ RejectSpeakRequestInCommunityVoiceChatResponse.decode = decode;
7937
+ function fromJSON(object) {
7938
+ return {
7939
+ response: isSet(object.ok)
7940
+ ? { $case: "ok", ok: RejectSpeakRequestInCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
7941
+ : isSet(object.invalidRequest)
7942
+ ? { $case: "invalidRequest", invalidRequest: errors_gen_1.InvalidRequest.fromJSON(object.invalidRequest) }
7943
+ : isSet(object.forbiddenError)
7944
+ ? { $case: "forbiddenError", forbiddenError: errors_gen_1.ForbiddenError.fromJSON(object.forbiddenError) }
7945
+ : isSet(object.notFoundError)
7946
+ ? { $case: "notFoundError", notFoundError: errors_gen_1.NotFoundError.fromJSON(object.notFoundError) }
7947
+ : isSet(object.internalServerError)
7948
+ ? {
7949
+ $case: "internalServerError",
7950
+ internalServerError: errors_gen_1.InternalServerError.fromJSON(object.internalServerError),
7951
+ }
7952
+ : undefined,
7953
+ };
7954
+ }
7955
+ RejectSpeakRequestInCommunityVoiceChatResponse.fromJSON = fromJSON;
7956
+ function toJSON(message) {
7957
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
7958
+ const obj = {};
7959
+ ((_a = message.response) === null || _a === void 0 ? void 0 : _a.$case) === "ok" &&
7960
+ (obj.ok = ((_b = message.response) === null || _b === void 0 ? void 0 : _b.ok)
7961
+ ? RejectSpeakRequestInCommunityVoiceChatResponse_Ok.toJSON((_c = message.response) === null || _c === void 0 ? void 0 : _c.ok)
7962
+ : undefined);
7963
+ ((_d = message.response) === null || _d === void 0 ? void 0 : _d.$case) === "invalidRequest" &&
7964
+ (obj.invalidRequest = ((_e = message.response) === null || _e === void 0 ? void 0 : _e.invalidRequest)
7965
+ ? errors_gen_1.InvalidRequest.toJSON((_f = message.response) === null || _f === void 0 ? void 0 : _f.invalidRequest)
7966
+ : undefined);
7967
+ ((_g = message.response) === null || _g === void 0 ? void 0 : _g.$case) === "forbiddenError" &&
7968
+ (obj.forbiddenError = ((_h = message.response) === null || _h === void 0 ? void 0 : _h.forbiddenError)
7969
+ ? errors_gen_1.ForbiddenError.toJSON((_j = message.response) === null || _j === void 0 ? void 0 : _j.forbiddenError)
7970
+ : undefined);
7971
+ ((_k = message.response) === null || _k === void 0 ? void 0 : _k.$case) === "notFoundError" &&
7972
+ (obj.notFoundError = ((_l = message.response) === null || _l === void 0 ? void 0 : _l.notFoundError)
7973
+ ? errors_gen_1.NotFoundError.toJSON((_m = message.response) === null || _m === void 0 ? void 0 : _m.notFoundError)
7974
+ : undefined);
7975
+ ((_o = message.response) === null || _o === void 0 ? void 0 : _o.$case) === "internalServerError" &&
7976
+ (obj.internalServerError = ((_p = message.response) === null || _p === void 0 ? void 0 : _p.internalServerError)
7977
+ ? errors_gen_1.InternalServerError.toJSON((_q = message.response) === null || _q === void 0 ? void 0 : _q.internalServerError)
7978
+ : undefined);
7979
+ return obj;
7980
+ }
7981
+ RejectSpeakRequestInCommunityVoiceChatResponse.toJSON = toJSON;
7982
+ function create(base) {
7983
+ return RejectSpeakRequestInCommunityVoiceChatResponse.fromPartial(base !== null && base !== void 0 ? base : {});
7984
+ }
7985
+ RejectSpeakRequestInCommunityVoiceChatResponse.create = create;
7986
+ function fromPartial(object) {
7987
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
7988
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatResponse();
7989
+ 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) {
7990
+ message.response = {
7991
+ $case: "ok",
7992
+ ok: RejectSpeakRequestInCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
7993
+ };
7994
+ }
7995
+ if (((_d = object.response) === null || _d === void 0 ? void 0 : _d.$case) === "invalidRequest" &&
7996
+ ((_e = object.response) === null || _e === void 0 ? void 0 : _e.invalidRequest) !== undefined &&
7997
+ ((_f = object.response) === null || _f === void 0 ? void 0 : _f.invalidRequest) !== null) {
7998
+ message.response = {
7999
+ $case: "invalidRequest",
8000
+ invalidRequest: errors_gen_1.InvalidRequest.fromPartial(object.response.invalidRequest),
8001
+ };
8002
+ }
8003
+ if (((_g = object.response) === null || _g === void 0 ? void 0 : _g.$case) === "forbiddenError" &&
8004
+ ((_h = object.response) === null || _h === void 0 ? void 0 : _h.forbiddenError) !== undefined &&
8005
+ ((_j = object.response) === null || _j === void 0 ? void 0 : _j.forbiddenError) !== null) {
8006
+ message.response = {
8007
+ $case: "forbiddenError",
8008
+ forbiddenError: errors_gen_1.ForbiddenError.fromPartial(object.response.forbiddenError),
8009
+ };
8010
+ }
8011
+ if (((_k = object.response) === null || _k === void 0 ? void 0 : _k.$case) === "notFoundError" &&
8012
+ ((_l = object.response) === null || _l === void 0 ? void 0 : _l.notFoundError) !== undefined &&
8013
+ ((_m = object.response) === null || _m === void 0 ? void 0 : _m.notFoundError) !== null) {
8014
+ message.response = {
8015
+ $case: "notFoundError",
8016
+ notFoundError: errors_gen_1.NotFoundError.fromPartial(object.response.notFoundError),
8017
+ };
8018
+ }
8019
+ if (((_o = object.response) === null || _o === void 0 ? void 0 : _o.$case) === "internalServerError" &&
8020
+ ((_p = object.response) === null || _p === void 0 ? void 0 : _p.internalServerError) !== undefined &&
8021
+ ((_q = object.response) === null || _q === void 0 ? void 0 : _q.internalServerError) !== null) {
8022
+ message.response = {
8023
+ $case: "internalServerError",
8024
+ internalServerError: errors_gen_1.InternalServerError.fromPartial(object.response.internalServerError),
8025
+ };
8026
+ }
8027
+ return message;
8028
+ }
8029
+ RejectSpeakRequestInCommunityVoiceChatResponse.fromPartial = fromPartial;
8030
+ })(RejectSpeakRequestInCommunityVoiceChatResponse || (exports.RejectSpeakRequestInCommunityVoiceChatResponse = RejectSpeakRequestInCommunityVoiceChatResponse = {}));
8031
+ function createBaseRejectSpeakRequestInCommunityVoiceChatResponse_Ok() {
8032
+ return { message: "" };
8033
+ }
8034
+ var RejectSpeakRequestInCommunityVoiceChatResponse_Ok;
8035
+ (function (RejectSpeakRequestInCommunityVoiceChatResponse_Ok) {
8036
+ function encode(message, writer = minimal_1.default.Writer.create()) {
8037
+ if (message.message !== "") {
8038
+ writer.uint32(10).string(message.message);
8039
+ }
8040
+ return writer;
8041
+ }
8042
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.encode = encode;
8043
+ function decode(input, length) {
8044
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
8045
+ let end = length === undefined ? reader.len : reader.pos + length;
8046
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatResponse_Ok();
8047
+ while (reader.pos < end) {
8048
+ const tag = reader.uint32();
8049
+ switch (tag >>> 3) {
8050
+ case 1:
8051
+ if (tag !== 10) {
8052
+ break;
8053
+ }
8054
+ message.message = reader.string();
8055
+ continue;
8056
+ }
8057
+ if ((tag & 7) === 4 || tag === 0) {
8058
+ break;
8059
+ }
8060
+ reader.skipType(tag & 7);
8061
+ }
8062
+ return message;
8063
+ }
8064
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.decode = decode;
8065
+ function fromJSON(object) {
8066
+ return { message: isSet(object.message) ? String(object.message) : "" };
8067
+ }
8068
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.fromJSON = fromJSON;
8069
+ function toJSON(message) {
8070
+ const obj = {};
8071
+ message.message !== undefined && (obj.message = message.message);
8072
+ return obj;
8073
+ }
8074
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.toJSON = toJSON;
8075
+ function create(base) {
8076
+ return RejectSpeakRequestInCommunityVoiceChatResponse_Ok.fromPartial(base !== null && base !== void 0 ? base : {});
8077
+ }
8078
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.create = create;
8079
+ function fromPartial(object) {
8080
+ var _a;
8081
+ const message = createBaseRejectSpeakRequestInCommunityVoiceChatResponse_Ok();
8082
+ message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
8083
+ return message;
8084
+ }
8085
+ RejectSpeakRequestInCommunityVoiceChatResponse_Ok.fromPartial = fromPartial;
8086
+ })(RejectSpeakRequestInCommunityVoiceChatResponse_Ok || (exports.RejectSpeakRequestInCommunityVoiceChatResponse_Ok = RejectSpeakRequestInCommunityVoiceChatResponse_Ok = {}));
7780
8087
  function createBaseEndCommunityVoiceChatPayload() {
7781
8088
  return { communityId: "" };
7782
8089
  }
@@ -8494,6 +8801,15 @@ exports.SocialServiceDefinition = {
8494
8801
  responseStream: false,
8495
8802
  options: {},
8496
8803
  },
8804
+ /** Reject speak request in community voice chat (moderator only) */
8805
+ rejectSpeakRequestInCommunityVoiceChat: {
8806
+ name: "RejectSpeakRequestInCommunityVoiceChat",
8807
+ requestType: RejectSpeakRequestInCommunityVoiceChatPayload,
8808
+ requestStream: false,
8809
+ responseType: RejectSpeakRequestInCommunityVoiceChatResponse,
8810
+ responseStream: false,
8811
+ options: {},
8812
+ },
8497
8813
  /** End community voice chat (moderator/owner only) */
8498
8814
  endCommunityVoiceChat: {
8499
8815
  name: "EndCommunityVoiceChat",