@dcl/protocol 1.0.0-19436779782.commit-4853e4c → 1.0.0-19675433701.commit-48bfb23

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 (104) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +10 -0
  8. package/out-js/decentraland/sdk/components/audio_stream.gen.js +45 -2
  9. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  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 +0 -3
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  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 +0 -19
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  29. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  38. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  39. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  41. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  42. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +10 -0
  44. package/out-js/decentraland/sdk/components/video_player.gen.js +40 -1
  45. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
  46. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1368
  47. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
  48. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  49. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  50. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
  51. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +61 -1
  52. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  53. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  54. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  55. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  56. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  57. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  58. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  59. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  60. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  61. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  62. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  63. package/out-ts/decentraland/sdk/components/video_player.gen.ts +59 -1
  64. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
  65. package/package.json +3 -6
  66. package/proto/decentraland/common/texture.proto +1 -8
  67. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
  68. package/proto/decentraland/sdk/components/audio_stream.proto +8 -0
  69. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  70. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  71. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  72. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  73. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  74. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  75. package/proto/decentraland/sdk/components/material.proto +1 -13
  76. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  77. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  78. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  79. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  80. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  81. package/proto/decentraland/sdk/components/video_player.proto +8 -0
  82. package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
  83. package/public/sdk-components.proto +0 -2
  84. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  85. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  86. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  87. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  88. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  89. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  90. package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
  91. package/out-js/decentraland/social_service/errors.gen.js +0 -405
  92. package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
  93. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  94. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  95. package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
  96. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  97. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  98. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  99. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  100. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  101. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  102. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  103. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
  104. package/proto/decentraland/social_service/errors.proto +0 -30
@@ -120,23 +120,11 @@ 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
-
133
123
  export interface TextureUnion {
134
- tex?:
135
- | { $case: "texture"; texture: Texture }
136
- | { $case: "avatarTexture"; avatarTexture: AvatarTexture }
137
- | { $case: "videoTexture"; videoTexture: VideoTexture }
138
- | { $case: "uiTexture"; uiTexture: UiCanvasTexture }
139
- | undefined;
124
+ tex?: { $case: "texture"; texture: Texture } | { $case: "avatarTexture"; avatarTexture: AvatarTexture } | {
125
+ $case: "videoTexture";
126
+ videoTexture: VideoTexture;
127
+ } | undefined;
140
128
  }
141
129
 
142
130
  function createBaseTexture(): Texture {
@@ -427,92 +415,6 @@ export namespace VideoTexture {
427
415
  }
428
416
  }
429
417
 
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
-
516
418
  function createBaseTextureUnion(): TextureUnion {
517
419
  return { tex: undefined };
518
420
  }
@@ -529,9 +431,6 @@ export namespace TextureUnion {
529
431
  case "videoTexture":
530
432
  VideoTexture.encode(message.tex.videoTexture, writer.uint32(26).fork()).ldelim();
531
433
  break;
532
- case "uiTexture":
533
- UiCanvasTexture.encode(message.tex.uiTexture, writer.uint32(34).fork()).ldelim();
534
- break;
535
434
  }
536
435
  return writer;
537
436
  }
@@ -564,13 +463,6 @@ export namespace TextureUnion {
564
463
 
565
464
  message.tex = { $case: "videoTexture", videoTexture: VideoTexture.decode(reader, reader.uint32()) };
566
465
  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;
574
466
  }
575
467
  if ((tag & 7) === 4 || tag === 0) {
576
468
  break;
@@ -588,8 +480,6 @@ export namespace TextureUnion {
588
480
  ? { $case: "avatarTexture", avatarTexture: AvatarTexture.fromJSON(object.avatarTexture) }
589
481
  : isSet(object.videoTexture)
590
482
  ? { $case: "videoTexture", videoTexture: VideoTexture.fromJSON(object.videoTexture) }
591
- : isSet(object.uiTexture)
592
- ? { $case: "uiTexture", uiTexture: UiCanvasTexture.fromJSON(object.uiTexture) }
593
483
  : undefined,
594
484
  };
595
485
  }
@@ -602,8 +492,6 @@ export namespace TextureUnion {
602
492
  (obj.avatarTexture = message.tex?.avatarTexture ? AvatarTexture.toJSON(message.tex?.avatarTexture) : undefined);
603
493
  message.tex?.$case === "videoTexture" &&
604
494
  (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);
607
495
  return obj;
608
496
  }
609
497
 
@@ -630,9 +518,6 @@ export namespace TextureUnion {
630
518
  ) {
631
519
  message.tex = { $case: "videoTexture", videoTexture: VideoTexture.fromPartial(object.tex.videoTexture) };
632
520
  }
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
- }
636
521
  return message;
637
522
  }
638
523
  }
