@dcl/protocol 1.0.0-20440758478.commit-91726de → 1.0.0-20755528534.commit-d6cccca
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 +12 -5
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +37 -8
- 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 -50
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +12 -353
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
- package/out-js/decentraland/sdk/components/common/input_action.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 +43 -9
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -420
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- 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 +7 -2
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -33
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
- 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/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
|
@@ -7,7 +7,11 @@ export const protobufPackage = "decentraland.kernel.apis";
|
|
|
7
7
|
export interface MovePlayerToRequest {
|
|
8
8
|
newRelativePosition: Vector3 | undefined;
|
|
9
9
|
cameraTarget?: Vector3 | undefined;
|
|
10
|
-
avatarTarget?:
|
|
10
|
+
avatarTarget?:
|
|
11
|
+
| Vector3
|
|
12
|
+
| undefined;
|
|
13
|
+
/** by default (no duration param) the player is instantly moved and not interpolated */
|
|
14
|
+
duration?: number | undefined;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
export interface TeleportToRequest {
|
|
@@ -51,6 +55,7 @@ export interface TriggerEmoteResponse {
|
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
export interface MovePlayerToResponse {
|
|
58
|
+
success: boolean;
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
export interface TeleportToResponse {
|
|
@@ -64,7 +69,7 @@ export interface EmptyResponse {
|
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
function createBaseMovePlayerToRequest(): MovePlayerToRequest {
|
|
67
|
-
return { newRelativePosition: undefined, cameraTarget: undefined, avatarTarget: undefined };
|
|
72
|
+
return { newRelativePosition: undefined, cameraTarget: undefined, avatarTarget: undefined, duration: undefined };
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
export namespace MovePlayerToRequest {
|
|
@@ -78,6 +83,9 @@ export namespace MovePlayerToRequest {
|
|
|
78
83
|
if (message.avatarTarget !== undefined) {
|
|
79
84
|
Vector3.encode(message.avatarTarget, writer.uint32(26).fork()).ldelim();
|
|
80
85
|
}
|
|
86
|
+
if (message.duration !== undefined) {
|
|
87
|
+
writer.uint32(37).float(message.duration);
|
|
88
|
+
}
|
|
81
89
|
return writer;
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -109,6 +117,13 @@ export namespace MovePlayerToRequest {
|
|
|
109
117
|
|
|
110
118
|
message.avatarTarget = Vector3.decode(reader, reader.uint32());
|
|
111
119
|
continue;
|
|
120
|
+
case 4:
|
|
121
|
+
if (tag !== 37) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message.duration = reader.float();
|
|
126
|
+
continue;
|
|
112
127
|
}
|
|
113
128
|
if ((tag & 7) === 4 || tag === 0) {
|
|
114
129
|
break;
|
|
@@ -123,6 +138,7 @@ export namespace MovePlayerToRequest {
|
|
|
123
138
|
newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
124
139
|
cameraTarget: isSet(object.cameraTarget) ? Vector3.fromJSON(object.cameraTarget) : undefined,
|
|
125
140
|
avatarTarget: isSet(object.avatarTarget) ? Vector3.fromJSON(object.avatarTarget) : undefined,
|
|
141
|
+
duration: isSet(object.duration) ? Number(object.duration) : undefined,
|
|
126
142
|
};
|
|
127
143
|
}
|
|
128
144
|
|
|
@@ -134,6 +150,7 @@ export namespace MovePlayerToRequest {
|
|
|
134
150
|
(obj.cameraTarget = message.cameraTarget ? Vector3.toJSON(message.cameraTarget) : undefined);
|
|
135
151
|
message.avatarTarget !== undefined &&
|
|
136
152
|
(obj.avatarTarget = message.avatarTarget ? Vector3.toJSON(message.avatarTarget) : undefined);
|
|
153
|
+
message.duration !== undefined && (obj.duration = message.duration);
|
|
137
154
|
return obj;
|
|
138
155
|
}
|
|
139
156
|
|
|
@@ -152,6 +169,7 @@ export namespace MovePlayerToRequest {
|
|
|
152
169
|
message.avatarTarget = (object.avatarTarget !== undefined && object.avatarTarget !== null)
|
|
153
170
|
? Vector3.fromPartial(object.avatarTarget)
|
|
154
171
|
: undefined;
|
|
172
|
+
message.duration = object.duration ?? undefined;
|
|
155
173
|
return message;
|
|
156
174
|
}
|
|
157
175
|
}
|
|
@@ -732,11 +750,14 @@ export namespace TriggerEmoteResponse {
|
|
|
732
750
|
}
|
|
733
751
|
|
|
734
752
|
function createBaseMovePlayerToResponse(): MovePlayerToResponse {
|
|
735
|
-
return {};
|
|
753
|
+
return { success: false };
|
|
736
754
|
}
|
|
737
755
|
|
|
738
756
|
export namespace MovePlayerToResponse {
|
|
739
|
-
export function encode(
|
|
757
|
+
export function encode(message: MovePlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
758
|
+
if (message.success === true) {
|
|
759
|
+
writer.uint32(8).bool(message.success);
|
|
760
|
+
}
|
|
740
761
|
return writer;
|
|
741
762
|
}
|
|
742
763
|
|
|
@@ -747,6 +768,13 @@ export namespace MovePlayerToResponse {
|
|
|
747
768
|
while (reader.pos < end) {
|
|
748
769
|
const tag = reader.uint32();
|
|
749
770
|
switch (tag >>> 3) {
|
|
771
|
+
case 1:
|
|
772
|
+
if (tag !== 8) {
|
|
773
|
+
break;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
message.success = reader.bool();
|
|
777
|
+
continue;
|
|
750
778
|
}
|
|
751
779
|
if ((tag & 7) === 4 || tag === 0) {
|
|
752
780
|
break;
|
|
@@ -756,12 +784,13 @@ export namespace MovePlayerToResponse {
|
|
|
756
784
|
return message;
|
|
757
785
|
}
|
|
758
786
|
|
|
759
|
-
export function fromJSON(
|
|
760
|
-
return {};
|
|
787
|
+
export function fromJSON(object: any): MovePlayerToResponse {
|
|
788
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
761
789
|
}
|
|
762
790
|
|
|
763
|
-
export function toJSON(
|
|
791
|
+
export function toJSON(message: MovePlayerToResponse): unknown {
|
|
764
792
|
const obj: any = {};
|
|
793
|
+
message.success !== undefined && (obj.success = message.success);
|
|
765
794
|
return obj;
|
|
766
795
|
}
|
|
767
796
|
|
|
@@ -769,8 +798,9 @@ export namespace MovePlayerToResponse {
|
|
|
769
798
|
return MovePlayerToResponse.fromPartial(base ?? {});
|
|
770
799
|
}
|
|
771
800
|
|
|
772
|
-
export function fromPartial<I extends Exact<DeepPartial<MovePlayerToResponse>, I>>(
|
|
801
|
+
export function fromPartial<I extends Exact<DeepPartial<MovePlayerToResponse>, I>>(object: I): MovePlayerToResponse {
|
|
773
802
|
const message = createBaseMovePlayerToResponse();
|
|
803
|
+
message.success = object.success ?? false;
|
|
774
804
|
return message;
|
|
775
805
|
}
|
|
776
806
|
}
|
|
@@ -926,7 +956,11 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
926
956
|
name: "RestrictedActionsService",
|
|
927
957
|
fullName: "decentraland.kernel.apis.RestrictedActionsService",
|
|
928
958
|
methods: {
|
|
929
|
-
/**
|
|
959
|
+
/**
|
|
960
|
+
* MovePlayerTo will move the player to a position relative to the current scene.
|
|
961
|
+
* If 'duration' field is used in the request, the success response depends on the
|
|
962
|
+
* whole interpolation being completed or interrupted (e.g: by input movement)
|
|
963
|
+
*/
|
|
930
964
|
movePlayerTo: {
|
|
931
965
|
name: "MovePlayerTo",
|
|
932
966
|
requestType: MovePlayerToRequest,
|