@dcl/protocol 1.0.0-16429465125.commit-bac58dd → 1.0.0-16564746732.commit-501dda6
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 +402 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +2286 -205
- 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 +2585 -157
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/light_source.proto +10 -17
- package/proto/decentraland/social_service/v2/social_service_v2.proto +160 -0
|
@@ -236,6 +236,39 @@ export function privateVoiceChatStatusToJSON(object: PrivateVoiceChatStatus): st
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
export enum CommunityVoiceChatStatus {
|
|
240
|
+
COMMUNITY_VOICE_CHAT_STARTED = 0,
|
|
241
|
+
COMMUNITY_VOICE_CHAT_ENDED = 1,
|
|
242
|
+
UNRECOGNIZED = -1,
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function communityVoiceChatStatusFromJSON(object: any): CommunityVoiceChatStatus {
|
|
246
|
+
switch (object) {
|
|
247
|
+
case 0:
|
|
248
|
+
case "COMMUNITY_VOICE_CHAT_STARTED":
|
|
249
|
+
return CommunityVoiceChatStatus.COMMUNITY_VOICE_CHAT_STARTED;
|
|
250
|
+
case 1:
|
|
251
|
+
case "COMMUNITY_VOICE_CHAT_ENDED":
|
|
252
|
+
return CommunityVoiceChatStatus.COMMUNITY_VOICE_CHAT_ENDED;
|
|
253
|
+
case -1:
|
|
254
|
+
case "UNRECOGNIZED":
|
|
255
|
+
default:
|
|
256
|
+
return CommunityVoiceChatStatus.UNRECOGNIZED;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export function communityVoiceChatStatusToJSON(object: CommunityVoiceChatStatus): string {
|
|
261
|
+
switch (object) {
|
|
262
|
+
case CommunityVoiceChatStatus.COMMUNITY_VOICE_CHAT_STARTED:
|
|
263
|
+
return "COMMUNITY_VOICE_CHAT_STARTED";
|
|
264
|
+
case CommunityVoiceChatStatus.COMMUNITY_VOICE_CHAT_ENDED:
|
|
265
|
+
return "COMMUNITY_VOICE_CHAT_ENDED";
|
|
266
|
+
case CommunityVoiceChatStatus.UNRECOGNIZED:
|
|
267
|
+
default:
|
|
268
|
+
return "UNRECOGNIZED";
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
239
272
|
/** Errors */
|
|
240
273
|
export interface InvalidFriendshipAction {
|
|
241
274
|
message?: string | undefined;
|
|
@@ -643,6 +676,142 @@ export interface GetIncomingPrivateVoiceChatRequestResponse_Ok {
|
|
|
643
676
|
callId: string;
|
|
644
677
|
}
|
|
645
678
|
|
|
679
|
+
/** Community voice chat credentials - specific type for community chats */
|
|
680
|
+
export interface CommunityVoiceChatCredentials {
|
|
681
|
+
connectionUrl: string;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/** Starting a community voice chat */
|
|
685
|
+
export interface StartCommunityVoiceChatPayload {
|
|
686
|
+
communityId: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export interface StartCommunityVoiceChatResponse {
|
|
690
|
+
response?:
|
|
691
|
+
| { $case: "ok"; ok: StartCommunityVoiceChatResponse_Ok }
|
|
692
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
693
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
694
|
+
| { $case: "conflictingError"; conflictingError: ConflictingError }
|
|
695
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
696
|
+
| undefined;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export interface StartCommunityVoiceChatResponse_Ok {
|
|
700
|
+
/** Moderator gets credentials immediately */
|
|
701
|
+
credentials: CommunityVoiceChatCredentials | undefined;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/** Joining a community voice chat */
|
|
705
|
+
export interface JoinCommunityVoiceChatPayload {
|
|
706
|
+
communityId: string;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
export interface JoinCommunityVoiceChatResponse {
|
|
710
|
+
response?:
|
|
711
|
+
| { $case: "ok"; ok: JoinCommunityVoiceChatResponse_Ok }
|
|
712
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
713
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
714
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
715
|
+
| { $case: "conflictingError"; conflictingError: ConflictingError }
|
|
716
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
717
|
+
| undefined;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export interface JoinCommunityVoiceChatResponse_Ok {
|
|
721
|
+
voiceChatId: string;
|
|
722
|
+
credentials: CommunityVoiceChatCredentials | undefined;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** Request to speak in community voice chat */
|
|
726
|
+
export interface RequestToSpeakInCommunityVoiceChatPayload {
|
|
727
|
+
communityId: string;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export interface RequestToSpeakInCommunityVoiceChatResponse {
|
|
731
|
+
response?:
|
|
732
|
+
| { $case: "ok"; ok: RequestToSpeakInCommunityVoiceChatResponse_Ok }
|
|
733
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
734
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
735
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
736
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
737
|
+
| undefined;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export interface RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
741
|
+
message: string;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/** Promote speaker in community voice chat */
|
|
745
|
+
export interface PromoteSpeakerInCommunityVoiceChatPayload {
|
|
746
|
+
communityId: string;
|
|
747
|
+
userAddress: string;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export interface PromoteSpeakerInCommunityVoiceChatResponse {
|
|
751
|
+
response?:
|
|
752
|
+
| { $case: "ok"; ok: PromoteSpeakerInCommunityVoiceChatResponse_Ok }
|
|
753
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
754
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
755
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
756
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
757
|
+
| undefined;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export interface PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
761
|
+
message: string;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/** Demote speaker in community voice chat */
|
|
765
|
+
export interface DemoteSpeakerInCommunityVoiceChatPayload {
|
|
766
|
+
communityId: string;
|
|
767
|
+
userAddress: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export interface DemoteSpeakerInCommunityVoiceChatResponse {
|
|
771
|
+
response?:
|
|
772
|
+
| { $case: "ok"; ok: DemoteSpeakerInCommunityVoiceChatResponse_Ok }
|
|
773
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
774
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
775
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
776
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
777
|
+
| undefined;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export interface DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
781
|
+
message: string;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/** Kick player from community voice chat */
|
|
785
|
+
export interface KickPlayerFromCommunityVoiceChatPayload {
|
|
786
|
+
communityId: string;
|
|
787
|
+
userAddress: string;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export interface KickPlayerFromCommunityVoiceChatResponse {
|
|
791
|
+
response?:
|
|
792
|
+
| { $case: "ok"; ok: KickPlayerFromCommunityVoiceChatResponse_Ok }
|
|
793
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
794
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
795
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
796
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
797
|
+
| undefined;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
801
|
+
message: string;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/** Community voice chat updates/events - 'started' and 'ended' status */
|
|
805
|
+
export interface CommunityVoiceChatUpdate {
|
|
806
|
+
communityId: string;
|
|
807
|
+
voiceChatId: string;
|
|
808
|
+
createdAt: number;
|
|
809
|
+
/** 'started' or 'ended' */
|
|
810
|
+
status: CommunityVoiceChatStatus;
|
|
811
|
+
/** Only present when status is 'ended' */
|
|
812
|
+
endedAt?: number | undefined;
|
|
813
|
+
}
|
|
814
|
+
|
|
646
815
|
function createBaseInvalidFriendshipAction(): InvalidFriendshipAction {
|
|
647
816
|
return { message: undefined };
|
|
648
817
|
}
|
|
@@ -7031,163 +7200,2359 @@ export namespace GetIncomingPrivateVoiceChatRequestResponse_Ok {
|
|
|
7031
7200
|
}
|
|
7032
7201
|
}
|
|
7033
7202
|
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
}
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
}
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7203
|
+
function createBaseCommunityVoiceChatCredentials(): CommunityVoiceChatCredentials {
|
|
7204
|
+
return { connectionUrl: "" };
|
|
7205
|
+
}
|
|
7206
|
+
|
|
7207
|
+
export namespace CommunityVoiceChatCredentials {
|
|
7208
|
+
export function encode(message: CommunityVoiceChatCredentials, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7209
|
+
if (message.connectionUrl !== "") {
|
|
7210
|
+
writer.uint32(10).string(message.connectionUrl);
|
|
7211
|
+
}
|
|
7212
|
+
return writer;
|
|
7213
|
+
}
|
|
7214
|
+
|
|
7215
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityVoiceChatCredentials {
|
|
7216
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7217
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7218
|
+
const message = createBaseCommunityVoiceChatCredentials();
|
|
7219
|
+
while (reader.pos < end) {
|
|
7220
|
+
const tag = reader.uint32();
|
|
7221
|
+
switch (tag >>> 3) {
|
|
7222
|
+
case 1:
|
|
7223
|
+
if (tag !== 10) {
|
|
7224
|
+
break;
|
|
7225
|
+
}
|
|
7226
|
+
|
|
7227
|
+
message.connectionUrl = reader.string();
|
|
7228
|
+
continue;
|
|
7229
|
+
}
|
|
7230
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7231
|
+
break;
|
|
7232
|
+
}
|
|
7233
|
+
reader.skipType(tag & 7);
|
|
7234
|
+
}
|
|
7235
|
+
return message;
|
|
7236
|
+
}
|
|
7237
|
+
|
|
7238
|
+
export function fromJSON(object: any): CommunityVoiceChatCredentials {
|
|
7239
|
+
return { connectionUrl: isSet(object.connectionUrl) ? String(object.connectionUrl) : "" };
|
|
7240
|
+
}
|
|
7241
|
+
|
|
7242
|
+
export function toJSON(message: CommunityVoiceChatCredentials): unknown {
|
|
7243
|
+
const obj: any = {};
|
|
7244
|
+
message.connectionUrl !== undefined && (obj.connectionUrl = message.connectionUrl);
|
|
7245
|
+
return obj;
|
|
7246
|
+
}
|
|
7247
|
+
|
|
7248
|
+
export function create<I extends Exact<DeepPartial<CommunityVoiceChatCredentials>, I>>(
|
|
7249
|
+
base?: I,
|
|
7250
|
+
): CommunityVoiceChatCredentials {
|
|
7251
|
+
return CommunityVoiceChatCredentials.fromPartial(base ?? {});
|
|
7252
|
+
}
|
|
7253
|
+
|
|
7254
|
+
export function fromPartial<I extends Exact<DeepPartial<CommunityVoiceChatCredentials>, I>>(
|
|
7255
|
+
object: I,
|
|
7256
|
+
): CommunityVoiceChatCredentials {
|
|
7257
|
+
const message = createBaseCommunityVoiceChatCredentials();
|
|
7258
|
+
message.connectionUrl = object.connectionUrl ?? "";
|
|
7259
|
+
return message;
|
|
7260
|
+
}
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
function createBaseStartCommunityVoiceChatPayload(): StartCommunityVoiceChatPayload {
|
|
7264
|
+
return { communityId: "" };
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
export namespace StartCommunityVoiceChatPayload {
|
|
7268
|
+
export function encode(
|
|
7269
|
+
message: StartCommunityVoiceChatPayload,
|
|
7270
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7271
|
+
): _m0.Writer {
|
|
7272
|
+
if (message.communityId !== "") {
|
|
7273
|
+
writer.uint32(10).string(message.communityId);
|
|
7274
|
+
}
|
|
7275
|
+
return writer;
|
|
7276
|
+
}
|
|
7277
|
+
|
|
7278
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): StartCommunityVoiceChatPayload {
|
|
7279
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7280
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7281
|
+
const message = createBaseStartCommunityVoiceChatPayload();
|
|
7282
|
+
while (reader.pos < end) {
|
|
7283
|
+
const tag = reader.uint32();
|
|
7284
|
+
switch (tag >>> 3) {
|
|
7285
|
+
case 1:
|
|
7286
|
+
if (tag !== 10) {
|
|
7287
|
+
break;
|
|
7288
|
+
}
|
|
7289
|
+
|
|
7290
|
+
message.communityId = reader.string();
|
|
7291
|
+
continue;
|
|
7292
|
+
}
|
|
7293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7294
|
+
break;
|
|
7295
|
+
}
|
|
7296
|
+
reader.skipType(tag & 7);
|
|
7297
|
+
}
|
|
7298
|
+
return message;
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
export function fromJSON(object: any): StartCommunityVoiceChatPayload {
|
|
7302
|
+
return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
|
|
7303
|
+
}
|
|
7304
|
+
|
|
7305
|
+
export function toJSON(message: StartCommunityVoiceChatPayload): unknown {
|
|
7306
|
+
const obj: any = {};
|
|
7307
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
7308
|
+
return obj;
|
|
7309
|
+
}
|
|
7310
|
+
|
|
7311
|
+
export function create<I extends Exact<DeepPartial<StartCommunityVoiceChatPayload>, I>>(
|
|
7312
|
+
base?: I,
|
|
7313
|
+
): StartCommunityVoiceChatPayload {
|
|
7314
|
+
return StartCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
7315
|
+
}
|
|
7316
|
+
|
|
7317
|
+
export function fromPartial<I extends Exact<DeepPartial<StartCommunityVoiceChatPayload>, I>>(
|
|
7318
|
+
object: I,
|
|
7319
|
+
): StartCommunityVoiceChatPayload {
|
|
7320
|
+
const message = createBaseStartCommunityVoiceChatPayload();
|
|
7321
|
+
message.communityId = object.communityId ?? "";
|
|
7322
|
+
return message;
|
|
7323
|
+
}
|
|
7324
|
+
}
|
|
7325
|
+
|
|
7326
|
+
function createBaseStartCommunityVoiceChatResponse(): StartCommunityVoiceChatResponse {
|
|
7327
|
+
return { response: undefined };
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
export namespace StartCommunityVoiceChatResponse {
|
|
7331
|
+
export function encode(
|
|
7332
|
+
message: StartCommunityVoiceChatResponse,
|
|
7333
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7334
|
+
): _m0.Writer {
|
|
7335
|
+
switch (message.response?.$case) {
|
|
7336
|
+
case "ok":
|
|
7337
|
+
StartCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
7338
|
+
break;
|
|
7339
|
+
case "invalidRequest":
|
|
7340
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
7341
|
+
break;
|
|
7342
|
+
case "forbiddenError":
|
|
7343
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
7344
|
+
break;
|
|
7345
|
+
case "conflictingError":
|
|
7346
|
+
ConflictingError.encode(message.response.conflictingError, writer.uint32(34).fork()).ldelim();
|
|
7347
|
+
break;
|
|
7348
|
+
case "internalServerError":
|
|
7349
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
7350
|
+
break;
|
|
7351
|
+
}
|
|
7352
|
+
return writer;
|
|
7353
|
+
}
|
|
7354
|
+
|
|
7355
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): StartCommunityVoiceChatResponse {
|
|
7356
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7357
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7358
|
+
const message = createBaseStartCommunityVoiceChatResponse();
|
|
7359
|
+
while (reader.pos < end) {
|
|
7360
|
+
const tag = reader.uint32();
|
|
7361
|
+
switch (tag >>> 3) {
|
|
7362
|
+
case 1:
|
|
7363
|
+
if (tag !== 10) {
|
|
7364
|
+
break;
|
|
7365
|
+
}
|
|
7366
|
+
|
|
7367
|
+
message.response = { $case: "ok", ok: StartCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()) };
|
|
7368
|
+
continue;
|
|
7369
|
+
case 2:
|
|
7370
|
+
if (tag !== 18) {
|
|
7371
|
+
break;
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7374
|
+
message.response = {
|
|
7375
|
+
$case: "invalidRequest",
|
|
7376
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
7377
|
+
};
|
|
7378
|
+
continue;
|
|
7379
|
+
case 3:
|
|
7380
|
+
if (tag !== 26) {
|
|
7381
|
+
break;
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
message.response = {
|
|
7385
|
+
$case: "forbiddenError",
|
|
7386
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
7387
|
+
};
|
|
7388
|
+
continue;
|
|
7389
|
+
case 4:
|
|
7390
|
+
if (tag !== 34) {
|
|
7391
|
+
break;
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7394
|
+
message.response = {
|
|
7395
|
+
$case: "conflictingError",
|
|
7396
|
+
conflictingError: ConflictingError.decode(reader, reader.uint32()),
|
|
7397
|
+
};
|
|
7398
|
+
continue;
|
|
7399
|
+
case 5:
|
|
7400
|
+
if (tag !== 42) {
|
|
7401
|
+
break;
|
|
7402
|
+
}
|
|
7403
|
+
|
|
7404
|
+
message.response = {
|
|
7405
|
+
$case: "internalServerError",
|
|
7406
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
7407
|
+
};
|
|
7408
|
+
continue;
|
|
7409
|
+
}
|
|
7410
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7411
|
+
break;
|
|
7412
|
+
}
|
|
7413
|
+
reader.skipType(tag & 7);
|
|
7414
|
+
}
|
|
7415
|
+
return message;
|
|
7416
|
+
}
|
|
7417
|
+
|
|
7418
|
+
export function fromJSON(object: any): StartCommunityVoiceChatResponse {
|
|
7419
|
+
return {
|
|
7420
|
+
response: isSet(object.ok)
|
|
7421
|
+
? { $case: "ok", ok: StartCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
7422
|
+
: isSet(object.invalidRequest)
|
|
7423
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
7424
|
+
: isSet(object.forbiddenError)
|
|
7425
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
7426
|
+
: isSet(object.conflictingError)
|
|
7427
|
+
? { $case: "conflictingError", conflictingError: ConflictingError.fromJSON(object.conflictingError) }
|
|
7428
|
+
: isSet(object.internalServerError)
|
|
7429
|
+
? {
|
|
7430
|
+
$case: "internalServerError",
|
|
7431
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
7432
|
+
}
|
|
7433
|
+
: undefined,
|
|
7434
|
+
};
|
|
7435
|
+
}
|
|
7436
|
+
|
|
7437
|
+
export function toJSON(message: StartCommunityVoiceChatResponse): unknown {
|
|
7438
|
+
const obj: any = {};
|
|
7439
|
+
message.response?.$case === "ok" &&
|
|
7440
|
+
(obj.ok = message.response?.ok ? StartCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok) : undefined);
|
|
7441
|
+
message.response?.$case === "invalidRequest" &&
|
|
7442
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
7443
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
7444
|
+
: undefined);
|
|
7445
|
+
message.response?.$case === "forbiddenError" &&
|
|
7446
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
7447
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
7448
|
+
: undefined);
|
|
7449
|
+
message.response?.$case === "conflictingError" &&
|
|
7450
|
+
(obj.conflictingError = message.response?.conflictingError
|
|
7451
|
+
? ConflictingError.toJSON(message.response?.conflictingError)
|
|
7452
|
+
: undefined);
|
|
7453
|
+
message.response?.$case === "internalServerError" &&
|
|
7454
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
7455
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
7456
|
+
: undefined);
|
|
7457
|
+
return obj;
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7460
|
+
export function create<I extends Exact<DeepPartial<StartCommunityVoiceChatResponse>, I>>(
|
|
7461
|
+
base?: I,
|
|
7462
|
+
): StartCommunityVoiceChatResponse {
|
|
7463
|
+
return StartCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
7464
|
+
}
|
|
7465
|
+
|
|
7466
|
+
export function fromPartial<I extends Exact<DeepPartial<StartCommunityVoiceChatResponse>, I>>(
|
|
7467
|
+
object: I,
|
|
7468
|
+
): StartCommunityVoiceChatResponse {
|
|
7469
|
+
const message = createBaseStartCommunityVoiceChatResponse();
|
|
7470
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
7471
|
+
message.response = { $case: "ok", ok: StartCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok) };
|
|
7472
|
+
}
|
|
7473
|
+
if (
|
|
7474
|
+
object.response?.$case === "invalidRequest" &&
|
|
7475
|
+
object.response?.invalidRequest !== undefined &&
|
|
7476
|
+
object.response?.invalidRequest !== null
|
|
7477
|
+
) {
|
|
7478
|
+
message.response = {
|
|
7479
|
+
$case: "invalidRequest",
|
|
7480
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
7481
|
+
};
|
|
7482
|
+
}
|
|
7483
|
+
if (
|
|
7484
|
+
object.response?.$case === "forbiddenError" &&
|
|
7485
|
+
object.response?.forbiddenError !== undefined &&
|
|
7486
|
+
object.response?.forbiddenError !== null
|
|
7487
|
+
) {
|
|
7488
|
+
message.response = {
|
|
7489
|
+
$case: "forbiddenError",
|
|
7490
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
7491
|
+
};
|
|
7492
|
+
}
|
|
7493
|
+
if (
|
|
7494
|
+
object.response?.$case === "conflictingError" &&
|
|
7495
|
+
object.response?.conflictingError !== undefined &&
|
|
7496
|
+
object.response?.conflictingError !== null
|
|
7497
|
+
) {
|
|
7498
|
+
message.response = {
|
|
7499
|
+
$case: "conflictingError",
|
|
7500
|
+
conflictingError: ConflictingError.fromPartial(object.response.conflictingError),
|
|
7501
|
+
};
|
|
7502
|
+
}
|
|
7503
|
+
if (
|
|
7504
|
+
object.response?.$case === "internalServerError" &&
|
|
7505
|
+
object.response?.internalServerError !== undefined &&
|
|
7506
|
+
object.response?.internalServerError !== null
|
|
7507
|
+
) {
|
|
7508
|
+
message.response = {
|
|
7509
|
+
$case: "internalServerError",
|
|
7510
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
7511
|
+
};
|
|
7512
|
+
}
|
|
7513
|
+
return message;
|
|
7514
|
+
}
|
|
7515
|
+
}
|
|
7516
|
+
|
|
7517
|
+
function createBaseStartCommunityVoiceChatResponse_Ok(): StartCommunityVoiceChatResponse_Ok {
|
|
7518
|
+
return { credentials: undefined };
|
|
7519
|
+
}
|
|
7520
|
+
|
|
7521
|
+
export namespace StartCommunityVoiceChatResponse_Ok {
|
|
7522
|
+
export function encode(
|
|
7523
|
+
message: StartCommunityVoiceChatResponse_Ok,
|
|
7524
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7525
|
+
): _m0.Writer {
|
|
7526
|
+
if (message.credentials !== undefined) {
|
|
7527
|
+
CommunityVoiceChatCredentials.encode(message.credentials, writer.uint32(10).fork()).ldelim();
|
|
7528
|
+
}
|
|
7529
|
+
return writer;
|
|
7530
|
+
}
|
|
7531
|
+
|
|
7532
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): StartCommunityVoiceChatResponse_Ok {
|
|
7533
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7535
|
+
const message = createBaseStartCommunityVoiceChatResponse_Ok();
|
|
7536
|
+
while (reader.pos < end) {
|
|
7537
|
+
const tag = reader.uint32();
|
|
7538
|
+
switch (tag >>> 3) {
|
|
7539
|
+
case 1:
|
|
7540
|
+
if (tag !== 10) {
|
|
7541
|
+
break;
|
|
7542
|
+
}
|
|
7543
|
+
|
|
7544
|
+
message.credentials = CommunityVoiceChatCredentials.decode(reader, reader.uint32());
|
|
7545
|
+
continue;
|
|
7546
|
+
}
|
|
7547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7548
|
+
break;
|
|
7549
|
+
}
|
|
7550
|
+
reader.skipType(tag & 7);
|
|
7551
|
+
}
|
|
7552
|
+
return message;
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
export function fromJSON(object: any): StartCommunityVoiceChatResponse_Ok {
|
|
7556
|
+
return {
|
|
7557
|
+
credentials: isSet(object.credentials) ? CommunityVoiceChatCredentials.fromJSON(object.credentials) : undefined,
|
|
7558
|
+
};
|
|
7559
|
+
}
|
|
7560
|
+
|
|
7561
|
+
export function toJSON(message: StartCommunityVoiceChatResponse_Ok): unknown {
|
|
7562
|
+
const obj: any = {};
|
|
7563
|
+
message.credentials !== undefined &&
|
|
7564
|
+
(obj.credentials = message.credentials ? CommunityVoiceChatCredentials.toJSON(message.credentials) : undefined);
|
|
7565
|
+
return obj;
|
|
7566
|
+
}
|
|
7567
|
+
|
|
7568
|
+
export function create<I extends Exact<DeepPartial<StartCommunityVoiceChatResponse_Ok>, I>>(
|
|
7569
|
+
base?: I,
|
|
7570
|
+
): StartCommunityVoiceChatResponse_Ok {
|
|
7571
|
+
return StartCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
7572
|
+
}
|
|
7573
|
+
|
|
7574
|
+
export function fromPartial<I extends Exact<DeepPartial<StartCommunityVoiceChatResponse_Ok>, I>>(
|
|
7575
|
+
object: I,
|
|
7576
|
+
): StartCommunityVoiceChatResponse_Ok {
|
|
7577
|
+
const message = createBaseStartCommunityVoiceChatResponse_Ok();
|
|
7578
|
+
message.credentials = (object.credentials !== undefined && object.credentials !== null)
|
|
7579
|
+
? CommunityVoiceChatCredentials.fromPartial(object.credentials)
|
|
7580
|
+
: undefined;
|
|
7581
|
+
return message;
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
|
|
7585
|
+
function createBaseJoinCommunityVoiceChatPayload(): JoinCommunityVoiceChatPayload {
|
|
7586
|
+
return { communityId: "" };
|
|
7587
|
+
}
|
|
7588
|
+
|
|
7589
|
+
export namespace JoinCommunityVoiceChatPayload {
|
|
7590
|
+
export function encode(message: JoinCommunityVoiceChatPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7591
|
+
if (message.communityId !== "") {
|
|
7592
|
+
writer.uint32(10).string(message.communityId);
|
|
7593
|
+
}
|
|
7594
|
+
return writer;
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7597
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): JoinCommunityVoiceChatPayload {
|
|
7598
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7599
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7600
|
+
const message = createBaseJoinCommunityVoiceChatPayload();
|
|
7601
|
+
while (reader.pos < end) {
|
|
7602
|
+
const tag = reader.uint32();
|
|
7603
|
+
switch (tag >>> 3) {
|
|
7604
|
+
case 1:
|
|
7605
|
+
if (tag !== 10) {
|
|
7606
|
+
break;
|
|
7607
|
+
}
|
|
7608
|
+
|
|
7609
|
+
message.communityId = reader.string();
|
|
7610
|
+
continue;
|
|
7611
|
+
}
|
|
7612
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7613
|
+
break;
|
|
7614
|
+
}
|
|
7615
|
+
reader.skipType(tag & 7);
|
|
7616
|
+
}
|
|
7617
|
+
return message;
|
|
7618
|
+
}
|
|
7619
|
+
|
|
7620
|
+
export function fromJSON(object: any): JoinCommunityVoiceChatPayload {
|
|
7621
|
+
return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
|
|
7622
|
+
}
|
|
7623
|
+
|
|
7624
|
+
export function toJSON(message: JoinCommunityVoiceChatPayload): unknown {
|
|
7625
|
+
const obj: any = {};
|
|
7626
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
7627
|
+
return obj;
|
|
7628
|
+
}
|
|
7629
|
+
|
|
7630
|
+
export function create<I extends Exact<DeepPartial<JoinCommunityVoiceChatPayload>, I>>(
|
|
7631
|
+
base?: I,
|
|
7632
|
+
): JoinCommunityVoiceChatPayload {
|
|
7633
|
+
return JoinCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7636
|
+
export function fromPartial<I extends Exact<DeepPartial<JoinCommunityVoiceChatPayload>, I>>(
|
|
7637
|
+
object: I,
|
|
7638
|
+
): JoinCommunityVoiceChatPayload {
|
|
7639
|
+
const message = createBaseJoinCommunityVoiceChatPayload();
|
|
7640
|
+
message.communityId = object.communityId ?? "";
|
|
7641
|
+
return message;
|
|
7642
|
+
}
|
|
7643
|
+
}
|
|
7644
|
+
|
|
7645
|
+
function createBaseJoinCommunityVoiceChatResponse(): JoinCommunityVoiceChatResponse {
|
|
7646
|
+
return { response: undefined };
|
|
7647
|
+
}
|
|
7648
|
+
|
|
7649
|
+
export namespace JoinCommunityVoiceChatResponse {
|
|
7650
|
+
export function encode(
|
|
7651
|
+
message: JoinCommunityVoiceChatResponse,
|
|
7652
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7653
|
+
): _m0.Writer {
|
|
7654
|
+
switch (message.response?.$case) {
|
|
7655
|
+
case "ok":
|
|
7656
|
+
JoinCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
7657
|
+
break;
|
|
7658
|
+
case "invalidRequest":
|
|
7659
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
7660
|
+
break;
|
|
7661
|
+
case "forbiddenError":
|
|
7662
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
7663
|
+
break;
|
|
7664
|
+
case "notFoundError":
|
|
7665
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
7666
|
+
break;
|
|
7667
|
+
case "conflictingError":
|
|
7668
|
+
ConflictingError.encode(message.response.conflictingError, writer.uint32(42).fork()).ldelim();
|
|
7669
|
+
break;
|
|
7670
|
+
case "internalServerError":
|
|
7671
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(50).fork()).ldelim();
|
|
7672
|
+
break;
|
|
7673
|
+
}
|
|
7674
|
+
return writer;
|
|
7675
|
+
}
|
|
7676
|
+
|
|
7677
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): JoinCommunityVoiceChatResponse {
|
|
7678
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7679
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7680
|
+
const message = createBaseJoinCommunityVoiceChatResponse();
|
|
7681
|
+
while (reader.pos < end) {
|
|
7682
|
+
const tag = reader.uint32();
|
|
7683
|
+
switch (tag >>> 3) {
|
|
7684
|
+
case 1:
|
|
7685
|
+
if (tag !== 10) {
|
|
7686
|
+
break;
|
|
7687
|
+
}
|
|
7688
|
+
|
|
7689
|
+
message.response = { $case: "ok", ok: JoinCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()) };
|
|
7690
|
+
continue;
|
|
7691
|
+
case 2:
|
|
7692
|
+
if (tag !== 18) {
|
|
7693
|
+
break;
|
|
7694
|
+
}
|
|
7695
|
+
|
|
7696
|
+
message.response = {
|
|
7697
|
+
$case: "invalidRequest",
|
|
7698
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
7699
|
+
};
|
|
7700
|
+
continue;
|
|
7701
|
+
case 3:
|
|
7702
|
+
if (tag !== 26) {
|
|
7703
|
+
break;
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7706
|
+
message.response = {
|
|
7707
|
+
$case: "forbiddenError",
|
|
7708
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
7709
|
+
};
|
|
7710
|
+
continue;
|
|
7711
|
+
case 4:
|
|
7712
|
+
if (tag !== 34) {
|
|
7713
|
+
break;
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
7717
|
+
continue;
|
|
7718
|
+
case 5:
|
|
7719
|
+
if (tag !== 42) {
|
|
7720
|
+
break;
|
|
7721
|
+
}
|
|
7722
|
+
|
|
7723
|
+
message.response = {
|
|
7724
|
+
$case: "conflictingError",
|
|
7725
|
+
conflictingError: ConflictingError.decode(reader, reader.uint32()),
|
|
7726
|
+
};
|
|
7727
|
+
continue;
|
|
7728
|
+
case 6:
|
|
7729
|
+
if (tag !== 50) {
|
|
7730
|
+
break;
|
|
7731
|
+
}
|
|
7732
|
+
|
|
7733
|
+
message.response = {
|
|
7734
|
+
$case: "internalServerError",
|
|
7735
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
7736
|
+
};
|
|
7737
|
+
continue;
|
|
7738
|
+
}
|
|
7739
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7740
|
+
break;
|
|
7741
|
+
}
|
|
7742
|
+
reader.skipType(tag & 7);
|
|
7743
|
+
}
|
|
7744
|
+
return message;
|
|
7745
|
+
}
|
|
7746
|
+
|
|
7747
|
+
export function fromJSON(object: any): JoinCommunityVoiceChatResponse {
|
|
7748
|
+
return {
|
|
7749
|
+
response: isSet(object.ok)
|
|
7750
|
+
? { $case: "ok", ok: JoinCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
7751
|
+
: isSet(object.invalidRequest)
|
|
7752
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
7753
|
+
: isSet(object.forbiddenError)
|
|
7754
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
7755
|
+
: isSet(object.notFoundError)
|
|
7756
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
7757
|
+
: isSet(object.conflictingError)
|
|
7758
|
+
? { $case: "conflictingError", conflictingError: ConflictingError.fromJSON(object.conflictingError) }
|
|
7759
|
+
: isSet(object.internalServerError)
|
|
7760
|
+
? {
|
|
7761
|
+
$case: "internalServerError",
|
|
7762
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
7763
|
+
}
|
|
7764
|
+
: undefined,
|
|
7765
|
+
};
|
|
7766
|
+
}
|
|
7767
|
+
|
|
7768
|
+
export function toJSON(message: JoinCommunityVoiceChatResponse): unknown {
|
|
7769
|
+
const obj: any = {};
|
|
7770
|
+
message.response?.$case === "ok" &&
|
|
7771
|
+
(obj.ok = message.response?.ok ? JoinCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok) : undefined);
|
|
7772
|
+
message.response?.$case === "invalidRequest" &&
|
|
7773
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
7774
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
7775
|
+
: undefined);
|
|
7776
|
+
message.response?.$case === "forbiddenError" &&
|
|
7777
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
7778
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
7779
|
+
: undefined);
|
|
7780
|
+
message.response?.$case === "notFoundError" &&
|
|
7781
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
7782
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
7783
|
+
: undefined);
|
|
7784
|
+
message.response?.$case === "conflictingError" &&
|
|
7785
|
+
(obj.conflictingError = message.response?.conflictingError
|
|
7786
|
+
? ConflictingError.toJSON(message.response?.conflictingError)
|
|
7787
|
+
: undefined);
|
|
7788
|
+
message.response?.$case === "internalServerError" &&
|
|
7789
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
7790
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
7791
|
+
: undefined);
|
|
7792
|
+
return obj;
|
|
7793
|
+
}
|
|
7794
|
+
|
|
7795
|
+
export function create<I extends Exact<DeepPartial<JoinCommunityVoiceChatResponse>, I>>(
|
|
7796
|
+
base?: I,
|
|
7797
|
+
): JoinCommunityVoiceChatResponse {
|
|
7798
|
+
return JoinCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
7799
|
+
}
|
|
7800
|
+
|
|
7801
|
+
export function fromPartial<I extends Exact<DeepPartial<JoinCommunityVoiceChatResponse>, I>>(
|
|
7802
|
+
object: I,
|
|
7803
|
+
): JoinCommunityVoiceChatResponse {
|
|
7804
|
+
const message = createBaseJoinCommunityVoiceChatResponse();
|
|
7805
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
7806
|
+
message.response = { $case: "ok", ok: JoinCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok) };
|
|
7807
|
+
}
|
|
7808
|
+
if (
|
|
7809
|
+
object.response?.$case === "invalidRequest" &&
|
|
7810
|
+
object.response?.invalidRequest !== undefined &&
|
|
7811
|
+
object.response?.invalidRequest !== null
|
|
7812
|
+
) {
|
|
7813
|
+
message.response = {
|
|
7814
|
+
$case: "invalidRequest",
|
|
7815
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
7816
|
+
};
|
|
7817
|
+
}
|
|
7818
|
+
if (
|
|
7819
|
+
object.response?.$case === "forbiddenError" &&
|
|
7820
|
+
object.response?.forbiddenError !== undefined &&
|
|
7821
|
+
object.response?.forbiddenError !== null
|
|
7822
|
+
) {
|
|
7823
|
+
message.response = {
|
|
7824
|
+
$case: "forbiddenError",
|
|
7825
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
7826
|
+
};
|
|
7827
|
+
}
|
|
7828
|
+
if (
|
|
7829
|
+
object.response?.$case === "notFoundError" &&
|
|
7830
|
+
object.response?.notFoundError !== undefined &&
|
|
7831
|
+
object.response?.notFoundError !== null
|
|
7832
|
+
) {
|
|
7833
|
+
message.response = {
|
|
7834
|
+
$case: "notFoundError",
|
|
7835
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
7836
|
+
};
|
|
7837
|
+
}
|
|
7838
|
+
if (
|
|
7839
|
+
object.response?.$case === "conflictingError" &&
|
|
7840
|
+
object.response?.conflictingError !== undefined &&
|
|
7841
|
+
object.response?.conflictingError !== null
|
|
7842
|
+
) {
|
|
7843
|
+
message.response = {
|
|
7844
|
+
$case: "conflictingError",
|
|
7845
|
+
conflictingError: ConflictingError.fromPartial(object.response.conflictingError),
|
|
7846
|
+
};
|
|
7847
|
+
}
|
|
7848
|
+
if (
|
|
7849
|
+
object.response?.$case === "internalServerError" &&
|
|
7850
|
+
object.response?.internalServerError !== undefined &&
|
|
7851
|
+
object.response?.internalServerError !== null
|
|
7852
|
+
) {
|
|
7853
|
+
message.response = {
|
|
7854
|
+
$case: "internalServerError",
|
|
7855
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
7856
|
+
};
|
|
7857
|
+
}
|
|
7858
|
+
return message;
|
|
7859
|
+
}
|
|
7860
|
+
}
|
|
7861
|
+
|
|
7862
|
+
function createBaseJoinCommunityVoiceChatResponse_Ok(): JoinCommunityVoiceChatResponse_Ok {
|
|
7863
|
+
return { voiceChatId: "", credentials: undefined };
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7866
|
+
export namespace JoinCommunityVoiceChatResponse_Ok {
|
|
7867
|
+
export function encode(
|
|
7868
|
+
message: JoinCommunityVoiceChatResponse_Ok,
|
|
7869
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7870
|
+
): _m0.Writer {
|
|
7871
|
+
if (message.voiceChatId !== "") {
|
|
7872
|
+
writer.uint32(10).string(message.voiceChatId);
|
|
7873
|
+
}
|
|
7874
|
+
if (message.credentials !== undefined) {
|
|
7875
|
+
CommunityVoiceChatCredentials.encode(message.credentials, writer.uint32(18).fork()).ldelim();
|
|
7876
|
+
}
|
|
7877
|
+
return writer;
|
|
7878
|
+
}
|
|
7879
|
+
|
|
7880
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): JoinCommunityVoiceChatResponse_Ok {
|
|
7881
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7882
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7883
|
+
const message = createBaseJoinCommunityVoiceChatResponse_Ok();
|
|
7884
|
+
while (reader.pos < end) {
|
|
7885
|
+
const tag = reader.uint32();
|
|
7886
|
+
switch (tag >>> 3) {
|
|
7887
|
+
case 1:
|
|
7888
|
+
if (tag !== 10) {
|
|
7889
|
+
break;
|
|
7890
|
+
}
|
|
7891
|
+
|
|
7892
|
+
message.voiceChatId = reader.string();
|
|
7893
|
+
continue;
|
|
7894
|
+
case 2:
|
|
7895
|
+
if (tag !== 18) {
|
|
7896
|
+
break;
|
|
7897
|
+
}
|
|
7898
|
+
|
|
7899
|
+
message.credentials = CommunityVoiceChatCredentials.decode(reader, reader.uint32());
|
|
7900
|
+
continue;
|
|
7901
|
+
}
|
|
7902
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7903
|
+
break;
|
|
7904
|
+
}
|
|
7905
|
+
reader.skipType(tag & 7);
|
|
7906
|
+
}
|
|
7907
|
+
return message;
|
|
7908
|
+
}
|
|
7909
|
+
|
|
7910
|
+
export function fromJSON(object: any): JoinCommunityVoiceChatResponse_Ok {
|
|
7911
|
+
return {
|
|
7912
|
+
voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
|
|
7913
|
+
credentials: isSet(object.credentials) ? CommunityVoiceChatCredentials.fromJSON(object.credentials) : undefined,
|
|
7914
|
+
};
|
|
7915
|
+
}
|
|
7916
|
+
|
|
7917
|
+
export function toJSON(message: JoinCommunityVoiceChatResponse_Ok): unknown {
|
|
7918
|
+
const obj: any = {};
|
|
7919
|
+
message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
|
|
7920
|
+
message.credentials !== undefined &&
|
|
7921
|
+
(obj.credentials = message.credentials ? CommunityVoiceChatCredentials.toJSON(message.credentials) : undefined);
|
|
7922
|
+
return obj;
|
|
7923
|
+
}
|
|
7924
|
+
|
|
7925
|
+
export function create<I extends Exact<DeepPartial<JoinCommunityVoiceChatResponse_Ok>, I>>(
|
|
7926
|
+
base?: I,
|
|
7927
|
+
): JoinCommunityVoiceChatResponse_Ok {
|
|
7928
|
+
return JoinCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
7929
|
+
}
|
|
7930
|
+
|
|
7931
|
+
export function fromPartial<I extends Exact<DeepPartial<JoinCommunityVoiceChatResponse_Ok>, I>>(
|
|
7932
|
+
object: I,
|
|
7933
|
+
): JoinCommunityVoiceChatResponse_Ok {
|
|
7934
|
+
const message = createBaseJoinCommunityVoiceChatResponse_Ok();
|
|
7935
|
+
message.voiceChatId = object.voiceChatId ?? "";
|
|
7936
|
+
message.credentials = (object.credentials !== undefined && object.credentials !== null)
|
|
7937
|
+
? CommunityVoiceChatCredentials.fromPartial(object.credentials)
|
|
7938
|
+
: undefined;
|
|
7939
|
+
return message;
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
|
|
7943
|
+
function createBaseRequestToSpeakInCommunityVoiceChatPayload(): RequestToSpeakInCommunityVoiceChatPayload {
|
|
7944
|
+
return { communityId: "" };
|
|
7945
|
+
}
|
|
7946
|
+
|
|
7947
|
+
export namespace RequestToSpeakInCommunityVoiceChatPayload {
|
|
7948
|
+
export function encode(
|
|
7949
|
+
message: RequestToSpeakInCommunityVoiceChatPayload,
|
|
7950
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
7951
|
+
): _m0.Writer {
|
|
7952
|
+
if (message.communityId !== "") {
|
|
7953
|
+
writer.uint32(10).string(message.communityId);
|
|
7954
|
+
}
|
|
7955
|
+
return writer;
|
|
7956
|
+
}
|
|
7957
|
+
|
|
7958
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RequestToSpeakInCommunityVoiceChatPayload {
|
|
7959
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7960
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7961
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatPayload();
|
|
7962
|
+
while (reader.pos < end) {
|
|
7963
|
+
const tag = reader.uint32();
|
|
7964
|
+
switch (tag >>> 3) {
|
|
7965
|
+
case 1:
|
|
7966
|
+
if (tag !== 10) {
|
|
7967
|
+
break;
|
|
7968
|
+
}
|
|
7969
|
+
|
|
7970
|
+
message.communityId = reader.string();
|
|
7971
|
+
continue;
|
|
7972
|
+
}
|
|
7973
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7974
|
+
break;
|
|
7975
|
+
}
|
|
7976
|
+
reader.skipType(tag & 7);
|
|
7977
|
+
}
|
|
7978
|
+
return message;
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7981
|
+
export function fromJSON(object: any): RequestToSpeakInCommunityVoiceChatPayload {
|
|
7982
|
+
return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
|
|
7983
|
+
}
|
|
7984
|
+
|
|
7985
|
+
export function toJSON(message: RequestToSpeakInCommunityVoiceChatPayload): unknown {
|
|
7986
|
+
const obj: any = {};
|
|
7987
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
7988
|
+
return obj;
|
|
7989
|
+
}
|
|
7990
|
+
|
|
7991
|
+
export function create<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatPayload>, I>>(
|
|
7992
|
+
base?: I,
|
|
7993
|
+
): RequestToSpeakInCommunityVoiceChatPayload {
|
|
7994
|
+
return RequestToSpeakInCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
7995
|
+
}
|
|
7996
|
+
|
|
7997
|
+
export function fromPartial<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatPayload>, I>>(
|
|
7998
|
+
object: I,
|
|
7999
|
+
): RequestToSpeakInCommunityVoiceChatPayload {
|
|
8000
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatPayload();
|
|
8001
|
+
message.communityId = object.communityId ?? "";
|
|
8002
|
+
return message;
|
|
8003
|
+
}
|
|
8004
|
+
}
|
|
8005
|
+
|
|
8006
|
+
function createBaseRequestToSpeakInCommunityVoiceChatResponse(): RequestToSpeakInCommunityVoiceChatResponse {
|
|
8007
|
+
return { response: undefined };
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8010
|
+
export namespace RequestToSpeakInCommunityVoiceChatResponse {
|
|
8011
|
+
export function encode(
|
|
8012
|
+
message: RequestToSpeakInCommunityVoiceChatResponse,
|
|
8013
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8014
|
+
): _m0.Writer {
|
|
8015
|
+
switch (message.response?.$case) {
|
|
8016
|
+
case "ok":
|
|
8017
|
+
RequestToSpeakInCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
8018
|
+
break;
|
|
8019
|
+
case "invalidRequest":
|
|
8020
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
8021
|
+
break;
|
|
8022
|
+
case "forbiddenError":
|
|
8023
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
8024
|
+
break;
|
|
8025
|
+
case "notFoundError":
|
|
8026
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
8027
|
+
break;
|
|
8028
|
+
case "internalServerError":
|
|
8029
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
8030
|
+
break;
|
|
8031
|
+
}
|
|
8032
|
+
return writer;
|
|
8033
|
+
}
|
|
8034
|
+
|
|
8035
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RequestToSpeakInCommunityVoiceChatResponse {
|
|
8036
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8037
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8038
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatResponse();
|
|
8039
|
+
while (reader.pos < end) {
|
|
8040
|
+
const tag = reader.uint32();
|
|
8041
|
+
switch (tag >>> 3) {
|
|
8042
|
+
case 1:
|
|
8043
|
+
if (tag !== 10) {
|
|
8044
|
+
break;
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
message.response = {
|
|
8048
|
+
$case: "ok",
|
|
8049
|
+
ok: RequestToSpeakInCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
|
|
8050
|
+
};
|
|
8051
|
+
continue;
|
|
8052
|
+
case 2:
|
|
8053
|
+
if (tag !== 18) {
|
|
8054
|
+
break;
|
|
8055
|
+
}
|
|
8056
|
+
|
|
8057
|
+
message.response = {
|
|
8058
|
+
$case: "invalidRequest",
|
|
8059
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
8060
|
+
};
|
|
8061
|
+
continue;
|
|
8062
|
+
case 3:
|
|
8063
|
+
if (tag !== 26) {
|
|
8064
|
+
break;
|
|
8065
|
+
}
|
|
8066
|
+
|
|
8067
|
+
message.response = {
|
|
8068
|
+
$case: "forbiddenError",
|
|
8069
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
8070
|
+
};
|
|
8071
|
+
continue;
|
|
8072
|
+
case 4:
|
|
8073
|
+
if (tag !== 34) {
|
|
8074
|
+
break;
|
|
8075
|
+
}
|
|
8076
|
+
|
|
8077
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
8078
|
+
continue;
|
|
8079
|
+
case 5:
|
|
8080
|
+
if (tag !== 42) {
|
|
8081
|
+
break;
|
|
8082
|
+
}
|
|
8083
|
+
|
|
8084
|
+
message.response = {
|
|
8085
|
+
$case: "internalServerError",
|
|
8086
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
8087
|
+
};
|
|
8088
|
+
continue;
|
|
8089
|
+
}
|
|
8090
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8091
|
+
break;
|
|
8092
|
+
}
|
|
8093
|
+
reader.skipType(tag & 7);
|
|
8094
|
+
}
|
|
8095
|
+
return message;
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8098
|
+
export function fromJSON(object: any): RequestToSpeakInCommunityVoiceChatResponse {
|
|
8099
|
+
return {
|
|
8100
|
+
response: isSet(object.ok)
|
|
8101
|
+
? { $case: "ok", ok: RequestToSpeakInCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
8102
|
+
: isSet(object.invalidRequest)
|
|
8103
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
8104
|
+
: isSet(object.forbiddenError)
|
|
8105
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
8106
|
+
: isSet(object.notFoundError)
|
|
8107
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
8108
|
+
: isSet(object.internalServerError)
|
|
8109
|
+
? {
|
|
8110
|
+
$case: "internalServerError",
|
|
8111
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
8112
|
+
}
|
|
8113
|
+
: undefined,
|
|
8114
|
+
};
|
|
8115
|
+
}
|
|
8116
|
+
|
|
8117
|
+
export function toJSON(message: RequestToSpeakInCommunityVoiceChatResponse): unknown {
|
|
8118
|
+
const obj: any = {};
|
|
8119
|
+
message.response?.$case === "ok" &&
|
|
8120
|
+
(obj.ok = message.response?.ok
|
|
8121
|
+
? RequestToSpeakInCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok)
|
|
8122
|
+
: undefined);
|
|
8123
|
+
message.response?.$case === "invalidRequest" &&
|
|
8124
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
8125
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
8126
|
+
: undefined);
|
|
8127
|
+
message.response?.$case === "forbiddenError" &&
|
|
8128
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
8129
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
8130
|
+
: undefined);
|
|
8131
|
+
message.response?.$case === "notFoundError" &&
|
|
8132
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
8133
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
8134
|
+
: undefined);
|
|
8135
|
+
message.response?.$case === "internalServerError" &&
|
|
8136
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
8137
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
8138
|
+
: undefined);
|
|
8139
|
+
return obj;
|
|
8140
|
+
}
|
|
8141
|
+
|
|
8142
|
+
export function create<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatResponse>, I>>(
|
|
8143
|
+
base?: I,
|
|
8144
|
+
): RequestToSpeakInCommunityVoiceChatResponse {
|
|
8145
|
+
return RequestToSpeakInCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
8146
|
+
}
|
|
8147
|
+
|
|
8148
|
+
export function fromPartial<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatResponse>, I>>(
|
|
8149
|
+
object: I,
|
|
8150
|
+
): RequestToSpeakInCommunityVoiceChatResponse {
|
|
8151
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatResponse();
|
|
8152
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
8153
|
+
message.response = {
|
|
8154
|
+
$case: "ok",
|
|
8155
|
+
ok: RequestToSpeakInCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
|
|
8156
|
+
};
|
|
8157
|
+
}
|
|
8158
|
+
if (
|
|
8159
|
+
object.response?.$case === "invalidRequest" &&
|
|
8160
|
+
object.response?.invalidRequest !== undefined &&
|
|
8161
|
+
object.response?.invalidRequest !== null
|
|
8162
|
+
) {
|
|
8163
|
+
message.response = {
|
|
8164
|
+
$case: "invalidRequest",
|
|
8165
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
8166
|
+
};
|
|
8167
|
+
}
|
|
8168
|
+
if (
|
|
8169
|
+
object.response?.$case === "forbiddenError" &&
|
|
8170
|
+
object.response?.forbiddenError !== undefined &&
|
|
8171
|
+
object.response?.forbiddenError !== null
|
|
8172
|
+
) {
|
|
8173
|
+
message.response = {
|
|
8174
|
+
$case: "forbiddenError",
|
|
8175
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
8176
|
+
};
|
|
8177
|
+
}
|
|
8178
|
+
if (
|
|
8179
|
+
object.response?.$case === "notFoundError" &&
|
|
8180
|
+
object.response?.notFoundError !== undefined &&
|
|
8181
|
+
object.response?.notFoundError !== null
|
|
8182
|
+
) {
|
|
8183
|
+
message.response = {
|
|
8184
|
+
$case: "notFoundError",
|
|
8185
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
8186
|
+
};
|
|
8187
|
+
}
|
|
8188
|
+
if (
|
|
8189
|
+
object.response?.$case === "internalServerError" &&
|
|
8190
|
+
object.response?.internalServerError !== undefined &&
|
|
8191
|
+
object.response?.internalServerError !== null
|
|
8192
|
+
) {
|
|
8193
|
+
message.response = {
|
|
8194
|
+
$case: "internalServerError",
|
|
8195
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
8196
|
+
};
|
|
8197
|
+
}
|
|
8198
|
+
return message;
|
|
8199
|
+
}
|
|
8200
|
+
}
|
|
8201
|
+
|
|
8202
|
+
function createBaseRequestToSpeakInCommunityVoiceChatResponse_Ok(): RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8203
|
+
return { message: "" };
|
|
8204
|
+
}
|
|
8205
|
+
|
|
8206
|
+
export namespace RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8207
|
+
export function encode(
|
|
8208
|
+
message: RequestToSpeakInCommunityVoiceChatResponse_Ok,
|
|
8209
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8210
|
+
): _m0.Writer {
|
|
8211
|
+
if (message.message !== "") {
|
|
8212
|
+
writer.uint32(10).string(message.message);
|
|
8213
|
+
}
|
|
8214
|
+
return writer;
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
export function decode(
|
|
8218
|
+
input: _m0.Reader | Uint8Array,
|
|
8219
|
+
length?: number,
|
|
8220
|
+
): RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8221
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8222
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8223
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatResponse_Ok();
|
|
8224
|
+
while (reader.pos < end) {
|
|
8225
|
+
const tag = reader.uint32();
|
|
8226
|
+
switch (tag >>> 3) {
|
|
8227
|
+
case 1:
|
|
8228
|
+
if (tag !== 10) {
|
|
8229
|
+
break;
|
|
8230
|
+
}
|
|
8231
|
+
|
|
8232
|
+
message.message = reader.string();
|
|
8233
|
+
continue;
|
|
8234
|
+
}
|
|
8235
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8236
|
+
break;
|
|
8237
|
+
}
|
|
8238
|
+
reader.skipType(tag & 7);
|
|
8239
|
+
}
|
|
8240
|
+
return message;
|
|
8241
|
+
}
|
|
8242
|
+
|
|
8243
|
+
export function fromJSON(object: any): RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8244
|
+
return { message: isSet(object.message) ? String(object.message) : "" };
|
|
8245
|
+
}
|
|
8246
|
+
|
|
8247
|
+
export function toJSON(message: RequestToSpeakInCommunityVoiceChatResponse_Ok): unknown {
|
|
8248
|
+
const obj: any = {};
|
|
8249
|
+
message.message !== undefined && (obj.message = message.message);
|
|
8250
|
+
return obj;
|
|
8251
|
+
}
|
|
8252
|
+
|
|
8253
|
+
export function create<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8254
|
+
base?: I,
|
|
8255
|
+
): RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8256
|
+
return RequestToSpeakInCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
8257
|
+
}
|
|
8258
|
+
|
|
8259
|
+
export function fromPartial<I extends Exact<DeepPartial<RequestToSpeakInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8260
|
+
object: I,
|
|
8261
|
+
): RequestToSpeakInCommunityVoiceChatResponse_Ok {
|
|
8262
|
+
const message = createBaseRequestToSpeakInCommunityVoiceChatResponse_Ok();
|
|
8263
|
+
message.message = object.message ?? "";
|
|
8264
|
+
return message;
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
|
|
8268
|
+
function createBasePromoteSpeakerInCommunityVoiceChatPayload(): PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8269
|
+
return { communityId: "", userAddress: "" };
|
|
8270
|
+
}
|
|
8271
|
+
|
|
8272
|
+
export namespace PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8273
|
+
export function encode(
|
|
8274
|
+
message: PromoteSpeakerInCommunityVoiceChatPayload,
|
|
8275
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8276
|
+
): _m0.Writer {
|
|
8277
|
+
if (message.communityId !== "") {
|
|
8278
|
+
writer.uint32(10).string(message.communityId);
|
|
8279
|
+
}
|
|
8280
|
+
if (message.userAddress !== "") {
|
|
8281
|
+
writer.uint32(18).string(message.userAddress);
|
|
8282
|
+
}
|
|
8283
|
+
return writer;
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8286
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8287
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8288
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8289
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatPayload();
|
|
8290
|
+
while (reader.pos < end) {
|
|
8291
|
+
const tag = reader.uint32();
|
|
8292
|
+
switch (tag >>> 3) {
|
|
8293
|
+
case 1:
|
|
8294
|
+
if (tag !== 10) {
|
|
8295
|
+
break;
|
|
8296
|
+
}
|
|
8297
|
+
|
|
8298
|
+
message.communityId = reader.string();
|
|
8299
|
+
continue;
|
|
8300
|
+
case 2:
|
|
8301
|
+
if (tag !== 18) {
|
|
8302
|
+
break;
|
|
8303
|
+
}
|
|
8304
|
+
|
|
8305
|
+
message.userAddress = reader.string();
|
|
8306
|
+
continue;
|
|
8307
|
+
}
|
|
8308
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8309
|
+
break;
|
|
8310
|
+
}
|
|
8311
|
+
reader.skipType(tag & 7);
|
|
8312
|
+
}
|
|
8313
|
+
return message;
|
|
8314
|
+
}
|
|
8315
|
+
|
|
8316
|
+
export function fromJSON(object: any): PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8317
|
+
return {
|
|
8318
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
8319
|
+
userAddress: isSet(object.userAddress) ? String(object.userAddress) : "",
|
|
8320
|
+
};
|
|
8321
|
+
}
|
|
8322
|
+
|
|
8323
|
+
export function toJSON(message: PromoteSpeakerInCommunityVoiceChatPayload): unknown {
|
|
8324
|
+
const obj: any = {};
|
|
8325
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
8326
|
+
message.userAddress !== undefined && (obj.userAddress = message.userAddress);
|
|
8327
|
+
return obj;
|
|
8328
|
+
}
|
|
8329
|
+
|
|
8330
|
+
export function create<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatPayload>, I>>(
|
|
8331
|
+
base?: I,
|
|
8332
|
+
): PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8333
|
+
return PromoteSpeakerInCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
8334
|
+
}
|
|
8335
|
+
|
|
8336
|
+
export function fromPartial<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatPayload>, I>>(
|
|
8337
|
+
object: I,
|
|
8338
|
+
): PromoteSpeakerInCommunityVoiceChatPayload {
|
|
8339
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatPayload();
|
|
8340
|
+
message.communityId = object.communityId ?? "";
|
|
8341
|
+
message.userAddress = object.userAddress ?? "";
|
|
8342
|
+
return message;
|
|
8343
|
+
}
|
|
8344
|
+
}
|
|
8345
|
+
|
|
8346
|
+
function createBasePromoteSpeakerInCommunityVoiceChatResponse(): PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8347
|
+
return { response: undefined };
|
|
8348
|
+
}
|
|
8349
|
+
|
|
8350
|
+
export namespace PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8351
|
+
export function encode(
|
|
8352
|
+
message: PromoteSpeakerInCommunityVoiceChatResponse,
|
|
8353
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8354
|
+
): _m0.Writer {
|
|
8355
|
+
switch (message.response?.$case) {
|
|
8356
|
+
case "ok":
|
|
8357
|
+
PromoteSpeakerInCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
8358
|
+
break;
|
|
8359
|
+
case "invalidRequest":
|
|
8360
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
8361
|
+
break;
|
|
8362
|
+
case "forbiddenError":
|
|
8363
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
8364
|
+
break;
|
|
8365
|
+
case "notFoundError":
|
|
8366
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
8367
|
+
break;
|
|
8368
|
+
case "internalServerError":
|
|
8369
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
8370
|
+
break;
|
|
8371
|
+
}
|
|
8372
|
+
return writer;
|
|
8373
|
+
}
|
|
8374
|
+
|
|
8375
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8376
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8378
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatResponse();
|
|
8379
|
+
while (reader.pos < end) {
|
|
8380
|
+
const tag = reader.uint32();
|
|
8381
|
+
switch (tag >>> 3) {
|
|
8382
|
+
case 1:
|
|
8383
|
+
if (tag !== 10) {
|
|
8384
|
+
break;
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
message.response = {
|
|
8388
|
+
$case: "ok",
|
|
8389
|
+
ok: PromoteSpeakerInCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
|
|
8390
|
+
};
|
|
8391
|
+
continue;
|
|
8392
|
+
case 2:
|
|
8393
|
+
if (tag !== 18) {
|
|
8394
|
+
break;
|
|
8395
|
+
}
|
|
8396
|
+
|
|
8397
|
+
message.response = {
|
|
8398
|
+
$case: "invalidRequest",
|
|
8399
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
8400
|
+
};
|
|
8401
|
+
continue;
|
|
8402
|
+
case 3:
|
|
8403
|
+
if (tag !== 26) {
|
|
8404
|
+
break;
|
|
8405
|
+
}
|
|
8406
|
+
|
|
8407
|
+
message.response = {
|
|
8408
|
+
$case: "forbiddenError",
|
|
8409
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
8410
|
+
};
|
|
8411
|
+
continue;
|
|
8412
|
+
case 4:
|
|
8413
|
+
if (tag !== 34) {
|
|
8414
|
+
break;
|
|
8415
|
+
}
|
|
8416
|
+
|
|
8417
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
8418
|
+
continue;
|
|
8419
|
+
case 5:
|
|
8420
|
+
if (tag !== 42) {
|
|
8421
|
+
break;
|
|
8422
|
+
}
|
|
8423
|
+
|
|
8424
|
+
message.response = {
|
|
8425
|
+
$case: "internalServerError",
|
|
8426
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
8427
|
+
};
|
|
8428
|
+
continue;
|
|
8429
|
+
}
|
|
8430
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8431
|
+
break;
|
|
8432
|
+
}
|
|
8433
|
+
reader.skipType(tag & 7);
|
|
8434
|
+
}
|
|
8435
|
+
return message;
|
|
8436
|
+
}
|
|
8437
|
+
|
|
8438
|
+
export function fromJSON(object: any): PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8439
|
+
return {
|
|
8440
|
+
response: isSet(object.ok)
|
|
8441
|
+
? { $case: "ok", ok: PromoteSpeakerInCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
8442
|
+
: isSet(object.invalidRequest)
|
|
8443
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
8444
|
+
: isSet(object.forbiddenError)
|
|
8445
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
8446
|
+
: isSet(object.notFoundError)
|
|
8447
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
8448
|
+
: isSet(object.internalServerError)
|
|
8449
|
+
? {
|
|
8450
|
+
$case: "internalServerError",
|
|
8451
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
8452
|
+
}
|
|
8453
|
+
: undefined,
|
|
8454
|
+
};
|
|
8455
|
+
}
|
|
8456
|
+
|
|
8457
|
+
export function toJSON(message: PromoteSpeakerInCommunityVoiceChatResponse): unknown {
|
|
8458
|
+
const obj: any = {};
|
|
8459
|
+
message.response?.$case === "ok" &&
|
|
8460
|
+
(obj.ok = message.response?.ok
|
|
8461
|
+
? PromoteSpeakerInCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok)
|
|
8462
|
+
: undefined);
|
|
8463
|
+
message.response?.$case === "invalidRequest" &&
|
|
8464
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
8465
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
8466
|
+
: undefined);
|
|
8467
|
+
message.response?.$case === "forbiddenError" &&
|
|
8468
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
8469
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
8470
|
+
: undefined);
|
|
8471
|
+
message.response?.$case === "notFoundError" &&
|
|
8472
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
8473
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
8474
|
+
: undefined);
|
|
8475
|
+
message.response?.$case === "internalServerError" &&
|
|
8476
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
8477
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
8478
|
+
: undefined);
|
|
8479
|
+
return obj;
|
|
8480
|
+
}
|
|
8481
|
+
|
|
8482
|
+
export function create<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatResponse>, I>>(
|
|
8483
|
+
base?: I,
|
|
8484
|
+
): PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8485
|
+
return PromoteSpeakerInCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
8486
|
+
}
|
|
8487
|
+
|
|
8488
|
+
export function fromPartial<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatResponse>, I>>(
|
|
8489
|
+
object: I,
|
|
8490
|
+
): PromoteSpeakerInCommunityVoiceChatResponse {
|
|
8491
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatResponse();
|
|
8492
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
8493
|
+
message.response = {
|
|
8494
|
+
$case: "ok",
|
|
8495
|
+
ok: PromoteSpeakerInCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
|
|
8496
|
+
};
|
|
8497
|
+
}
|
|
8498
|
+
if (
|
|
8499
|
+
object.response?.$case === "invalidRequest" &&
|
|
8500
|
+
object.response?.invalidRequest !== undefined &&
|
|
8501
|
+
object.response?.invalidRequest !== null
|
|
8502
|
+
) {
|
|
8503
|
+
message.response = {
|
|
8504
|
+
$case: "invalidRequest",
|
|
8505
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
8506
|
+
};
|
|
8507
|
+
}
|
|
8508
|
+
if (
|
|
8509
|
+
object.response?.$case === "forbiddenError" &&
|
|
8510
|
+
object.response?.forbiddenError !== undefined &&
|
|
8511
|
+
object.response?.forbiddenError !== null
|
|
8512
|
+
) {
|
|
8513
|
+
message.response = {
|
|
8514
|
+
$case: "forbiddenError",
|
|
8515
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
8516
|
+
};
|
|
8517
|
+
}
|
|
8518
|
+
if (
|
|
8519
|
+
object.response?.$case === "notFoundError" &&
|
|
8520
|
+
object.response?.notFoundError !== undefined &&
|
|
8521
|
+
object.response?.notFoundError !== null
|
|
8522
|
+
) {
|
|
8523
|
+
message.response = {
|
|
8524
|
+
$case: "notFoundError",
|
|
8525
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
8526
|
+
};
|
|
8527
|
+
}
|
|
8528
|
+
if (
|
|
8529
|
+
object.response?.$case === "internalServerError" &&
|
|
8530
|
+
object.response?.internalServerError !== undefined &&
|
|
8531
|
+
object.response?.internalServerError !== null
|
|
8532
|
+
) {
|
|
8533
|
+
message.response = {
|
|
8534
|
+
$case: "internalServerError",
|
|
8535
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
8536
|
+
};
|
|
8537
|
+
}
|
|
8538
|
+
return message;
|
|
8539
|
+
}
|
|
8540
|
+
}
|
|
8541
|
+
|
|
8542
|
+
function createBasePromoteSpeakerInCommunityVoiceChatResponse_Ok(): PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8543
|
+
return { message: "" };
|
|
8544
|
+
}
|
|
8545
|
+
|
|
8546
|
+
export namespace PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8547
|
+
export function encode(
|
|
8548
|
+
message: PromoteSpeakerInCommunityVoiceChatResponse_Ok,
|
|
8549
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8550
|
+
): _m0.Writer {
|
|
8551
|
+
if (message.message !== "") {
|
|
8552
|
+
writer.uint32(10).string(message.message);
|
|
8553
|
+
}
|
|
8554
|
+
return writer;
|
|
8555
|
+
}
|
|
8556
|
+
|
|
8557
|
+
export function decode(
|
|
8558
|
+
input: _m0.Reader | Uint8Array,
|
|
8559
|
+
length?: number,
|
|
8560
|
+
): PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8561
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8562
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8563
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatResponse_Ok();
|
|
8564
|
+
while (reader.pos < end) {
|
|
8565
|
+
const tag = reader.uint32();
|
|
8566
|
+
switch (tag >>> 3) {
|
|
8567
|
+
case 1:
|
|
8568
|
+
if (tag !== 10) {
|
|
8569
|
+
break;
|
|
8570
|
+
}
|
|
8571
|
+
|
|
8572
|
+
message.message = reader.string();
|
|
8573
|
+
continue;
|
|
8574
|
+
}
|
|
8575
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8576
|
+
break;
|
|
8577
|
+
}
|
|
8578
|
+
reader.skipType(tag & 7);
|
|
8579
|
+
}
|
|
8580
|
+
return message;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
export function fromJSON(object: any): PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8584
|
+
return { message: isSet(object.message) ? String(object.message) : "" };
|
|
8585
|
+
}
|
|
8586
|
+
|
|
8587
|
+
export function toJSON(message: PromoteSpeakerInCommunityVoiceChatResponse_Ok): unknown {
|
|
8588
|
+
const obj: any = {};
|
|
8589
|
+
message.message !== undefined && (obj.message = message.message);
|
|
8590
|
+
return obj;
|
|
8591
|
+
}
|
|
8592
|
+
|
|
8593
|
+
export function create<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8594
|
+
base?: I,
|
|
8595
|
+
): PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8596
|
+
return PromoteSpeakerInCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
8597
|
+
}
|
|
8598
|
+
|
|
8599
|
+
export function fromPartial<I extends Exact<DeepPartial<PromoteSpeakerInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8600
|
+
object: I,
|
|
8601
|
+
): PromoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8602
|
+
const message = createBasePromoteSpeakerInCommunityVoiceChatResponse_Ok();
|
|
8603
|
+
message.message = object.message ?? "";
|
|
8604
|
+
return message;
|
|
8605
|
+
}
|
|
8606
|
+
}
|
|
8607
|
+
|
|
8608
|
+
function createBaseDemoteSpeakerInCommunityVoiceChatPayload(): DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8609
|
+
return { communityId: "", userAddress: "" };
|
|
8610
|
+
}
|
|
8611
|
+
|
|
8612
|
+
export namespace DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8613
|
+
export function encode(
|
|
8614
|
+
message: DemoteSpeakerInCommunityVoiceChatPayload,
|
|
8615
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8616
|
+
): _m0.Writer {
|
|
8617
|
+
if (message.communityId !== "") {
|
|
8618
|
+
writer.uint32(10).string(message.communityId);
|
|
8619
|
+
}
|
|
8620
|
+
if (message.userAddress !== "") {
|
|
8621
|
+
writer.uint32(18).string(message.userAddress);
|
|
8622
|
+
}
|
|
8623
|
+
return writer;
|
|
8624
|
+
}
|
|
8625
|
+
|
|
8626
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8627
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8628
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8629
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatPayload();
|
|
8630
|
+
while (reader.pos < end) {
|
|
8631
|
+
const tag = reader.uint32();
|
|
8632
|
+
switch (tag >>> 3) {
|
|
8633
|
+
case 1:
|
|
8634
|
+
if (tag !== 10) {
|
|
8635
|
+
break;
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8638
|
+
message.communityId = reader.string();
|
|
8639
|
+
continue;
|
|
8640
|
+
case 2:
|
|
8641
|
+
if (tag !== 18) {
|
|
8642
|
+
break;
|
|
8643
|
+
}
|
|
8644
|
+
|
|
8645
|
+
message.userAddress = reader.string();
|
|
8646
|
+
continue;
|
|
8647
|
+
}
|
|
8648
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8649
|
+
break;
|
|
8650
|
+
}
|
|
8651
|
+
reader.skipType(tag & 7);
|
|
8652
|
+
}
|
|
8653
|
+
return message;
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8656
|
+
export function fromJSON(object: any): DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8657
|
+
return {
|
|
8658
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
8659
|
+
userAddress: isSet(object.userAddress) ? String(object.userAddress) : "",
|
|
8660
|
+
};
|
|
8661
|
+
}
|
|
8662
|
+
|
|
8663
|
+
export function toJSON(message: DemoteSpeakerInCommunityVoiceChatPayload): unknown {
|
|
8664
|
+
const obj: any = {};
|
|
8665
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
8666
|
+
message.userAddress !== undefined && (obj.userAddress = message.userAddress);
|
|
8667
|
+
return obj;
|
|
8668
|
+
}
|
|
8669
|
+
|
|
8670
|
+
export function create<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatPayload>, I>>(
|
|
8671
|
+
base?: I,
|
|
8672
|
+
): DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8673
|
+
return DemoteSpeakerInCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
8674
|
+
}
|
|
8675
|
+
|
|
8676
|
+
export function fromPartial<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatPayload>, I>>(
|
|
8677
|
+
object: I,
|
|
8678
|
+
): DemoteSpeakerInCommunityVoiceChatPayload {
|
|
8679
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatPayload();
|
|
8680
|
+
message.communityId = object.communityId ?? "";
|
|
8681
|
+
message.userAddress = object.userAddress ?? "";
|
|
8682
|
+
return message;
|
|
8683
|
+
}
|
|
8684
|
+
}
|
|
8685
|
+
|
|
8686
|
+
function createBaseDemoteSpeakerInCommunityVoiceChatResponse(): DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8687
|
+
return { response: undefined };
|
|
8688
|
+
}
|
|
8689
|
+
|
|
8690
|
+
export namespace DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8691
|
+
export function encode(
|
|
8692
|
+
message: DemoteSpeakerInCommunityVoiceChatResponse,
|
|
8693
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8694
|
+
): _m0.Writer {
|
|
8695
|
+
switch (message.response?.$case) {
|
|
8696
|
+
case "ok":
|
|
8697
|
+
DemoteSpeakerInCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
8698
|
+
break;
|
|
8699
|
+
case "invalidRequest":
|
|
8700
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
8701
|
+
break;
|
|
8702
|
+
case "forbiddenError":
|
|
8703
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
8704
|
+
break;
|
|
8705
|
+
case "notFoundError":
|
|
8706
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
8707
|
+
break;
|
|
8708
|
+
case "internalServerError":
|
|
8709
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
8710
|
+
break;
|
|
8711
|
+
}
|
|
8712
|
+
return writer;
|
|
8713
|
+
}
|
|
8714
|
+
|
|
8715
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8716
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8717
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8718
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatResponse();
|
|
8719
|
+
while (reader.pos < end) {
|
|
8720
|
+
const tag = reader.uint32();
|
|
8721
|
+
switch (tag >>> 3) {
|
|
8722
|
+
case 1:
|
|
8723
|
+
if (tag !== 10) {
|
|
8724
|
+
break;
|
|
8725
|
+
}
|
|
8726
|
+
|
|
8727
|
+
message.response = {
|
|
8728
|
+
$case: "ok",
|
|
8729
|
+
ok: DemoteSpeakerInCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
|
|
8730
|
+
};
|
|
8731
|
+
continue;
|
|
8732
|
+
case 2:
|
|
8733
|
+
if (tag !== 18) {
|
|
8734
|
+
break;
|
|
8735
|
+
}
|
|
8736
|
+
|
|
8737
|
+
message.response = {
|
|
8738
|
+
$case: "invalidRequest",
|
|
8739
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
8740
|
+
};
|
|
8741
|
+
continue;
|
|
8742
|
+
case 3:
|
|
8743
|
+
if (tag !== 26) {
|
|
8744
|
+
break;
|
|
8745
|
+
}
|
|
8746
|
+
|
|
8747
|
+
message.response = {
|
|
8748
|
+
$case: "forbiddenError",
|
|
8749
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
8750
|
+
};
|
|
8751
|
+
continue;
|
|
8752
|
+
case 4:
|
|
8753
|
+
if (tag !== 34) {
|
|
8754
|
+
break;
|
|
8755
|
+
}
|
|
8756
|
+
|
|
8757
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
8758
|
+
continue;
|
|
8759
|
+
case 5:
|
|
8760
|
+
if (tag !== 42) {
|
|
8761
|
+
break;
|
|
8762
|
+
}
|
|
8763
|
+
|
|
8764
|
+
message.response = {
|
|
8765
|
+
$case: "internalServerError",
|
|
8766
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
8767
|
+
};
|
|
8768
|
+
continue;
|
|
8769
|
+
}
|
|
8770
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8771
|
+
break;
|
|
8772
|
+
}
|
|
8773
|
+
reader.skipType(tag & 7);
|
|
8774
|
+
}
|
|
8775
|
+
return message;
|
|
8776
|
+
}
|
|
8777
|
+
|
|
8778
|
+
export function fromJSON(object: any): DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8779
|
+
return {
|
|
8780
|
+
response: isSet(object.ok)
|
|
8781
|
+
? { $case: "ok", ok: DemoteSpeakerInCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
8782
|
+
: isSet(object.invalidRequest)
|
|
8783
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
8784
|
+
: isSet(object.forbiddenError)
|
|
8785
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
8786
|
+
: isSet(object.notFoundError)
|
|
8787
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
8788
|
+
: isSet(object.internalServerError)
|
|
8789
|
+
? {
|
|
8790
|
+
$case: "internalServerError",
|
|
8791
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
8792
|
+
}
|
|
8793
|
+
: undefined,
|
|
8794
|
+
};
|
|
8795
|
+
}
|
|
8796
|
+
|
|
8797
|
+
export function toJSON(message: DemoteSpeakerInCommunityVoiceChatResponse): unknown {
|
|
8798
|
+
const obj: any = {};
|
|
8799
|
+
message.response?.$case === "ok" &&
|
|
8800
|
+
(obj.ok = message.response?.ok
|
|
8801
|
+
? DemoteSpeakerInCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok)
|
|
8802
|
+
: undefined);
|
|
8803
|
+
message.response?.$case === "invalidRequest" &&
|
|
8804
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
8805
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
8806
|
+
: undefined);
|
|
8807
|
+
message.response?.$case === "forbiddenError" &&
|
|
8808
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
8809
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
8810
|
+
: undefined);
|
|
8811
|
+
message.response?.$case === "notFoundError" &&
|
|
8812
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
8813
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
8814
|
+
: undefined);
|
|
8815
|
+
message.response?.$case === "internalServerError" &&
|
|
8816
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
8817
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
8818
|
+
: undefined);
|
|
8819
|
+
return obj;
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
export function create<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatResponse>, I>>(
|
|
8823
|
+
base?: I,
|
|
8824
|
+
): DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8825
|
+
return DemoteSpeakerInCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
8826
|
+
}
|
|
8827
|
+
|
|
8828
|
+
export function fromPartial<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatResponse>, I>>(
|
|
8829
|
+
object: I,
|
|
8830
|
+
): DemoteSpeakerInCommunityVoiceChatResponse {
|
|
8831
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatResponse();
|
|
8832
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
8833
|
+
message.response = {
|
|
8834
|
+
$case: "ok",
|
|
8835
|
+
ok: DemoteSpeakerInCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
|
|
8836
|
+
};
|
|
8837
|
+
}
|
|
8838
|
+
if (
|
|
8839
|
+
object.response?.$case === "invalidRequest" &&
|
|
8840
|
+
object.response?.invalidRequest !== undefined &&
|
|
8841
|
+
object.response?.invalidRequest !== null
|
|
8842
|
+
) {
|
|
8843
|
+
message.response = {
|
|
8844
|
+
$case: "invalidRequest",
|
|
8845
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
8846
|
+
};
|
|
8847
|
+
}
|
|
8848
|
+
if (
|
|
8849
|
+
object.response?.$case === "forbiddenError" &&
|
|
8850
|
+
object.response?.forbiddenError !== undefined &&
|
|
8851
|
+
object.response?.forbiddenError !== null
|
|
8852
|
+
) {
|
|
8853
|
+
message.response = {
|
|
8854
|
+
$case: "forbiddenError",
|
|
8855
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
8856
|
+
};
|
|
8857
|
+
}
|
|
8858
|
+
if (
|
|
8859
|
+
object.response?.$case === "notFoundError" &&
|
|
8860
|
+
object.response?.notFoundError !== undefined &&
|
|
8861
|
+
object.response?.notFoundError !== null
|
|
8862
|
+
) {
|
|
8863
|
+
message.response = {
|
|
8864
|
+
$case: "notFoundError",
|
|
8865
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
8866
|
+
};
|
|
8867
|
+
}
|
|
8868
|
+
if (
|
|
8869
|
+
object.response?.$case === "internalServerError" &&
|
|
8870
|
+
object.response?.internalServerError !== undefined &&
|
|
8871
|
+
object.response?.internalServerError !== null
|
|
8872
|
+
) {
|
|
8873
|
+
message.response = {
|
|
8874
|
+
$case: "internalServerError",
|
|
8875
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
8876
|
+
};
|
|
8877
|
+
}
|
|
8878
|
+
return message;
|
|
8879
|
+
}
|
|
8880
|
+
}
|
|
8881
|
+
|
|
8882
|
+
function createBaseDemoteSpeakerInCommunityVoiceChatResponse_Ok(): DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8883
|
+
return { message: "" };
|
|
8884
|
+
}
|
|
8885
|
+
|
|
8886
|
+
export namespace DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8887
|
+
export function encode(
|
|
8888
|
+
message: DemoteSpeakerInCommunityVoiceChatResponse_Ok,
|
|
8889
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8890
|
+
): _m0.Writer {
|
|
8891
|
+
if (message.message !== "") {
|
|
8892
|
+
writer.uint32(10).string(message.message);
|
|
8893
|
+
}
|
|
8894
|
+
return writer;
|
|
8895
|
+
}
|
|
8896
|
+
|
|
8897
|
+
export function decode(
|
|
8898
|
+
input: _m0.Reader | Uint8Array,
|
|
8899
|
+
length?: number,
|
|
8900
|
+
): DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8901
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8902
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8903
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatResponse_Ok();
|
|
8904
|
+
while (reader.pos < end) {
|
|
8905
|
+
const tag = reader.uint32();
|
|
8906
|
+
switch (tag >>> 3) {
|
|
8907
|
+
case 1:
|
|
8908
|
+
if (tag !== 10) {
|
|
8909
|
+
break;
|
|
8910
|
+
}
|
|
8911
|
+
|
|
8912
|
+
message.message = reader.string();
|
|
8913
|
+
continue;
|
|
8914
|
+
}
|
|
8915
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8916
|
+
break;
|
|
8917
|
+
}
|
|
8918
|
+
reader.skipType(tag & 7);
|
|
8919
|
+
}
|
|
8920
|
+
return message;
|
|
8921
|
+
}
|
|
8922
|
+
|
|
8923
|
+
export function fromJSON(object: any): DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8924
|
+
return { message: isSet(object.message) ? String(object.message) : "" };
|
|
8925
|
+
}
|
|
8926
|
+
|
|
8927
|
+
export function toJSON(message: DemoteSpeakerInCommunityVoiceChatResponse_Ok): unknown {
|
|
8928
|
+
const obj: any = {};
|
|
8929
|
+
message.message !== undefined && (obj.message = message.message);
|
|
8930
|
+
return obj;
|
|
8931
|
+
}
|
|
8932
|
+
|
|
8933
|
+
export function create<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8934
|
+
base?: I,
|
|
8935
|
+
): DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8936
|
+
return DemoteSpeakerInCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
8937
|
+
}
|
|
8938
|
+
|
|
8939
|
+
export function fromPartial<I extends Exact<DeepPartial<DemoteSpeakerInCommunityVoiceChatResponse_Ok>, I>>(
|
|
8940
|
+
object: I,
|
|
8941
|
+
): DemoteSpeakerInCommunityVoiceChatResponse_Ok {
|
|
8942
|
+
const message = createBaseDemoteSpeakerInCommunityVoiceChatResponse_Ok();
|
|
8943
|
+
message.message = object.message ?? "";
|
|
8944
|
+
return message;
|
|
8945
|
+
}
|
|
8946
|
+
}
|
|
8947
|
+
|
|
8948
|
+
function createBaseKickPlayerFromCommunityVoiceChatPayload(): KickPlayerFromCommunityVoiceChatPayload {
|
|
8949
|
+
return { communityId: "", userAddress: "" };
|
|
8950
|
+
}
|
|
8951
|
+
|
|
8952
|
+
export namespace KickPlayerFromCommunityVoiceChatPayload {
|
|
8953
|
+
export function encode(
|
|
8954
|
+
message: KickPlayerFromCommunityVoiceChatPayload,
|
|
8955
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
8956
|
+
): _m0.Writer {
|
|
8957
|
+
if (message.communityId !== "") {
|
|
8958
|
+
writer.uint32(10).string(message.communityId);
|
|
8959
|
+
}
|
|
8960
|
+
if (message.userAddress !== "") {
|
|
8961
|
+
writer.uint32(18).string(message.userAddress);
|
|
8962
|
+
}
|
|
8963
|
+
return writer;
|
|
8964
|
+
}
|
|
8965
|
+
|
|
8966
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): KickPlayerFromCommunityVoiceChatPayload {
|
|
8967
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8968
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8969
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatPayload();
|
|
8970
|
+
while (reader.pos < end) {
|
|
8971
|
+
const tag = reader.uint32();
|
|
8972
|
+
switch (tag >>> 3) {
|
|
8973
|
+
case 1:
|
|
8974
|
+
if (tag !== 10) {
|
|
8975
|
+
break;
|
|
8976
|
+
}
|
|
8977
|
+
|
|
8978
|
+
message.communityId = reader.string();
|
|
8979
|
+
continue;
|
|
8980
|
+
case 2:
|
|
8981
|
+
if (tag !== 18) {
|
|
8982
|
+
break;
|
|
8983
|
+
}
|
|
8984
|
+
|
|
8985
|
+
message.userAddress = reader.string();
|
|
8986
|
+
continue;
|
|
8987
|
+
}
|
|
8988
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8989
|
+
break;
|
|
8990
|
+
}
|
|
8991
|
+
reader.skipType(tag & 7);
|
|
8992
|
+
}
|
|
8993
|
+
return message;
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
export function fromJSON(object: any): KickPlayerFromCommunityVoiceChatPayload {
|
|
8997
|
+
return {
|
|
8998
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
8999
|
+
userAddress: isSet(object.userAddress) ? String(object.userAddress) : "",
|
|
9000
|
+
};
|
|
9001
|
+
}
|
|
9002
|
+
|
|
9003
|
+
export function toJSON(message: KickPlayerFromCommunityVoiceChatPayload): unknown {
|
|
9004
|
+
const obj: any = {};
|
|
9005
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
9006
|
+
message.userAddress !== undefined && (obj.userAddress = message.userAddress);
|
|
9007
|
+
return obj;
|
|
9008
|
+
}
|
|
9009
|
+
|
|
9010
|
+
export function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatPayload>, I>>(
|
|
9011
|
+
base?: I,
|
|
9012
|
+
): KickPlayerFromCommunityVoiceChatPayload {
|
|
9013
|
+
return KickPlayerFromCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
9014
|
+
}
|
|
9015
|
+
|
|
9016
|
+
export function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatPayload>, I>>(
|
|
9017
|
+
object: I,
|
|
9018
|
+
): KickPlayerFromCommunityVoiceChatPayload {
|
|
9019
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatPayload();
|
|
9020
|
+
message.communityId = object.communityId ?? "";
|
|
9021
|
+
message.userAddress = object.userAddress ?? "";
|
|
9022
|
+
return message;
|
|
9023
|
+
}
|
|
9024
|
+
}
|
|
9025
|
+
|
|
9026
|
+
function createBaseKickPlayerFromCommunityVoiceChatResponse(): KickPlayerFromCommunityVoiceChatResponse {
|
|
9027
|
+
return { response: undefined };
|
|
9028
|
+
}
|
|
9029
|
+
|
|
9030
|
+
export namespace KickPlayerFromCommunityVoiceChatResponse {
|
|
9031
|
+
export function encode(
|
|
9032
|
+
message: KickPlayerFromCommunityVoiceChatResponse,
|
|
9033
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9034
|
+
): _m0.Writer {
|
|
9035
|
+
switch (message.response?.$case) {
|
|
9036
|
+
case "ok":
|
|
9037
|
+
KickPlayerFromCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
9038
|
+
break;
|
|
9039
|
+
case "invalidRequest":
|
|
9040
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
9041
|
+
break;
|
|
9042
|
+
case "forbiddenError":
|
|
9043
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
9044
|
+
break;
|
|
9045
|
+
case "notFoundError":
|
|
9046
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
9047
|
+
break;
|
|
9048
|
+
case "internalServerError":
|
|
9049
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
9050
|
+
break;
|
|
9051
|
+
}
|
|
9052
|
+
return writer;
|
|
9053
|
+
}
|
|
9054
|
+
|
|
9055
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): KickPlayerFromCommunityVoiceChatResponse {
|
|
9056
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9057
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9058
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatResponse();
|
|
9059
|
+
while (reader.pos < end) {
|
|
9060
|
+
const tag = reader.uint32();
|
|
9061
|
+
switch (tag >>> 3) {
|
|
9062
|
+
case 1:
|
|
9063
|
+
if (tag !== 10) {
|
|
9064
|
+
break;
|
|
9065
|
+
}
|
|
9066
|
+
|
|
9067
|
+
message.response = {
|
|
9068
|
+
$case: "ok",
|
|
9069
|
+
ok: KickPlayerFromCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
|
|
9070
|
+
};
|
|
9071
|
+
continue;
|
|
9072
|
+
case 2:
|
|
9073
|
+
if (tag !== 18) {
|
|
9074
|
+
break;
|
|
9075
|
+
}
|
|
9076
|
+
|
|
9077
|
+
message.response = {
|
|
9078
|
+
$case: "invalidRequest",
|
|
9079
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
9080
|
+
};
|
|
9081
|
+
continue;
|
|
9082
|
+
case 3:
|
|
9083
|
+
if (tag !== 26) {
|
|
9084
|
+
break;
|
|
9085
|
+
}
|
|
9086
|
+
|
|
9087
|
+
message.response = {
|
|
9088
|
+
$case: "forbiddenError",
|
|
9089
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
9090
|
+
};
|
|
9091
|
+
continue;
|
|
9092
|
+
case 4:
|
|
9093
|
+
if (tag !== 34) {
|
|
9094
|
+
break;
|
|
9095
|
+
}
|
|
9096
|
+
|
|
9097
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
9098
|
+
continue;
|
|
9099
|
+
case 5:
|
|
9100
|
+
if (tag !== 42) {
|
|
9101
|
+
break;
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9104
|
+
message.response = {
|
|
9105
|
+
$case: "internalServerError",
|
|
9106
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
9107
|
+
};
|
|
9108
|
+
continue;
|
|
9109
|
+
}
|
|
9110
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9111
|
+
break;
|
|
9112
|
+
}
|
|
9113
|
+
reader.skipType(tag & 7);
|
|
9114
|
+
}
|
|
9115
|
+
return message;
|
|
9116
|
+
}
|
|
9117
|
+
|
|
9118
|
+
export function fromJSON(object: any): KickPlayerFromCommunityVoiceChatResponse {
|
|
9119
|
+
return {
|
|
9120
|
+
response: isSet(object.ok)
|
|
9121
|
+
? { $case: "ok", ok: KickPlayerFromCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
9122
|
+
: isSet(object.invalidRequest)
|
|
9123
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
9124
|
+
: isSet(object.forbiddenError)
|
|
9125
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
9126
|
+
: isSet(object.notFoundError)
|
|
9127
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
9128
|
+
: isSet(object.internalServerError)
|
|
9129
|
+
? {
|
|
9130
|
+
$case: "internalServerError",
|
|
9131
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
9132
|
+
}
|
|
9133
|
+
: undefined,
|
|
9134
|
+
};
|
|
9135
|
+
}
|
|
9136
|
+
|
|
9137
|
+
export function toJSON(message: KickPlayerFromCommunityVoiceChatResponse): unknown {
|
|
9138
|
+
const obj: any = {};
|
|
9139
|
+
message.response?.$case === "ok" &&
|
|
9140
|
+
(obj.ok = message.response?.ok
|
|
9141
|
+
? KickPlayerFromCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok)
|
|
9142
|
+
: undefined);
|
|
9143
|
+
message.response?.$case === "invalidRequest" &&
|
|
9144
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
9145
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
9146
|
+
: undefined);
|
|
9147
|
+
message.response?.$case === "forbiddenError" &&
|
|
9148
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
9149
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
9150
|
+
: undefined);
|
|
9151
|
+
message.response?.$case === "notFoundError" &&
|
|
9152
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
9153
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
9154
|
+
: undefined);
|
|
9155
|
+
message.response?.$case === "internalServerError" &&
|
|
9156
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
9157
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
9158
|
+
: undefined);
|
|
9159
|
+
return obj;
|
|
9160
|
+
}
|
|
9161
|
+
|
|
9162
|
+
export function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse>, I>>(
|
|
9163
|
+
base?: I,
|
|
9164
|
+
): KickPlayerFromCommunityVoiceChatResponse {
|
|
9165
|
+
return KickPlayerFromCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
9166
|
+
}
|
|
9167
|
+
|
|
9168
|
+
export function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse>, I>>(
|
|
9169
|
+
object: I,
|
|
9170
|
+
): KickPlayerFromCommunityVoiceChatResponse {
|
|
9171
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatResponse();
|
|
9172
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
9173
|
+
message.response = {
|
|
9174
|
+
$case: "ok",
|
|
9175
|
+
ok: KickPlayerFromCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
|
|
9176
|
+
};
|
|
9177
|
+
}
|
|
9178
|
+
if (
|
|
9179
|
+
object.response?.$case === "invalidRequest" &&
|
|
9180
|
+
object.response?.invalidRequest !== undefined &&
|
|
9181
|
+
object.response?.invalidRequest !== null
|
|
9182
|
+
) {
|
|
9183
|
+
message.response = {
|
|
9184
|
+
$case: "invalidRequest",
|
|
9185
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
9186
|
+
};
|
|
9187
|
+
}
|
|
9188
|
+
if (
|
|
9189
|
+
object.response?.$case === "forbiddenError" &&
|
|
9190
|
+
object.response?.forbiddenError !== undefined &&
|
|
9191
|
+
object.response?.forbiddenError !== null
|
|
9192
|
+
) {
|
|
9193
|
+
message.response = {
|
|
9194
|
+
$case: "forbiddenError",
|
|
9195
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
9196
|
+
};
|
|
9197
|
+
}
|
|
9198
|
+
if (
|
|
9199
|
+
object.response?.$case === "notFoundError" &&
|
|
9200
|
+
object.response?.notFoundError !== undefined &&
|
|
9201
|
+
object.response?.notFoundError !== null
|
|
9202
|
+
) {
|
|
9203
|
+
message.response = {
|
|
9204
|
+
$case: "notFoundError",
|
|
9205
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
9206
|
+
};
|
|
9207
|
+
}
|
|
9208
|
+
if (
|
|
9209
|
+
object.response?.$case === "internalServerError" &&
|
|
9210
|
+
object.response?.internalServerError !== undefined &&
|
|
9211
|
+
object.response?.internalServerError !== null
|
|
9212
|
+
) {
|
|
9213
|
+
message.response = {
|
|
9214
|
+
$case: "internalServerError",
|
|
9215
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
9216
|
+
};
|
|
9217
|
+
}
|
|
9218
|
+
return message;
|
|
9219
|
+
}
|
|
9220
|
+
}
|
|
9221
|
+
|
|
9222
|
+
function createBaseKickPlayerFromCommunityVoiceChatResponse_Ok(): KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9223
|
+
return { message: "" };
|
|
9224
|
+
}
|
|
9225
|
+
|
|
9226
|
+
export namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9227
|
+
export function encode(
|
|
9228
|
+
message: KickPlayerFromCommunityVoiceChatResponse_Ok,
|
|
9229
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9230
|
+
): _m0.Writer {
|
|
9231
|
+
if (message.message !== "") {
|
|
9232
|
+
writer.uint32(10).string(message.message);
|
|
9233
|
+
}
|
|
9234
|
+
return writer;
|
|
9235
|
+
}
|
|
9236
|
+
|
|
9237
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9238
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9240
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatResponse_Ok();
|
|
9241
|
+
while (reader.pos < end) {
|
|
9242
|
+
const tag = reader.uint32();
|
|
9243
|
+
switch (tag >>> 3) {
|
|
9244
|
+
case 1:
|
|
9245
|
+
if (tag !== 10) {
|
|
9246
|
+
break;
|
|
9247
|
+
}
|
|
9248
|
+
|
|
9249
|
+
message.message = reader.string();
|
|
9250
|
+
continue;
|
|
9251
|
+
}
|
|
9252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9253
|
+
break;
|
|
9254
|
+
}
|
|
9255
|
+
reader.skipType(tag & 7);
|
|
9256
|
+
}
|
|
9257
|
+
return message;
|
|
9258
|
+
}
|
|
9259
|
+
|
|
9260
|
+
export function fromJSON(object: any): KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9261
|
+
return { message: isSet(object.message) ? String(object.message) : "" };
|
|
9262
|
+
}
|
|
9263
|
+
|
|
9264
|
+
export function toJSON(message: KickPlayerFromCommunityVoiceChatResponse_Ok): unknown {
|
|
9265
|
+
const obj: any = {};
|
|
9266
|
+
message.message !== undefined && (obj.message = message.message);
|
|
9267
|
+
return obj;
|
|
9268
|
+
}
|
|
9269
|
+
|
|
9270
|
+
export function create<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(
|
|
9271
|
+
base?: I,
|
|
9272
|
+
): KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9273
|
+
return KickPlayerFromCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9276
|
+
export function fromPartial<I extends Exact<DeepPartial<KickPlayerFromCommunityVoiceChatResponse_Ok>, I>>(
|
|
9277
|
+
object: I,
|
|
9278
|
+
): KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
9279
|
+
const message = createBaseKickPlayerFromCommunityVoiceChatResponse_Ok();
|
|
9280
|
+
message.message = object.message ?? "";
|
|
9281
|
+
return message;
|
|
9282
|
+
}
|
|
9283
|
+
}
|
|
9284
|
+
|
|
9285
|
+
function createBaseCommunityVoiceChatUpdate(): CommunityVoiceChatUpdate {
|
|
9286
|
+
return { communityId: "", voiceChatId: "", createdAt: 0, status: 0, endedAt: undefined };
|
|
9287
|
+
}
|
|
9288
|
+
|
|
9289
|
+
export namespace CommunityVoiceChatUpdate {
|
|
9290
|
+
export function encode(message: CommunityVoiceChatUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
9291
|
+
if (message.communityId !== "") {
|
|
9292
|
+
writer.uint32(10).string(message.communityId);
|
|
9293
|
+
}
|
|
9294
|
+
if (message.voiceChatId !== "") {
|
|
9295
|
+
writer.uint32(18).string(message.voiceChatId);
|
|
9296
|
+
}
|
|
9297
|
+
if (message.createdAt !== 0) {
|
|
9298
|
+
writer.uint32(24).int64(message.createdAt);
|
|
9299
|
+
}
|
|
9300
|
+
if (message.status !== 0) {
|
|
9301
|
+
writer.uint32(32).int32(message.status);
|
|
9302
|
+
}
|
|
9303
|
+
if (message.endedAt !== undefined) {
|
|
9304
|
+
writer.uint32(40).int64(message.endedAt);
|
|
9305
|
+
}
|
|
9306
|
+
return writer;
|
|
9307
|
+
}
|
|
9308
|
+
|
|
9309
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityVoiceChatUpdate {
|
|
9310
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9311
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9312
|
+
const message = createBaseCommunityVoiceChatUpdate();
|
|
9313
|
+
while (reader.pos < end) {
|
|
9314
|
+
const tag = reader.uint32();
|
|
9315
|
+
switch (tag >>> 3) {
|
|
9316
|
+
case 1:
|
|
9317
|
+
if (tag !== 10) {
|
|
9318
|
+
break;
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9321
|
+
message.communityId = reader.string();
|
|
9322
|
+
continue;
|
|
9323
|
+
case 2:
|
|
9324
|
+
if (tag !== 18) {
|
|
9325
|
+
break;
|
|
9326
|
+
}
|
|
9327
|
+
|
|
9328
|
+
message.voiceChatId = reader.string();
|
|
9329
|
+
continue;
|
|
9330
|
+
case 3:
|
|
9331
|
+
if (tag !== 24) {
|
|
9332
|
+
break;
|
|
9333
|
+
}
|
|
9334
|
+
|
|
9335
|
+
message.createdAt = longToNumber(reader.int64() as Long);
|
|
9336
|
+
continue;
|
|
9337
|
+
case 4:
|
|
9338
|
+
if (tag !== 32) {
|
|
9339
|
+
break;
|
|
9340
|
+
}
|
|
9341
|
+
|
|
9342
|
+
message.status = reader.int32() as any;
|
|
9343
|
+
continue;
|
|
9344
|
+
case 5:
|
|
9345
|
+
if (tag !== 40) {
|
|
9346
|
+
break;
|
|
9347
|
+
}
|
|
9348
|
+
|
|
9349
|
+
message.endedAt = longToNumber(reader.int64() as Long);
|
|
9350
|
+
continue;
|
|
9351
|
+
}
|
|
9352
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9353
|
+
break;
|
|
9354
|
+
}
|
|
9355
|
+
reader.skipType(tag & 7);
|
|
9356
|
+
}
|
|
9357
|
+
return message;
|
|
9358
|
+
}
|
|
9359
|
+
|
|
9360
|
+
export function fromJSON(object: any): CommunityVoiceChatUpdate {
|
|
9361
|
+
return {
|
|
9362
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
9363
|
+
voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
|
|
9364
|
+
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
9365
|
+
status: isSet(object.status) ? communityVoiceChatStatusFromJSON(object.status) : 0,
|
|
9366
|
+
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : undefined,
|
|
9367
|
+
};
|
|
9368
|
+
}
|
|
9369
|
+
|
|
9370
|
+
export function toJSON(message: CommunityVoiceChatUpdate): unknown {
|
|
9371
|
+
const obj: any = {};
|
|
9372
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
9373
|
+
message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
|
|
9374
|
+
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
9375
|
+
message.status !== undefined && (obj.status = communityVoiceChatStatusToJSON(message.status));
|
|
9376
|
+
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
9377
|
+
return obj;
|
|
9378
|
+
}
|
|
9379
|
+
|
|
9380
|
+
export function create<I extends Exact<DeepPartial<CommunityVoiceChatUpdate>, I>>(
|
|
9381
|
+
base?: I,
|
|
9382
|
+
): CommunityVoiceChatUpdate {
|
|
9383
|
+
return CommunityVoiceChatUpdate.fromPartial(base ?? {});
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
export function fromPartial<I extends Exact<DeepPartial<CommunityVoiceChatUpdate>, I>>(
|
|
9387
|
+
object: I,
|
|
9388
|
+
): CommunityVoiceChatUpdate {
|
|
9389
|
+
const message = createBaseCommunityVoiceChatUpdate();
|
|
9390
|
+
message.communityId = object.communityId ?? "";
|
|
9391
|
+
message.voiceChatId = object.voiceChatId ?? "";
|
|
9392
|
+
message.createdAt = object.createdAt ?? 0;
|
|
9393
|
+
message.status = object.status ?? 0;
|
|
9394
|
+
message.endedAt = object.endedAt ?? undefined;
|
|
9395
|
+
return message;
|
|
9396
|
+
}
|
|
9397
|
+
}
|
|
9398
|
+
|
|
9399
|
+
export type SocialServiceDefinition = typeof SocialServiceDefinition;
|
|
9400
|
+
export const SocialServiceDefinition = {
|
|
9401
|
+
name: "SocialService",
|
|
9402
|
+
fullName: "decentraland.social_service.v2.SocialService",
|
|
9403
|
+
methods: {
|
|
9404
|
+
/** Get the list of friends for the authenticated user */
|
|
9405
|
+
getFriends: {
|
|
9406
|
+
name: "GetFriends",
|
|
9407
|
+
requestType: GetFriendsPayload,
|
|
9408
|
+
requestStream: false,
|
|
9409
|
+
responseType: PaginatedFriendsProfilesResponse,
|
|
9410
|
+
responseStream: false,
|
|
9411
|
+
options: {},
|
|
9412
|
+
},
|
|
9413
|
+
/** Get the list of mutual friends between the authenticated user and the one in the parameter */
|
|
9414
|
+
getMutualFriends: {
|
|
9415
|
+
name: "GetMutualFriends",
|
|
9416
|
+
requestType: GetMutualFriendsPayload,
|
|
9417
|
+
requestStream: false,
|
|
9418
|
+
responseType: PaginatedFriendsProfilesResponse,
|
|
9419
|
+
responseStream: false,
|
|
9420
|
+
options: {},
|
|
9421
|
+
},
|
|
9422
|
+
/** Get the pending friendship requests for the authenticated user */
|
|
9423
|
+
getPendingFriendshipRequests: {
|
|
9424
|
+
name: "GetPendingFriendshipRequests",
|
|
9425
|
+
requestType: GetFriendshipRequestsPayload,
|
|
9426
|
+
requestStream: false,
|
|
9427
|
+
responseType: PaginatedFriendshipRequestsResponse,
|
|
9428
|
+
responseStream: false,
|
|
9429
|
+
options: {},
|
|
9430
|
+
},
|
|
9431
|
+
/** Get the sent friendship requests for the authenticated user */
|
|
9432
|
+
getSentFriendshipRequests: {
|
|
9433
|
+
name: "GetSentFriendshipRequests",
|
|
9434
|
+
requestType: GetFriendshipRequestsPayload,
|
|
9435
|
+
requestStream: false,
|
|
9436
|
+
responseType: PaginatedFriendshipRequestsResponse,
|
|
9437
|
+
responseStream: false,
|
|
9438
|
+
options: {},
|
|
9439
|
+
},
|
|
9440
|
+
/** Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
9441
|
+
upsertFriendship: {
|
|
9442
|
+
name: "UpsertFriendship",
|
|
9443
|
+
requestType: UpsertFriendshipPayload,
|
|
9444
|
+
requestStream: false,
|
|
9445
|
+
responseType: UpsertFriendshipResponse,
|
|
9446
|
+
responseStream: false,
|
|
9447
|
+
options: {},
|
|
9448
|
+
},
|
|
9449
|
+
/** Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
9450
|
+
subscribeToFriendshipUpdates: {
|
|
9451
|
+
name: "SubscribeToFriendshipUpdates",
|
|
9452
|
+
requestType: Empty,
|
|
9453
|
+
requestStream: false,
|
|
9454
|
+
responseType: FriendshipUpdate,
|
|
9455
|
+
responseStream: true,
|
|
9456
|
+
options: {},
|
|
9457
|
+
},
|
|
9458
|
+
/** Get the friendship status between the authenticated user and the one in the parameter */
|
|
9459
|
+
getFriendshipStatus: {
|
|
9460
|
+
name: "GetFriendshipStatus",
|
|
9461
|
+
requestType: GetFriendshipStatusPayload,
|
|
9462
|
+
requestStream: false,
|
|
9463
|
+
responseType: GetFriendshipStatusResponse,
|
|
9464
|
+
responseStream: false,
|
|
9465
|
+
options: {},
|
|
9466
|
+
},
|
|
9467
|
+
/** Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY */
|
|
9468
|
+
subscribeToFriendConnectivityUpdates: {
|
|
9469
|
+
name: "SubscribeToFriendConnectivityUpdates",
|
|
9470
|
+
requestType: Empty,
|
|
9471
|
+
requestStream: false,
|
|
9472
|
+
responseType: FriendConnectivityUpdate,
|
|
9473
|
+
responseStream: true,
|
|
9474
|
+
options: {},
|
|
9475
|
+
},
|
|
9476
|
+
blockUser: {
|
|
9477
|
+
name: "BlockUser",
|
|
9478
|
+
requestType: BlockUserPayload,
|
|
9479
|
+
requestStream: false,
|
|
9480
|
+
responseType: BlockUserResponse,
|
|
9481
|
+
responseStream: false,
|
|
9482
|
+
options: {},
|
|
9483
|
+
},
|
|
9484
|
+
unblockUser: {
|
|
9485
|
+
name: "UnblockUser",
|
|
9486
|
+
requestType: UnblockUserPayload,
|
|
9487
|
+
requestStream: false,
|
|
9488
|
+
responseType: UnblockUserResponse,
|
|
9489
|
+
responseStream: false,
|
|
9490
|
+
options: {},
|
|
9491
|
+
},
|
|
9492
|
+
getBlockedUsers: {
|
|
9493
|
+
name: "GetBlockedUsers",
|
|
9494
|
+
requestType: GetBlockedUsersPayload,
|
|
9495
|
+
requestStream: false,
|
|
9496
|
+
responseType: GetBlockedUsersResponse,
|
|
9497
|
+
responseStream: false,
|
|
9498
|
+
options: {},
|
|
9499
|
+
},
|
|
9500
|
+
getBlockingStatus: {
|
|
9501
|
+
name: "GetBlockingStatus",
|
|
9502
|
+
requestType: Empty,
|
|
9503
|
+
requestStream: false,
|
|
9504
|
+
responseType: GetBlockingStatusResponse,
|
|
9505
|
+
responseStream: false,
|
|
9506
|
+
options: {},
|
|
9507
|
+
},
|
|
9508
|
+
subscribeToBlockUpdates: {
|
|
9509
|
+
name: "SubscribeToBlockUpdates",
|
|
9510
|
+
requestType: Empty,
|
|
9511
|
+
requestStream: false,
|
|
9512
|
+
responseType: BlockUpdate,
|
|
9513
|
+
responseStream: true,
|
|
9514
|
+
options: {},
|
|
9515
|
+
},
|
|
9516
|
+
/** Get all the social settings for the authenticated user */
|
|
9517
|
+
getSocialSettings: {
|
|
9518
|
+
name: "GetSocialSettings",
|
|
9519
|
+
requestType: Empty,
|
|
9520
|
+
requestStream: false,
|
|
9521
|
+
responseType: GetSocialSettingsResponse,
|
|
9522
|
+
responseStream: false,
|
|
9523
|
+
options: {},
|
|
9524
|
+
},
|
|
9525
|
+
/** Insert or update the social settings for the authenticated user */
|
|
9526
|
+
upsertSocialSettings: {
|
|
9527
|
+
name: "UpsertSocialSettings",
|
|
9528
|
+
requestType: UpsertSocialSettingsPayload,
|
|
9529
|
+
requestStream: false,
|
|
9530
|
+
responseType: UpsertSocialSettingsResponse,
|
|
9531
|
+
responseStream: false,
|
|
9532
|
+
options: {},
|
|
9533
|
+
},
|
|
9534
|
+
/** Get the private messages privacy settings for the requested users */
|
|
9535
|
+
getPrivateMessagesSettings: {
|
|
9536
|
+
name: "GetPrivateMessagesSettings",
|
|
9537
|
+
requestType: GetPrivateMessagesSettingsPayload,
|
|
9538
|
+
requestStream: false,
|
|
9539
|
+
responseType: GetPrivateMessagesSettingsResponse,
|
|
9540
|
+
responseStream: false,
|
|
9541
|
+
options: {},
|
|
9542
|
+
},
|
|
9543
|
+
/** Subscribe to community member connectivity updates: ONLINE, OFFLINE */
|
|
9544
|
+
subscribeToCommunityMemberConnectivityUpdates: {
|
|
9545
|
+
name: "SubscribeToCommunityMemberConnectivityUpdates",
|
|
9546
|
+
requestType: Empty,
|
|
9547
|
+
requestStream: false,
|
|
9548
|
+
responseType: CommunityMemberConnectivityUpdate,
|
|
9549
|
+
responseStream: true,
|
|
9550
|
+
options: {},
|
|
9551
|
+
},
|
|
9552
|
+
/** Start a private voice chat */
|
|
9553
|
+
startPrivateVoiceChat: {
|
|
9554
|
+
name: "StartPrivateVoiceChat",
|
|
9555
|
+
requestType: StartPrivateVoiceChatPayload,
|
|
7191
9556
|
requestStream: false,
|
|
7192
9557
|
responseType: StartPrivateVoiceChatResponse,
|
|
7193
9558
|
responseStream: false,
|
|
@@ -7238,6 +9603,69 @@ export const SocialServiceDefinition = {
|
|
|
7238
9603
|
responseStream: true,
|
|
7239
9604
|
options: {},
|
|
7240
9605
|
},
|
|
9606
|
+
/** Start a community voice chat (moderator/owner only) */
|
|
9607
|
+
startCommunityVoiceChat: {
|
|
9608
|
+
name: "StartCommunityVoiceChat",
|
|
9609
|
+
requestType: StartCommunityVoiceChatPayload,
|
|
9610
|
+
requestStream: false,
|
|
9611
|
+
responseType: StartCommunityVoiceChatResponse,
|
|
9612
|
+
responseStream: false,
|
|
9613
|
+
options: {},
|
|
9614
|
+
},
|
|
9615
|
+
/** Join a community voice chat */
|
|
9616
|
+
joinCommunityVoiceChat: {
|
|
9617
|
+
name: "JoinCommunityVoiceChat",
|
|
9618
|
+
requestType: JoinCommunityVoiceChatPayload,
|
|
9619
|
+
requestStream: false,
|
|
9620
|
+
responseType: JoinCommunityVoiceChatResponse,
|
|
9621
|
+
responseStream: false,
|
|
9622
|
+
options: {},
|
|
9623
|
+
},
|
|
9624
|
+
/** Request to speak in community voice chat */
|
|
9625
|
+
requestToSpeakInCommunityVoiceChat: {
|
|
9626
|
+
name: "RequestToSpeakInCommunityVoiceChat",
|
|
9627
|
+
requestType: RequestToSpeakInCommunityVoiceChatPayload,
|
|
9628
|
+
requestStream: false,
|
|
9629
|
+
responseType: RequestToSpeakInCommunityVoiceChatResponse,
|
|
9630
|
+
responseStream: false,
|
|
9631
|
+
options: {},
|
|
9632
|
+
},
|
|
9633
|
+
/** Promote speaker in community voice chat (moderator only) */
|
|
9634
|
+
promoteSpeakerInCommunityVoiceChat: {
|
|
9635
|
+
name: "PromoteSpeakerInCommunityVoiceChat",
|
|
9636
|
+
requestType: PromoteSpeakerInCommunityVoiceChatPayload,
|
|
9637
|
+
requestStream: false,
|
|
9638
|
+
responseType: PromoteSpeakerInCommunityVoiceChatResponse,
|
|
9639
|
+
responseStream: false,
|
|
9640
|
+
options: {},
|
|
9641
|
+
},
|
|
9642
|
+
/** Demote speaker in community voice chat (moderator only) */
|
|
9643
|
+
demoteSpeakerInCommunityVoiceChat: {
|
|
9644
|
+
name: "DemoteSpeakerInCommunityVoiceChat",
|
|
9645
|
+
requestType: DemoteSpeakerInCommunityVoiceChatPayload,
|
|
9646
|
+
requestStream: false,
|
|
9647
|
+
responseType: DemoteSpeakerInCommunityVoiceChatResponse,
|
|
9648
|
+
responseStream: false,
|
|
9649
|
+
options: {},
|
|
9650
|
+
},
|
|
9651
|
+
/** Kick player from community voice chat (moderator only) */
|
|
9652
|
+
kickPlayerFromCommunityVoiceChat: {
|
|
9653
|
+
name: "KickPlayerFromCommunityVoiceChat",
|
|
9654
|
+
requestType: KickPlayerFromCommunityVoiceChatPayload,
|
|
9655
|
+
requestStream: false,
|
|
9656
|
+
responseType: KickPlayerFromCommunityVoiceChatResponse,
|
|
9657
|
+
responseStream: false,
|
|
9658
|
+
options: {},
|
|
9659
|
+
},
|
|
9660
|
+
/** Subscribe to community voice chat updates (only 'started' events) */
|
|
9661
|
+
subscribeToCommunityVoiceChatUpdates: {
|
|
9662
|
+
name: "SubscribeToCommunityVoiceChatUpdates",
|
|
9663
|
+
requestType: Empty,
|
|
9664
|
+
requestStream: false,
|
|
9665
|
+
responseType: CommunityVoiceChatUpdate,
|
|
9666
|
+
responseStream: true,
|
|
9667
|
+
options: {},
|
|
9668
|
+
},
|
|
7241
9669
|
},
|
|
7242
9670
|
} as const;
|
|
7243
9671
|
|