@dcl/protocol 1.0.0-21456739795.commit-eae3f8b → 1.0.0-21486653842.commit-5bf1921

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 (89) 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 +70 -0
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +228 -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 +4 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +41 -3
  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_modifier_area.gen.d.ts +41 -0
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  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 +2 -0
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
  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 +35 -1
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
  24. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  29. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  30. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  32. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  33. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  35. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  36. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  38. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  39. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  41. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  42. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  44. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  45. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
  47. package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
  48. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  49. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  50. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +242 -0
  51. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +46 -1
  52. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  53. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  54. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
  55. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  56. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  57. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  58. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  59. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  60. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  61. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  62. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  63. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  64. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  65. package/package.json +6 -3
  66. package/proto/decentraland/common/texture.proto +8 -1
  67. package/proto/decentraland/kernel/apis/restricted_actions.proto +22 -0
  68. package/proto/decentraland/kernel/comms/rfc4/comms.proto +4 -2
  69. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  70. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  71. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
  72. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  73. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  74. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  75. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  76. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  77. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  78. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  79. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  80. package/proto/decentraland/sdk/components/material.proto +13 -1
  81. package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
  82. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  83. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  84. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  85. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  86. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  87. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  88. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  89. package/public/sdk-components.proto +2 -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
  }
@@ -61,6 +61,21 @@ export interface MovePlayerToResponse {
61
61
  export interface TeleportToResponse {
62
62
  }
63
63
 
64
+ export interface SetUiFocusRequest {
65
+ elementId: string;
66
+ }
67
+
68
+ export interface ClearUiFocusRequest {
69
+ }
70
+
71
+ export interface GetUiFocusRequest {
72
+ }
73
+
74
+ export interface UiFocusResponse {
75
+ /** the element that is/was focussed */
76
+ elementId?: string | undefined;
77
+ }
78
+
64
79
  export interface CopyToClipboardRequest {
65
80
  text: string;
66
81
  }
@@ -849,6 +864,206 @@ export namespace TeleportToResponse {
849
864
  }
850
865
  }
851
866
 
