@dcl/protocol 1.0.0-32905037810.commit-4ed8d74 → 1.0.0-33247403125.commit-6e4ee4a
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/common/texture.gen.d.ts +18 -0
- package/out-js/decentraland/common/texture.gen.js +104 -4
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +113 -2
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +387 -3
- 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 -21
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +14 -2
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +71 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +303 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -8
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +20 -36
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +80 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +14 -2
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/material.gen.js +86 -2
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +296 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +27 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +119 -4
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +414 -2
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +432 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -35
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +37 -1
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +3 -3
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +38 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +1 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +62 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +36 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +1 -5
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/material.proto +13 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_input.proto +2 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +10 -0
|
@@ -124,9 +124,35 @@ export interface MovePlayerToResponse {
|
|
|
124
124
|
success: boolean;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
export interface WalkPlayerToRequest {
|
|
128
|
+
newRelativePosition: Vector3 | undefined;
|
|
129
|
+
stopThreshold: number;
|
|
130
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
131
|
+
timeout?: number | undefined;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface WalkPlayerToResponse {
|
|
135
|
+
success: boolean;
|
|
136
|
+
}
|
|
137
|
+
|
|
127
138
|
export interface TeleportToResponse {
|
|
128
139
|
}
|
|
129
140
|
|
|
141
|
+
export interface SetUiFocusRequest {
|
|
142
|
+
elementId: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ClearUiFocusRequest {
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface GetUiFocusRequest {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface UiFocusResponse {
|
|
152
|
+
/** the element that is/was focussed */
|
|
153
|
+
elementId?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
|
|
130
156
|
export interface CopyToClipboardRequest {
|
|
131
157
|
text: string;
|
|
132
158
|
}
|
|
@@ -911,6 +937,149 @@ export namespace MovePlayerToResponse {
|
|
|
911
937
|
}
|
|
912
938
|
}
|
|
913
939
|
|
|
940
|
+
function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
|
|
941
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export namespace WalkPlayerToRequest {
|
|
945
|
+
export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
946
|
+
if (message.newRelativePosition !== undefined) {
|
|
947
|
+
Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
948
|
+
}
|
|
949
|
+
if (message.stopThreshold !== 0) {
|
|
950
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
951
|
+
}
|
|
952
|
+
if (message.timeout !== undefined) {
|
|
953
|
+
writer.uint32(29).float(message.timeout);
|
|
954
|
+
}
|
|
955
|
+
return writer;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
|
|
959
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
960
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
961
|
+
const message = createBaseWalkPlayerToRequest();
|
|
962
|
+
while (reader.pos < end) {
|
|
963
|
+
const tag = reader.uint32();
|
|
964
|
+
switch (tag >>> 3) {
|
|
965
|
+
case 1:
|
|
966
|
+
if (tag !== 10) {
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
message.newRelativePosition = Vector3.decode(reader, reader.uint32());
|
|
971
|
+
continue;
|
|
972
|
+
case 2:
|
|
973
|
+
if (tag !== 21) {
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
message.stopThreshold = reader.float();
|
|
978
|
+
continue;
|
|
979
|
+
case 3:
|
|
980
|
+
if (tag !== 29) {
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
message.timeout = reader.float();
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
reader.skipType(tag & 7);
|
|
991
|
+
}
|
|
992
|
+
return message;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export function fromJSON(object: any): WalkPlayerToRequest {
|
|
996
|
+
return {
|
|
997
|
+
newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
998
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
999
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export function toJSON(message: WalkPlayerToRequest): unknown {
|
|
1004
|
+
const obj: any = {};
|
|
1005
|
+
message.newRelativePosition !== undefined &&
|
|
1006
|
+
(obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
1007
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
1008
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
1009
|
+
return obj;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
|
|
1013
|
+
return WalkPlayerToRequest.fromPartial(base ?? {});
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
|
|
1017
|
+
const message = createBaseWalkPlayerToRequest();
|
|
1018
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
1019
|
+
? Vector3.fromPartial(object.newRelativePosition)
|
|
1020
|
+
: undefined;
|
|
1021
|
+
message.stopThreshold = object.stopThreshold ?? 0;
|
|
1022
|
+
message.timeout = object.timeout ?? undefined;
|
|
1023
|
+
return message;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
|
|
1028
|
+
return { success: false };
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export namespace WalkPlayerToResponse {
|
|
1032
|
+
export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1033
|
+
if (message.success === true) {
|
|
1034
|
+
writer.uint32(8).bool(message.success);
|
|
1035
|
+
}
|
|
1036
|
+
return writer;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
|
|
1040
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1041
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1042
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1043
|
+
while (reader.pos < end) {
|
|
1044
|
+
const tag = reader.uint32();
|
|
1045
|
+
switch (tag >>> 3) {
|
|
1046
|
+
case 1:
|
|
1047
|
+
if (tag !== 8) {
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
message.success = reader.bool();
|
|
1052
|
+
continue;
|
|
1053
|
+
}
|
|
1054
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
reader.skipType(tag & 7);
|
|
1058
|
+
}
|
|
1059
|
+
return message;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export function fromJSON(object: any): WalkPlayerToResponse {
|
|
1063
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export function toJSON(message: WalkPlayerToResponse): unknown {
|
|
1067
|
+
const obj: any = {};
|
|
1068
|
+
message.success !== undefined && (obj.success = message.success);
|
|
1069
|
+
return obj;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
|
|
1073
|
+
return WalkPlayerToResponse.fromPartial(base ?? {});
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
|
|
1077
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1078
|
+
message.success = object.success ?? false;
|
|
1079
|
+
return message;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
914
1083
|
function createBaseTeleportToResponse(): TeleportToResponse {
|
|
915
1084
|
return {};
|
|
916
1085
|
}
|
|
@@ -955,6 +1124,206 @@ export namespace TeleportToResponse {
|
|
|
955
1124
|
}
|
|
956
1125
|
}
|
|
957
1126
|
|
|
1127
|
+
function createBaseSetUiFocusRequest(): SetUiFocusRequest {
|
|
1128
|
+
return { elementId: "" };
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
export namespace SetUiFocusRequest {
|
|
1132
|
+
export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1133
|
+
if (message.elementId !== "") {
|
|
1134
|
+
writer.uint32(10).string(message.elementId);
|
|
1135
|
+
}
|
|
1136
|
+
return writer;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
|
|
1140
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1141
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1142
|
+
const message = createBaseSetUiFocusRequest();
|
|
1143
|
+
while (reader.pos < end) {
|
|
1144
|
+
const tag = reader.uint32();
|
|
1145
|
+
switch (tag >>> 3) {
|
|
1146
|
+
case 1:
|
|
1147
|
+
if (tag !== 10) {
|
|
1148
|
+
break;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
message.elementId = reader.string();
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
reader.skipType(tag & 7);
|
|
1158
|
+
}
|
|
1159
|
+
return message;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export function fromJSON(object: any): SetUiFocusRequest {
|
|
1163
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export function toJSON(message: SetUiFocusRequest): unknown {
|
|
1167
|
+
const obj: any = {};
|
|
1168
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1169
|
+
return obj;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
|
|
1173
|
+
return SetUiFocusRequest.fromPartial(base ?? {});
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
|
|
1177
|
+
const message = createBaseSetUiFocusRequest();
|
|
1178
|
+
message.elementId = object.elementId ?? "";
|
|
1179
|
+
return message;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
|
|
1184
|
+
return {};
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
export namespace ClearUiFocusRequest {
|
|
1188
|
+
export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1189
|
+
return writer;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
|
|
1193
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1194
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1195
|
+
const message = createBaseClearUiFocusRequest();
|
|
1196
|
+
while (reader.pos < end) {
|
|
1197
|
+
const tag = reader.uint32();
|
|
1198
|
+
switch (tag >>> 3) {
|
|
1199
|
+
}
|
|
1200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1201
|
+
break;
|
|
1202
|
+
}
|
|
1203
|
+
reader.skipType(tag & 7);
|
|
1204
|
+
}
|
|
1205
|
+
return message;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
export function fromJSON(_: any): ClearUiFocusRequest {
|
|
1209
|
+
return {};
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
export function toJSON(_: ClearUiFocusRequest): unknown {
|
|
1213
|
+
const obj: any = {};
|
|
1214
|
+
return obj;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
|
|
1218
|
+
return ClearUiFocusRequest.fromPartial(base ?? {});
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
|
|
1222
|
+
const message = createBaseClearUiFocusRequest();
|
|
1223
|
+
return message;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
function createBaseGetUiFocusRequest(): GetUiFocusRequest {
|
|
1228
|
+
return {};
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export namespace GetUiFocusRequest {
|
|
1232
|
+
export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1233
|
+
return writer;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
|
|
1237
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1238
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1239
|
+
const message = createBaseGetUiFocusRequest();
|
|
1240
|
+
while (reader.pos < end) {
|
|
1241
|
+
const tag = reader.uint32();
|
|
1242
|
+
switch (tag >>> 3) {
|
|
1243
|
+
}
|
|
1244
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
reader.skipType(tag & 7);
|
|
1248
|
+
}
|
|
1249
|
+
return message;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export function fromJSON(_: any): GetUiFocusRequest {
|
|
1253
|
+
return {};
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export function toJSON(_: GetUiFocusRequest): unknown {
|
|
1257
|
+
const obj: any = {};
|
|
1258
|
+
return obj;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
|
|
1262
|
+
return GetUiFocusRequest.fromPartial(base ?? {});
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
|
|
1266
|
+
const message = createBaseGetUiFocusRequest();
|
|
1267
|
+
return message;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
function createBaseUiFocusResponse(): UiFocusResponse {
|
|
1272
|
+
return { elementId: undefined };
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export namespace UiFocusResponse {
|
|
1276
|
+
export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1277
|
+
if (message.elementId !== undefined) {
|
|
1278
|
+
writer.uint32(10).string(message.elementId);
|
|
1279
|
+
}
|
|
1280
|
+
return writer;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
|
|
1284
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1285
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1286
|
+
const message = createBaseUiFocusResponse();
|
|
1287
|
+
while (reader.pos < end) {
|
|
1288
|
+
const tag = reader.uint32();
|
|
1289
|
+
switch (tag >>> 3) {
|
|
1290
|
+
case 1:
|
|
1291
|
+
if (tag !== 10) {
|
|
1292
|
+
break;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
message.elementId = reader.string();
|
|
1296
|
+
continue;
|
|
1297
|
+
}
|
|
1298
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1299
|
+
break;
|
|
1300
|
+
}
|
|
1301
|
+
reader.skipType(tag & 7);
|
|
1302
|
+
}
|
|
1303
|
+
return message;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export function fromJSON(object: any): UiFocusResponse {
|
|
1307
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
export function toJSON(message: UiFocusResponse): unknown {
|
|
1311
|
+
const obj: any = {};
|
|
1312
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1313
|
+
return obj;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
|
|
1317
|
+
return UiFocusResponse.fromPartial(base ?? {});
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
|
|
1321
|
+
const message = createBaseUiFocusResponse();
|
|
1322
|
+
message.elementId = object.elementId ?? undefined;
|
|
1323
|
+
return message;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
|
|
958
1327
|
function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
|
|
959
1328
|
return { text: "" };
|
|
960
1329
|
}
|
|
@@ -1235,7 +1604,21 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1235
1604
|
responseStream: false,
|
|
1236
1605
|
options: {},
|
|
1237
1606
|
},
|
|
1238
|
-
/**
|
|
1607
|
+
/**
|
|
1608
|
+
* TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
1609
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1610
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1611
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1612
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1613
|
+
*/
|
|
1614
|
+
walkPlayerTo: {
|
|
1615
|
+
name: "WalkPlayerTo",
|
|
1616
|
+
requestType: WalkPlayerToRequest,
|
|
1617
|
+
requestStream: false,
|
|
1618
|
+
responseType: WalkPlayerToResponse,
|
|
1619
|
+
responseStream: false,
|
|
1620
|
+
options: {},
|
|
1621
|
+
},
|
|
1239
1622
|
teleportTo: {
|
|
1240
1623
|
name: "TeleportTo",
|
|
1241
1624
|
requestType: TeleportToRequest,
|
|
@@ -1301,7 +1684,36 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1301
1684
|
responseStream: false,
|
|
1302
1685
|
options: {},
|
|
1303
1686
|
},
|
|
1304
|
-
/**
|
|
1687
|
+
/**
|
|
1688
|
+
* CopyToClipboard copies the provided text into the clipboard
|
|
1689
|
+
* Sets the focus to a specific UI element
|
|
1690
|
+
*/
|
|
1691
|
+
setUiFocus: {
|
|
1692
|
+
name: "SetUiFocus",
|
|
1693
|
+
requestType: SetUiFocusRequest,
|
|
1694
|
+
requestStream: false,
|
|
1695
|
+
responseType: UiFocusResponse,
|
|
1696
|
+
responseStream: false,
|
|
1697
|
+
options: {},
|
|
1698
|
+
},
|
|
1699
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1700
|
+
clearUiFocus: {
|
|
1701
|
+
name: "ClearUiFocus",
|
|
1702
|
+
requestType: ClearUiFocusRequest,
|
|
1703
|
+
requestStream: false,
|
|
1704
|
+
responseType: UiFocusResponse,
|
|
1705
|
+
responseStream: false,
|
|
1706
|
+
options: {},
|
|
1707
|
+
},
|
|
1708
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1709
|
+
getUiFocus: {
|
|
1710
|
+
name: "GetUiFocus",
|
|
1711
|
+
requestType: GetUiFocusRequest,
|
|
1712
|
+
requestStream: false,
|
|
1713
|
+
responseType: UiFocusResponse,
|
|
1714
|
+
responseStream: false,
|
|
1715
|
+
options: {},
|
|
1716
|
+
},
|
|
1305
1717
|
copyToClipboard: {
|
|
1306
1718
|
name: "CopyToClipboard",
|
|
1307
1719
|
requestType: CopyToClipboardRequest,
|
|
@@ -137,36 +137,6 @@ export interface PlayerEmote {
|
|
|
137
137
|
incrementalId: number;
|
|
138
138
|
urn: string;
|
|
139
139
|
timestamp: number;
|
|
140
|
-
/** true means the emote has been stopped in the sender's client */
|
|
141
|
-
isStopping?:
|
|
142
|
-
| boolean
|
|
143
|
-
| undefined;
|
|
144
|
-
/** true when it is not the first time the looping animation plays */
|
|
145
|
-
isRepeating?:
|
|
146
|
-
| boolean
|
|
147
|
-
| undefined;
|
|
148
|
-
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
149
|
-
interactionId?:
|
|
150
|
-
| number
|
|
151
|
-
| undefined;
|
|
152
|
-
/** -1 means it does not use an outcome animation */
|
|
153
|
-
socialEmoteOutcome?:
|
|
154
|
-
| number
|
|
155
|
-
| undefined;
|
|
156
|
-
/** to a social emote started by other user */
|
|
157
|
-
isReacting?:
|
|
158
|
-
| boolean
|
|
159
|
-
| undefined;
|
|
160
|
-
/** wallet address of the user that initiated social emote */
|
|
161
|
-
socialEmoteInitiator?:
|
|
162
|
-
| string
|
|
163
|
-
| undefined;
|
|
164
|
-
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
165
|
-
targetAvatar?:
|
|
166
|
-
| string
|
|
167
|
-
| undefined;
|
|
168
|
-
/** mask for which bones an animation applies to. */
|
|
169
|
-
mask?: number | undefined;
|
|
170
140
|
}
|
|
171
141
|
|
|
172
142
|
export interface SceneEmote {
|
|
@@ -191,11 +161,6 @@ export interface ProfileResponse {
|
|
|
191
161
|
export interface Chat {
|
|
192
162
|
message: string;
|
|
193
163
|
timestamp: number;
|
|
194
|
-
/**
|
|
195
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
196
|
-
* messages are forwarded through an SFU
|
|
197
|
-
*/
|
|
198
|
-
forwardedFrom?: string | undefined;
|
|
199
164
|
}
|
|
200
165
|
|
|
201
166
|
export interface Scene {
|
|
@@ -1322,19 +1287,7 @@ export namespace MovementCompressed {
|
|
|
1322
1287
|
}
|
|
1323
1288
|
|
|
1324
1289
|
function createBasePlayerEmote(): PlayerEmote {
|
|
1325
|
-
return {
|
|
1326
|
-
incrementalId: 0,
|
|
1327
|
-
urn: "",
|
|
1328
|
-
timestamp: 0,
|
|
1329
|
-
isStopping: undefined,
|
|
1330
|
-
isRepeating: undefined,
|
|
1331
|
-
interactionId: undefined,
|
|
1332
|
-
socialEmoteOutcome: undefined,
|
|
1333
|
-
isReacting: undefined,
|
|
1334
|
-
socialEmoteInitiator: undefined,
|
|
1335
|
-
targetAvatar: undefined,
|
|
1336
|
-
mask: undefined,
|
|
1337
|
-
};
|
|
1290
|
+
return { incrementalId: 0, urn: "", timestamp: 0 };
|
|
1338
1291
|
}
|
|
1339
1292
|
|
|
1340
1293
|
export namespace PlayerEmote {
|
|
@@ -1348,30 +1301,6 @@ export namespace PlayerEmote {
|
|
|
1348
1301
|
if (message.timestamp !== 0) {
|
|
1349
1302
|
writer.uint32(29).float(message.timestamp);
|
|
1350
1303
|
}
|
|
1351
|
-
if (message.isStopping !== undefined) {
|
|
1352
|
-
writer.uint32(32).bool(message.isStopping);
|
|
1353
|
-
}
|
|
1354
|
-
if (message.isRepeating !== undefined) {
|
|
1355
|
-
writer.uint32(40).bool(message.isRepeating);
|
|
1356
|
-
}
|
|
1357
|
-
if (message.interactionId !== undefined) {
|
|
1358
|
-
writer.uint32(48).int32(message.interactionId);
|
|
1359
|
-
}
|
|
1360
|
-
if (message.socialEmoteOutcome !== undefined) {
|
|
1361
|
-
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1362
|
-
}
|
|
1363
|
-
if (message.isReacting !== undefined) {
|
|
1364
|
-
writer.uint32(64).bool(message.isReacting);
|
|
1365
|
-
}
|
|
1366
|
-
if (message.socialEmoteInitiator !== undefined) {
|
|
1367
|
-
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1368
|
-
}
|
|
1369
|
-
if (message.targetAvatar !== undefined) {
|
|
1370
|
-
writer.uint32(82).string(message.targetAvatar);
|
|
1371
|
-
}
|
|
1372
|
-
if (message.mask !== undefined) {
|
|
1373
|
-
writer.uint32(88).uint32(message.mask);
|
|
1374
|
-
}
|
|
1375
1304
|
return writer;
|
|
1376
1305
|
}
|
|
1377
1306
|
|
|
@@ -1403,62 +1332,6 @@ export namespace PlayerEmote {
|
|
|
1403
1332
|
|
|
1404
1333
|
message.timestamp = reader.float();
|
|
1405
1334
|
continue;
|
|
1406
|
-
case 4:
|
|
1407
|
-
if (tag !== 32) {
|
|
1408
|
-
break;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
message.isStopping = reader.bool();
|
|
1412
|
-
continue;
|
|
1413
|
-
case 5:
|
|
1414
|
-
if (tag !== 40) {
|
|
1415
|
-
break;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
message.isRepeating = reader.bool();
|
|
1419
|
-
continue;
|
|
1420
|
-
case 6:
|
|
1421
|
-
if (tag !== 48) {
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
message.interactionId = reader.int32();
|
|
1426
|
-
continue;
|
|
1427
|
-
case 7:
|
|
1428
|
-
if (tag !== 56) {
|
|
1429
|
-
break;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
message.socialEmoteOutcome = reader.int32();
|
|
1433
|
-
continue;
|
|
1434
|
-
case 8:
|
|
1435
|
-
if (tag !== 64) {
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
message.isReacting = reader.bool();
|
|
1440
|
-
continue;
|
|
1441
|
-
case 9:
|
|
1442
|
-
if (tag !== 74) {
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
message.socialEmoteInitiator = reader.string();
|
|
1447
|
-
continue;
|
|
1448
|
-
case 10:
|
|
1449
|
-
if (tag !== 82) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
message.targetAvatar = reader.string();
|
|
1454
|
-
continue;
|
|
1455
|
-
case 11:
|
|
1456
|
-
if (tag !== 88) {
|
|
1457
|
-
break;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
message.mask = reader.uint32();
|
|
1461
|
-
continue;
|
|
1462
1335
|
}
|
|
1463
1336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
1337
|
break;
|
|
@@ -1473,14 +1346,6 @@ export namespace PlayerEmote {
|
|
|
1473
1346
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1474
1347
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1475
1348
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1476
|
-
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1477
|
-
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1478
|
-
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1479
|
-
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1480
|
-
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1481
|
-
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1482
|
-
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1483
|
-
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
1484
1349
|
};
|
|
1485
1350
|
}
|
|
1486
1351
|
|
|
@@ -1489,14 +1354,6 @@ export namespace PlayerEmote {
|
|
|
1489
1354
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1490
1355
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1491
1356
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1492
|
-
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1493
|
-
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1494
|
-
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1495
|
-
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1496
|
-
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1497
|
-
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1498
|
-
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1499
|
-
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
1500
1357
|
return obj;
|
|
1501
1358
|
}
|
|
1502
1359
|
|
|
@@ -1509,14 +1366,6 @@ export namespace PlayerEmote {
|
|
|
1509
1366
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1510
1367
|
message.urn = object.urn ?? "";
|
|
1511
1368
|
message.timestamp = object.timestamp ?? 0;
|
|
1512
|
-
message.isStopping = object.isStopping ?? undefined;
|
|
1513
|
-
message.isRepeating = object.isRepeating ?? undefined;
|
|
1514
|
-
message.interactionId = object.interactionId ?? undefined;
|
|
1515
|
-
message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
|
|
1516
|
-
message.isReacting = object.isReacting ?? undefined;
|
|
1517
|
-
message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
|
|
1518
|
-
message.targetAvatar = object.targetAvatar ?? undefined;
|
|
1519
|
-
message.mask = object.mask ?? undefined;
|
|
1520
1369
|
return message;
|
|
1521
1370
|
}
|
|
1522
1371
|
}
|
|
@@ -1793,7 +1642,7 @@ export namespace ProfileResponse {
|
|
|
1793
1642
|
}
|
|
1794
1643
|
|
|
1795
1644
|
function createBaseChat(): Chat {
|
|
1796
|
-
return { message: "", timestamp: 0
|
|
1645
|
+
return { message: "", timestamp: 0 };
|
|
1797
1646
|
}
|
|
1798
1647
|
|
|
1799
1648
|
export namespace Chat {
|
|
@@ -1804,9 +1653,6 @@ export namespace Chat {
|
|
|
1804
1653
|
if (message.timestamp !== 0) {
|
|
1805
1654
|
writer.uint32(17).double(message.timestamp);
|
|
1806
1655
|
}
|
|
1807
|
-
if (message.forwardedFrom !== undefined) {
|
|
1808
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1809
|
-
}
|
|
1810
1656
|
return writer;
|
|
1811
1657
|
}
|
|
1812
1658
|
|
|
@@ -1831,13 +1677,6 @@ export namespace Chat {
|
|
|
1831
1677
|
|
|
1832
1678
|
message.timestamp = reader.double();
|
|
1833
1679
|
continue;
|
|
1834
|
-
case 3:
|
|
1835
|
-
if (tag !== 26) {
|
|
1836
|
-
break;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
message.forwardedFrom = reader.string();
|
|
1840
|
-
continue;
|
|
1841
1680
|
}
|
|
1842
1681
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1843
1682
|
break;
|
|
@@ -1851,7 +1690,6 @@ export namespace Chat {
|
|
|
1851
1690
|
return {
|
|
1852
1691
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1853
1692
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1854
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1855
1693
|
};
|
|
1856
1694
|
}
|
|
1857
1695
|
|
|
@@ -1859,7 +1697,6 @@ export namespace Chat {
|
|
|
1859
1697
|
const obj: any = {};
|
|
1860
1698
|
message.message !== undefined && (obj.message = message.message);
|
|
1861
1699
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1862
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1863
1700
|
return obj;
|
|
1864
1701
|
}
|
|
1865
1702
|
|
|
@@ -1871,7 +1708,6 @@ export namespace Chat {
|
|
|
1871
1708
|
const message = createBaseChat();
|
|
1872
1709
|
message.message = object.message ?? "";
|
|
1873
1710
|
message.timestamp = object.timestamp ?? 0;
|
|
1874
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1875
1711
|
return message;
|
|
1876
1712
|
}
|
|
1877
1713
|
}
|