@dcl/protocol 1.0.0-33630043685.commit-f096a09 → 1.0.0-33674022401.commit-882d4ee

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 (143) 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 +125 -4
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +408 -6
  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 -21
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
  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 +51 -0
  14. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -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 +2 -0
  17. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +14 -2
  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 +71 -0
  20. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +303 -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 +79 -0
  23. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -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 -8
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +20 -36
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
  29. package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
  30. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
  32. package/out-js/decentraland/sdk/components/camera_layers.gen.js +80 -0
  33. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +2 -0
  35. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +14 -2
  36. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
  38. package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
  39. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
  41. package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
  42. package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  44. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  45. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  47. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  48. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  49. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  50. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  51. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  52. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
  53. package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
  54. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
  55. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  56. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  57. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  59. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  60. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  62. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  63. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  64. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +11 -16
  65. package/out-js/decentraland/sdk/components/pointer_events.gen.js +1 -14
  66. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  67. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
  68. package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
  69. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  70. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
  71. package/out-js/decentraland/sdk/components/texture_camera.gen.js +296 -0
  72. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
  73. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
  74. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
  75. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
  76. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +4 -0
  77. package/out-js/decentraland/sdk/components/ui_input.gen.js +27 -1
  78. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  79. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
  80. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
  81. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
  82. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
  83. package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
  84. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  85. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  86. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +445 -6
  87. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
  88. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  89. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
  90. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +16 -1
  91. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
  92. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +432 -0
  93. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -35
  94. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
  95. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
  96. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +16 -1
  97. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  98. package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
  99. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  100. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  101. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  102. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
  103. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  104. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  105. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  106. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +12 -33
  107. package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
  108. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
  109. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
  110. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +37 -1
  111. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
  112. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  113. package/package.json +3 -3
  114. package/proto/decentraland/common/texture.proto +8 -1
  115. package/proto/decentraland/kernel/apis/restricted_actions.proto +45 -1
  116. package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
  117. package/proto/decentraland/pulse/pulse_client.proto +8 -27
  118. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  119. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +1 -0
  120. package/proto/decentraland/sdk/components/avatar_movement.proto +62 -0
  121. package/proto/decentraland/sdk/components/avatar_movement_info.proto +36 -0
  122. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -5
  123. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  124. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  125. package/proto/decentraland/sdk/components/camera_mode_area.proto +1 -0
  126. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  127. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  128. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  129. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  130. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  131. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  132. package/proto/decentraland/sdk/components/material.proto +13 -1
  133. package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
  134. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  135. package/proto/decentraland/sdk/components/pointer_events.proto +11 -15
  136. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  137. package/proto/decentraland/sdk/components/raycast.proto +13 -0
  138. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  139. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  140. package/proto/decentraland/sdk/components/ui_input.proto +2 -0
  141. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  142. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  143. package/public/sdk-components.proto +10 -0
@@ -120,11 +120,23 @@ export interface VideoTexture {
120
120
  filterMode?: TextureFilterMode | undefined;
121
121
  }
122
122
 
123
+ export interface UiCanvasTexture {
124
+ uiCanvasEntity: number;
125
+ /** default = TextureWrapMode.Clamp */
126
+ wrapMode?:
127
+ | TextureWrapMode
128
+ | undefined;
129
+ /** default = FilterMode.Bilinear */
130
+ filterMode?: TextureFilterMode | undefined;
131
+ }
132
+
123
133
  export interface TextureUnion {
124
- tex?: { $case: "texture"; texture: Texture } | { $case: "avatarTexture"; avatarTexture: AvatarTexture } | {
125
- $case: "videoTexture";
126
- videoTexture: VideoTexture;
127
- } | undefined;
134
+ tex?:
135
+ | { $case: "texture"; texture: Texture }
136
+ | { $case: "avatarTexture"; avatarTexture: AvatarTexture }
137
+ | { $case: "videoTexture"; videoTexture: VideoTexture }
138
+ | { $case: "uiTexture"; uiTexture: UiCanvasTexture }
139
+ | undefined;
128
140
  }
129
141
 
130
142
  function createBaseTexture(): Texture {
@@ -415,6 +427,92 @@ export namespace VideoTexture {
415
427
  }
416
428
  }
