@dcl/protocol 1.0.0-34875307214.commit-1ca8fa7 → 1.0.0-34906351243.commit-688d92c

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 (166) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +24 -115
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +112 -392
  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 +9 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +40 -4
  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 +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -2
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +0 -2
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +3 -1
  23. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +8 -1
  24. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  26. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  27. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  29. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
  30. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
  32. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +16 -4
  33. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  35. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  36. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  38. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  39. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  41. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  42. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  44. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  45. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  47. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  48. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +0 -2
  50. package/out-js/decentraland/sdk/components/text_shape.gen.js +1 -14
  51. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +0 -2
  53. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +1 -14
  54. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -6
  56. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -40
  57. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -2
  59. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -14
  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 +0 -33
  62. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  63. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  64. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  65. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +129 -418
  66. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +52 -2
  67. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  68. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
  69. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  70. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
  71. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +8 -1
  72. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  73. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  74. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +22 -4
  75. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  76. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  77. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  78. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  79. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  80. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +1 -19
  81. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +1 -19
  82. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -55
  83. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -19
  84. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  85. package/package.json +2 -2
  86. package/proto/decentraland/common/texture.proto +1 -8
  87. package/proto/decentraland/kernel/apis/restricted_actions.proto +12 -44
  88. package/proto/decentraland/kernel/comms/rfc4/comms.proto +9 -0
  89. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  90. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
  91. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  92. package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
  93. package/proto/decentraland/sdk/components/common/explorer_ui.proto +2 -1
  94. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  95. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  96. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +5 -3
  97. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  98. package/proto/decentraland/sdk/components/material.proto +1 -13
  99. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  100. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  101. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  102. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  103. package/proto/decentraland/sdk/components/text_shape.proto +0 -1
  104. package/proto/decentraland/sdk/components/ui_dropdown.proto +0 -1
  105. package/proto/decentraland/sdk/components/ui_input.proto +0 -3
  106. package/proto/decentraland/sdk/components/ui_text.proto +0 -1
  107. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  108. package/public/sdk-components.proto +1 -10
  109. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
  110. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
  111. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  112. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
  113. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
  114. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  115. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
  116. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
  117. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  118. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
  119. package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
  120. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
  121. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
  122. package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
  123. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
  124. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
  125. package/out-js/decentraland/sdk/components/global_light.gen.js +0 -103
  126. package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
  127. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  128. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  129. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  130. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  131. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  132. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  133. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  134. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  135. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  136. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
  137. package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
  138. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
  139. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
  140. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
  141. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
  142. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
  143. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
  144. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
  145. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
  146. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
  147. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
  148. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
  149. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
  150. package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
  151. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  152. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  153. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  154. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
  155. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
  156. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
  157. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
  158. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
  159. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  160. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  161. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  162. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  163. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  164. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  165. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  166. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -10,7 +10,7 @@ export const protobufPackage = "decentraland.kernel.apis";