867
+ function createBaseSetUiFocusRequest(): SetUiFocusRequest {
868
+ return { elementId: "" };
869
+ }
870
+
871
+ export namespace SetUiFocusRequest {
872
+ export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
873
+ if (message.elementId !== "") {
874
+ writer.uint32(10).string(message.elementId);
875
+ }
876
+ return writer;
877
+ }
878
+
879
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
880
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
881
+ let end = length === undefined ? reader.len : reader.pos + length;
882
+ const message = createBaseSetUiFocusRequest();
883
+ while (reader.pos < end) {
884
+ const tag = reader.uint32();
885
+ switch (tag >>> 3) {
886
+ case 1:
887
+ if (tag !== 10) {
888
+ break;
889
+ }
890
+
891
+ message.elementId = reader.string();
892
+ continue;
893
+ }
894
+ if ((tag & 7) === 4 || tag === 0) {
895
+ break;
896
+ }
897
+ reader.skipType(tag & 7);
898
+ }
899
+ return message;
900
+ }
901
+
902
+ export function fromJSON(object: any): SetUiFocusRequest {
903
+ return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
904
+ }
905
+
906
+ export function toJSON(message: SetUiFocusRequest): unknown {
907
+ const obj: any = {};
908
+ message.elementId !== undefined && (obj.elementId = message.elementId);
909
+ return obj;
910
+ }
911
+
912
+ export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
913
+ return SetUiFocusRequest.fromPartial(base ?? {});
914
+ }
915
+
916
+ export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
917
+ const message = createBaseSetUiFocusRequest();
918
+ message.elementId = object.elementId ?? "";
919
+ return message;
920
+ }
921
+ }
922
+
923
+ function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
924
+ return {};
925
+ }
926
+
927
+ export namespace ClearUiFocusRequest {
928
+ export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
929
+ return writer;
930
+ }
931
+
932
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
933
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
934
+ let end = length === undefined ? reader.len : reader.pos + length;
935
+ const message = createBaseClearUiFocusRequest();
936
+ while (reader.pos < end) {
937
+ const tag = reader.uint32();
938
+ switch (tag >>> 3) {
939
+ }
940
+ if ((tag & 7) === 4 || tag === 0) {
941
+ break;
942
+ }
943
+ reader.skipType(tag & 7);
944
+ }
945
+ return message;
946
+ }
947
+
948
+ export function fromJSON(_: any): ClearUiFocusRequest {
949
+ return {};
950
+ }
951
+
952
+ export function toJSON(_: ClearUiFocusRequest): unknown {
953
+ const obj: any = {};
954
+ return obj;
955
+ }
956
+
957
+ export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
958
+ return ClearUiFocusRequest.fromPartial(base ?? {});
959
+ }
960
+
961
+ export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
962
+ const message = createBaseClearUiFocusRequest();
963
+ return message;
964
+ }
965
+ }
966
+
967
+ function createBaseGetUiFocusRequest(): GetUiFocusRequest {
968
+ return {};
969
+ }
970
+
971
+ export namespace GetUiFocusRequest {
972
+ export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
973
+ return writer;
974
+ }
975
+
976
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
977
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
978
+ let end = length === undefined ? reader.len : reader.pos + length;
979
+ const message = createBaseGetUiFocusRequest();
980
+ while (reader.pos < end) {
981
+ const tag = reader.uint32();
982
+ switch (tag >>> 3) {
983
+ }
984
+ if ((tag & 7) === 4 || tag === 0) {
985
+ break;
986
+ }
987
+ reader.skipType(tag & 7);
988
+ }
989
+ return message;
990
+ }
991
+
992
+ export function fromJSON(_: any): GetUiFocusRequest {
993
+ return {};
994
+ }
995
+
996
+ export function toJSON(_: GetUiFocusRequest): unknown {
997
+ const obj: any = {};
998
+ return obj;
999
+ }
1000
+
1001
+ export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
1002
+ return GetUiFocusRequest.fromPartial(base ?? {});
1003
+ }
1004
+
1005
+ export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
1006
+ const message = createBaseGetUiFocusRequest();
1007
+ return message;
1008
+ }
1009
+ }
1010
+
1011
+ function createBaseUiFocusResponse(): UiFocusResponse {
1012
+ return { elementId: undefined };
1013
+ }
1014
+
1015
+ export namespace UiFocusResponse {
1016
+ export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1017
+ if (message.elementId !== undefined) {
1018
+ writer.uint32(10).string(message.elementId);
1019
+ }
1020
+ return writer;
1021
+ }
1022
+
1023
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
1024
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1025
+ let end = length === undefined ? reader.len : reader.pos + length;
1026
+ const message = createBaseUiFocusResponse();
1027
+ while (reader.pos < end) {
1028
+ const tag = reader.uint32();
1029
+ switch (tag >>> 3) {
1030
+ case 1:
1031
+ if (tag !== 10) {
1032
+ break;
1033
+ }
1034
+
1035
+ message.elementId = reader.string();
1036
+ continue;
1037
+ }
1038
+ if ((tag & 7) === 4 || tag === 0) {
1039
+ break;
1040
+ }
1041
+ reader.skipType(tag & 7);
1042
+ }
1043
+ return message;
1044
+ }
1045
+
1046
+ export function fromJSON(object: any): UiFocusResponse {
1047
+ return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
1048
+ }
1049
+
1050
+ export function toJSON(message: UiFocusResponse): unknown {
1051
+ const obj: any = {};
1052
+ message.elementId !== undefined && (obj.elementId = message.elementId);
1053
+ return obj;
1054
+ }
1055
+
1056
+ export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
1057
+ return UiFocusResponse.fromPartial(base ?? {});
1058
+ }
1059
+
1060
+ export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
1061
+ const message = createBaseUiFocusResponse();
1062
+ message.elementId = object.elementId ?? undefined;
1063
+ return message;
1064
+ }
1065
+ }
1066
+
852
1067
  function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
853
1068
  return { text: "" };
854
1069
  }
@@ -1035,6 +1250,33 @@ export const RestrictedActionsServiceDefinition = {
1035
1250
  responseStream: false,
1036
1251
  options: {},
1037
1252
  },