417
429
 
430
+ function createBaseUiCanvasTexture(): UiCanvasTexture {
431
+ return { uiCanvasEntity: 0, wrapMode: undefined, filterMode: undefined };
432
+ }
433
+
434
+ export namespace UiCanvasTexture {
435
+ export function encode(message: UiCanvasTexture, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
436
+ if (message.uiCanvasEntity !== 0) {
437
+ writer.uint32(8).uint32(message.uiCanvasEntity);
438
+ }
439
+ if (message.wrapMode !== undefined) {
440
+ writer.uint32(16).int32(message.wrapMode);
441
+ }
442
+ if (message.filterMode !== undefined) {
443
+ writer.uint32(24).int32(message.filterMode);
444
+ }
445
+ return writer;
446
+ }
447
+
448
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture {
449
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
450
+ let end = length === undefined ? reader.len : reader.pos + length;
451
+ const message = createBaseUiCanvasTexture();
452
+ while (reader.pos < end) {
453
+ const tag = reader.uint32();
454
+ switch (tag >>> 3) {
455
+ case 1:
456
+ if (tag !== 8) {
457
+ break;
458
+ }
459
+
460
+ message.uiCanvasEntity = reader.uint32();
461
+ continue;
462
+ case 2:
463
+ if (tag !== 16) {
464
+ break;
465
+ }
466
+
467
+ message.wrapMode = reader.int32() as any;
468
+ continue;
469
+ case 3:
470
+ if (tag !== 24) {
471
+ break;
472
+ }
473
+
474
+ message.filterMode = reader.int32() as any;
475
+ continue;
476
+ }
477
+ if ((tag & 7) === 4 || tag === 0) {
478
+ break;
479
+ }
480
+ reader.skipType(tag & 7);
481
+ }
482
+ return message;
483
+ }
484
+
485
+ export function fromJSON(object: any): UiCanvasTexture {
486
+ return {
487
+ uiCanvasEntity: isSet(object.uiCanvasEntity) ? Number(object.uiCanvasEntity) : 0,
488
+ wrapMode: isSet(object.wrapMode) ? textureWrapModeFromJSON(object.wrapMode) : undefined,
489
+ filterMode: isSet(object.filterMode) ? textureFilterModeFromJSON(object.filterMode) : undefined,
490
+ };
491
+ }
492
+
493
+ export function toJSON(message: UiCanvasTexture): unknown {
494
+ const obj: any = {};
495
+ message.uiCanvasEntity !== undefined && (obj.uiCanvasEntity = Math.round(message.uiCanvasEntity));
496
+ message.wrapMode !== undefined &&
497
+ (obj.wrapMode = message.wrapMode !== undefined ? textureWrapModeToJSON(message.wrapMode) : undefined);
498
+ message.filterMode !== undefined &&
499
+ (obj.filterMode = message.filterMode !== undefined ? textureFilterModeToJSON(message.filterMode) : undefined);
500
+ return obj;
501
+ }
502
+
503
+ export function create<I extends Exact<DeepPartial<UiCanvasTexture>, I>>(base?: I): UiCanvasTexture {
504
+ return UiCanvasTexture.fromPartial(base ?? {});
505
+ }
506
+
507
+ export function fromPartial<I extends Exact<DeepPartial<UiCanvasTexture>, I>>(object: I): UiCanvasTexture {
508
+ const message = createBaseUiCanvasTexture();
509
+ message.uiCanvasEntity = object.uiCanvasEntity ?? 0;
510
+ message.wrapMode = object.wrapMode ?? undefined;
511
+ message.filterMode = object.filterMode ?? undefined;
512
+ return message;
513
+ }
514
+ }
515
+
418
516
  function createBaseTextureUnion(): TextureUnion {
419
517
  return { tex: undefined };
420
518
  }
@@ -431,6 +529,9 @@ export namespace TextureUnion {
431
529
  case "videoTexture":
432
530
  VideoTexture.encode(message.tex.videoTexture, writer.uint32(26).fork()).ldelim();
433
531
  break;
532
+ case "uiTexture":
533
+ UiCanvasTexture.encode(message.tex.uiTexture, writer.uint32(34).fork()).ldelim();
534
+ break;
434
535
  }