10
10
  export enum OpenExplorerUiResult {
11
11
  UNSPECIFIED = 0,
12
12
  OPENED = 1,
13
- /** WAS_ALREADY_OPEN - a fullscreen panel is already open */
13
+ /** WAS_ALREADY_OPEN - the slot the requested panel occupies is already in use; panels sharing a slot exclude each other */
14
14
  WAS_ALREADY_OPEN = 2,
15
15
  /** REJECTED_NOT_CURRENT_SCENE - the standard restricted-actions current-scene gate rejected the call */
16
16
  REJECTED_NOT_CURRENT_SCENE = 3,
@@ -133,35 +133,9 @@ export interface MovePlayerToResponse {
133
133
  success: boolean;
134
134
  }
135
135
 
136
- export interface WalkPlayerToRequest {
137
- newRelativePosition: Vector3 | undefined;
138
- stopThreshold: number;
139
- /** max seconds before the request is failed; not passed to the movement scene */
140
- timeout?: number | undefined;
141
- }
142
-
143
- export interface WalkPlayerToResponse {
144
- success: boolean;
145
- }
146
-
147
136
  export interface TeleportToResponse {
148
137
  }
149
138
 
150
- export interface SetUiFocusRequest {
151
- elementId: string;
152
- }
153
-
154
- export interface ClearUiFocusRequest {
155
- }
156
-
157
- export interface GetUiFocusRequest {
158
- }
159
-
160
- export interface UiFocusResponse {
161
- /** the element that is/was focussed */
162
- elementId?: string | undefined;
163
- }
164
-
165
139
  export interface CopyToClipboardRequest {
166
140
  text: string;
167
141
  }
@@ -174,6 +148,16 @@ export interface StopEmoteRequest {
174
148
 
175
149
  export interface OpenExplorerUiRequest {
176
150
  ui: ExplorerUi;
151
+ /**
152
+ * Echoed back in the events this request produces, so they can be matched to their call.
153
+ * Unset means no correlation, and 0 is reserved for the same meaning on the result, so ids start at 1.
154
+ */
155
+ requestId?: number | undefined;
156
+ params?: { $case: "itemPurchase"; itemPurchase: OpenExplorerUiRequest_ItemPurchaseParams } | undefined;
157
+ }
158
+
159
+ export interface OpenExplorerUiRequest_ItemPurchaseParams {
160
+ urn: string;
177
161
  }
178
162
 
179
163
  export interface OpenExplorerUiResponse {
@@ -961,149 +945,6 @@ export namespace MovePlayerToResponse {
961
945
  }
962
946
  }
963
947
 
964
- function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
965
- return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
966
- }
967
-
968
- export namespace WalkPlayerToRequest {
969
- export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
970
- if (message.newRelativePosition !== undefined) {
971
- Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
972
- }
973
- if (message.stopThreshold !== 0) {
974
- writer.uint32(21).float(message.stopThreshold);
975
- }
976
- if (message.timeout !== undefined) {
977
- writer.uint32(29).float(message.timeout);
978
- }
979
- return writer;
980
- }
981
-
982
- export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
983
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
984
- let end = length === undefined ? reader.len : reader.pos + length;
985
- const message = createBaseWalkPlayerToRequest();
986
- while (reader.pos < end) {
987
- const tag = reader.uint32();
988
- switch (tag >>> 3) {
989
- case 1:
990
- if (tag !== 10) {
991
- break;
992
- }
993
-
994
- message.newRelativePosition = Vector3.decode(reader, reader.uint32());
995
- continue;
996
- case 2:
997
- if (tag !== 21) {
998
- break;
999
- }
1000
-
1001
- message.stopThreshold = reader.float();
1002
- continue;
1003
- case 3:
1004
- if (tag !== 29) {
1005
- break;
1006
- }
1007
-
1008
- message.timeout = reader.float();
1009
- continue;
1010
- }
1011
- if ((tag & 7) === 4 || tag === 0) {
1012
- break;
1013
- }
1014
- reader.skipType(tag & 7);
1015
- }
1016
- return message;
1017
- }
1018
-
1019
- export function fromJSON(object: any): WalkPlayerToRequest {
1020
- return {
1021
- newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
1022
- stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
1023
- timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
1024
- };
1025
- }
1026
-
1027
- export function toJSON(message: WalkPlayerToRequest): unknown {
1028
- const obj: any = {};
1029
- message.newRelativePosition !== undefined &&
1030
- (obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
1031
- message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
1032
- message.timeout !== undefined && (obj.timeout = message.timeout);
1033
- return obj;
1034
- }
1035
-
1036
- export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
1037
- return WalkPlayerToRequest.fromPartial(base ?? {});
1038
- }
1039
-
1040
- export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
1041
- const message = createBaseWalkPlayerToRequest();
1042
- message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
1043
- ? Vector3.fromPartial(object.newRelativePosition)
1044
- : undefined;
1045
- message.stopThreshold = object.stopThreshold ?? 0;
1046
- message.timeout = object.timeout ?? undefined;
1047
- return message;
1048
- }
1049
- }
1050
-
1051
- function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
1052
- return { success: false };
1053
- }
1054
-
1055
- export namespace WalkPlayerToResponse {
1056
- export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1057
- if (message.success === true) {
1058
- writer.uint32(8).bool(message.success);
1059
- }
1060
- return writer;
1061
- }
1062
-
1063
- export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
1064
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1065
- let end = length === undefined ? reader.len : reader.pos + length;
1066
- const message = createBaseWalkPlayerToResponse();
1067
- while (reader.pos < end) {
1068
- const tag = reader.uint32();
1069
- switch (tag >>> 3) {
1070
- case 1:
1071
- if (tag !== 8) {
1072
- break;
1073
- }
1074
-
1075
- message.success = reader.bool();
1076
- continue;
1077
- }
1078
- if ((tag & 7) === 4 || tag === 0) {
1079
- break;
1080
- }
1081
- reader.skipType(tag & 7);
1082
- }
1083
- return message;
1084
- }
1085
-
1086
- export function fromJSON(object: any): WalkPlayerToResponse {
1087
- return { success: isSet(object.success) ? Boolean(object.success) : false };
1088
- }
1089
-
1090
- export function toJSON(message: WalkPlayerToResponse): unknown {
1091
- const obj: any = {};
1092
- message.success !== undefined && (obj.success = message.success);
1093
- return obj;
1094
- }
1095
-
1096
- export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
1097
- return WalkPlayerToResponse.fromPartial(base ?? {});
1098
- }
1099
-
1100
- export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
1101
- const message = createBaseWalkPlayerToResponse();
1102
- message.success = object.success ?? false;
1103
- return message;
1104
- }
1105
- }
1106
-
1107
948
  function createBaseTeleportToResponse(): TeleportToResponse {
1108
949
  return {};
1109
950
  }
