@dcl/protocol 1.0.0-16572701298.commit-25e60c0 → 1.0.0-16670787325.commit-554f0f2
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 +10 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +88 -20
- 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 +101 -18
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +9 -5
|
@@ -786,12 +786,25 @@ export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
|
786
786
|
/** Community voice chat updates/events - 'started' and 'ended' status */
|
|
787
787
|
export interface CommunityVoiceChatUpdate {
|
|
788
788
|
communityId: string;
|
|
789
|
-
voiceChatId: string;
|
|
790
789
|
createdAt: number;
|
|
791
790
|
/** 'started' or 'ended' */
|
|
792
791
|
status: CommunityVoiceChatStatus;
|
|
793
792
|
/** Only present when status is 'ended' */
|
|
794
|
-
endedAt?:
|
|
793
|
+
endedAt?:
|
|
794
|
+
| number
|
|
795
|
+
| undefined;
|
|
796
|
+
/** Positions/coordinates associated with the community (world: false) */
|
|
797
|
+
positions: string[];
|
|
798
|
+
/** Whether the receiving user is a member of the community */
|
|
799
|
+
isMember: boolean;
|
|
800
|
+
/** Name of the community */
|
|
801
|
+
communityName: string;
|
|
802
|
+
/** Image/picture of the community */
|
|
803
|
+
communityImage?:
|
|
804
|
+
| string
|
|
805
|
+
| undefined;
|
|
806
|
+
/** World names associated with the community (world: true) */
|
|
807
|
+
worlds: string[];
|
|
795
808
|
}
|
|
796
809
|
|
|
797
810
|
function createBaseUser(): User {
|
|
@@ -8929,7 +8942,17 @@ export namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
|
|
|
8929
8942
|
}
|
|
8930
8943
|
|
|
8931
8944
|
function createBaseCommunityVoiceChatUpdate(): CommunityVoiceChatUpdate {
|
|
8932
|
-
return {
|
|
8945
|
+
return {
|
|
8946
|
+
communityId: "",
|
|
8947
|
+
createdAt: 0,
|
|
8948
|
+
status: 0,
|
|
8949
|
+
endedAt: undefined,
|
|
8950
|
+
positions: [],
|
|
8951
|
+
isMember: false,
|
|
8952
|
+
communityName: "",
|
|
8953
|
+
communityImage: undefined,
|
|
8954
|
+
worlds: [],
|
|
8955
|
+
};
|
|
8933
8956
|
}
|
|
8934
8957
|
|
|
8935
8958
|
export namespace CommunityVoiceChatUpdate {
|
|
@@ -8937,17 +8960,29 @@ export namespace CommunityVoiceChatUpdate {
|
|
|
8937
8960
|
if (message.communityId !== "") {
|
|
8938
8961
|
writer.uint32(10).string(message.communityId);
|
|
8939
8962
|
}
|
|
8940
|
-
if (message.voiceChatId !== "") {
|
|
8941
|
-
writer.uint32(18).string(message.voiceChatId);
|
|
8942
|
-
}
|
|
8943
8963
|
if (message.createdAt !== 0) {
|
|
8944
|
-
writer.uint32(
|
|
8964
|
+
writer.uint32(16).int64(message.createdAt);
|
|
8945
8965
|
}
|
|
8946
8966
|
if (message.status !== 0) {
|
|
8947
|
-
writer.uint32(
|
|
8967
|
+
writer.uint32(24).int32(message.status);
|
|
8948
8968
|
}
|
|
8949
8969
|
if (message.endedAt !== undefined) {
|
|
8950
|
-
writer.uint32(
|
|
8970
|
+
writer.uint32(32).int64(message.endedAt);
|
|
8971
|
+
}
|
|
8972
|
+
for (const v of message.positions) {
|
|
8973
|
+
writer.uint32(42).string(v!);
|
|
8974
|
+
}
|
|
8975
|
+
if (message.isMember === true) {
|
|
8976
|
+
writer.uint32(48).bool(message.isMember);
|
|
8977
|
+
}
|
|
8978
|
+
if (message.communityName !== "") {
|
|
8979
|
+
writer.uint32(58).string(message.communityName);
|
|
8980
|
+
}
|
|
8981
|
+
if (message.communityImage !== undefined) {
|
|
8982
|
+
writer.uint32(66).string(message.communityImage);
|
|
8983
|
+
}
|
|
8984
|
+
for (const v of message.worlds) {
|
|
8985
|
+
writer.uint32(74).string(v!);
|
|
8951
8986
|
}
|
|
8952
8987
|
return writer;
|
|
8953
8988
|
}
|
|
@@ -8967,32 +9002,60 @@ export namespace CommunityVoiceChatUpdate {
|
|
|
8967
9002
|
message.communityId = reader.string();
|
|
8968
9003
|
continue;
|
|
8969
9004
|
case 2:
|
|
8970
|
-
if (tag !==
|
|
9005
|
+
if (tag !== 16) {
|
|
8971
9006
|
break;
|
|
8972
9007
|
}
|
|
8973
9008
|
|
|
8974
|
-
message.
|
|
9009
|
+
message.createdAt = longToNumber(reader.int64() as Long);
|
|
8975
9010
|
continue;
|
|
8976
9011
|
case 3:
|
|
8977
9012
|
if (tag !== 24) {
|
|
8978
9013
|
break;
|
|
8979
9014
|
}
|
|
8980
9015
|
|
|
8981
|
-
message.
|
|
9016
|
+
message.status = reader.int32() as any;
|
|
8982
9017
|
continue;
|
|
8983
9018
|
case 4:
|
|
8984
9019
|
if (tag !== 32) {
|
|
8985
9020
|
break;
|
|
8986
9021
|
}
|
|
8987
9022
|
|
|
8988
|
-
message.
|
|
9023
|
+
message.endedAt = longToNumber(reader.int64() as Long);
|
|
8989
9024
|
continue;
|
|
8990
9025
|
case 5:
|
|
8991
|
-
if (tag !==
|
|
9026
|
+
if (tag !== 42) {
|
|
8992
9027
|
break;
|
|
8993
9028
|
}
|
|
8994
9029
|
|
|
8995
|
-
message.
|
|
9030
|
+
message.positions.push(reader.string());
|
|
9031
|
+
continue;
|
|
9032
|
+
case 6:
|
|
9033
|
+
if (tag !== 48) {
|
|
9034
|
+
break;
|
|
9035
|
+
}
|
|
9036
|
+
|
|
9037
|
+
message.isMember = reader.bool();
|
|
9038
|
+
continue;
|
|
9039
|
+
case 7:
|
|
9040
|
+
if (tag !== 58) {
|
|
9041
|
+
break;
|
|
9042
|
+
}
|
|
9043
|
+
|
|
9044
|
+
message.communityName = reader.string();
|
|
9045
|
+
continue;
|
|
9046
|
+
case 8:
|
|
9047
|
+
if (tag !== 66) {
|
|
9048
|
+
break;
|
|
9049
|
+
}
|
|
9050
|
+
|
|
9051
|
+
message.communityImage = reader.string();
|
|
9052
|
+
continue;
|
|
9053
|
+
case 9:
|
|
9054
|
+
if (tag !== 74) {
|
|
9055
|
+
break;
|
|
9056
|
+
}
|
|
9057
|
+
|
|
9058
|
+
message.worlds.push(reader.string());
|
|
8996
9059
|
continue;
|
|
8997
9060
|
}
|
|
8998
9061
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9006,20 +9069,36 @@ export namespace CommunityVoiceChatUpdate {
|
|
|
9006
9069
|
export function fromJSON(object: any): CommunityVoiceChatUpdate {
|
|
9007
9070
|
return {
|
|
9008
9071
|
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
9009
|
-
voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
|
|
9010
9072
|
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
9011
9073
|
status: isSet(object.status) ? communityVoiceChatStatusFromJSON(object.status) : 0,
|
|
9012
9074
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : undefined,
|
|
9075
|
+
positions: Array.isArray(object?.positions) ? object.positions.map((e: any) => String(e)) : [],
|
|
9076
|
+
isMember: isSet(object.isMember) ? Boolean(object.isMember) : false,
|
|
9077
|
+
communityName: isSet(object.communityName) ? String(object.communityName) : "",
|
|
9078
|
+
communityImage: isSet(object.communityImage) ? String(object.communityImage) : undefined,
|
|
9079
|
+
worlds: Array.isArray(object?.worlds) ? object.worlds.map((e: any) => String(e)) : [],
|
|
9013
9080
|
};
|
|
9014
9081
|
}
|
|
9015
9082
|
|
|
9016
9083
|
export function toJSON(message: CommunityVoiceChatUpdate): unknown {
|
|
9017
9084
|
const obj: any = {};
|
|
9018
9085
|
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
9019
|
-
message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
|
|
9020
9086
|
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
9021
9087
|
message.status !== undefined && (obj.status = communityVoiceChatStatusToJSON(message.status));
|
|
9022
9088
|
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
9089
|
+
if (message.positions) {
|
|
9090
|
+
obj.positions = message.positions.map((e) => e);
|
|
9091
|
+
} else {
|
|
9092
|
+
obj.positions = [];
|
|
9093
|
+
}
|
|
9094
|
+
message.isMember !== undefined && (obj.isMember = message.isMember);
|
|
9095
|
+
message.communityName !== undefined && (obj.communityName = message.communityName);
|
|
9096
|
+
message.communityImage !== undefined && (obj.communityImage = message.communityImage);
|
|
9097
|
+
if (message.worlds) {
|
|
9098
|
+
obj.worlds = message.worlds.map((e) => e);
|
|
9099
|
+
} else {
|
|
9100
|
+
obj.worlds = [];
|
|
9101
|
+
}
|
|
9023
9102
|
return obj;
|
|
9024
9103
|
}
|
|
9025
9104
|
|
|
@@ -9034,10 +9113,14 @@ export namespace CommunityVoiceChatUpdate {
|
|
|
9034
9113
|
): CommunityVoiceChatUpdate {
|
|
9035
9114
|
const message = createBaseCommunityVoiceChatUpdate();
|
|
9036
9115
|
message.communityId = object.communityId ?? "";
|
|
9037
|
-
message.voiceChatId = object.voiceChatId ?? "";
|
|
9038
9116
|
message.createdAt = object.createdAt ?? 0;
|
|
9039
9117
|
message.status = object.status ?? 0;
|
|
9040
9118
|
message.endedAt = object.endedAt ?? undefined;
|
|
9119
|
+
message.positions = object.positions?.map((e) => e) || [];
|
|
9120
|
+
message.isMember = object.isMember ?? false;
|
|
9121
|
+
message.communityName = object.communityName ?? "";
|
|
9122
|
+
message.communityImage = object.communityImage ?? undefined;
|
|
9123
|
+
message.worlds = object.worlds?.map((e) => e) || [];
|
|
9041
9124
|
return message;
|
|
9042
9125
|
}
|
|
9043
9126
|
}
|
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-16670787325.commit-554f0f2",
|
|
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": "554f0f200a6a4ff8021f92e5a8e621f21d6e5bc7"
|
|
34
34
|
}
|
|
@@ -536,13 +536,17 @@ enum CommunityVoiceChatStatus {
|
|
|
536
536
|
COMMUNITY_VOICE_CHAT_ENDED = 1;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
// Community voice chat updates/events - 'started' and 'ended' status
|
|
539
|
+
// Community voice chat updates/events - 'started' and 'ended' status
|
|
540
540
|
message CommunityVoiceChatUpdate {
|
|
541
541
|
string community_id = 1;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
542
|
+
int64 created_at = 2;
|
|
543
|
+
CommunityVoiceChatStatus status = 3; // 'started' or 'ended'
|
|
544
|
+
optional int64 ended_at = 4; // Only present when status is 'ended'
|
|
545
|
+
repeated string positions = 5; // Positions/coordinates associated with the community (world: false)
|
|
546
|
+
bool is_member = 6; // Whether the receiving user is a member of the community
|
|
547
|
+
string community_name = 7; // Name of the community
|
|
548
|
+
optional string community_image = 8; // Image/picture of the community
|
|
549
|
+
repeated string worlds = 9; // World names associated with the community (world: true)
|
|
546
550
|
}
|
|
547
551
|
|
|
548
552
|
service SocialService {
|