@dcl/protocol 1.0.0-16079089845.commit-0e8c31f → 1.0.0-16199987615.commit-bca3a64
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/kernel/comms/rfc4/comms.gen.d.ts +9 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +49 -11
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +838 -22
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +5093 -941
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +59 -10
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +5630 -939
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +8 -3
- package/proto/decentraland/sdk/components/light_source.proto +35 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +347 -9
|
@@ -56,6 +56,9 @@ export interface Movement {
|
|
|
56
56
|
isFalling: boolean;
|
|
57
57
|
isStunned: boolean;
|
|
58
58
|
rotationY: number;
|
|
59
|
+
/** interpolation */
|
|
60
|
+
isInstant: boolean;
|
|
61
|
+
isEmoting: boolean;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
export interface MovementCompressed {
|
|
@@ -66,7 +69,7 @@ export interface MovementCompressed {
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
export interface PlayerEmote {
|
|
69
|
-
|
|
72
|
+
timestamp: number;
|
|
70
73
|
urn: string;
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -92,6 +95,11 @@ export interface ProfileResponse {
|
|
|
92
95
|
export interface Chat {
|
|
93
96
|
message: string;
|
|
94
97
|
timestamp: number;
|
|
98
|
+
/**
|
|
99
|
+
* Extension: optional forwarded_from to identify the original sender when
|
|
100
|
+
* messages are forwarded through an SFU
|
|
101
|
+
*/
|
|
102
|
+
forwardedFrom?: string | undefined;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
export interface Scene {
|
|
@@ -608,6 +616,8 @@ function createBaseMovement(): Movement {
|
|
|
608
616
|
isFalling: false,
|
|
609
617
|
isStunned: false,
|
|
610
618
|
rotationY: 0,
|
|
619
|
+
isInstant: false,
|
|
620
|
+
isEmoting: false,
|
|
611
621
|
};
|
|
612
622
|
}
|
|
613
623
|
|
|
@@ -661,6 +671,12 @@ export namespace Movement {
|
|
|
661
671
|
if (message.rotationY !== 0) {
|
|
662
672
|
writer.uint32(133).float(message.rotationY);
|
|
663
673
|
}
|
|
674
|
+
if (message.isInstant === true) {
|
|
675
|
+
writer.uint32(136).bool(message.isInstant);
|
|
676
|
+
}
|
|
677
|
+
if (message.isEmoting === true) {
|
|
678
|
+
writer.uint32(144).bool(message.isEmoting);
|
|
679
|
+
}
|
|
664
680
|
return writer;
|
|
665
681
|
}
|
|
666
682
|
|
|
@@ -783,6 +799,20 @@ export namespace Movement {
|
|
|
783
799
|
|
|
784
800
|
message.rotationY = reader.float();
|
|
785
801
|
continue;
|
|
802
|
+
case 17:
|
|
803
|
+
if (tag !== 136) {
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
message.isInstant = reader.bool();
|
|
808
|
+
continue;
|
|
809
|
+
case 18:
|
|
810
|
+
if (tag !== 144) {
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
message.isEmoting = reader.bool();
|
|
815
|
+
continue;
|
|
786
816
|
}
|
|
787
817
|
if ((tag & 7) === 4 || tag === 0) {
|
|
788
818
|
break;
|
|
@@ -810,6 +840,8 @@ export namespace Movement {
|
|
|
810
840
|
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
811
841
|
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
812
842
|
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
843
|
+
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
844
|
+
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
813
845
|
};
|
|
814
846
|
}
|
|
815
847
|
|
|
@@ -831,6 +863,8 @@ export namespace Movement {
|
|
|
831
863
|
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
832
864
|
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
833
865
|
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
866
|
+
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
867
|
+
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
834
868
|
return obj;
|
|
835
869
|
}
|
|
836
870
|
|
|
@@ -856,6 +890,8 @@ export namespace Movement {
|
|
|
856
890
|
message.isFalling = object.isFalling ?? false;
|
|
857
891
|
message.isStunned = object.isStunned ?? false;
|
|
858
892
|
message.rotationY = object.rotationY ?? 0;
|
|
893
|
+
message.isInstant = object.isInstant ?? false;
|
|
894
|
+
message.isEmoting = object.isEmoting ?? false;
|
|
859
895
|
return message;
|
|
860
896
|
}
|
|
861
897
|
}
|
|
@@ -932,13 +968,13 @@ export namespace MovementCompressed {
|
|
|
932
968
|
}
|
|
933
969
|
|
|
934
970
|
function createBasePlayerEmote(): PlayerEmote {
|
|
935
|
-
return {
|
|
971
|
+
return { timestamp: 0, urn: "" };
|
|
936
972
|
}
|
|
937
973
|
|
|
938
974
|
export namespace PlayerEmote {
|
|
939
975
|
export function encode(message: PlayerEmote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
940
|
-
if (message.
|
|
941
|
-
writer.uint32(
|
|
976
|
+
if (message.timestamp !== 0) {
|
|
977
|
+
writer.uint32(13).float(message.timestamp);
|
|
942
978
|
}
|
|
943
979
|
if (message.urn !== "") {
|
|
944
980
|
writer.uint32(18).string(message.urn);
|
|
@@ -954,11 +990,11 @@ export namespace PlayerEmote {
|
|
|
954
990
|
const tag = reader.uint32();
|
|
955
991
|
switch (tag >>> 3) {
|
|
956
992
|
case 1:
|
|
957
|
-
if (tag !==
|
|
993
|
+
if (tag !== 13) {
|
|
958
994
|
break;
|
|
959
995
|
}
|
|
960
996
|
|
|
961
|
-
message.
|
|
997
|
+
message.timestamp = reader.float();
|
|
962
998
|
continue;
|
|
963
999
|
case 2:
|
|
964
1000
|
if (tag !== 18) {
|
|
@@ -978,14 +1014,14 @@ export namespace PlayerEmote {
|
|
|
978
1014
|
|
|
979
1015
|
export function fromJSON(object: any): PlayerEmote {
|
|
980
1016
|
return {
|
|
981
|
-
|
|
1017
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
982
1018
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
983
1019
|
};
|
|
984
1020
|
}
|
|
985
1021
|
|
|
986
1022
|
export function toJSON(message: PlayerEmote): unknown {
|
|
987
1023
|
const obj: any = {};
|
|
988
|
-
message.
|
|
1024
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
989
1025
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
990
1026
|
return obj;
|
|
991
1027
|
}
|
|
@@ -996,7 +1032,7 @@ export namespace PlayerEmote {
|
|
|
996
1032
|
|
|
997
1033
|
export function fromPartial<I extends Exact<DeepPartial<PlayerEmote>, I>>(object: I): PlayerEmote {
|
|
998
1034
|
const message = createBasePlayerEmote();
|
|
999
|
-
message.
|
|
1035
|
+
message.timestamp = object.timestamp ?? 0;
|
|
1000
1036
|
message.urn = object.urn ?? "";
|
|
1001
1037
|
return message;
|
|
1002
1038
|
}
|
|
@@ -1274,7 +1310,7 @@ export namespace ProfileResponse {
|
|
|
1274
1310
|
}
|
|
1275
1311
|
|
|
1276
1312
|
function createBaseChat(): Chat {
|
|
1277
|
-
return { message: "", timestamp: 0 };
|
|
1313
|
+
return { message: "", timestamp: 0, forwardedFrom: undefined };
|
|
1278
1314
|
}
|
|
1279
1315
|
|
|
1280
1316
|
export namespace Chat {
|
|
@@ -1285,6 +1321,9 @@ export namespace Chat {
|
|
|
1285
1321
|
if (message.timestamp !== 0) {
|
|
1286
1322
|
writer.uint32(17).double(message.timestamp);
|
|
1287
1323
|
}
|
|
1324
|
+
if (message.forwardedFrom !== undefined) {
|
|
1325
|
+
writer.uint32(26).string(message.forwardedFrom);
|
|
1326
|
+
}
|
|
1288
1327
|
return writer;
|
|
1289
1328
|
}
|
|
1290
1329
|
|
|
@@ -1309,6 +1348,13 @@ export namespace Chat {
|
|
|
1309
1348
|
|
|
1310
1349
|
message.timestamp = reader.double();
|
|
1311
1350
|
continue;
|
|
1351
|
+
case 3:
|
|
1352
|
+
if (tag !== 26) {
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
message.forwardedFrom = reader.string();
|
|
1357
|
+
continue;
|
|
1312
1358
|
}
|
|
1313
1359
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1314
1360
|
break;
|
|
@@ -1322,6 +1368,7 @@ export namespace Chat {
|
|
|
1322
1368
|
return {
|
|
1323
1369
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1324
1370
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1371
|
+
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1325
1372
|
};
|
|
1326
1373
|
}
|
|
1327
1374
|
|
|
@@ -1329,6 +1376,7 @@ export namespace Chat {
|
|
|
1329
1376
|
const obj: any = {};
|
|
1330
1377
|
message.message !== undefined && (obj.message = message.message);
|
|
1331
1378
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1379
|
+
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1332
1380
|
return obj;
|
|
1333
1381
|
}
|
|
1334
1382
|
|
|
@@ -1340,6 +1388,7 @@ export namespace Chat {
|
|
|
1340
1388
|
const message = createBaseChat();
|
|
1341
1389
|
message.message = object.message ?? "";
|
|
1342
1390
|
message.timestamp = object.timestamp ?? 0;
|
|
1391
|
+
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1343
1392
|
return message;
|
|
1344
1393
|
}
|
|
1345
1394
|
}
|