@@ -1148,206 +989,6 @@ export namespace TeleportToResponse {
1148
989
  }
1149
990
  }
1150
991
 
1151
- function createBaseSetUiFocusRequest(): SetUiFocusRequest {
1152
- return { elementId: "" };
1153
- }
1154
-
1155
- export namespace SetUiFocusRequest {
1156
- export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1157
- if (message.elementId !== "") {
1158
- writer.uint32(10).string(message.elementId);
1159
- }
1160
- return writer;
1161
- }
1162
-
1163
- export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
1164
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1165
- let end = length === undefined ? reader.len : reader.pos + length;
1166
- const message = createBaseSetUiFocusRequest();
1167
- while (reader.pos < end) {
1168
- const tag = reader.uint32();
1169
- switch (tag >>> 3) {
1170
- case 1:
1171
- if (tag !== 10) {
1172
- break;
1173
- }
1174
-
1175
- message.elementId = reader.string();
1176
- continue;
1177
- }
1178
- if ((tag & 7) === 4 || tag === 0) {
1179
- break;
1180
- }
1181
- reader.skipType(tag & 7);
1182
- }
1183
- return message;
1184
- }
1185
-
1186
- export function fromJSON(object: any): SetUiFocusRequest {
1187
- return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
1188
- }
1189
-
1190
- export function toJSON(message: SetUiFocusRequest): unknown {
1191
- const obj: any = {};
1192
- message.elementId !== undefined && (obj.elementId = message.elementId);
1193
- return obj;
1194
- }
1195
-
1196
- export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
1197
- return SetUiFocusRequest.fromPartial(base ?? {});
1198
- }
1199
-
1200
- export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
1201
- const message = createBaseSetUiFocusRequest();
1202
- message.elementId = object.elementId ?? "";
1203
- return message;
1204
- }
1205
- }
1206
-
1207
- function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
1208
- return {};
1209
- }
1210
-
1211
- export namespace ClearUiFocusRequest {
1212
- export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1213
- return writer;
1214
- }
1215
-
1216
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
1217
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1218
- let end = length === undefined ? reader.len : reader.pos + length;
1219
- const message = createBaseClearUiFocusRequest();
1220
- while (reader.pos < end) {
1221
- const tag = reader.uint32();
1222
- switch (tag >>> 3) {
1223
- }
1224
- if ((tag & 7) === 4 || tag === 0) {
1225
- break;
1226
- }
1227
- reader.skipType(tag & 7);
1228
- }
1229
- return message;
1230
- }
1231
-
1232
- export function fromJSON(_: any): ClearUiFocusRequest {
1233
- return {};
1234
- }
1235
-
1236
- export function toJSON(_: ClearUiFocusRequest): unknown {
1237
- const obj: any = {};
1238
- return obj;
1239
- }
1240
-
1241
- export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
1242
- return ClearUiFocusRequest.fromPartial(base ?? {});
1243
- }
1244
-
1245
- export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
1246
- const message = createBaseClearUiFocusRequest();
1247
- return message;
1248
- }
1249
- }
1250
-
1251
- function createBaseGetUiFocusRequest(): GetUiFocusRequest {
1252
- return {};
1253
- }
1254
-
1255
- export namespace GetUiFocusRequest {
1256
- export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1257
- return writer;
1258
- }
1259
-
1260
- export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
1261
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1262
- let end = length === undefined ? reader.len : reader.pos + length;
1263
- const message = createBaseGetUiFocusRequest();
1264
- while (reader.pos < end) {
1265
- const tag = reader.uint32();
1266
- switch (tag >>> 3) {
1267
- }
1268
- if ((tag & 7) === 4 || tag === 0) {
1269
- break;
1270
- }
1271
- reader.skipType(tag & 7);
1272
- }
1273
- return message;
1274
- }
1275
-
1276
- export function fromJSON(_: any): GetUiFocusRequest {
1277
- return {};
1278
- }
1279
-
1280
- export function toJSON(_: GetUiFocusRequest): unknown {
1281
- const obj: any = {};
1282
- return obj;
1283
- }
1284
-
1285
- export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
1286
- return GetUiFocusRequest.fromPartial(base ?? {});
1287
- }
1288
-
1289
- export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
1290
- const message = createBaseGetUiFocusRequest();
1291
- return message;
1292
- }
1293
- }
1294
-
1295
- function createBaseUiFocusResponse(): UiFocusResponse {
1296
- return { elementId: undefined };
1297
- }
1298
-
1299
- export namespace UiFocusResponse {
1300
- export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1301
- if (message.elementId !== undefined) {
1302
- writer.uint32(10).string(message.elementId);
1303
- }
1304
- return writer;
1305
- }
1306
-
1307
- export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
1308
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1309
- let end = length === undefined ? reader.len : reader.pos + length;
1310
- const message = createBaseUiFocusResponse();
1311
- while (reader.pos < end) {
1312
- const tag = reader.uint32();
1313
- switch (tag >>> 3) {
1314
- case 1:
1315
- if (tag !== 10) {
1316
- break;
1317
- }
1318
-
1319
- message.elementId = reader.string();
1320
- continue;
1321
- }
1322
- if ((tag & 7) === 4 || tag === 0) {
1323
- break;
1324
- }
1325
- reader.skipType(tag & 7);
1326
- }
1327
- return message;
1328
- }
1329
-
1330
- export function fromJSON(object: any): UiFocusResponse {
1331
- return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
1332
- }
1333
-
1334
- export function toJSON(message: UiFocusResponse): unknown {
1335
- const obj: any = {};
1336
- message.elementId !== undefined && (obj.elementId = message.elementId);
1337
- return obj;
1338
- }
1339
-
1340
- export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
1341
- return UiFocusResponse.fromPartial(base ?? {});
1342
- }
1343
-
1344
- export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
1345
- const message = createBaseUiFocusResponse();
1346
- message.elementId = object.elementId ?? undefined;
1347
- return message;
1348
- }
1349
- }
1350
-
1351
992
  function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
