@dcl/protocol 1.0.0-16670787325.commit-554f0f2 → 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.
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +58 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +293 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +336 -0
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +22 -0
|
@@ -629,6 +629,31 @@ 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;
|
|
@@ -1336,6 +1361,30 @@ export declare namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
|
1336
1361
|
function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(base?: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
|
|
1337
1362
|
function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(object: I): KickPlayerFromCommunityVoiceChatResponse_Ok;
|
|
1338
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
|
+
}
|
|
1339
1388
|
export declare namespace CommunityVoiceChatUpdate {
|
|
1340
1389
|
function encode(message: CommunityVoiceChatUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
1341
1390
|
function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityVoiceChatUpdate;
|
|
@@ -1605,6 +1654,15 @@ export declare const SocialServiceDefinition: {
|
|
|
1605
1654
|
readonly responseStream: false;
|
|
1606
1655
|
readonly options: {};
|
|
1607
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
|
+
};
|
|
1608
1666
|
/** Subscribe to community voice chat updates (only 'started' events) */
|
|
1609
1667
|
readonly subscribeToCommunityVoiceChatUpdates: {
|
|
1610
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,6 +7777,289 @@ 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
8064
|
return {
|
|
7782
8065
|
communityId: "",
|
|
@@ -8211,6 +8494,15 @@ exports.SocialServiceDefinition = {
|
|
|
8211
8494
|
responseStream: false,
|
|
8212
8495
|
options: {},
|
|
8213
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
|
+
},
|
|
8214
8506
|
/** Subscribe to community voice chat updates (only 'started' events) */
|
|
8215
8507
|
subscribeToCommunityVoiceChatUpdates: {
|
|
8216
8508
|
name: "SubscribeToCommunityVoiceChatUpdates",
|