@dcl/protocol 1.0.0-23951927054.commit-814ceb0 → 1.0.0-24360051842.commit-5e66d77

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.
Files changed (116) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +18 -0
  2. package/out-js/decentraland/common/texture.gen.js +104 -4
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +109 -0
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +383 -1
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -39
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +9 -248
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +45 -0
  14. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +138 -0
  15. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  17. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  18. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +36 -0
  20. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +113 -0
  21. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
  22. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +48 -0
  23. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +207 -0
  24. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  29. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  30. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
  32. package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
  33. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  35. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  36. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  38. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  39. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  40. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  41. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  42. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
  44. package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
  45. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
  46. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  47. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  48. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  50. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  51. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  53. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  54. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
  56. package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
  57. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  59. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  60. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
  62. package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
  63. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  64. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  65. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +410 -0
  66. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -298
  67. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  68. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +183 -0
  69. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  70. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +136 -0
  71. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +249 -0
  72. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
  73. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  74. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  75. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  76. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  77. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  78. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
  79. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  80. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  81. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  82. package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
  83. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  84. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  85. package/package.json +7 -4
  86. package/proto/decentraland/common/texture.proto +8 -1
  87. package/proto/decentraland/kernel/apis/restricted_actions.proto +39 -1
  88. package/proto/decentraland/kernel/comms/rfc4/comms.proto +1 -24
  89. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  90. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -3
  91. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  92. package/proto/decentraland/sdk/components/avatar_movement.proto +46 -0
  93. package/proto/decentraland/sdk/components/avatar_movement_info.proto +22 -0
  94. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
  95. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  96. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  97. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  98. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  99. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  100. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  101. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  102. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  103. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  104. package/proto/decentraland/sdk/components/material.proto +13 -1
  105. package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
  106. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  107. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  108. package/proto/decentraland/sdk/components/raycast.proto +13 -0
  109. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  110. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  111. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  112. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  113. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  114. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  115. package/public/sdk-components.proto +4 -0
  116. package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
@@ -58,9 +58,35 @@ export interface MovePlayerToResponse {
58
58
  success: boolean;
59
59
  }
60
60
 
61
+ export interface WalkPlayerToRequest {
62
+ newRelativePosition: Vector3 | undefined;
63
+ stopThreshold: number;
64
+ /** max seconds before the request is failed; not passed to the movement scene */
65
+ timeout?: number | undefined;
66
+ }
67
+
68
+ export interface WalkPlayerToResponse {
69
+ success: boolean;
70
+ }
71
+
61
72
  export interface TeleportToResponse {
62
73
  }
63
74
 
75
+ export interface SetUiFocusRequest {
76
+ elementId: string;
77
+ }
78
+
79
+ export interface ClearUiFocusRequest {
80
+ }
81
+
82
+ export interface GetUiFocusRequest {
83
+ }
84
+
85
+ export interface UiFocusResponse {
86
+ /** the element that is/was focussed */
87
+ elementId?: string | undefined;
88
+ }
89
+
64
90
  export interface CopyToClipboardRequest {
65
91
  text: string;
66
92
  }
@@ -805,6 +831,149 @@ export namespace MovePlayerToResponse {
805
831
  }
806
832
  }
807
833
 