1253
+ /** Sets the focus to a specific UI element */
1254
+ setUiFocus: {
1255
+ name: "SetUiFocus",
1256
+ requestType: SetUiFocusRequest,
1257
+ requestStream: false,
1258
+ responseType: UiFocusResponse,
1259
+ responseStream: false,
1260
+ options: {},
1261
+ },
1262
+ /** Clears the focus from any currently focused textentry or dropdown */
1263
+ clearUiFocus: {
1264
+ name: "ClearUiFocus",
1265
+ requestType: SetUiFocusRequest,
1266
+ requestStream: false,
1267
+ responseType: UiFocusResponse,
1268
+ responseStream: false,
1269
+ options: {},
1270
+ },
1271
+ /** Returns the element_id of any currently focused textentry or dropdown */
1272
+ getUiFocus: {
1273
+ name: "GetUiFocus",
1274
+ requestType: GetUiFocusRequest,
1275
+ requestStream: false,
1276
+ responseType: UiFocusResponse,
1277
+ responseStream: false,
1278
+ options: {},
1279
+ },
1038
1280
  /** CopyToClipboard copies the provided text into the clipboard */
1039
1281
  copyToClipboard: {
1040
1282
  name: "CopyToClipboard",
@@ -56,6 +56,9 @@ export interface Movement {
56
56
  isFalling: boolean;
57
57
  isStunned: boolean;
58
58
  rotationY: number;
59
+ /** interpolation */
60
+ isInstant: boolean;
61
+ isEmoting: boolean;
59
62
  }
60
63
 
61
64
  export interface MovementCompressed {
@@ -68,6 +71,7 @@ export interface MovementCompressed {
68
71
  export interface PlayerEmote {
69
72
  incrementalId: number;
70
73
  urn: string;
74
+ timestamp: number;
71
75
  }
72
76
 
73
77
  export interface SceneEmote {
@@ -608,6 +612,8 @@ function createBaseMovement(): Movement {
608
612
  isFalling: false,
609
613
  isStunned: false,
610
614
  rotationY: 0,
615
+ isInstant: false,
616
+ isEmoting: false,
611
617
  };
612
618
  }
613
619
 
@@ -661,6 +667,12 @@ export namespace Movement {
661
667
  if (message.rotationY !== 0) {
662
668
  writer.uint32(133).float(message.rotationY);
663
669
  }
670
+ if (message.isInstant === true) {
671
+ writer.uint32(136).bool(message.isInstant);
672
+ }
673
+ if (message.isEmoting === true) {
674
+ writer.uint32(144).bool(message.isEmoting);
675
+ }
664
676
  return writer;
665
677
  }
666
678
 
@@ -783,6 +795,20 @@ export namespace Movement {
783
795
 
784
796
  message.rotationY = reader.float();
785
797
  continue;
798
+ case 17:
799
+ if (tag !== 136) {
800
+ break;
801
+ }
802
+
803
+ message.isInstant = reader.bool();
804
+ continue;
805
+ case 18:
806
+ if (tag !== 144) {
807
+ break;
808
+ }
809
+
810
+ message.isEmoting = reader.bool();
811
+ continue;
786
812
  }
787
813
  if ((tag & 7) === 4 || tag === 0) {
788
814
  break;
@@ -810,6 +836,8 @@ export namespace Movement {
810
836
  isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
811
837
  isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
812
838
  rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
839
+ isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
840
+ isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
813
841
  };
814
842
  }
815
843
 
@@ -831,6 +859,8 @@ export namespace Movement {
831
859
  message.isFalling !== undefined && (obj.isFalling = message.isFalling);
832
860
  message.isStunned !== undefined && (obj.isStunned = message.isStunned);
833
861
  message.rotationY !== undefined && (obj.rotationY = message.rotationY);
862
+ message.isInstant !== undefined && (obj.isInstant = message.isInstant);
863
+ message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
834
864
  return obj;
835
865
  }
836
866
 
@@ -856,6 +886,8 @@ export namespace Movement {
856
886
  message.isFalling = object.isFalling ?? false;
857
887
  message.isStunned = object.isStunned ?? false;
858
888
  message.rotationY = object.rotationY ?? 0;
889
+ message.isInstant = object.isInstant ?? false;
890
+ message.isEmoting = object.isEmoting ?? false;
859
891
  return message;
860
892
  }
861
893
  }
@@ -932,7 +964,7 @@ export namespace MovementCompressed {
932
964
  }
933
965
 
934
966
  function createBasePlayerEmote(): PlayerEmote {
935
- return { incrementalId: 0, urn: "" };
967
+ return { incrementalId: 0, urn: "", timestamp: 0 };
936
968
  }
937
969
 
938
970
  export namespace PlayerEmote {
@@ -943,6 +975,9 @@ export namespace PlayerEmote {
943
975
  if (message.urn !== "") {
944
976
  writer.uint32(18).string(message.urn);
945
977
  }
978
+ if (message.timestamp !== 0) {
979
+ writer.uint32(29).float(message.timestamp);
980
+ }
946
981
  return writer;
947
982
  }
948
983
 
@@ -967,6 +1002,13 @@ export namespace PlayerEmote {
967
1002
 
968
1003
  message.urn = reader.string();
969
1004
  continue;
1005
+ case 3:
1006
+ if (tag !== 29) {
1007
+ break;
1008
+ }
1009
+
1010
+ message.timestamp = reader.float();
1011
+ continue;
970
1012
  }
971
1013
  if ((tag & 7) === 4 || tag === 0) {
972
1014
  break;
@@ -980,6 +1022,7 @@ export namespace PlayerEmote {
980
1022
  return {
981
1023
  incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
982
1024
  urn: isSet(object.urn) ? String(object.urn) : "",
1025
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
983
1026
  };
984
1027
  }
985
1028
 
@@ -987,6 +1030,7 @@ export namespace PlayerEmote {
987
1030
  const obj: any = {};
988
1031
  message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
989
1032
  message.urn !== undefined && (obj.urn = message.urn);
1033
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp);
990
1034
  return obj;
991
1035
  }
992
1036
 
@@ -998,6 +1042,7 @@ export namespace PlayerEmote {
998
1042
  const message = createBasePlayerEmote();
999
1043
  message.incrementalId = object.incrementalId ?? 0;
1000
1044
  message.urn = object.urn ?? "";
1045
+ message.timestamp = object.timestamp ?? 0;
1001
1046
  return message;
1002
1047
  }
1003
1048
  }
@@ -11,10 +11,12 @@ export const protobufPackage = "decentraland.sdk.components";
11
11
  export interface PBAvatarEquippedData {
12
12
  wearableUrns: string[];
13
13
  emoteUrns: string[];
14
+ /** slots that will render even if hidden */
15
+ forceRender: string[];
14
16
  }
15
17
 
16
18
  function createBasePBAvatarEquippedData(): PBAvatarEquippedData {
17
- return { wearableUrns: [], emoteUrns: [] };
19
+ return { wearableUrns: [], emoteUrns: [], forceRender: [] };
18
20
  }
19
21
 
20
22
  export namespace PBAvatarEquippedData {
@@ -25,6 +27,9 @@ export namespace PBAvatarEquippedData {
25
27
  for (const v of message.emoteUrns) {
26
28
  writer.uint32(18).string(v!);
27
29
  }
30
+ for (const v of message.forceRender) {
31
+ writer.uint32(26).string(v!);
32
+ }
28
33
  return writer;
29
34
  }
30
35
 
@@ -49,6 +54,13 @@ export namespace PBAvatarEquippedData {
49
54
 
50
55
  message.emoteUrns.push(reader.string());
51
56
  continue;
57
+ case 3:
58
+ if (tag !== 26) {
59
+ break;
60
+ }
61
+
62
+ message.forceRender.push(reader.string());
63
+ continue;
52
64
  }
53
65
  if ((tag & 7) === 4 || tag === 0) {
54
66
  break;
@@ -62,6 +74,7 @@ export namespace PBAvatarEquippedData {
62
74
  return {
63
75
  wearableUrns: Array.isArray(object?.wearableUrns) ? object.wearableUrns.map((e: any) => String(e)) : [],
64
76
  emoteUrns: Array.isArray(object?.emoteUrns) ? object.emoteUrns.map((e: any) => String(e)) : [],
77
+ forceRender: Array.isArray(object?.forceRender) ? object.forceRender.map((e: any) => String(e)) : [],
65
78
  };
66
79
  }
67
80
 
@@ -77,6 +90,11 @@ export namespace PBAvatarEquippedData {
77
90
  } else {
78
91
  obj.emoteUrns = [];
79
92
  }
93
+ if (message.forceRender) {
94
+ obj.forceRender = message.forceRender.map((e) => e);
95
+ } else {
96
+ obj.forceRender = [];
97
+ }
80
98
  return obj;
81
99
  }
82
100
 
@@ -88,6 +106,7 @@ export namespace PBAvatarEquippedData {
88
106
  const message = createBasePBAvatarEquippedData();
89
107
  message.wearableUrns = object.wearableUrns?.map((e) => e) || [];
90
108
  message.emoteUrns = object.emoteUrns?.map((e) => e) || [];
109
+ message.forceRender = object.forceRender?.map((e) => e) || [];
91
110
  return message;
92
111
  }
93
112
  }