@@ -56,21 +56,6 @@ export interface MovePlayerToResponse {
56
56
  export interface TeleportToResponse {
57
57
  }
58
58
 
59
- export interface SetUiFocusRequest {
60
- elementId: string;
61
- }
62
-
63
- export interface ClearUiFocusRequest {
64
- }
65
-
66
- export interface GetUiFocusRequest {
67
- }
68
-
69
- export interface UiFocusResponse {
70
- /** the element that is/was focussed */
71
- elementId?: string | undefined;
72
- }
73
-
74
59
  export interface CopyToClipboardRequest {
75
60
  text: string;
76
61
  }
@@ -834,206 +819,6 @@ export namespace TeleportToResponse {
834
819
  }
835
820
  }
836
821
 
837
- function createBaseSetUiFocusRequest(): SetUiFocusRequest {
838
- return { elementId: "" };
839
- }
840
-
841
- export namespace SetUiFocusRequest {
842
- export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
843
- if (message.elementId !== "") {
844
- writer.uint32(10).string(message.elementId);
845
- }
846
- return writer;
847
- }
848
-
849
- export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
850
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
851
- let end = length === undefined ? reader.len : reader.pos + length;
852
- const message = createBaseSetUiFocusRequest();
853
- while (reader.pos < end) {
854
- const tag = reader.uint32();
855
- switch (tag >>> 3) {
856
- case 1:
857
- if (tag !== 10) {
858
- break;
859
- }
860
-
861
- message.elementId = reader.string();
862
- continue;
863
- }
864
- if ((tag & 7) === 4 || tag === 0) {
865
- break;
866
- }
867
- reader.skipType(tag & 7);
868
- }
869
- return message;
870
- }
871
-
872
- export function fromJSON(object: any): SetUiFocusRequest {
873
- return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
874
- }
875
-
876
- export function toJSON(message: SetUiFocusRequest): unknown {
877
- const obj: any = {};
878
- message.elementId !== undefined && (obj.elementId = message.elementId);
879
- return obj;
880
- }
881
-
882
- export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
883
- return SetUiFocusRequest.fromPartial(base ?? {});
884
- }
885
-
886
- export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
887
- const message = createBaseSetUiFocusRequest();
888
- message.elementId = object.elementId ?? "";
889
- return message;
890
- }
891
- }
892
-
893
- function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
894
- return {};
895
- }
896
-
897
- export namespace ClearUiFocusRequest {
898
- export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
899
- return writer;
900
- }
901
-
902
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
903
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
904
- let end = length === undefined ? reader.len : reader.pos + length;
905
- const message = createBaseClearUiFocusRequest();
906
- while (reader.pos < end) {
907
- const tag = reader.uint32();
908
- switch (tag >>> 3) {
909
- }
910
- if ((tag & 7) === 4 || tag === 0) {
911
- break;
912
- }
913
- reader.skipType(tag & 7);
914
- }
915
- return message;
916
- }
917
-
918
- export function fromJSON(_: any): ClearUiFocusRequest {
919
- return {};
920
- }
921
-
922
- export function toJSON(_: ClearUiFocusRequest): unknown {
923
- const obj: any = {};
924
- return obj;
925
- }
926
-
927
- export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
928
- return ClearUiFocusRequest.fromPartial(base ?? {});
929
- }
930
-
931
- export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
932
- const message = createBaseClearUiFocusRequest();
933
- return message;
934
- }
935
- }
936
-
937
- function createBaseGetUiFocusRequest(): GetUiFocusRequest {
938
- return {};
939
- }
940
-
941
- export namespace GetUiFocusRequest {
942
- export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
943
- return writer;
944
- }
945
-
946
- export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
947
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
948
- let end = length === undefined ? reader.len : reader.pos + length;
949
- const message = createBaseGetUiFocusRequest();
950
- while (reader.pos < end) {
951
- const tag = reader.uint32();
952
- switch (tag >>> 3) {
953
- }
954
- if ((tag & 7) === 4 || tag === 0) {
955
- break;
956
- }
957
- reader.skipType(tag & 7);
958
- }
959
- return message;
960
- }
961
-
962
- export function fromJSON(_: any): GetUiFocusRequest {
963
- return {};
964
- }
965
-
966
- export function toJSON(_: GetUiFocusRequest): unknown {
967
- const obj: any = {};
968
- return obj;
969
- }
970
-
971
- export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
972
- return GetUiFocusRequest.fromPartial(base ?? {});
973
- }
974
-
975
- export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
976
- const message = createBaseGetUiFocusRequest();
977
- return message;
978
- }
979
- }
980
-
981
- function createBaseUiFocusResponse(): UiFocusResponse {
982
- return { elementId: undefined };
983
- }
984
-
985
- export namespace UiFocusResponse {
986
- export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
987
- if (message.elementId !== undefined) {
988
- writer.uint32(10).string(message.elementId);
989
- }
990
- return writer;
991
- }
992
-
993
- export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
994
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
995
- let end = length === undefined ? reader.len : reader.pos + length;
996
- const message = createBaseUiFocusResponse();
997
- while (reader.pos < end) {
998
- const tag = reader.uint32();
999
- switch (tag >>> 3) {
1000
- case 1:
1001
- if (tag !== 10) {
1002
- break;
1003
- }
1004
-
1005
- message.elementId = reader.string();
1006
- continue;
1007
- }
1008
- if ((tag & 7) === 4 || tag === 0) {
1009
- break;
1010
- }
1011
- reader.skipType(tag & 7);
1012
- }
1013
- return message;
1014
- }
1015
-
1016
- export function fromJSON(object: any): UiFocusResponse {
1017
- return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
1018
- }
1019
-
1020
- export function toJSON(message: UiFocusResponse): unknown {
1021
- const obj: any = {};
1022
- message.elementId !== undefined && (obj.elementId = message.elementId);
1023
- return obj;
1024
- }
1025
-
1026
- export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
1027
- return UiFocusResponse.fromPartial(base ?? {});
1028
- }
1029
-
1030
- export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
1031
- const message = createBaseUiFocusResponse();
1032
- message.elementId = object.elementId ?? undefined;
1033
- return message;
1034
- }
1035
- }
1036
-
1037
822
  function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
