@dcl/protocol 1.0.0-16812988020.commit-d8676dd → 1.0.0-16829025986.commit-d35499a

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 (108) 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 +50 -0
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +175 -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 +1 -9
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +11 -49
  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 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +13 -8
  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-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1305
  50. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -6717
  51. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  52. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  53. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +187 -0
  54. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +10 -59
  55. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  56. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  57. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +14 -10
  58. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  59. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  60. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  61. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  62. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  63. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  64. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  65. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  66. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  67. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  68. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1019 -8579
  69. package/package.json +7 -4
  70. package/proto/decentraland/common/texture.proto +8 -1
  71. package/proto/decentraland/kernel/apis/restricted_actions.proto +16 -0
  72. package/proto/decentraland/kernel/comms/rfc4/comms.proto +3 -8
  73. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  74. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  75. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -2
  76. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  77. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  78. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  79. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  80. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  81. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  82. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  83. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  84. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  85. package/proto/decentraland/sdk/components/material.proto +13 -1
  86. package/proto/decentraland/sdk/components/mesh_collider.proto +8 -1
  87. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  88. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  89. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  90. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  91. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  92. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  93. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  94. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  95. package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -538
  96. package/public/sdk-components.proto +2 -1
  97. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +0 -57
  98. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +0 -164
  99. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +0 -1
  100. package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
  101. package/out-js/decentraland/social_service/errors.gen.js +0 -405
  102. package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
  103. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +0 -204
  104. package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
  105. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +0 -25
  106. package/proto/decentraland/sdk/components/skybox_time.proto +0 -20
  107. package/proto/decentraland/social_service/errors.proto +0 -30
  108. package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
@@ -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
  }
@@ -56,6 +56,17 @@ export interface MovePlayerToResponse {
56
56
  export interface TeleportToResponse {
57
57
  }
58
58
 
59
+ export interface SetUiFocusRequest {
60
+ elementId: string;
61
+ }
62
+
63
+ export interface CopyToClipboardRequest {
64
+ text: string;
65
+ }
66
+
67
+ export interface EmptyResponse {
68
+ }
69
+
59
70
  function createBaseMovePlayerToRequest(): MovePlayerToRequest {
60
71
  return { newRelativePosition: undefined, cameraTarget: undefined, avatarTarget: undefined };
61
72
  }
@@ -812,6 +823,164 @@ export namespace TeleportToResponse {
812
823
  }
813
824
  }
814
825
 