834
+ function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
835
+ return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
836
+ }
837
+
838
+ export namespace WalkPlayerToRequest {
839
+ export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
840
+ if (message.newRelativePosition !== undefined) {
841
+ Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
842
+ }
843
+ if (message.stopThreshold !== 0) {
844
+ writer.uint32(21).float(message.stopThreshold);
845
+ }
846
+ if (message.timeout !== undefined) {
847
+ writer.uint32(29).float(message.timeout);
848
+ }
849
+ return writer;
850
+ }
851
+
852
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
853
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
854
+ let end = length === undefined ? reader.len : reader.pos + length;
855
+ const message = createBaseWalkPlayerToRequest();
856
+ while (reader.pos < end) {
857
+ const tag = reader.uint32();
858
+ switch (tag >>> 3) {
859
+ case 1:
860
+ if (tag !== 10) {
861
+ break;
862
+ }
863
+
864
+ message.newRelativePosition = Vector3.decode(reader, reader.uint32());
865
+ continue;
866
+ case 2:
867
+ if (tag !== 21) {
868
+ break;
869
+ }
870
+
871
+ message.stopThreshold = reader.float();
872
+ continue;
873
+ case 3:
874
+ if (tag !== 29) {
875
+ break;
876
+ }
877
+
878
+ message.timeout = reader.float();
879
+ continue;
880
+ }
881
+ if ((tag & 7) === 4 || tag === 0) {
882
+ break;
883
+ }
884
+ reader.skipType(tag & 7);
885
+ }
886
+ return message;
887
+ }
888
+
889
+ export function fromJSON(object: any): WalkPlayerToRequest {
890
+ return {
891
+ newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
892
+ stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
893
+ timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
894
+ };
895
+ }
896
+
897
+ export function toJSON(message: WalkPlayerToRequest): unknown {
898
+ const obj: any = {};
899
+ message.newRelativePosition !== undefined &&
900
+ (obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
901
+ message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
902
+ message.timeout !== undefined && (obj.timeout = message.timeout);
903
+ return obj;
904
+ }
905
+
906
+ export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
907
+ return WalkPlayerToRequest.fromPartial(base ?? {});
908
+ }
909
+
910
+ export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
911
+ const message = createBaseWalkPlayerToRequest();
912
+ message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
913
+ ? Vector3.fromPartial(object.newRelativePosition)
914
+ : undefined;
915
+ message.stopThreshold = object.stopThreshold ?? 0;
916
+ message.timeout = object.timeout ?? undefined;
917
+ return message;
918
+ }
919
+ }
920
+
921
+ function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
922
+ return { success: false };
923
+ }
924
+
925
+ export namespace WalkPlayerToResponse {
926
+ export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
927
+ if (message.success === true) {
928
+ writer.uint32(8).bool(message.success);
929
+ }
930
+ return writer;
931
+ }
932
+
933
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
934
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
935
+ let end = length === undefined ? reader.len : reader.pos + length;
936
+ const message = createBaseWalkPlayerToResponse();
937
+ while (reader.pos < end) {
938
+ const tag = reader.uint32();
939
+ switch (tag >>> 3) {
940
+ case 1:
941
+ if (tag !== 8) {
942
+ break;
943
+ }
944
+
945
+ message.success = reader.bool();
946
+ continue;
947
+ }
948
+ if ((tag & 7) === 4 || tag === 0) {
949
+ break;
950
+ }
951
+ reader.skipType(tag & 7);
952
+ }
953
+ return message;
954
+ }
955
+
956
+ export function fromJSON(object: any): WalkPlayerToResponse {
957
+ return { success: isSet(object.success) ? Boolean(object.success) : false };
958
+ }
959
+
960
+ export function toJSON(message: WalkPlayerToResponse): unknown {
961
+ const obj: any = {};
962
+ message.success !== undefined && (obj.success = message.success);
963
+ return obj;
964
+ }
965
+
966
+ export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
967
+ return WalkPlayerToResponse.fromPartial(base ?? {});
968
+ }
969
+
970
+ export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
971
+ const message = createBaseWalkPlayerToResponse();
972
+ message.success = object.success ?? false;
973
+ return message;
974
+ }
975
+ }
976
+
808
977
  function createBaseTeleportToResponse(): TeleportToResponse {
809
978
  return {};
810
979
  }
@@ -849,6 +1018,206 @@ export namespace TeleportToResponse {
849
1018
  }
850
1019
  }
851
1020
 
