@dcl/protocol 1.0.0-18103584382.commit-cb75aeb → 1.0.0-18139325564.commit-905b963
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 +61 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +328 -2
- 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 +384 -0
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +24 -0
|
@@ -805,6 +805,28 @@ export interface RejectSpeakRequestInCommunityVoiceChatResponse_Ok {
|
|
|
805
805
|
message: string;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
+
/** Community Voice Chat Messages */
|
|
809
|
+
export interface MuteSpeakerFromCommunityVoiceChatPayload {
|
|
810
|
+
communityId: string;
|
|
811
|
+
userAddress: string;
|
|
812
|
+
muted: boolean;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export interface MuteSpeakerFromCommunityVoiceChatResponse {
|
|
816
|
+
response?:
|
|
817
|
+
| { $case: "ok"; ok: MuteSpeakerFromCommunityVoiceChatResponse_Ok }
|
|
818
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
819
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
820
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
821
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
822
|
+
| undefined;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export interface MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
826
|
+
/** The resulting mute state */
|
|
827
|
+
muted: boolean;
|
|
828
|
+
}
|
|
829
|
+
|
|
808
830
|
/** End community voice chat (moderator/owner only) */
|
|
809
831
|
export interface EndCommunityVoiceChatPayload {
|
|
810
832
|
communityId: string;
|
|
@@ -9344,6 +9366,359 @@ export namespace RejectSpeakRequestInCommunityVoiceChatResponse_Ok {
|
|
|
9344
9366
|
}
|
|
9345
9367
|
}
|
|
9346
9368
|
|
|
9369
|
+
function createBaseMuteSpeakerFromCommunityVoiceChatPayload(): MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9370
|
+
return { communityId: "", userAddress: "", muted: false };
|
|
9371
|
+
}
|
|
9372
|
+
|
|
9373
|
+
export namespace MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9374
|
+
export function encode(
|
|
9375
|
+
message: MuteSpeakerFromCommunityVoiceChatPayload,
|
|
9376
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9377
|
+
): _m0.Writer {
|
|
9378
|
+
if (message.communityId !== "") {
|
|
9379
|
+
writer.uint32(10).string(message.communityId);
|
|
9380
|
+
}
|
|
9381
|
+
if (message.userAddress !== "") {
|
|
9382
|
+
writer.uint32(18).string(message.userAddress);
|
|
9383
|
+
}
|
|
9384
|
+
if (message.muted === true) {
|
|
9385
|
+
writer.uint32(24).bool(message.muted);
|
|
9386
|
+
}
|
|
9387
|
+
return writer;
|
|
9388
|
+
}
|
|
9389
|
+
|
|
9390
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9391
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9392
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9393
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatPayload();
|
|
9394
|
+
while (reader.pos < end) {
|
|
9395
|
+
const tag = reader.uint32();
|
|
9396
|
+
switch (tag >>> 3) {
|
|
9397
|
+
case 1:
|
|
9398
|
+
if (tag !== 10) {
|
|
9399
|
+
break;
|
|
9400
|
+
}
|
|
9401
|
+
|
|
9402
|
+
message.communityId = reader.string();
|
|
9403
|
+
continue;
|
|
9404
|
+
case 2:
|
|
9405
|
+
if (tag !== 18) {
|
|
9406
|
+
break;
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
message.userAddress = reader.string();
|
|
9410
|
+
continue;
|
|
9411
|
+
case 3:
|
|
9412
|
+
if (tag !== 24) {
|
|
9413
|
+
break;
|
|
9414
|
+
}
|
|
9415
|
+
|
|
9416
|
+
message.muted = reader.bool();
|
|
9417
|
+
continue;
|
|
9418
|
+
}
|
|
9419
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9420
|
+
break;
|
|
9421
|
+
}
|
|
9422
|
+
reader.skipType(tag & 7);
|
|
9423
|
+
}
|
|
9424
|
+
return message;
|
|
9425
|
+
}
|
|
9426
|
+
|
|
9427
|
+
export function fromJSON(object: any): MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9428
|
+
return {
|
|
9429
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
9430
|
+
userAddress: isSet(object.userAddress) ? String(object.userAddress) : "",
|
|
9431
|
+
muted: isSet(object.muted) ? Boolean(object.muted) : false,
|
|
9432
|
+
};
|
|
9433
|
+
}
|
|
9434
|
+
|
|
9435
|
+
export function toJSON(message: MuteSpeakerFromCommunityVoiceChatPayload): unknown {
|
|
9436
|
+
const obj: any = {};
|
|
9437
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
9438
|
+
message.userAddress !== undefined && (obj.userAddress = message.userAddress);
|
|
9439
|
+
message.muted !== undefined && (obj.muted = message.muted);
|
|
9440
|
+
return obj;
|
|
9441
|
+
}
|
|
9442
|
+
|
|
9443
|
+
export function create<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatPayload>, I>>(
|
|
9444
|
+
base?: I,
|
|
9445
|
+
): MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9446
|
+
return MuteSpeakerFromCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
9447
|
+
}
|
|
9448
|
+
|
|
9449
|
+
export function fromPartial<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatPayload>, I>>(
|
|
9450
|
+
object: I,
|
|
9451
|
+
): MuteSpeakerFromCommunityVoiceChatPayload {
|
|
9452
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatPayload();
|
|
9453
|
+
message.communityId = object.communityId ?? "";
|
|
9454
|
+
message.userAddress = object.userAddress ?? "";
|
|
9455
|
+
message.muted = object.muted ?? false;
|
|
9456
|
+
return message;
|
|
9457
|
+
}
|
|
9458
|
+
}
|
|
9459
|
+
|
|
9460
|
+
function createBaseMuteSpeakerFromCommunityVoiceChatResponse(): MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9461
|
+
return { response: undefined };
|
|
9462
|
+
}
|
|
9463
|
+
|
|
9464
|
+
export namespace MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9465
|
+
export function encode(
|
|
9466
|
+
message: MuteSpeakerFromCommunityVoiceChatResponse,
|
|
9467
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9468
|
+
): _m0.Writer {
|
|
9469
|
+
switch (message.response?.$case) {
|
|
9470
|
+
case "ok":
|
|
9471
|
+
MuteSpeakerFromCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
9472
|
+
break;
|
|
9473
|
+
case "forbiddenError":
|
|
9474
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(18).fork()).ldelim();
|
|
9475
|
+
break;
|
|
9476
|
+
case "notFoundError":
|
|
9477
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(26).fork()).ldelim();
|
|
9478
|
+
break;
|
|
9479
|
+
case "invalidRequest":
|
|
9480
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(34).fork()).ldelim();
|
|
9481
|
+
break;
|
|
9482
|
+
case "internalServerError":
|
|
9483
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
9484
|
+
break;
|
|
9485
|
+
}
|
|
9486
|
+
return writer;
|
|
9487
|
+
}
|
|
9488
|
+
|
|
9489
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9490
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9491
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9492
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatResponse();
|
|
9493
|
+
while (reader.pos < end) {
|
|
9494
|
+
const tag = reader.uint32();
|
|
9495
|
+
switch (tag >>> 3) {
|
|
9496
|
+
case 1:
|
|
9497
|
+
if (tag !== 10) {
|
|
9498
|
+
break;
|
|
9499
|
+
}
|
|
9500
|
+
|
|
9501
|
+
message.response = {
|
|
9502
|
+
$case: "ok",
|
|
9503
|
+
ok: MuteSpeakerFromCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()),
|
|
9504
|
+
};
|
|
9505
|
+
continue;
|
|
9506
|
+
case 2:
|
|
9507
|
+
if (tag !== 18) {
|
|
9508
|
+
break;
|
|
9509
|
+
}
|
|
9510
|
+
|
|
9511
|
+
message.response = {
|
|
9512
|
+
$case: "forbiddenError",
|
|
9513
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
9514
|
+
};
|
|
9515
|
+
continue;
|
|
9516
|
+
case 3:
|
|
9517
|
+
if (tag !== 26) {
|
|
9518
|
+
break;
|
|
9519
|
+
}
|
|
9520
|
+
|
|
9521
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
9522
|
+
continue;
|
|
9523
|
+
case 4:
|
|
9524
|
+
if (tag !== 34) {
|
|
9525
|
+
break;
|
|
9526
|
+
}
|
|
9527
|
+
|
|
9528
|
+
message.response = {
|
|
9529
|
+
$case: "invalidRequest",
|
|
9530
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
9531
|
+
};
|
|
9532
|
+
continue;
|
|
9533
|
+
case 5:
|
|
9534
|
+
if (tag !== 42) {
|
|
9535
|
+
break;
|
|
9536
|
+
}
|
|
9537
|
+
|
|
9538
|
+
message.response = {
|
|
9539
|
+
$case: "internalServerError",
|
|
9540
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
9541
|
+
};
|
|
9542
|
+
continue;
|
|
9543
|
+
}
|
|
9544
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9545
|
+
break;
|
|
9546
|
+
}
|
|
9547
|
+
reader.skipType(tag & 7);
|
|
9548
|
+
}
|
|
9549
|
+
return message;
|
|
9550
|
+
}
|
|
9551
|
+
|
|
9552
|
+
export function fromJSON(object: any): MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9553
|
+
return {
|
|
9554
|
+
response: isSet(object.ok)
|
|
9555
|
+
? { $case: "ok", ok: MuteSpeakerFromCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
9556
|
+
: isSet(object.forbiddenError)
|
|
9557
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
9558
|
+
: isSet(object.notFoundError)
|
|
9559
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
9560
|
+
: isSet(object.invalidRequest)
|
|
9561
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
9562
|
+
: isSet(object.internalServerError)
|
|
9563
|
+
? {
|
|
9564
|
+
$case: "internalServerError",
|
|
9565
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
9566
|
+
}
|
|
9567
|
+
: undefined,
|
|
9568
|
+
};
|
|
9569
|
+
}
|
|
9570
|
+
|
|
9571
|
+
export function toJSON(message: MuteSpeakerFromCommunityVoiceChatResponse): unknown {
|
|
9572
|
+
const obj: any = {};
|
|
9573
|
+
message.response?.$case === "ok" &&
|
|
9574
|
+
(obj.ok = message.response?.ok
|
|
9575
|
+
? MuteSpeakerFromCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok)
|
|
9576
|
+
: undefined);
|
|
9577
|
+
message.response?.$case === "forbiddenError" &&
|
|
9578
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
9579
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
9580
|
+
: undefined);
|
|
9581
|
+
message.response?.$case === "notFoundError" &&
|
|
9582
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
9583
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
9584
|
+
: undefined);
|
|
9585
|
+
message.response?.$case === "invalidRequest" &&
|
|
9586
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
9587
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
9588
|
+
: undefined);
|
|
9589
|
+
message.response?.$case === "internalServerError" &&
|
|
9590
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
9591
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
9592
|
+
: undefined);
|
|
9593
|
+
return obj;
|
|
9594
|
+
}
|
|
9595
|
+
|
|
9596
|
+
export function create<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatResponse>, I>>(
|
|
9597
|
+
base?: I,
|
|
9598
|
+
): MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9599
|
+
return MuteSpeakerFromCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
9600
|
+
}
|
|
9601
|
+
|
|
9602
|
+
export function fromPartial<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatResponse>, I>>(
|
|
9603
|
+
object: I,
|
|
9604
|
+
): MuteSpeakerFromCommunityVoiceChatResponse {
|
|
9605
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatResponse();
|
|
9606
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
9607
|
+
message.response = {
|
|
9608
|
+
$case: "ok",
|
|
9609
|
+
ok: MuteSpeakerFromCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok),
|
|
9610
|
+
};
|
|
9611
|
+
}
|
|
9612
|
+
if (
|
|
9613
|
+
object.response?.$case === "forbiddenError" &&
|
|
9614
|
+
object.response?.forbiddenError !== undefined &&
|
|
9615
|
+
object.response?.forbiddenError !== null
|
|
9616
|
+
) {
|
|
9617
|
+
message.response = {
|
|
9618
|
+
$case: "forbiddenError",
|
|
9619
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
9620
|
+
};
|
|
9621
|
+
}
|
|
9622
|
+
if (
|
|
9623
|
+
object.response?.$case === "notFoundError" &&
|
|
9624
|
+
object.response?.notFoundError !== undefined &&
|
|
9625
|
+
object.response?.notFoundError !== null
|
|
9626
|
+
) {
|
|
9627
|
+
message.response = {
|
|
9628
|
+
$case: "notFoundError",
|
|
9629
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
9630
|
+
};
|
|
9631
|
+
}
|
|
9632
|
+
if (
|
|
9633
|
+
object.response?.$case === "invalidRequest" &&
|
|
9634
|
+
object.response?.invalidRequest !== undefined &&
|
|
9635
|
+
object.response?.invalidRequest !== null
|
|
9636
|
+
) {
|
|
9637
|
+
message.response = {
|
|
9638
|
+
$case: "invalidRequest",
|
|
9639
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
9640
|
+
};
|
|
9641
|
+
}
|
|
9642
|
+
if (
|
|
9643
|
+
object.response?.$case === "internalServerError" &&
|
|
9644
|
+
object.response?.internalServerError !== undefined &&
|
|
9645
|
+
object.response?.internalServerError !== null
|
|
9646
|
+
) {
|
|
9647
|
+
message.response = {
|
|
9648
|
+
$case: "internalServerError",
|
|
9649
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
9650
|
+
};
|
|
9651
|
+
}
|
|
9652
|
+
return message;
|
|
9653
|
+
}
|
|
9654
|
+
}
|
|
9655
|
+
|
|
9656
|
+
function createBaseMuteSpeakerFromCommunityVoiceChatResponse_Ok(): MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9657
|
+
return { muted: false };
|
|
9658
|
+
}
|
|
9659
|
+
|
|
9660
|
+
export namespace MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9661
|
+
export function encode(
|
|
9662
|
+
message: MuteSpeakerFromCommunityVoiceChatResponse_Ok,
|
|
9663
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9664
|
+
): _m0.Writer {
|
|
9665
|
+
if (message.muted === true) {
|
|
9666
|
+
writer.uint32(8).bool(message.muted);
|
|
9667
|
+
}
|
|
9668
|
+
return writer;
|
|
9669
|
+
}
|
|
9670
|
+
|
|
9671
|
+
export function decode(
|
|
9672
|
+
input: _m0.Reader | Uint8Array,
|
|
9673
|
+
length?: number,
|
|
9674
|
+
): MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9675
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9676
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9677
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatResponse_Ok();
|
|
9678
|
+
while (reader.pos < end) {
|
|
9679
|
+
const tag = reader.uint32();
|
|
9680
|
+
switch (tag >>> 3) {
|
|
9681
|
+
case 1:
|
|
9682
|
+
if (tag !== 8) {
|
|
9683
|
+
break;
|
|
9684
|
+
}
|
|
9685
|
+
|
|
9686
|
+
message.muted = reader.bool();
|
|
9687
|
+
continue;
|
|
9688
|
+
}
|
|
9689
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9690
|
+
break;
|
|
9691
|
+
}
|
|
9692
|
+
reader.skipType(tag & 7);
|
|
9693
|
+
}
|
|
9694
|
+
return message;
|
|
9695
|
+
}
|
|
9696
|
+
|
|
9697
|
+
export function fromJSON(object: any): MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9698
|
+
return { muted: isSet(object.muted) ? Boolean(object.muted) : false };
|
|
9699
|
+
}
|
|
9700
|
+
|
|
9701
|
+
export function toJSON(message: MuteSpeakerFromCommunityVoiceChatResponse_Ok): unknown {
|
|
9702
|
+
const obj: any = {};
|
|
9703
|
+
message.muted !== undefined && (obj.muted = message.muted);
|
|
9704
|
+
return obj;
|
|
9705
|
+
}
|
|
9706
|
+
|
|
9707
|
+
export function create<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatResponse_Ok>, I>>(
|
|
9708
|
+
base?: I,
|
|
9709
|
+
): MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9710
|
+
return MuteSpeakerFromCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
9711
|
+
}
|
|
9712
|
+
|
|
9713
|
+
export function fromPartial<I extends Exact<DeepPartial<MuteSpeakerFromCommunityVoiceChatResponse_Ok>, I>>(
|
|
9714
|
+
object: I,
|
|
9715
|
+
): MuteSpeakerFromCommunityVoiceChatResponse_Ok {
|
|
9716
|
+
const message = createBaseMuteSpeakerFromCommunityVoiceChatResponse_Ok();
|
|
9717
|
+
message.muted = object.muted ?? false;
|
|
9718
|
+
return message;
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9721
|
+
|
|
9347
9722
|
function createBaseEndCommunityVoiceChatPayload(): EndCommunityVoiceChatPayload {
|
|
9348
9723
|
return { communityId: "" };
|
|
9349
9724
|
}
|
|
@@ -10124,6 +10499,15 @@ export const SocialServiceDefinition = {
|
|
|
10124
10499
|
responseStream: true,
|
|
10125
10500
|
options: {},
|
|
10126
10501
|
},
|
|
10502
|
+
/** Mute or unmute a speaker in a community voice chat */
|
|
10503
|
+
muteSpeakerFromCommunityVoiceChat: {
|
|
10504
|
+
name: "MuteSpeakerFromCommunityVoiceChat",
|
|
10505
|
+
requestType: MuteSpeakerFromCommunityVoiceChatPayload,
|
|
10506
|
+
requestStream: false,
|
|
10507
|
+
responseType: MuteSpeakerFromCommunityVoiceChatResponse,
|
|
10508
|
+
responseStream: false,
|
|
10509
|
+
options: {},
|
|
10510
|
+
},
|
|
10127
10511
|
},
|
|
10128
10512
|
} as const;
|
|
10129
10513
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-18139325564.commit-905b963",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "905b9630e2c46d34c5a654294ae2fa4fa56ae881"
|
|
34
34
|
}
|
|
@@ -552,6 +552,27 @@ message RejectSpeakRequestInCommunityVoiceChatResponse {
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
+
// Community Voice Chat Messages
|
|
556
|
+
message MuteSpeakerFromCommunityVoiceChatPayload {
|
|
557
|
+
string community_id = 1;
|
|
558
|
+
string user_address = 2;
|
|
559
|
+
bool muted = 3;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
message MuteSpeakerFromCommunityVoiceChatResponse {
|
|
563
|
+
message Ok {
|
|
564
|
+
bool muted = 1; // The resulting mute state
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
oneof response {
|
|
568
|
+
Ok ok = 1;
|
|
569
|
+
ForbiddenError forbidden_error = 2;
|
|
570
|
+
NotFoundError not_found_error = 3;
|
|
571
|
+
InvalidRequest invalid_request = 4;
|
|
572
|
+
InternalServerError internal_server_error = 5;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
555
576
|
// End community voice chat (moderator/owner only)
|
|
556
577
|
message EndCommunityVoiceChatPayload {
|
|
557
578
|
string community_id = 1;
|
|
@@ -684,4 +705,7 @@ service SocialService {
|
|
|
684
705
|
|
|
685
706
|
// Subscribe to community voice chat updates (only 'started' events)
|
|
686
707
|
rpc SubscribeToCommunityVoiceChatUpdates(google.protobuf.Empty) returns (stream CommunityVoiceChatUpdate) {}
|
|
708
|
+
|
|
709
|
+
// Mute or unmute a speaker in a community voice chat
|
|
710
|
+
rpc MuteSpeakerFromCommunityVoiceChat(MuteSpeakerFromCommunityVoiceChatPayload) returns (MuteSpeakerFromCommunityVoiceChatResponse) {}
|
|
687
711
|
}
|