826
+ function createBaseSetUiFocusRequest(): SetUiFocusRequest {
827
+ return { elementId: "" };
828
+ }
829
+
830
+ export namespace SetUiFocusRequest {
831
+ export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
832
+ if (message.elementId !== "") {
833
+ writer.uint32(10).string(message.elementId);
834
+ }
835
+ return writer;
836
+ }
837
+
838
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
839
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
840
+ let end = length === undefined ? reader.len : reader.pos + length;
841
+ const message = createBaseSetUiFocusRequest();
842
+ while (reader.pos < end) {
843
+ const tag = reader.uint32();
844
+ switch (tag >>> 3) {
845
+ case 1:
846
+ if (tag !== 10) {
847
+ break;
848
+ }
849
+
850
+ message.elementId = reader.string();
851
+ continue;
852
+ }
853
+ if ((tag & 7) === 4 || tag === 0) {
854
+ break;
855
+ }
856
+ reader.skipType(tag & 7);
857
+ }
858
+ return message;
859
+ }
860
+
861
+ export function fromJSON(object: any): SetUiFocusRequest {
862
+ return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
863
+ }
864
+
865
+ export function toJSON(message: SetUiFocusRequest): unknown {
866
+ const obj: any = {};
867
+ message.elementId !== undefined && (obj.elementId = message.elementId);
868
+ return obj;
869
+ }
870
+
871
+ export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
872
+ return SetUiFocusRequest.fromPartial(base ?? {});
873
+ }
874
+
875
+ export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
876
+ const message = createBaseSetUiFocusRequest();
877
+ message.elementId = object.elementId ?? "";
878
+ return message;
879
+ }
880
+ }
881
+
882
+ function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
883
+ return { text: "" };
884
+ }
885
+
886
+ export namespace CopyToClipboardRequest {
887
+ export function encode(message: CopyToClipboardRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
888
+ if (message.text !== "") {
889
+ writer.uint32(10).string(message.text);
890
+ }
891
+ return writer;
892
+ }
893
+
894
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CopyToClipboardRequest {
895
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
896
+ let end = length === undefined ? reader.len : reader.pos + length;
897
+ const message = createBaseCopyToClipboardRequest();
898
+ while (reader.pos < end) {
899
+ const tag = reader.uint32();
900
+ switch (tag >>> 3) {
901
+ case 1:
902
+ if (tag !== 10) {
903
+ break;
904
+ }
905
+
906
+ message.text = reader.string();
907
+ continue;
908
+ }
909
+ if ((tag & 7) === 4 || tag === 0) {
910
+ break;
911
+ }
912
+ reader.skipType(tag & 7);
913
+ }
914
+ return message;
915
+ }
916
+
917
+ export function fromJSON(object: any): CopyToClipboardRequest {
918
+ return { text: isSet(object.text) ? String(object.text) : "" };
919
+ }
920
+
921
+ export function toJSON(message: CopyToClipboardRequest): unknown {
922
+ const obj: any = {};
923
+ message.text !== undefined && (obj.text = message.text);
924
+ return obj;
925
+ }
926
+
927
+ export function create<I extends Exact<DeepPartial<CopyToClipboardRequest>, I>>(base?: I): CopyToClipboardRequest {
928
+ return CopyToClipboardRequest.fromPartial(base ?? {});
929
+ }
930
+
931
+ export function fromPartial<I extends Exact<DeepPartial<CopyToClipboardRequest>, I>>(
932
+ object: I,
933
+ ): CopyToClipboardRequest {
934
+ const message = createBaseCopyToClipboardRequest();
935
+ message.text = object.text ?? "";
936
+ return message;
937
+ }
938
+ }
939
+
940
+ function createBaseEmptyResponse(): EmptyResponse {
941
+ return {};
942
+ }
943
+
944
+ export namespace EmptyResponse {
945
+ export function encode(_: EmptyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
946
+ return writer;
947
+ }
948
+
949
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EmptyResponse {
950
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
951
+ let end = length === undefined ? reader.len : reader.pos + length;
952
+ const message = createBaseEmptyResponse();
953
+ while (reader.pos < end) {
954
+ const tag = reader.uint32();
955
+ switch (tag >>> 3) {
956
+ }
957
+ if ((tag & 7) === 4 || tag === 0) {
958
+ break;
959
+ }
960
+ reader.skipType(tag & 7);
961
+ }
962
+ return message;
963
+ }
964
+
965
+ export function fromJSON(_: any): EmptyResponse {
966
+ return {};
967
+ }
968
+
969
+ export function toJSON(_: EmptyResponse): unknown {
970
+ const obj: any = {};
971
+ return obj;
972
+ }
973
+
974
+ export function create<I extends Exact<DeepPartial<EmptyResponse>, I>>(base?: I): EmptyResponse {
975
+ return EmptyResponse.fromPartial(base ?? {});
976
+ }
977
+
978
+ export function fromPartial<I extends Exact<DeepPartial<EmptyResponse>, I>>(_: I): EmptyResponse {
979
+ const message = createBaseEmptyResponse();
980
+ return message;
981
+ }
982
+ }
983
+
815
984
  export type RestrictedActionsServiceDefinition = typeof RestrictedActionsServiceDefinition;
816
985
  export const RestrictedActionsServiceDefinition = {
817
986
  name: "RestrictedActionsService",
@@ -892,6 +1061,24 @@ export const RestrictedActionsServiceDefinition = {
892
1061
  responseStream: false,
893
1062
  options: {},
894
1063
  },
1064
+ /** Sets the focus to a specific UI element */
1065
+ setUiFocus: {
1066
+ name: "SetUiFocus",
1067
+ requestType: SetUiFocusRequest,
1068
+ requestStream: false,
1069
+ responseType: SuccessResponse,
1070
+ responseStream: false,
1071
+ options: {},
1072
+ },
1073
+ /** Copies the specified text to the user's clipboard */
1074
+ copyToClipboard: {
1075
+ name: "CopyToClipboard",
1076
+ requestType: CopyToClipboardRequest,
1077
+ requestStream: false,
1078
+ responseType: EmptyResponse,
1079
+ responseStream: false,
1080
+ options: {},
1081
+ },
895
1082
  },