1021
+ function createBaseSetUiFocusRequest(): SetUiFocusRequest {
1022
+ return { elementId: "" };
1023
+ }
1024
+
1025
+ export namespace SetUiFocusRequest {
1026
+ export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1027
+ if (message.elementId !== "") {
1028
+ writer.uint32(10).string(message.elementId);
1029
+ }
1030
+ return writer;
1031
+ }
1032
+
1033
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
1034
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1035
+ let end = length === undefined ? reader.len : reader.pos + length;
1036
+ const message = createBaseSetUiFocusRequest();
1037
+ while (reader.pos < end) {
1038
+ const tag = reader.uint32();
1039
+ switch (tag >>> 3) {
1040
+ case 1:
1041
+ if (tag !== 10) {
1042
+ break;
1043
+ }
1044
+
1045
+ message.elementId = reader.string();
1046
+ continue;
1047
+ }
1048
+ if ((tag & 7) === 4 || tag === 0) {
1049
+ break;
1050
+ }
1051
+ reader.skipType(tag & 7);
1052
+ }
1053
+ return message;
1054
+ }
1055
+
1056
+ export function fromJSON(object: any): SetUiFocusRequest {
1057
+ return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
1058
+ }
1059
+
1060
+ export function toJSON(message: SetUiFocusRequest): unknown {
1061
+ const obj: any = {};
1062
+ message.elementId !== undefined && (obj.elementId = message.elementId);
1063
+ return obj;
1064
+ }
1065
+
1066
+ export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
1067
+ return SetUiFocusRequest.fromPartial(base ?? {});
1068
+ }
1069
+
1070
+ export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
1071
+ const message = createBaseSetUiFocusRequest();
1072
+ message.elementId = object.elementId ?? "";
1073
+ return message;
1074
+ }
1075
+ }
1076
+
1077
+ function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
1078
+ return {};
1079
+ }
1080
+
1081
+ export namespace ClearUiFocusRequest {
1082
+ export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1083
+ return writer;
1084
+ }
1085
+
1086
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
1087
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1088
+ let end = length === undefined ? reader.len : reader.pos + length;
1089
+ const message = createBaseClearUiFocusRequest();
1090
+ while (reader.pos < end) {
1091
+ const tag = reader.uint32();
1092
+ switch (tag >>> 3) {
1093
+ }
1094
+ if ((tag & 7) === 4 || tag === 0) {
1095
+ break;
1096
+ }
1097
+ reader.skipType(tag & 7);
1098
+ }
1099
+ return message;
1100
+ }
1101
+
1102
+ export function fromJSON(_: any): ClearUiFocusRequest {
1103
+ return {};
1104
+ }
1105
+
1106
+ export function toJSON(_: ClearUiFocusRequest): unknown {
1107
+ const obj: any = {};
1108
+ return obj;
1109
+ }
1110
+
1111
+ export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
1112
+ return ClearUiFocusRequest.fromPartial(base ?? {});
1113
+ }
1114
+
1115
+ export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
1116
+ const message = createBaseClearUiFocusRequest();
1117
+ return message;
1118
+ }
1119
+ }
1120
+
1121
+ function createBaseGetUiFocusRequest(): GetUiFocusRequest {
1122
+ return {};
1123
+ }
1124
+
1125
+ export namespace GetUiFocusRequest {
1126
+ export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1127
+ return writer;
1128
+ }
1129
+
1130
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
1131
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1132
+ let end = length === undefined ? reader.len : reader.pos + length;
1133
+ const message = createBaseGetUiFocusRequest();
1134
+ while (reader.pos < end) {
1135
+ const tag = reader.uint32();
1136
+ switch (tag >>> 3) {
1137
+ }
1138
+ if ((tag & 7) === 4 || tag === 0) {
1139
+ break;
1140
+ }
1141
+ reader.skipType(tag & 7);
1142
+ }
1143
+ return message;
1144
+ }
1145
+
1146
+ export function fromJSON(_: any): GetUiFocusRequest {
1147
+ return {};
1148
+ }
1149
+
1150
+ export function toJSON(_: GetUiFocusRequest): unknown {
1151
+ const obj: any = {};
1152
+ return obj;
1153
+ }
1154
+
1155
+ export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
1156
+ return GetUiFocusRequest.fromPartial(base ?? {});
1157
+ }
1158
+
1159
+ export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
1160
+ const message = createBaseGetUiFocusRequest();
1161
+ return message;
1162
+ }
1163
+ }
1164
+
1165
+ function createBaseUiFocusResponse(): UiFocusResponse {
1166
+ return { elementId: undefined };
1167
+ }
1168
+
1169
+ export namespace UiFocusResponse {
1170
+ export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1171
+ if (message.elementId !== undefined) {
1172
+ writer.uint32(10).string(message.elementId);
1173
+ }
1174
+ return writer;
1175
+ }
1176
+
1177
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
1178
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1179
+ let end = length === undefined ? reader.len : reader.pos + length;
1180
+ const message = createBaseUiFocusResponse();
1181
+ while (reader.pos < end) {
1182
+ const tag = reader.uint32();
1183
+ switch (tag >>> 3) {
1184
+ case 1:
1185
+ if (tag !== 10) {
1186
+ break;
1187
+ }
1188
+
1189
+ message.elementId = reader.string();
1190
+ continue;
1191
+ }
1192
+ if ((tag & 7) === 4 || tag === 0) {
1193
+ break;
1194
+ }
1195
+ reader.skipType(tag & 7);
1196
+ }
1197
+ return message;
1198
+ }
1199
+
1200
+ export function fromJSON(object: any): UiFocusResponse {
1201
+ return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
1202
+ }
1203
+
1204
+ export function toJSON(message: UiFocusResponse): unknown {
1205
+ const obj: any = {};
1206
+ message.elementId !== undefined && (obj.elementId = message.elementId);
1207
+ return obj;
1208
+ }
1209
+
1210
+ export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
1211
+ return UiFocusResponse.fromPartial(base ?? {});
1212
+ }
1213
+
1214
+ export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
1215
+ const message = createBaseUiFocusResponse();
1216
+ message.elementId = object.elementId ?? undefined;
1217
+ return message;
1218
+ }
1219
+ }
1220
+
852
1221
  function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