435
536
  return writer;
436
537
  }
@@ -463,6 +564,13 @@ export namespace TextureUnion {
463
564
 
464
565
  message.tex = { $case: "videoTexture", videoTexture: VideoTexture.decode(reader, reader.uint32()) };
465
566
  continue;
567
+ case 4:
568
+ if (tag !== 34) {
569
+ break;
570
+ }
571
+
572
+ message.tex = { $case: "uiTexture", uiTexture: UiCanvasTexture.decode(reader, reader.uint32()) };
573
+ continue;
466
574
  }
467
575
  if ((tag & 7) === 4 || tag === 0) {
468
576
  break;
@@ -480,6 +588,8 @@ export namespace TextureUnion {
480
588
  ? { $case: "avatarTexture", avatarTexture: AvatarTexture.fromJSON(object.avatarTexture) }
481
589
  : isSet(object.videoTexture)
482
590
  ? { $case: "videoTexture", videoTexture: VideoTexture.fromJSON(object.videoTexture) }
591
+ : isSet(object.uiTexture)
592
+ ? { $case: "uiTexture", uiTexture: UiCanvasTexture.fromJSON(object.uiTexture) }
483
593
  : undefined,
484
594
  };
485
595
  }
@@ -492,6 +602,8 @@ export namespace TextureUnion {
492
602
  (obj.avatarTexture = message.tex?.avatarTexture ? AvatarTexture.toJSON(message.tex?.avatarTexture) : undefined);
493
603
  message.tex?.$case === "videoTexture" &&
494
604
  (obj.videoTexture = message.tex?.videoTexture ? VideoTexture.toJSON(message.tex?.videoTexture) : undefined);
605
+ message.tex?.$case === "uiTexture" &&
606
+ (obj.uiTexture = message.tex?.uiTexture ? UiCanvasTexture.toJSON(message.tex?.uiTexture) : undefined);
495
607
  return obj;
496
608
  }
497
609
 
@@ -518,6 +630,9 @@ export namespace TextureUnion {
518
630
  ) {
519
631
  message.tex = { $case: "videoTexture", videoTexture: VideoTexture.fromPartial(object.tex.videoTexture) };
520
632
  }
633
+ if (object.tex?.$case === "uiTexture" && object.tex?.uiTexture !== undefined && object.tex?.uiTexture !== null) {
634
+ message.tex = { $case: "uiTexture", uiTexture: UiCanvasTexture.fromPartial(object.tex.uiTexture) };
635
+ }
521
636
  return message;
522
637
  }
523
638
  }
@@ -79,7 +79,16 @@ export interface MovePlayerToRequest {
79
79
  }
80
80
 
81
81
  export interface TeleportToRequest {
82
- worldCoordinates: Vector2 | undefined;
82
+ /** The parcel to land on. Omitted: the realm's default spawn (only meaningful with `realm`). */
83
+ worldCoordinates?:
84
+ | Vector2
85
+ | undefined;
86
+ /**
87
+ * The realm the parcel belongs to: a world name (`foo.dcl.eth`) or a realm url. When set, the
88
+ * client changes realm (a full reconnect, even to the realm the player is in) and lands on the
89
+ * parcel there. Omitted: the parcel is in the player's current realm.
90
+ */
91
+ realm?: string | undefined;
83
92
  }
84
93
 