896
1083
  } as const;
897
1084
 
@@ -56,9 +56,6 @@ export interface Movement {
56
56
  isFalling: boolean;
57
57
  isStunned: boolean;
58
58
  rotationY: number;
59
- /** interpolation */
60
- isInstant: boolean;
61
- isEmoting: boolean;
62
59
  }
63
60
 
64
61
  export interface MovementCompressed {
@@ -69,7 +66,7 @@ export interface MovementCompressed {
69
66
  }
70
67
 
71
68
  export interface PlayerEmote {
72
- timestamp: number;
69
+ incrementalId: number;
73
70
  urn: string;
74
71
  }
75
72
 
@@ -95,11 +92,6 @@ export interface ProfileResponse {
95
92
  export interface Chat {
96
93
  message: string;
97
94
  timestamp: number;
98
- /**
99
- * Extension: optional forwarded_from to identify the original sender when
100
- * messages are forwarded through an SFU
101
- */
102
- forwardedFrom?: string | undefined;
103
95
  }
104
96
 
105
97
  export interface Scene {
@@ -616,8 +608,6 @@ function createBaseMovement(): Movement {
616
608
  isFalling: false,
617
609
  isStunned: false,
618
610
  rotationY: 0,
619
- isInstant: false,
620
- isEmoting: false,
621
611
  };
622
612
  }
623
613
 
@@ -671,12 +661,6 @@ export namespace Movement {
671
661
  if (message.rotationY !== 0) {
672
662
  writer.uint32(133).float(message.rotationY);
673
663
  }
674
- if (message.isInstant === true) {
675
- writer.uint32(136).bool(message.isInstant);
676
- }
677
- if (message.isEmoting === true) {
678
- writer.uint32(144).bool(message.isEmoting);
679
- }
680
664
  return writer;
681
665
  }
682
666
 
@@ -799,20 +783,6 @@ export namespace Movement {
799
783
 
800
784
  message.rotationY = reader.float();
801
785
  continue;
802
- case 17:
803
- if (tag !== 136) {
804
- break;
805
- }
806
-
807
- message.isInstant = reader.bool();
808
- continue;
809
- case 18:
810
- if (tag !== 144) {
811
- break;
812
- }
813
-
814
- message.isEmoting = reader.bool();
815
- continue;
816
786
  }
817
787
  if ((tag & 7) === 4 || tag === 0) {
818
788
  break;
@@ -840,8 +810,6 @@ export namespace Movement {
840
810
  isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
841
811
  isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
842
812
  rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
843
- isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
844
- isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
845
813
  };
846
814
  }
847
815
 
@@ -863,8 +831,6 @@ export namespace Movement {
863
831
  message.isFalling !== undefined && (obj.isFalling = message.isFalling);
864
832
  message.isStunned !== undefined && (obj.isStunned = message.isStunned);
865
833
  message.rotationY !== undefined && (obj.rotationY = message.rotationY);
866
- message.isInstant !== undefined && (obj.isInstant = message.isInstant);
867
- message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
868
834
  return obj;
869
835
  }
870
836
 
@@ -890,8 +856,6 @@ export namespace Movement {
890
856
  message.isFalling = object.isFalling ?? false;
891
857
  message.isStunned = object.isStunned ?? false;
892
858
  message.rotationY = object.rotationY ?? 0;
893
- message.isInstant = object.isInstant ?? false;
894
- message.isEmoting = object.isEmoting ?? false;
895
859
  return message;
896
860
  }
897
861
  }
@@ -968,13 +932,13 @@ export namespace MovementCompressed {
968
932
  }
969
933
 
970
934
  function createBasePlayerEmote(): PlayerEmote {
971
- return { timestamp: 0, urn: "" };
935
+ return { incrementalId: 0, urn: "" };
972
936
  }
973
937
 
974
938
  export namespace PlayerEmote {
975
939
  export function encode(message: PlayerEmote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
976
- if (message.timestamp !== 0) {
977
- writer.uint32(13).float(message.timestamp);
940
+ if (message.incrementalId !== 0) {
941
+ writer.uint32(8).uint32(message.incrementalId);
978
942
  }
979
943
  if (message.urn !== "") {
980
944
  writer.uint32(18).string(message.urn);
@@ -990,11 +954,11 @@ export namespace PlayerEmote {
990
954
  const tag = reader.uint32();
991
955
  switch (tag >>> 3) {
992
956
  case 1:
993
- if (tag !== 13) {
957
+ if (tag !== 8) {
994
958
  break;
995
959
  }
996
960
 
997
- message.timestamp = reader.float();
961
+ message.incrementalId = reader.uint32();
998
962
  continue;
999
963
  case 2:
1000
964
  if (tag !== 18) {
@@ -1014,14 +978,14 @@ export namespace PlayerEmote {
1014
978
 
1015
979
  export function fromJSON(object: any): PlayerEmote {
1016
980
  return {
1017
- timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
981
+ incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
1018
982
  urn: isSet(object.urn) ? String(object.urn) : "",
1019
983
  };
1020
984
  }
1021
985
 
1022
986
  export function toJSON(message: PlayerEmote): unknown {
1023
987
  const obj: any = {};
1024
- message.timestamp !== undefined && (obj.timestamp = message.timestamp);
988
+ message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
1025
989
  message.urn !== undefined && (obj.urn = message.urn);
1026
990
  return obj;
1027
991
  }
@@ -1032,7 +996,7 @@ export namespace PlayerEmote {
1032
996
 
1033
997
  export function fromPartial<I extends Exact<DeepPartial<PlayerEmote>, I>>(object: I): PlayerEmote {
1034
998
  const message = createBasePlayerEmote();
1035
- message.timestamp = object.timestamp ?? 0;
999
+ message.incrementalId = object.incrementalId ?? 0;
1036
1000
  message.urn = object.urn ?? "";
1037
1001
  return message;
1038
1002
  }
@@ -1310,7 +1274,7 @@ export namespace ProfileResponse {
1310
1274
  }
1311
1275
 
1312
1276
  function createBaseChat(): Chat {
1313
- return { message: "", timestamp: 0, forwardedFrom: undefined };
1277
+ return { message: "", timestamp: 0 };
1314
1278
  }
1315
1279
 
1316
1280
  export namespace Chat {
@@ -1321,9 +1285,6 @@ export namespace Chat {
1321
1285
  if (message.timestamp !== 0) {
1322
1286
  writer.uint32(17).double(message.timestamp);
1323
1287
  }
1324
- if (message.forwardedFrom !== undefined) {
1325
- writer.uint32(26).string(message.forwardedFrom);
1326
- }
1327
1288
  return writer;
1328
1289
  }
1329
1290
 
@@ -1348,13 +1309,6 @@ export namespace Chat {
1348
1309
 
1349
1310
  message.timestamp = reader.double();
1350
1311
  continue;
1351
- case 3:
1352
- if (tag !== 26) {
1353
- break;
1354
- }
1355
-
1356
- message.forwardedFrom = reader.string();
1357
- continue;
1358
1312
  }
1359
1313
  if ((tag & 7) === 4 || tag === 0) {
1360
1314
  break;
@@ -1368,7 +1322,6 @@ export namespace Chat {
1368
1322
  return {
1369
1323
  message: isSet(object.message) ? String(object.message) : "",
1370
1324
  timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1371
- forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
1372
1325
  };
1373
1326
  }
1374
1327
 
@@ -1376,7 +1329,6 @@ export namespace Chat {
1376
1329
  const obj: any = {};
1377
1330
  message.message !== undefined && (obj.message = message.message);
1378
1331
  message.timestamp !== undefined && (obj.timestamp = message.timestamp);
1379
- message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
1380
1332
  return obj;
1381
1333
  }
1382
1334
 
@@ -1388,7 +1340,6 @@ export namespace Chat {
1388
1340
  const message = createBaseChat();
1389
1341
  message.message = object.message ?? "";
1390
1342
  message.timestamp = object.timestamp ?? 0;
1391
- message.forwardedFrom = object.forwardedFrom ?? undefined;
1392
1343
  return message;
1393
1344
  }
1394
1345
  }
@@ -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
  }