@dcl/protocol 1.0.0-18359136550.commit-3f84b58 → 1.0.0-18911041883.commit-f4cd080
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/apis/restricted_actions.gen.d.ts +30 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +110 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +5 -55
- 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 +32 -1368
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +118 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -65
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
- package/package.json +3 -3
- package/proto/decentraland/kernel/apis/restricted_actions.proto +9 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -8
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
- package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
- package/out-js/decentraland/social_service/errors.gen.js +0 -405
- package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
- package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
|
@@ -56,6 +56,13 @@ export interface MovePlayerToResponse {
|
|
|
56
56
|
export interface TeleportToResponse {
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
export interface CopyToClipboardRequest {
|
|
60
|
+
text: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface EmptyResponse {
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
function createBaseMovePlayerToRequest(): MovePlayerToRequest {
|
|
60
67
|
return { newRelativePosition: undefined, cameraTarget: undefined, avatarTarget: undefined };
|
|
61
68
|
}
|
|
@@ -812,6 +819,108 @@ export namespace TeleportToResponse {
|
|
|
812
819
|
}
|
|
813
820
|
}
|
|
814
821
|
|
|
822
|
+
function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
|
|
823
|
+
return { text: "" };
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export namespace CopyToClipboardRequest {
|
|
827
|
+
export function encode(message: CopyToClipboardRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
828
|
+
if (message.text !== "") {
|
|
829
|
+
writer.uint32(10).string(message.text);
|
|
830
|
+
}
|
|
831
|
+
return writer;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CopyToClipboardRequest {
|
|
835
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
836
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
837
|
+
const message = createBaseCopyToClipboardRequest();
|
|
838
|
+
while (reader.pos < end) {
|
|
839
|
+
const tag = reader.uint32();
|
|
840
|
+
switch (tag >>> 3) {
|
|
841
|
+
case 1:
|
|
842
|
+
if (tag !== 10) {
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
message.text = reader.string();
|
|
847
|
+
continue;
|
|
848
|
+
}
|
|
849
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
reader.skipType(tag & 7);
|
|
853
|
+
}
|
|
854
|
+
return message;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export function fromJSON(object: any): CopyToClipboardRequest {
|
|
858
|
+
return { text: isSet(object.text) ? String(object.text) : "" };
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export function toJSON(message: CopyToClipboardRequest): unknown {
|
|
862
|
+
const obj: any = {};
|
|
863
|
+
message.text !== undefined && (obj.text = message.text);
|
|
864
|
+
return obj;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export function create<I extends Exact<DeepPartial<CopyToClipboardRequest>, I>>(base?: I): CopyToClipboardRequest {
|
|
868
|
+
return CopyToClipboardRequest.fromPartial(base ?? {});
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export function fromPartial<I extends Exact<DeepPartial<CopyToClipboardRequest>, I>>(
|
|
872
|
+
object: I,
|
|
873
|
+
): CopyToClipboardRequest {
|
|
874
|
+
const message = createBaseCopyToClipboardRequest();
|
|
875
|
+
message.text = object.text ?? "";
|
|
876
|
+
return message;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
function createBaseEmptyResponse(): EmptyResponse {
|
|
881
|
+
return {};
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export namespace EmptyResponse {
|
|
885
|
+
export function encode(_: EmptyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
886
|
+
return writer;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): EmptyResponse {
|
|
890
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
891
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
892
|
+
const message = createBaseEmptyResponse();
|
|
893
|
+
while (reader.pos < end) {
|
|
894
|
+
const tag = reader.uint32();
|
|
895
|
+
switch (tag >>> 3) {
|
|
896
|
+
}
|
|
897
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
reader.skipType(tag & 7);
|
|
901
|
+
}
|
|
902
|
+
return message;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export function fromJSON(_: any): EmptyResponse {
|
|
906
|
+
return {};
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export function toJSON(_: EmptyResponse): unknown {
|
|
910
|
+
const obj: any = {};
|
|
911
|
+
return obj;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export function create<I extends Exact<DeepPartial<EmptyResponse>, I>>(base?: I): EmptyResponse {
|
|
915
|
+
return EmptyResponse.fromPartial(base ?? {});
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export function fromPartial<I extends Exact<DeepPartial<EmptyResponse>, I>>(_: I): EmptyResponse {
|
|
919
|
+
const message = createBaseEmptyResponse();
|
|
920
|
+
return message;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
815
924
|
export type RestrictedActionsServiceDefinition = typeof RestrictedActionsServiceDefinition;
|
|
816
925
|
export const RestrictedActionsServiceDefinition = {
|
|
817
926
|
name: "RestrictedActionsService",
|
|
@@ -892,6 +1001,15 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
892
1001
|
responseStream: false,
|
|
893
1002
|
options: {},
|
|
894
1003
|
},
|
|
1004
|
+
/** CopyToClipboard copies the provided text into the clipboard */
|
|
1005
|
+
copyToClipboard: {
|
|
1006
|
+
name: "CopyToClipboard",
|
|
1007
|
+
requestType: CopyToClipboardRequest,
|
|
1008
|
+
requestStream: false,
|
|
1009
|
+
responseType: EmptyResponse,
|
|
1010
|
+
responseStream: false,
|
|
1011
|
+
options: {},
|
|
1012
|
+
},
|
|
895
1013
|
},
|
|
896
1014
|
} as const;
|
|
897
1015
|
|
|
@@ -56,9 +56,6 @@ export interface Movement {
|
|
|
56
56
|
isFalling: boolean;
|
|
57
57
|
isStunned: boolean;
|
|
58
58
|
rotationY: number;
|
|
59
|
-
/** interpolation */
|
|
60
|
-
isInstant: boolean;
|
|
61
|
-
isEmoting: boolean;
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
export interface MovementCompressed {
|
|
@@ -71,7 +68,6 @@ export interface MovementCompressed {
|
|
|
71
68
|
export interface PlayerEmote {
|
|
72
69
|
incrementalId: number;
|
|
73
70
|
urn: string;
|
|
74
|
-
timestamp: number;
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
export interface SceneEmote {
|
|
@@ -96,11 +92,6 @@ export interface ProfileResponse {
|
|
|
96
92
|
export interface Chat {
|
|
97
93
|
message: string;
|
|
98
94
|
timestamp: number;
|
|
99
|
-
/**
|
|
100
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
101
|
-
* messages are forwarded through an SFU
|
|
102
|
-
*/
|
|
103
|
-
forwardedFrom?: string | undefined;
|
|
104
95
|
}
|
|
105
96
|
|
|
106
97
|
export interface Scene {
|
|
@@ -617,8 +608,6 @@ function createBaseMovement(): Movement {
|
|
|
617
608
|
isFalling: false,
|
|
618
609
|
isStunned: false,
|
|
619
610
|
rotationY: 0,
|
|
620
|
-
isInstant: false,
|
|
621
|
-
isEmoting: false,
|
|
622
611
|
};
|
|
623
612
|
}
|
|
624
613
|
|
|
@@ -672,12 +661,6 @@ export namespace Movement {
|
|
|
672
661
|
if (message.rotationY !== 0) {
|
|
673
662
|
writer.uint32(133).float(message.rotationY);
|
|
674
663
|
}
|
|
675
|
-
if (message.isInstant === true) {
|
|
676
|
-
writer.uint32(136).bool(message.isInstant);
|
|
677
|
-
}
|
|
678
|
-
if (message.isEmoting === true) {
|
|
679
|
-
writer.uint32(144).bool(message.isEmoting);
|
|
680
|
-
}
|
|
681
664
|
return writer;
|
|
682
665
|
}
|
|
683
666
|
|
|
@@ -800,20 +783,6 @@ export namespace Movement {
|
|
|
800
783
|
|
|
801
784
|
message.rotationY = reader.float();
|
|
802
785
|
continue;
|
|
803
|
-
case 17:
|
|
804
|
-
if (tag !== 136) {
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
message.isInstant = reader.bool();
|
|
809
|
-
continue;
|
|
810
|
-
case 18:
|
|
811
|
-
if (tag !== 144) {
|
|
812
|
-
break;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
message.isEmoting = reader.bool();
|
|
816
|
-
continue;
|
|
817
786
|
}
|
|
818
787
|
if ((tag & 7) === 4 || tag === 0) {
|
|
819
788
|
break;
|
|
@@ -841,8 +810,6 @@ export namespace Movement {
|
|
|
841
810
|
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
842
811
|
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
843
812
|
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
844
|
-
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
845
|
-
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
846
813
|
};
|
|
847
814
|
}
|
|
848
815
|
|
|
@@ -864,8 +831,6 @@ export namespace Movement {
|
|
|
864
831
|
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
865
832
|
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
866
833
|
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
867
|
-
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
868
|
-
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
869
834
|
return obj;
|
|
870
835
|
}
|
|
871
836
|
|
|
@@ -891,8 +856,6 @@ export namespace Movement {
|
|
|
891
856
|
message.isFalling = object.isFalling ?? false;
|
|
892
857
|
message.isStunned = object.isStunned ?? false;
|
|
893
858
|
message.rotationY = object.rotationY ?? 0;
|
|
894
|
-
message.isInstant = object.isInstant ?? false;
|
|
895
|
-
message.isEmoting = object.isEmoting ?? false;
|
|
896
859
|
return message;
|
|
897
860
|
}
|
|
898
861
|
}
|
|
@@ -969,7 +932,7 @@ export namespace MovementCompressed {
|
|
|
969
932
|
}
|
|
970
933
|
|
|
971
934
|
function createBasePlayerEmote(): PlayerEmote {
|
|
972
|
-
return { incrementalId: 0, urn: ""
|
|
935
|
+
return { incrementalId: 0, urn: "" };
|
|
973
936
|
}
|
|
974
937
|
|
|
975
938
|
export namespace PlayerEmote {
|
|
@@ -980,9 +943,6 @@ export namespace PlayerEmote {
|
|
|
980
943
|
if (message.urn !== "") {
|
|
981
944
|
writer.uint32(18).string(message.urn);
|
|
982
945
|
}
|
|
983
|
-
if (message.timestamp !== 0) {
|
|
984
|
-
writer.uint32(29).float(message.timestamp);
|
|
985
|
-
}
|
|
986
946
|
return writer;
|
|
987
947
|
}
|
|
988
948
|
|
|
@@ -1007,13 +967,6 @@ export namespace PlayerEmote {
|
|
|
1007
967
|
|
|
1008
968
|
message.urn = reader.string();
|
|
1009
969
|
continue;
|
|
1010
|
-
case 3:
|
|
1011
|
-
if (tag !== 29) {
|
|
1012
|
-
break;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
message.timestamp = reader.float();
|
|
1016
|
-
continue;
|
|
1017
970
|
}
|
|
1018
971
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1019
972
|
break;
|
|
@@ -1027,7 +980,6 @@ export namespace PlayerEmote {
|
|
|
1027
980
|
return {
|
|
1028
981
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1029
982
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1030
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1031
983
|
};
|
|
1032
984
|
}
|
|
1033
985
|
|
|
@@ -1035,7 +987,6 @@ export namespace PlayerEmote {
|
|
|
1035
987
|
const obj: any = {};
|
|
1036
988
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1037
989
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1038
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1039
990
|
return obj;
|
|
1040
991
|
}
|
|
1041
992
|
|
|
@@ -1047,7 +998,6 @@ export namespace PlayerEmote {
|
|
|
1047
998
|
const message = createBasePlayerEmote();
|
|
1048
999
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1049
1000
|
message.urn = object.urn ?? "";
|
|
1050
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1051
1001
|
return message;
|
|
1052
1002
|
}
|
|
1053
1003
|
}
|
|
@@ -1324,7 +1274,7 @@ export namespace ProfileResponse {
|
|
|
1324
1274
|
}
|
|
1325
1275
|
|
|
1326
1276
|
function createBaseChat(): Chat {
|
|
1327
|
-
return { message: "", timestamp: 0
|
|
1277
|
+
return { message: "", timestamp: 0 };
|
|
1328
1278
|
}
|
|
1329
1279
|
|
|
1330
1280
|
export namespace Chat {
|
|
@@ -1335,9 +1285,6 @@ export namespace Chat {
|
|
|
1335
1285
|
if (message.timestamp !== 0) {
|
|
1336
1286
|
writer.uint32(17).double(message.timestamp);
|
|
1337
1287
|
}
|
|
1338
|
-
if (message.forwardedFrom !== undefined) {
|
|
1339
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1340
|
-
}
|
|
1341
1288
|
return writer;
|
|
1342
1289
|
}
|
|
1343
1290
|
|
|
@@ -1362,13 +1309,6 @@ export namespace Chat {
|
|
|
1362
1309
|
|
|
1363
1310
|
message.timestamp = reader.double();
|
|
1364
1311
|
continue;
|
|
1365
|
-
case 3:
|
|
1366
|
-
if (tag !== 26) {
|
|
1367
|
-
break;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
message.forwardedFrom = reader.string();
|
|
1371
|
-
continue;
|
|
1372
1312
|
}
|
|
1373
1313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1374
1314
|
break;
|
|
@@ -1382,7 +1322,6 @@ export namespace Chat {
|
|
|
1382
1322
|
return {
|
|
1383
1323
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1384
1324
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1385
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1386
1325
|
};
|
|
1387
1326
|
}
|
|
1388
1327
|
|
|
@@ -1390,7 +1329,6 @@ export namespace Chat {
|
|
|
1390
1329
|
const obj: any = {};
|
|
1391
1330
|
message.message !== undefined && (obj.message = message.message);
|
|
1392
1331
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1393
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1394
1332
|
return obj;
|
|
1395
1333
|
}
|
|
1396
1334
|
|
|
@@ -1402,7 +1340,6 @@ export namespace Chat {
|
|
|
1402
1340
|
const message = createBaseChat();
|
|
1403
1341
|
message.message = object.message ?? "";
|
|
1404
1342
|
message.timestamp = object.timestamp ?? 0;
|
|
1405
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1406
1343
|
return message;
|
|
1407
1344
|
}
|
|
1408
1345
|
}
|