1038
823
  return { text: "" };
1039
824
  }
@@ -1216,33 +1001,6 @@ export const RestrictedActionsServiceDefinition = {
1216
1001
  responseStream: false,
1217
1002
  options: {},
1218
1003
  },
1219
- /** Sets the focus to a specific UI element */
1220
- setUiFocus: {
1221
- name: "SetUiFocus",
1222
- requestType: SetUiFocusRequest,
1223
- requestStream: false,
1224
- responseType: UiFocusResponse,
1225
- responseStream: false,
1226
- options: {},
1227
- },
1228
- /** Clears the focus from any currently focused textentry or dropdown */
1229
- clearUiFocus: {
1230
- name: "ClearUiFocus",
1231
- requestType: SetUiFocusRequest,
1232
- requestStream: false,
1233
- responseType: UiFocusResponse,
1234
- responseStream: false,
1235
- options: {},
1236
- },
1237
- /** Returns the element_id of any currently focused textentry or dropdown */
1238
- getUiFocus: {
1239
- name: "GetUiFocus",
1240
- requestType: GetUiFocusRequest,
1241
- requestStream: false,
1242
- responseType: UiFocusResponse,
1243
- responseStream: false,
1244
- options: {},
1245
- },
1246
1004
  /** CopyToClipboard copies the provided text into the clipboard */