85
94
  export interface TriggerEmoteRequest {
@@ -124,9 +133,35 @@ export interface MovePlayerToResponse {
124
133
  success: boolean;
125
134
  }
126
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
+
127
147
  export interface TeleportToResponse {
128
148
  }
129
149
 
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
+
130
165
  export interface CopyToClipboardRequest {
131
166
  text: string;
132
167
  }
@@ -253,7 +288,7 @@ export namespace MovePlayerToRequest {
253
288
  }
254
289
 
255
290
  function createBaseTeleportToRequest(): TeleportToRequest {
256
- return { worldCoordinates: undefined };
291
+ return { worldCoordinates: undefined, realm: undefined };
257
292
  }
258
293
 
259
294
  export namespace TeleportToRequest {
@@ -261,6 +296,9 @@ export namespace TeleportToRequest {
261
296
  if (message.worldCoordinates !== undefined) {
262
297
  Vector2.encode(message.worldCoordinates, writer.uint32(10).fork()).ldelim();
263
298
  }
299
+ if (message.realm !== undefined) {
300
+ writer.uint32(18).string(message.realm);
301
+ }
264
302
  return writer;
265
303
  }
266
304
 
@@ -278,6 +316,13 @@ export namespace TeleportToRequest {
278
316
 
279
317
  message.worldCoordinates = Vector2.decode(reader, reader.uint32());
280
318
  continue;
319
+ case 2:
320
+ if (tag !== 18) {
321
+ break;
322
+ }
323
+
324
+ message.realm = reader.string();
325
+ continue;
281
326
  }
282
327
  if ((tag & 7) === 4 || tag === 0) {
283
328
  break;
@@ -288,13 +333,17 @@ export namespace TeleportToRequest {
288
333
  }
289
334
 
290
335
  export function fromJSON(object: any): TeleportToRequest {
291
- return { worldCoordinates: isSet(object.worldCoordinates) ? Vector2.fromJSON(object.worldCoordinates) : undefined };
336
+ return {
337
+ worldCoordinates: isSet(object.worldCoordinates) ? Vector2.fromJSON(object.worldCoordinates) : undefined,
338
+ realm: isSet(object.realm) ? String(object.realm) : undefined,
339
+ };
292
340
  }
293
341
 
294
342
  export function toJSON(message: TeleportToRequest): unknown {
295
343
  const obj: any = {};
296
344
  message.worldCoordinates !== undefined &&
297
345
  (obj.worldCoordinates = message.worldCoordinates ? Vector2.toJSON(message.worldCoordinates) : undefined);
346
+ message.realm !== undefined && (obj.realm = message.realm);
298
347
  return obj;
299
348
  }
300
349
 
@@ -307,6 +356,7 @@ export namespace TeleportToRequest {
307
356
  message.worldCoordinates = (object.worldCoordinates !== undefined && object.worldCoordinates !== null)
308
357
  ? Vector2.fromPartial(object.worldCoordinates)
309
358
  : undefined;
359
+ message.realm = object.realm ?? undefined;
310
360
  return message;
311
361
  }
312
362
  }
@@ -911,6 +961,149 @@ export namespace MovePlayerToResponse {
911
961
  }
912
962
  }
913
963
 
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
+
914
1107
  function createBaseTeleportToResponse(): TeleportToResponse {
915
1108
  return {};
916
1109
  }
@@ -955,6 +1148,206 @@ export namespace TeleportToResponse {
955
1148
  }
956
1149
  }
957
1150
 
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
+
958
1351
  function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
959
1352
  return { text: "" };
960
1353
  }
@@ -1235,7 +1628,21 @@ export const RestrictedActionsServiceDefinition = {
1235
1628
  responseStream: false,
1236
1629
  options: {},
1237
1630
  },
1238
- /** TeleportTo will move the user to the specified world LAND parcel coordinates */
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
+ },
1239
1646
  teleportTo: {
1240
1647
  name: "TeleportTo",
1241
1648
  requestType: TeleportToRequest,
@@ -1253,7 +1660,10 @@ export const RestrictedActionsServiceDefinition = {
1253
1660
  responseStream: false,
1254
1661
  options: {},
1255
1662
  },
1256
- /** ChangeRealm prompts the user to change to a specific realm */
1663
+ /**
1664
+ * @deprecated, use TeleportTo with `realm` (and no `world_coordinates` for the realm's default spawn)
1665
+ * ChangeRealm prompts the user to change to a specific realm
1666
+ */
1257
1667
  changeRealm: {
1258
1668
  name: "ChangeRealm",
1259
1669
  requestType: ChangeRealmRequest,
@@ -1301,7 +1711,36 @@ export const RestrictedActionsServiceDefinition = {
1301
1711
  responseStream: false,
1302
1712
  options: {},
1303
1713
  },
1304
- /** CopyToClipboard copies the provided text into the clipboard */
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
+ },
1305
1744
  copyToClipboard: {
1306
1745
  name: "CopyToClipboard",
1307
1746
  requestType: CopyToClipboardRequest,