853
1222
  return { text: "" };
854
1223
  }
@@ -969,6 +1338,20 @@ export const RestrictedActionsServiceDefinition = {
969
1338
  responseStream: false,
970
1339
  options: {},
971
1340
  },
1341
+ /**
1342
+ * WalkPlayerTo will walk the player to a position relative to the current scene,
1343
+ * managed by the movement controller scene. Returns success when the player reaches
1344
+ * within stop_threshold distance, or false if the path is blocked, the player gets
1345
+ * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1346
+ */
1347
+ walkPlayerTo: {
1348
+ name: "WalkPlayerTo",
1349
+ requestType: WalkPlayerToRequest,
1350
+ requestStream: false,
1351
+ responseType: WalkPlayerToResponse,
1352
+ responseStream: false,
1353
+ options: {},
1354
+ },
972
1355
  /** TeleportTo will move the user to the specified world LAND parcel coordinates */
973
1356
  teleportTo: {
974
1357
  name: "TeleportTo",
@@ -1035,6 +1418,33 @@ export const RestrictedActionsServiceDefinition = {
1035
1418
  responseStream: false,
1036
1419
  options: {},
1037
1420
  },
1421
+ /** Sets the focus to a specific UI element */
1422
+ setUiFocus: {
1423
+ name: "SetUiFocus",
1424
+ requestType: SetUiFocusRequest,
1425
+ requestStream: false,
1426
+ responseType: UiFocusResponse,
1427
+ responseStream: false,
1428
+ options: {},
1429
+ },
1430
+ /** Clears the focus from any currently focused textentry or dropdown */
1431
+ clearUiFocus: {
1432
+ name: "ClearUiFocus",
1433
+ requestType: SetUiFocusRequest,
1434
+ requestStream: false,
1435
+ responseType: UiFocusResponse,
1436
+ responseStream: false,
1437
+ options: {},
1438
+ },
1439
+ /** Returns the element_id of any currently focused textentry or dropdown */
1440
+ getUiFocus: {
1441
+ name: "GetUiFocus",
1442
+ requestType: GetUiFocusRequest,
1443
+ requestStream: false,
1444
+ responseType: UiFocusResponse,
1445
+ responseStream: false,
1446
+ options: {},
1447
+ },
1038
1448
  /** CopyToClipboard copies the provided text into the clipboard */
1039
1449
  copyToClipboard: {
1040
1450
  name: "CopyToClipboard",