1247
1005
  copyToClipboard: {
1248
1006
  name: "CopyToClipboard",
@@ -19,10 +19,31 @@ export interface PBAudioStream {
19
19
  | undefined;
20
20
  /** the audio stream HTTP URL */
21
21
  url: string;
22
+ /**
23
+ * either the audio will be global or spatial (default: false)
24
+ * global: plays the same way for every listener. It is not affected by distance, direction, or position.
25
+ * spatial: changes depending on where the listener is relative to the sound source
26
+ */
27
+ spatial?:
28
+ | boolean
29
+ | undefined;
30
+ /** Within the min distance the audio will cease to grow louder in volume (default: 0) */
31
+ spatialMinDistance?:
32
+ | number
33
+ | undefined;
34
+ /** The distance where sound either becomes inaudible or stops attenuation (default: 60) */
35
+ spatialMaxDistance?: number | undefined;
22
36
  }
23
37
 
24
38
  function createBasePBAudioStream(): PBAudioStream {
25
- return { playing: undefined, volume: undefined, url: "" };
39
+ return {
40
+ playing: undefined,
41
+ volume: undefined,
42
+ url: "",
43
+ spatial: undefined,
44
+ spatialMinDistance: undefined,
45
+ spatialMaxDistance: undefined,
46
+ };
26
47
  }
27
48
 
28
49
  export namespace PBAudioStream {
@@ -36,6 +57,15 @@ export namespace PBAudioStream {
36
57
  if (message.url !== "") {
37
58
  writer.uint32(26).string(message.url);
38
59
  }
60
+ if (message.spatial !== undefined) {
61
+ writer.uint32(32).bool(message.spatial);
62
+ }
63
+ if (message.spatialMinDistance !== undefined) {
64
+ writer.uint32(45).float(message.spatialMinDistance);
65
+ }
66
+ if (message.spatialMaxDistance !== undefined) {
67
+ writer.uint32(53).float(message.spatialMaxDistance);
68
+ }
39
69
  return writer;
40
70
  }
41
71
 
@@ -67,6 +97,27 @@ export namespace PBAudioStream {
67
97
 
68
98
  message.url = reader.string();
69
99
  continue;
100
+ case 4:
101
+ if (tag !== 32) {
102
+ break;
103
+ }
104
+
105
+ message.spatial = reader.bool();
106
+ continue;
107
+ case 5:
108
+ if (tag !== 45) {
109
+ break;
110
+ }
111
+
112
+ message.spatialMinDistance = reader.float();
113
+ continue;
114
+ case 6:
115
+ if (tag !== 53) {
116
+ break;
117
+ }
118
+
119
+ message.spatialMaxDistance = reader.float();
120
+ continue;
70
121
  }
71
122
  if ((tag & 7) === 4 || tag === 0) {
72
123
  break;
@@ -81,6 +132,9 @@ export namespace PBAudioStream {
81
132
  playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
82
133
  volume: isSet(object.volume) ? Number(object.volume) : undefined,
83
134
  url: isSet(object.url) ? String(object.url) : "",
135
+ spatial: isSet(object.spatial) ? Boolean(object.spatial) : undefined,
136
+ spatialMinDistance: isSet(object.spatialMinDistance) ? Number(object.spatialMinDistance) : undefined,
137
+ spatialMaxDistance: isSet(object.spatialMaxDistance) ? Number(object.spatialMaxDistance) : undefined,
84
138
  };
85
139
  }
86
140
 
@@ -89,6 +143,9 @@ export namespace PBAudioStream {
89
143
  message.playing !== undefined && (obj.playing = message.playing);
90
144
  message.volume !== undefined && (obj.volume = message.volume);
91
145
  message.url !== undefined && (obj.url = message.url);
146
+ message.spatial !== undefined && (obj.spatial = message.spatial);
147
+ message.spatialMinDistance !== undefined && (obj.spatialMinDistance = message.spatialMinDistance);
148
+ message.spatialMaxDistance !== undefined && (obj.spatialMaxDistance = message.spatialMaxDistance);
92
149
  return obj;
93
150
  }
94
151
 
@@ -101,6 +158,9 @@ export namespace PBAudioStream {
101
158
  message.playing = object.playing ?? undefined;
102
159
  message.volume = object.volume ?? undefined;
103
160
  message.url = object.url ?? "";
161
+ message.spatial = object.spatial ?? undefined;
162
+ message.spatialMinDistance = object.spatialMinDistance ?? undefined;
163
+ message.spatialMaxDistance = object.spatialMaxDistance ?? undefined;
104
164
  return message;
105
165
  }
106
166
  }
@@ -11,12 +11,10 @@ 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[];
16
14
  }
17
15
 
18
16
  function createBasePBAvatarEquippedData(): PBAvatarEquippedData {
19
- return { wearableUrns: [], emoteUrns: [], forceRender: [] };
17
+ return { wearableUrns: [], emoteUrns: [] };
20
18
  }
21
19
 
22
20
  export namespace PBAvatarEquippedData {
@@ -27,9 +25,6 @@ export namespace PBAvatarEquippedData {
27
25
  for (const v of message.emoteUrns) {
28
26
  writer.uint32(18).string(v!);
29
27
  }
30
- for (const v of message.forceRender) {
31
- writer.uint32(26).string(v!);
32
- }
33
28
  return writer;
34
29
  }
35
30
 
@@ -54,13 +49,6 @@ export namespace PBAvatarEquippedData {
54
49
 
55
50
  message.emoteUrns.push(reader.string());
56
51
  continue;
57
- case 3:
58
- if (tag !== 26) {
59
- break;
60
- }
61
-
62
- message.forceRender.push(reader.string());
63
- continue;
64
52
  }
65
53
  if ((tag & 7) === 4 || tag === 0) {
66
54
  break;
@@ -74,7 +62,6 @@ export namespace PBAvatarEquippedData {
74
62
  return {
75
63
  wearableUrns: Array.isArray(object?.wearableUrns) ? object.wearableUrns.map((e: any) => String(e)) : [],
76
64
  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)) : [],
78
65
  };
79
66
  }
80
67
 
@@ -90,11 +77,6 @@ export namespace PBAvatarEquippedData {
90
77
  } else {
91
78
  obj.emoteUrns = [];
92
79
  }
93
- if (message.forceRender) {
94
- obj.forceRender = message.forceRender.map((e) => e);
95
- } else {
96
- obj.forceRender = [];
97
- }
98
80
  return obj;
99
81
  }
100
82
 
@@ -106,7 +88,6 @@ export namespace PBAvatarEquippedData {
106
88
  const message = createBasePBAvatarEquippedData();
107
89
  message.wearableUrns = object.wearableUrns?.map((e) => e) || [];
108
90
  message.emoteUrns = object.emoteUrns?.map((e) => e) || [];
109
- message.forceRender = object.forceRender?.map((e) => e) || [];
110
91
  return message;
111
92
  }
112
93
  }