1352
993
  return { text: "" };
1353
994
  }
@@ -1495,7 +1136,7 @@ export namespace StopEmoteRequest {
1495
1136
  }
1496
1137
 
1497
1138
  function createBaseOpenExplorerUiRequest(): OpenExplorerUiRequest {
1498
- return { ui: 0 };
1139
+ return { ui: 0, requestId: undefined, params: undefined };
1499
1140
  }
1500
1141
 
1501
1142
  export namespace OpenExplorerUiRequest {
@@ -1503,6 +1144,14 @@ export namespace OpenExplorerUiRequest {
1503
1144
  if (message.ui !== 0) {
1504
1145
  writer.uint32(8).int32(message.ui);
1505
1146
  }
1147
+ if (message.requestId !== undefined) {
1148
+ writer.uint32(16).uint32(message.requestId);
1149
+ }
1150
+ switch (message.params?.$case) {
1151
+ case "itemPurchase":
1152
+ OpenExplorerUiRequest_ItemPurchaseParams.encode(message.params.itemPurchase, writer.uint32(82).fork()).ldelim();
1153
+ break;
1154
+ }
1506
1155
  return writer;
1507
1156
  }
1508
1157
 
@@ -1520,6 +1169,23 @@ export namespace OpenExplorerUiRequest {
1520
1169
 
1521
1170
  message.ui = reader.int32() as any;
1522
1171
  continue;
1172
+ case 2:
1173
+ if (tag !== 16) {
1174
+ break;
1175
+ }
1176
+
1177
+ message.requestId = reader.uint32();
1178
+ continue;
1179
+ case 10:
1180
+ if (tag !== 82) {
1181
+ break;
1182
+ }
1183
+
1184
+ message.params = {
1185
+ $case: "itemPurchase",
1186
+ itemPurchase: OpenExplorerUiRequest_ItemPurchaseParams.decode(reader, reader.uint32()),
1187
+ };
1188
+ continue;
1523
1189
  }
1524
1190
  if ((tag & 7) === 4 || tag === 0) {
1525
1191
  break;
@@ -1530,12 +1196,26 @@ export namespace OpenExplorerUiRequest {
1530
1196
  }
1531
1197
 
1532
1198
  export function fromJSON(object: any): OpenExplorerUiRequest {
1533
- return { ui: isSet(object.ui) ? explorerUiFromJSON(object.ui) : 0 };
1199
+ return {
1200
+ ui: isSet(object.ui) ? explorerUiFromJSON(object.ui) : 0,
1201
+ requestId: isSet(object.requestId) ? Number(object.requestId) : undefined,
1202
+ params: isSet(object.itemPurchase)
1203
+ ? {
1204
+ $case: "itemPurchase",
1205
+ itemPurchase: OpenExplorerUiRequest_ItemPurchaseParams.fromJSON(object.itemPurchase),
1206
+ }
1207
+ : undefined,
1208
+ };
1534
1209
  }
1535
1210
 
1536
1211
  export function toJSON(message: OpenExplorerUiRequest): unknown {
1537
1212
  const obj: any = {};
1538
1213
  message.ui !== undefined && (obj.ui = explorerUiToJSON(message.ui));
1214
+ message.requestId !== undefined && (obj.requestId = Math.round(message.requestId));
1215
+ message.params?.$case === "itemPurchase" &&
1216
+ (obj.itemPurchase = message.params?.itemPurchase
1217
+ ? OpenExplorerUiRequest_ItemPurchaseParams.toJSON(message.params?.itemPurchase)
1218
+ : undefined);
1539
1219
  return obj;
1540
1220
  }
1541
1221
 
@@ -1548,6 +1228,80 @@ export namespace OpenExplorerUiRequest {
1548
1228
  ): OpenExplorerUiRequest {
1549
1229
  const message = createBaseOpenExplorerUiRequest();
1550
1230
  message.ui = object.ui ?? 0;
1231
+ message.requestId = object.requestId ?? undefined;
1232
+ if (
1233
+ object.params?.$case === "itemPurchase" &&
1234
+ object.params?.itemPurchase !== undefined &&
1235
+ object.params?.itemPurchase !== null
1236
+ ) {
1237
+ message.params = {
1238
+ $case: "itemPurchase",
1239
+ itemPurchase: OpenExplorerUiRequest_ItemPurchaseParams.fromPartial(object.params.itemPurchase),
1240
+ };
1241
+ }
1242
+ return message;
1243
+ }
1244
+ }
1245
+
1246
+ function createBaseOpenExplorerUiRequest_ItemPurchaseParams(): OpenExplorerUiRequest_ItemPurchaseParams {
1247
+ return { urn: "" };
1248
+ }
1249
+
1250
+ export namespace OpenExplorerUiRequest_ItemPurchaseParams {
1251
+ export function encode(
1252
+ message: OpenExplorerUiRequest_ItemPurchaseParams,
1253
+ writer: _m0.Writer = _m0.Writer.create(),
1254
+ ): _m0.Writer {
1255
+ if (message.urn !== "") {
1256
+ writer.uint32(10).string(message.urn);
1257
+ }
1258
+ return writer;
1259
+ }
1260
+
1261
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): OpenExplorerUiRequest_ItemPurchaseParams {
1262
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1263
+ let end = length === undefined ? reader.len : reader.pos + length;
1264
+ const message = createBaseOpenExplorerUiRequest_ItemPurchaseParams();
1265
+ while (reader.pos < end) {
1266
+ const tag = reader.uint32();
1267
+ switch (tag >>> 3) {
1268
+ case 1:
1269
+ if (tag !== 10) {
1270
+ break;
1271
+ }
1272
+
1273
+ message.urn = reader.string();
1274
+ continue;
1275
+ }
1276
+ if ((tag & 7) === 4 || tag === 0) {
1277
+ break;
1278
+ }
1279
+ reader.skipType(tag & 7);
1280
+ }
1281
+ return message;
1282
+ }
1283
+
1284
+ export function fromJSON(object: any): OpenExplorerUiRequest_ItemPurchaseParams {
1285
+ return { urn: isSet(object.urn) ? String(object.urn) : "" };
1286
+ }
1287
+
1288
+ export function toJSON(message: OpenExplorerUiRequest_ItemPurchaseParams): unknown {
1289
+ const obj: any = {};
1290
+ message.urn !== undefined && (obj.urn = message.urn);
1291
+ return obj;
1292
+ }
1293
+
1294
+ export function create<I extends Exact<DeepPartial<OpenExplorerUiRequest_ItemPurchaseParams>, I>>(
1295
+ base?: I,
1296
+ ): OpenExplorerUiRequest_ItemPurchaseParams {
1297
+ return OpenExplorerUiRequest_ItemPurchaseParams.fromPartial(base ?? {});
1298
+ }
1299
+
1300
+ export function fromPartial<I extends Exact<DeepPartial<OpenExplorerUiRequest_ItemPurchaseParams>, I>>(
1301
+ object: I,
1302
+ ): OpenExplorerUiRequest_ItemPurchaseParams {
1303
+ const message = createBaseOpenExplorerUiRequest_ItemPurchaseParams();
1304
+ message.urn = object.urn ?? "";
1551
1305
  return message;
1552
1306
  }
1553
1307
  }
