@dcl/protocol 1.0.0-16670787325.commit-554f0f2 → 1.0.0-16721006271.commit-e03db90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +58 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +293 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +336 -0
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +22 -0
|
@@ -783,6 +783,25 @@ export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
|
783
783
|
message: string;
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
+
/** End community voice chat (moderator/owner only) */
|
|
787
|
+
export interface EndCommunityVoiceChatPayload {
|
|
788
|
+
communityId: string;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export interface EndCommunityVoiceChatResponse {
|
|
792
|
+
response?:
|
|
793
|
+
| { $case: "ok"; ok: EndCommunityVoiceChatResponse_Ok }
|
|
794
|
+
| { $case: "invalidRequest"; invalidRequest: InvalidRequest }
|
|
795
|
+
| { $case: "forbiddenError"; forbiddenError: ForbiddenError }
|
|
796
|
+
| { $case: "notFoundError"; notFoundError: NotFoundError }
|
|
797
|
+
| { $case: "internalServerError"; internalServerError: InternalServerError }
|
|
798
|
+
| undefined;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
export interface EndCommunityVoiceChatResponse_Ok {
|
|
802
|
+
message: string;
|
|
803
|
+
}
|
|
804
|
+
|
|
786
805
|
/** Community voice chat updates/events - 'started' and 'ended' status */
|
|
787
806
|
export interface CommunityVoiceChatUpdate {
|
|
788
807
|
communityId: string;
|
|
@@ -8941,6 +8960,314 @@ export namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
|
8941
8960
|
}
|
|
8942
8961
|
}
|
|
8943
8962
|
|
|
8963
|
+
function createBaseEndCommunityVoiceChatPayload(): EndCommunityVoiceChatPayload {
|
|
8964
|
+
return { communityId: "" };
|
|
8965
|
+
}
|
|
8966
|
+
|
|
8967
|
+
export namespace EndCommunityVoiceChatPayload {
|
|
8968
|
+
export function encode(message: EndCommunityVoiceChatPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
8969
|
+
if (message.communityId !== "") {
|
|
8970
|
+
writer.uint32(10).string(message.communityId);
|
|
8971
|
+
}
|
|
8972
|
+
return writer;
|
|
8973
|
+
}
|
|
8974
|
+
|
|
8975
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatPayload {
|
|
8976
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8977
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8978
|
+
const message = createBaseEndCommunityVoiceChatPayload();
|
|
8979
|
+
while (reader.pos < end) {
|
|
8980
|
+
const tag = reader.uint32();
|
|
8981
|
+
switch (tag >>> 3) {
|
|
8982
|
+
case 1:
|
|
8983
|
+
if (tag !== 10) {
|
|
8984
|
+
break;
|
|
8985
|
+
}
|
|
8986
|
+
|
|
8987
|
+
message.communityId = reader.string();
|
|
8988
|
+
continue;
|
|
8989
|
+
}
|
|
8990
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8991
|
+
break;
|
|
8992
|
+
}
|
|
8993
|
+
reader.skipType(tag & 7);
|
|
8994
|
+
}
|
|
8995
|
+
return message;
|
|
8996
|
+
}
|
|
8997
|
+
|
|
8998
|
+
export function fromJSON(object: any): EndCommunityVoiceChatPayload {
|
|
8999
|
+
return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
|
|
9000
|
+
}
|
|
9001
|
+
|
|
9002
|
+
export function toJSON(message: EndCommunityVoiceChatPayload): unknown {
|
|
9003
|
+
const obj: any = {};
|
|
9004
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
9005
|
+
return obj;
|
|
9006
|
+
}
|
|
9007
|
+
|
|
9008
|
+
export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(
|
|
9009
|
+
base?: I,
|
|
9010
|
+
): EndCommunityVoiceChatPayload {
|
|
9011
|
+
return EndCommunityVoiceChatPayload.fromPartial(base ?? {});
|
|
9012
|
+
}
|
|
9013
|
+
|
|
9014
|
+
export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(
|
|
9015
|
+
object: I,
|
|
9016
|
+
): EndCommunityVoiceChatPayload {
|
|
9017
|
+
const message = createBaseEndCommunityVoiceChatPayload();
|
|
9018
|
+
message.communityId = object.communityId ?? "";
|
|
9019
|
+
return message;
|
|
9020
|
+
}
|
|
9021
|
+
}
|
|
9022
|
+
|
|
9023
|
+
function createBaseEndCommunityVoiceChatResponse(): EndCommunityVoiceChatResponse {
|
|
9024
|
+
return { response: undefined };
|
|
9025
|
+
}
|
|
9026
|
+
|
|
9027
|
+
export namespace EndCommunityVoiceChatResponse {
|
|
9028
|
+
export function encode(message: EndCommunityVoiceChatResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
9029
|
+
switch (message.response?.$case) {
|
|
9030
|
+
case "ok":
|
|
9031
|
+
EndCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
|
|
9032
|
+
break;
|
|
9033
|
+
case "invalidRequest":
|
|
9034
|
+
InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
|
|
9035
|
+
break;
|
|
9036
|
+
case "forbiddenError":
|
|
9037
|
+
ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
|
|
9038
|
+
break;
|
|
9039
|
+
case "notFoundError":
|
|
9040
|
+
NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
|
|
9041
|
+
break;
|
|
9042
|
+
case "internalServerError":
|
|
9043
|
+
InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
|
|
9044
|
+
break;
|
|
9045
|
+
}
|
|
9046
|
+
return writer;
|
|
9047
|
+
}
|
|
9048
|
+
|
|
9049
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse {
|
|
9050
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9051
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9052
|
+
const message = createBaseEndCommunityVoiceChatResponse();
|
|
9053
|
+
while (reader.pos < end) {
|
|
9054
|
+
const tag = reader.uint32();
|
|
9055
|
+
switch (tag >>> 3) {
|
|
9056
|
+
case 1:
|
|
9057
|
+
if (tag !== 10) {
|
|
9058
|
+
break;
|
|
9059
|
+
}
|
|
9060
|
+
|
|
9061
|
+
message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()) };
|
|
9062
|
+
continue;
|
|
9063
|
+
case 2:
|
|
9064
|
+
if (tag !== 18) {
|
|
9065
|
+
break;
|
|
9066
|
+
}
|
|
9067
|
+
|
|
9068
|
+
message.response = {
|
|
9069
|
+
$case: "invalidRequest",
|
|
9070
|
+
invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
|
|
9071
|
+
};
|
|
9072
|
+
continue;
|
|
9073
|
+
case 3:
|
|
9074
|
+
if (tag !== 26) {
|
|
9075
|
+
break;
|
|
9076
|
+
}
|
|
9077
|
+
|
|
9078
|
+
message.response = {
|
|
9079
|
+
$case: "forbiddenError",
|
|
9080
|
+
forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
|
|
9081
|
+
};
|
|
9082
|
+
continue;
|
|
9083
|
+
case 4:
|
|
9084
|
+
if (tag !== 34) {
|
|
9085
|
+
break;
|
|
9086
|
+
}
|
|
9087
|
+
|
|
9088
|
+
message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
|
|
9089
|
+
continue;
|
|
9090
|
+
case 5:
|
|
9091
|
+
if (tag !== 42) {
|
|
9092
|
+
break;
|
|
9093
|
+
}
|
|
9094
|
+
|
|
9095
|
+
message.response = {
|
|
9096
|
+
$case: "internalServerError",
|
|
9097
|
+
internalServerError: InternalServerError.decode(reader, reader.uint32()),
|
|
9098
|
+
};
|
|
9099
|
+
continue;
|
|
9100
|
+
}
|
|
9101
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9102
|
+
break;
|
|
9103
|
+
}
|
|
9104
|
+
reader.skipType(tag & 7);
|
|
9105
|
+
}
|
|
9106
|
+
return message;
|
|
9107
|
+
}
|
|
9108
|
+
|
|
9109
|
+
export function fromJSON(object: any): EndCommunityVoiceChatResponse {
|
|
9110
|
+
return {
|
|
9111
|
+
response: isSet(object.ok)
|
|
9112
|
+
? { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
|
|
9113
|
+
: isSet(object.invalidRequest)
|
|
9114
|
+
? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
|
|
9115
|
+
: isSet(object.forbiddenError)
|
|
9116
|
+
? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
|
|
9117
|
+
: isSet(object.notFoundError)
|
|
9118
|
+
? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
|
|
9119
|
+
: isSet(object.internalServerError)
|
|
9120
|
+
? {
|
|
9121
|
+
$case: "internalServerError",
|
|
9122
|
+
internalServerError: InternalServerError.fromJSON(object.internalServerError),
|
|
9123
|
+
}
|
|
9124
|
+
: undefined,
|
|
9125
|
+
};
|
|
9126
|
+
}
|
|
9127
|
+
|
|
9128
|
+
export function toJSON(message: EndCommunityVoiceChatResponse): unknown {
|
|
9129
|
+
const obj: any = {};
|
|
9130
|
+
message.response?.$case === "ok" &&
|
|
9131
|
+
(obj.ok = message.response?.ok ? EndCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok) : undefined);
|
|
9132
|
+
message.response?.$case === "invalidRequest" &&
|
|
9133
|
+
(obj.invalidRequest = message.response?.invalidRequest
|
|
9134
|
+
? InvalidRequest.toJSON(message.response?.invalidRequest)
|
|
9135
|
+
: undefined);
|
|
9136
|
+
message.response?.$case === "forbiddenError" &&
|
|
9137
|
+
(obj.forbiddenError = message.response?.forbiddenError
|
|
9138
|
+
? ForbiddenError.toJSON(message.response?.forbiddenError)
|
|
9139
|
+
: undefined);
|
|
9140
|
+
message.response?.$case === "notFoundError" &&
|
|
9141
|
+
(obj.notFoundError = message.response?.notFoundError
|
|
9142
|
+
? NotFoundError.toJSON(message.response?.notFoundError)
|
|
9143
|
+
: undefined);
|
|
9144
|
+
message.response?.$case === "internalServerError" &&
|
|
9145
|
+
(obj.internalServerError = message.response?.internalServerError
|
|
9146
|
+
? InternalServerError.toJSON(message.response?.internalServerError)
|
|
9147
|
+
: undefined);
|
|
9148
|
+
return obj;
|
|
9149
|
+
}
|
|
9150
|
+
|
|
9151
|
+
export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(
|
|
9152
|
+
base?: I,
|
|
9153
|
+
): EndCommunityVoiceChatResponse {
|
|
9154
|
+
return EndCommunityVoiceChatResponse.fromPartial(base ?? {});
|
|
9155
|
+
}
|
|
9156
|
+
|
|
9157
|
+
export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(
|
|
9158
|
+
object: I,
|
|
9159
|
+
): EndCommunityVoiceChatResponse {
|
|
9160
|
+
const message = createBaseEndCommunityVoiceChatResponse();
|
|
9161
|
+
if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
|
|
9162
|
+
message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok) };
|
|
9163
|
+
}
|
|
9164
|
+
if (
|
|
9165
|
+
object.response?.$case === "invalidRequest" &&
|
|
9166
|
+
object.response?.invalidRequest !== undefined &&
|
|
9167
|
+
object.response?.invalidRequest !== null
|
|
9168
|
+
) {
|
|
9169
|
+
message.response = {
|
|
9170
|
+
$case: "invalidRequest",
|
|
9171
|
+
invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
|
|
9172
|
+
};
|
|
9173
|
+
}
|
|
9174
|
+
if (
|
|
9175
|
+
object.response?.$case === "forbiddenError" &&
|
|
9176
|
+
object.response?.forbiddenError !== undefined &&
|
|
9177
|
+
object.response?.forbiddenError !== null
|
|
9178
|
+
) {
|
|
9179
|
+
message.response = {
|
|
9180
|
+
$case: "forbiddenError",
|
|
9181
|
+
forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
|
|
9182
|
+
};
|
|
9183
|
+
}
|
|
9184
|
+
if (
|
|
9185
|
+
object.response?.$case === "notFoundError" &&
|
|
9186
|
+
object.response?.notFoundError !== undefined &&
|
|
9187
|
+
object.response?.notFoundError !== null
|
|
9188
|
+
) {
|
|
9189
|
+
message.response = {
|
|
9190
|
+
$case: "notFoundError",
|
|
9191
|
+
notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
|
|
9192
|
+
};
|
|
9193
|
+
}
|
|
9194
|
+
if (
|
|
9195
|
+
object.response?.$case === "internalServerError" &&
|
|
9196
|
+
object.response?.internalServerError !== undefined &&
|
|
9197
|
+
object.response?.internalServerError !== null
|
|
9198
|
+
) {
|
|
9199
|
+
message.response = {
|
|
9200
|
+
$case: "internalServerError",
|
|
9201
|
+
internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
|
|
9202
|
+
};
|
|
9203
|
+
}
|
|
9204
|
+
return message;
|
|
9205
|
+
}
|
|
9206
|
+
}
|
|
9207
|
+
|
|
9208
|
+
function createBaseEndCommunityVoiceChatResponse_Ok(): EndCommunityVoiceChatResponse_Ok {
|
|
9209
|
+
return { message: "" };
|
|
9210
|
+
}
|
|
9211
|
+
|
|
9212
|
+
export namespace EndCommunityVoiceChatResponse_Ok {
|
|
9213
|
+
export function encode(
|
|
9214
|
+
message: EndCommunityVoiceChatResponse_Ok,
|
|
9215
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
9216
|
+
): _m0.Writer {
|
|
9217
|
+
if (message.message !== "") {
|
|
9218
|
+
writer.uint32(10).string(message.message);
|
|
9219
|
+
}
|
|
9220
|
+
return writer;
|
|
9221
|
+
}
|
|
9222
|
+
|
|
9223
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse_Ok {
|
|
9224
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9226
|
+
const message = createBaseEndCommunityVoiceChatResponse_Ok();
|
|
9227
|
+
while (reader.pos < end) {
|
|
9228
|
+
const tag = reader.uint32();
|
|
9229
|
+
switch (tag >>> 3) {
|
|
9230
|
+
case 1:
|
|
9231
|
+
if (tag !== 10) {
|
|
9232
|
+
break;
|
|
9233
|
+
}
|
|
9234
|
+
|
|
9235
|
+
message.message = reader.string();
|
|
9236
|
+
continue;
|
|
9237
|
+
}
|
|
9238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9239
|
+
break;
|
|
9240
|
+
}
|
|
9241
|
+
reader.skipType(tag & 7);
|
|
9242
|
+
}
|
|
9243
|
+
return message;
|
|
9244
|
+
}
|
|
9245
|
+
|
|
9246
|
+
export function fromJSON(object: any): EndCommunityVoiceChatResponse_Ok {
|
|
9247
|
+
return { message: isSet(object.message) ? String(object.message) : "" };
|
|
9248
|
+
}
|
|
9249
|
+
|
|
9250
|
+
export function toJSON(message: EndCommunityVoiceChatResponse_Ok): unknown {
|
|
9251
|
+
const obj: any = {};
|
|
9252
|
+
message.message !== undefined && (obj.message = message.message);
|
|
9253
|
+
return obj;
|
|
9254
|
+
}
|
|
9255
|
+
|
|
9256
|
+
export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(
|
|
9257
|
+
base?: I,
|
|
9258
|
+
): EndCommunityVoiceChatResponse_Ok {
|
|
9259
|
+
return EndCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
|
|
9260
|
+
}
|
|
9261
|
+
|
|
9262
|
+
export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(
|
|
9263
|
+
object: I,
|
|
9264
|
+
): EndCommunityVoiceChatResponse_Ok {
|
|
9265
|
+
const message = createBaseEndCommunityVoiceChatResponse_Ok();
|
|
9266
|
+
message.message = object.message ?? "";
|
|
9267
|
+
return message;
|
|
9268
|
+
}
|
|
9269
|
+
}
|
|
9270
|
+
|
|
8944
9271
|
function createBaseCommunityVoiceChatUpdate(): CommunityVoiceChatUpdate {
|
|
8945
9272
|
return {
|
|
8946
9273
|
communityId: "",
|
|
@@ -9386,6 +9713,15 @@ export const SocialServiceDefinition = {
|
|
|
9386
9713
|
responseStream: false,
|
|
9387
9714
|
options: {},
|
|
9388
9715
|
},
|
|
9716
|
+
/** End community voice chat (moderator/owner only) */
|
|
9717
|
+
endCommunityVoiceChat: {
|
|
9718
|
+
name: "EndCommunityVoiceChat",
|
|
9719
|
+
requestType: EndCommunityVoiceChatPayload,
|
|
9720
|
+
requestStream: false,
|
|
9721
|
+
responseType: EndCommunityVoiceChatResponse,
|
|
9722
|
+
responseStream: false,
|
|
9723
|
+
options: {},
|
|
9724
|
+
},
|
|
9389
9725
|
/** Subscribe to community voice chat updates (only 'started' events) */
|
|
9390
9726
|
subscribeToCommunityVoiceChatUpdates: {
|
|
9391
9727
|
name: "SubscribeToCommunityVoiceChatUpdates",
|
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-16721006271.commit-e03db90",
|
|
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": "e03db907636e587c59a2034a48aaf55f2ae3bf8e"
|
|
34
34
|
}
|
|
@@ -531,6 +531,25 @@ message KickPlayerFromCommunityVoiceChatResponse {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
+
// End community voice chat (moderator/owner only)
|
|
535
|
+
message EndCommunityVoiceChatPayload {
|
|
536
|
+
string community_id = 1;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
message EndCommunityVoiceChatResponse {
|
|
540
|
+
message Ok {
|
|
541
|
+
string message = 1;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
oneof response {
|
|
545
|
+
Ok ok = 1;
|
|
546
|
+
InvalidRequest invalid_request = 2;
|
|
547
|
+
ForbiddenError forbidden_error = 3;
|
|
548
|
+
NotFoundError not_found_error = 4;
|
|
549
|
+
InternalServerError internal_server_error = 5;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
534
553
|
enum CommunityVoiceChatStatus {
|
|
535
554
|
COMMUNITY_VOICE_CHAT_STARTED = 0;
|
|
536
555
|
COMMUNITY_VOICE_CHAT_ENDED = 1;
|
|
@@ -636,6 +655,9 @@ service SocialService {
|
|
|
636
655
|
// Kick player from community voice chat (moderator only)
|
|
637
656
|
rpc KickPlayerFromCommunityVoiceChat(KickPlayerFromCommunityVoiceChatPayload) returns (KickPlayerFromCommunityVoiceChatResponse) {}
|
|
638
657
|
|
|
658
|
+
// End community voice chat (moderator/owner only)
|
|
659
|
+
rpc EndCommunityVoiceChat(EndCommunityVoiceChatPayload) returns (EndCommunityVoiceChatResponse) {}
|
|
660
|
+
|
|
639
661
|
// Subscribe to community voice chat updates (only 'started' events)
|
|
640
662
|
rpc SubscribeToCommunityVoiceChatUpdates(google.protobuf.Empty) returns (stream CommunityVoiceChatUpdate) {}
|
|
641
663
|
}
|