@@ -1628,21 +1382,7 @@ export const RestrictedActionsServiceDefinition = {
1628
1382
  responseStream: false,
1629
1383
  options: {},
1630
1384
  },
1631
- /**
1632
- * TeleportTo will move the user to the specified world LAND parcel coordinates
1633
- * WalkPlayerTo will walk the player to a position relative to the current scene,
1634
- * managed by the movement controller scene. Returns success when the player reaches
1635
- * within stop_threshold distance, or false if the path is blocked, the player gets
1636
- * stuck, the player interrupts the walk with manual input, or the optional timeout expires.
1637
- */
1638
- walkPlayerTo: {
1639
- name: "WalkPlayerTo",
1640
- requestType: WalkPlayerToRequest,
1641
- requestStream: false,
1642
- responseType: WalkPlayerToResponse,
1643
- responseStream: false,
1644
- options: {},
1645
- },
1385
+ /** TeleportTo will move the user to the specified world LAND parcel coordinates */
1646
1386
  teleportTo: {
1647
1387
  name: "TeleportTo",
1648
1388
  requestType: TeleportToRequest,
@@ -1711,36 +1451,7 @@ export const RestrictedActionsServiceDefinition = {
1711
1451
  responseStream: false,
1712
1452
  options: {},
1713
1453
  },
1714
- /**
1715
- * CopyToClipboard copies the provided text into the clipboard
1716
- * Sets the focus to a specific UI element
1717
- */
1718
- setUiFocus: {
1719
- name: "SetUiFocus",
1720
- requestType: SetUiFocusRequest,
1721
- requestStream: false,
1722
- responseType: UiFocusResponse,
1723
- responseStream: false,
1724
- options: {},
1725
- },
1726
- /** Clears the focus from any currently focused textentry or dropdown */
1727
- clearUiFocus: {
1728
- name: "ClearUiFocus",
1729
- requestType: ClearUiFocusRequest,
1730
- requestStream: false,
1731
- responseType: UiFocusResponse,
1732
- responseStream: false,
1733
- options: {},
1734
- },
1735
- /** Returns the element_id of any currently focused textentry or dropdown */
1736
- getUiFocus: {
1737
- name: "GetUiFocus",
1738
- requestType: GetUiFocusRequest,
1739
- requestStream: false,
1740
- responseType: UiFocusResponse,
1741
- responseStream: false,
1742
- options: {},
1743
- },
1454
+ /** CopyToClipboard copies the provided text into the clipboard */
1744
1455
  copyToClipboard: {
1745
1456
  name: "CopyToClipboard",
1746
1457
  requestType: CopyToClipboardRequest,
@@ -1758,7 +1469,7 @@ export const RestrictedActionsServiceDefinition = {
1758
1469
  responseStream: false,
1759
1470
  options: {},
1760
1471
  },
1761
- /** OpenExplorerUi opens a specific fullscreen explorer panel and returns the open verdict. */
1472
+ /** OpenExplorerUi opens an explorer panel, fullscreen or modal, and returns the open verdict. */
1762
1473
  openExplorerUi: {
1763
1474
  name: "OpenExplorerUi",
1764
1475
  requestType: OpenExplorerUiRequest,