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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +24 -115
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +112 -392
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +9 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +40 -4
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -2
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +0 -2
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +3 -1
  23. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +8 -1
  24. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  26. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  27. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  29. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
  30. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
  32. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +16 -4
  33. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  35. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  36. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  38. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  39. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  41. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  42. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  44. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  45. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  47. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  48. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +0 -2
  50. package/out-js/decentraland/sdk/components/text_shape.gen.js +1 -14
  51. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +0 -2
  53. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +1 -14
  54. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -6
  56. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -40
  57. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -2
  59. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -14
  60. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  62. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  63. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  64. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  65. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +129 -418
  66. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +52 -2
  67. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  68. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
  69. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  70. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
  71. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +8 -1
  72. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  73. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  74. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +22 -4
  75. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  76. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  77. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  78. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  79. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  80. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +1 -19
  81. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +1 -19
  82. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -55
  83. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -19
  84. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  85. package/package.json +2 -2
  86. package/proto/decentraland/common/texture.proto +1 -8
  87. package/proto/decentraland/kernel/apis/restricted_actions.proto +12 -44
  88. package/proto/decentraland/kernel/comms/rfc4/comms.proto +9 -0
  89. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  90. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
  91. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  92. package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
  93. package/proto/decentraland/sdk/components/common/explorer_ui.proto +2 -1
  94. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  95. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  96. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +5 -3
  97. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  98. package/proto/decentraland/sdk/components/material.proto +1 -13
  99. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  100. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  101. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  102. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  103. package/proto/decentraland/sdk/components/text_shape.proto +0 -1
  104. package/proto/decentraland/sdk/components/ui_dropdown.proto +0 -1
  105. package/proto/decentraland/sdk/components/ui_input.proto +0 -3
  106. package/proto/decentraland/sdk/components/ui_text.proto +0 -1
  107. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  108. package/public/sdk-components.proto +1 -10
  109. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
  110. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
  111. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  112. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
  113. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
  114. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  115. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
  116. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
  117. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  118. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
  119. package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
  120. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
  121. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
  122. package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
  123. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
  124. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
  125. package/out-js/decentraland/sdk/components/global_light.gen.js +0 -103
  126. package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
  127. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  128. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  129. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  130. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  131. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  132. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  133. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  134. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  135. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  136. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
  137. package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
  138. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
  139. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
  140. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
  141. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
  142. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
  143. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
  144. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
  145. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
  146. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
  147. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
  148. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
  149. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
  150. package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
  151. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  152. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  153. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  154. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
  155. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
  156. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
  157. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
  158. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
  159. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  160. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  161. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  162. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  163. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  164. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  165. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  166. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package decentraland.sdk.components.common;
3
3
 
4
- // Identifies which fullscreen explorer panel OpenExplorerUi targets.
4
+ // Identifies which explorer panel OpenExplorerUi targets. Panels are not all fullscreen.
5
5
  // EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
6
6
  enum ExplorerUi {
7
7
  EU_SETTINGS = 0;
@@ -11,4 +11,5 @@ enum ExplorerUi {
11
11
  EU_COMMUNITIES = 4;
12
12
  EU_PLACES = 5;
13
13
  EU_EVENTS = 6;
14
+ EU_ITEM_PURCHASE = 7; // the item-purchase confirmation modal; see OpenExplorerUi for its parameters and result component
14
15
  }
@@ -29,9 +29,6 @@ enum PointerEventType {
29
29
  PET_HOVER_LEAVE = 3;
30
30
  PET_PROXIMITY_ENTER = 4;
31
31
  PET_PROXIMITY_LEAVE = 5;
32
- PET_DRAG_LOCKED = 6;
33
- PET_DRAG = 7;
34
- PET_DRAG_END = 8;
35
32
  }
36
33
 
37
34
  enum InteractionType {
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+
6
+ option (common.ecs_component_id) = 1222;
7
+
8
+ // Grow-only value set appended to the scene root entity.
9
+ // Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
10
+ message PBExplorerItemPurchaseResult {
11
+ message Purchased {}
12
+ message Dismissed {}
13
+ message Failed {}
14
+
15
+ string urn = 1;
16
+ uint32 timestamp = 2; // The scene tick when the event occurred
17
+ uint32 request_id = 3; // The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none
18
+
19
+ oneof status {
20
+ Purchased purchased = 10;
21
+ Dismissed dismissed = 11;
22
+ Failed failed = 12;
23
+ }
24
+ }
@@ -6,18 +6,20 @@ import "decentraland/sdk/components/common/explorer_ui.proto";
6
6
 
7
7
  option (common.ecs_component_id) = 1220;
8
8
 
9
- // PBExplorerUiEventsResult transports the lifecycle events of fullscreen explorer panels — a panel was
9
+ // PBExplorerUiEventsResult transports the lifecycle events of explorer UI panels — a panel was
10
10
  // opened, a panel was closed. It is a grow only value set appended to the scene root entity, so every
11
11
  // event of a tick is delivered and none overwrites another.
12
12
  message PBExplorerUiEventsResult {
13
- // Emitted when a fullscreen explorer panel is opened.
13
+ // Emitted when an explorer panel is opened. The OpenExplorerUi response carries the same fact,
14
+ // but it reaches only the caller; this channel is scene wide.
14
15
  message UiOpened {}
15
16
 
16
- // Emitted when a fullscreen explorer panel is closed.
17
+ // Emitted when an explorer panel is closed.
17
18
  message UiClosed {}
18
19
 
19
20
  decentraland.sdk.components.common.ExplorerUi ui = 1; // The panel that the event refers to
20
21
  uint32 timestamp = 2; // The scene tick when the event occurred
22
+ uint32 request_id = 3; // The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none
21
23
 
22
24
  // Extension point, deliberately narrow: a variant belongs here only if it is meaningful for every
23
25
  // value of `ui`, because `ui` and `event` are independent axes and every combination of the two is
@@ -10,17 +10,4 @@ import "decentraland/sdk/components/common/loading_state.proto";
10
10
  // the current state of the GltfContainer of an entity.
11
11
  message PBGltfContainerLoadingState {
12
12
  common.LoadingState current_state = 1;
13
- repeated string node_paths = 2; // all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents
14
- repeated string mesh_names = 3; // all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY`
15
- // where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
16
- // conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
17
- repeated string material_names = 4; // all materials in the gltf. unnamed materials will be auto-assigned a name of the form `MaterialX` where
18
- // X is the material index. note this may conflict with manually named materials - to avoid any issues make
19
- // sure all your materials are explicitly named.
20
- repeated string skin_names = 5; // all mesh skins in the gltf. unnamed skins will be auto-assigned a name of the form `SkinX` where
21
- // X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
22
- // your skins are explicitly named.
23
- repeated string animation_names = 6; // all animations in the gltf. unnamed animations will be auto-assigned a name of the form `AnimationX` where
24
- // X is the animation index. note this may conflict with manually named anims - to avoid any issues make sure all
25
- // your animations are explicitly named.
26
13
  }
@@ -54,16 +54,4 @@ message PBMaterial {
54
54
  UnlitMaterial unlit = 1;
55
55
  PbrMaterial pbr = 2;
56
56
  }
57
-
58
- message GltfMaterial {
59
- string gltf_src = 1;
60
- string name = 2;
61
- }
62
-
63
- // A gltf material that may provide additional features not supported by the PbMaterial fields.
64
- // If both gltf and material fields are provided, the gltf will be used only for extended features not
65
- // supported by the PbMaterial.
66
- // If this is provided and the `material` field is not provided, the renderer will update the material
67
- // field with data that reflects the gltf material once it is loaded.
68
- optional GltfMaterial gltf = 3;
69
- }
57
+ }
@@ -30,12 +30,6 @@ message PBMeshCollider {
30
30
  // SphereMesh is a sphere shape that contains the Entity.
31
31
  message SphereMesh {}
32
32
 
33
- // A collider constructed from a Gltf Mesh.
34
- message GltfMesh {
35
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
36
- string name = 2; // the name of the mesh asset
37
- }
38
-
39
33
  optional uint32 collision_mask = 1; // enabled ColliderLayers (default CL_POINTER | CL_PHYSICS)
40
34
 
41
35
  oneof mesh {
@@ -43,7 +37,6 @@ message PBMeshCollider {
43
37
  SphereMesh sphere = 3;
44
38
  CylinderMesh cylinder = 4;
45
39
  PlaneMesh plane = 5;
46
- GltfMesh gltf = 6;
47
40
  }
48
41
  }
49
42
 
@@ -5,11 +5,13 @@ import "decentraland/sdk/components/common/id.proto";
5
5
  option (common.ecs_component_id) = 1018;
6
6
 
7
7
  // The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
8
- // plane, a sphere, a cylinder, or a Gltf mesh.
8
+ // plane, a sphere or a cylinder.
9
9
  //
10
10
  // The cube and plane variants can include a UV texture mapping, so specific areas of a material
11
11
  // texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
12
12
  // `float` coordinates, one for each corner of each side of each face.
13
+ //
14
+ // More complex shapes require the use of a `GltfContainer` component.
13
15
  message PBMeshRenderer {
14
16
 
15
17
  // BoxMesh renders a prism shape.
@@ -32,17 +34,10 @@ message PBMeshRenderer {
32
34
  message SphereMesh {
33
35
  }
34
36
 
35
- // A mesh from a Gltf.
36
- message GltfMesh {
37
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
38
- string name = 2; // the name of the mesh asset
39
- }
40
-
41
37
  oneof mesh {
42
38
  BoxMesh box = 1;
43
39
  SphereMesh sphere = 2;
44
40
  CylinderMesh cylinder = 3;
45
41
  PlaneMesh plane = 4;
46
- GltfMesh gltf = 5;
47
42
  }
48
43
  }
@@ -28,8 +28,6 @@ message PBPrimaryPointerInfo {
28
28
  optional PointerType pointer_type = 1; // The type of input device being used
29
29
  optional decentraland.common.Vector2 screen_coordinates = 2; // Current position in screen space (pixels)
30
30
  optional decentraland.common.Vector2 screen_delta = 3; // Movement since last frame (pixels)
31
- // ray direction that can be used with the primary camera origin for
32
- // raycasting from the cursor into the world
33
31
  optional decentraland.common.Vector3 world_ray_direction = 4; // Direction vector for 3D ray casting
34
32
  }
35
33
 
@@ -38,7 +36,4 @@ message PBPrimaryPointerInfo {
38
36
  enum PointerType {
39
37
  POT_NONE = 0; // No pointer input
40
38
  POT_MOUSE = 1; // Traditional mouse input
41
- POT_PAD = 2;
42
- POT_TOUCH = 3;
43
- POT_WAND = 4;
44
39
  }
@@ -45,12 +45,6 @@ message PBRaycast {
45
45
 
46
46
  // Collision mask, by default CL_POINTER | CL_PHYSICS
47
47
  optional uint32 collision_mask = 9;
48
-
49
- // shape to cast, default ray
50
- optional RaycastShape shape = 11;
51
-
52
- // include hits with entities from other scenes
53
- optional bool include_world = 12;
54
48
  }
55
49
 
56
50
  // RaycastQueryType indicates whether the ray should stop on the first collition, or continue.
@@ -62,10 +56,3 @@ enum RaycastQueryType {
62
56
  // Do not perform the raycast, only set the raycast result with empty hits
63
57
  RQT_NONE = 2;
64
58
  }
65
-
66
- enum RaycastShape {
67
- // cast a point, get collisions along a ray
68
- RS_RAY = 0;
69
- // cast the avatar collider shape, get collisions from sweeping the shape
70
- RS_AVATAR = 1;
71
- }
@@ -42,5 +42,4 @@ message PBTextShape {
42
42
  optional decentraland.common.Color3 shadow_color = 19; // drop shadow color (default [1.0, 1.0, 1.0])
43
43
  optional decentraland.common.Color3 outline_color = 20; // outline stroke color (default [1.0, 1.0, 1.0])
44
44
  optional decentraland.common.Color4 text_color = 21; // text color (default [1.0, 1.0, 1.0])
45
- optional string font_src = 22; // a font file in the scene, or a Google Fonts family name; `font` is the fallback (default: unset)
46
45
  }
@@ -19,5 +19,4 @@ message PBUiDropdown {
19
19
  optional common.TextAlignMode text_align = 10; // default='center'
20
20
  optional common.Font font = 11; // default=0
21
21
  optional int32 font_size = 12; // default=10
22
- optional string font_src = 13; // a font file in the scene, or a Google Fonts family name; `font` is the fallback (default: unset)
23
22
  }
@@ -17,7 +17,4 @@ message PBUiInput {
17
17
  optional common.Font font = 11; // default=0
18
18
  optional int32 font_size = 12; // default=10
19
19
  optional string value = 13;
20
- optional bool multi_line = 14; // default=false; when true, the input accepts newlines and behaves as a textarea
21
- optional bool clear_on_submit = 15; // default=true; when false, the input value is preserved after pressing Enter
22
- optional string font_src = 16; // a font file in the scene, or a Google Fonts family name; `font` is the fallback (default: unset)
23
20
  }
@@ -23,5 +23,4 @@ message PBUiText {
23
23
  optional common.Font font = 4; // font for the text (default: sans-serif)
24
24
  optional int32 font_size = 5; // size of the text (default: 10)
25
25
  optional TextWrap text_wrap = 6; // wrap text when the border is reached (default: TW_WRAP)
26
- optional string font_src = 9; // a font file in the scene, or a Google Fonts family name; `font` is the fallback (default: unset)
27
26
  }
@@ -4,7 +4,6 @@ package decentraland.sdk.components;
4
4
 
5
5
  import "decentraland/sdk/components/common/id.proto";
6
6
  import "decentraland/common/colors.proto";
7
- import "decentraland/common/vectors.proto";
8
7
 
9
8
  option (common.ecs_component_id) = 1050;
10
9
 
@@ -81,20 +80,6 @@ enum PointerFilterMode {
81
80
  PFM_BLOCK = 1;
82
81
  }
83
82
 
84
- enum ShowScrollBar {
85
- SSB_BOTH = 0;
86
- SSB_ONLY_VERTICAL = 1;
87
- SSB_ONLY_HORIZONTAL = 2;
88
- SSB_HIDDEN = 3;
89
- }
90
-
91
- message ScrollPositionValue {
92
- oneof value {
93
- decentraland.common.Vector2 position = 1;
94
- string reference = 2;
95
- }
96
- }
97
-
98
83
  message PBUiTransform {
99
84
  int32 parent = 1;
100
85
  int32 right_of = 2;
@@ -189,10 +174,5 @@ message PBUiTransform {
189
174
  optional decentraland.common.Color4 border_right_color = 72;
190
175
 
191
176
  optional float opacity = 73; // default: 1
192
-
193
- optional string element_id = 74; // reference for scroll_position. default empty
194
- optional ScrollPositionValue scroll_position = 75; // default position=(0,0)
195
- optional ShowScrollBar scroll_visible = 76; // default ShowScrollBar.SSB_BOTH
196
-
197
177
  optional int32 z_index = 77; // default: 0 — controls render stacking order. Higher values appear in front of lower values.
198
178
  }
@@ -9,23 +9,17 @@ import public "decentraland/sdk/components/avatar_base.proto";
9
9
  import public "decentraland/sdk/components/avatar_emote_command.proto";
10
10
  import public "decentraland/sdk/components/avatar_equipped_data.proto";
11
11
  import public "decentraland/sdk/components/avatar_modifier_area.proto";
12
- import public "decentraland/sdk/components/avatar_movement.proto";
13
- import public "decentraland/sdk/components/avatar_movement_info.proto";
14
12
  import public "decentraland/sdk/components/avatar_nametag.proto";
15
13
  import public "decentraland/sdk/components/avatar_shape.proto";
16
14
  import public "decentraland/sdk/components/billboard.proto";
17
- import public "decentraland/sdk/components/camera_layer.proto";
18
- import public "decentraland/sdk/components/camera_layers.proto";
19
15
  import public "decentraland/sdk/components/camera_mode_area.proto";
20
16
  import public "decentraland/sdk/components/camera_mode.proto";
21
17
  import public "decentraland/sdk/components/engine_info.proto";
18
+ import public "decentraland/sdk/components/explorer_item_purchase_result.proto";
22
19
  import public "decentraland/sdk/components/explorer_ui_events_result.proto";
23
- import public "decentraland/sdk/components/global_light.proto";
24
20
  import public "decentraland/sdk/components/gltf_container.proto";
25
21
  import public "decentraland/sdk/components/gltf_node_modifiers.proto";
26
22
  import public "decentraland/sdk/components/gltf_container_loading_state.proto";
27
- import public "decentraland/sdk/components/gltf_node.proto";
28
- import public "decentraland/sdk/components/gltf_node_state.proto";
29
23
  import public "decentraland/sdk/components/material.proto";
30
24
  import public "decentraland/sdk/components/mesh_collider.proto";
31
25
  import public "decentraland/sdk/components/mesh_renderer.proto";
@@ -38,19 +32,16 @@ import public "decentraland/sdk/components/raycast_result.proto";
38
32
  import public "decentraland/sdk/components/raycast.proto";
39
33
  import public "decentraland/sdk/components/realm_info.proto";
40
34
  import public "decentraland/sdk/components/text_shape.proto";
41
- import public "decentraland/sdk/components/texture_camera.proto";
42
35
  import public "decentraland/sdk/components/touch_screen_controls.proto";
43
36
  import public "decentraland/sdk/components/tween.proto";
44
37
  import public "decentraland/sdk/components/tween_state.proto";
45
38
  import public "decentraland/sdk/components/tween_sequence.proto";
46
39
  import public "decentraland/sdk/components/ui_background.proto";
47
- import public "decentraland/sdk/components/ui_canvas.proto";
48
40
  import public "decentraland/sdk/components/ui_dropdown_result.proto";
49
41
  import public "decentraland/sdk/components/ui_dropdown.proto";
50
42
  import public "decentraland/sdk/components/ui_input_result.proto";
51
43
  import public "decentraland/sdk/components/ui_input.proto";
52
44
  import public "decentraland/sdk/components/ui_input_binding.proto";
53
- import public "decentraland/sdk/components/ui_scroll_result.proto";
54
45
  import public "decentraland/sdk/components/ui_text.proto";
55
46
  import public "decentraland/sdk/components/ui_transform.proto";
56
47
  import public "decentraland/sdk/components/video_player.proto";
@@ -1,51 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- /**
4
- * The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
5
- * as the avatar movement speed, jump height etc.
6
- */
7
- export interface PBAvatarLocomotionSettings {
8
- /** Maximum speed when walking (in meters per second) */
9
- walkSpeed?: number | undefined;
10
- /** Maximum speed when jogging (in meters per second) */
11
- jogSpeed?: number | undefined;
12
- /** Maximum speed when running (in meters per second) */
13
- runSpeed?: number | undefined;
14
- /** Height of a regular jump (in meters) */
15
- jumpHeight?: number | undefined;
16
- /** Height of a jump while running (in meters) */
17
- runJumpHeight?: number | undefined;
18
- /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
19
- hardLandingCooldown?: number | undefined;
20
- /** Height of the double jump (in meters) */
21
- doubleJumpHeight?: number | undefined;
22
- /** Maximum speed when gliding (in meters per second) */
23
- glidingSpeed?: number | undefined;
24
- /** Maximum falling speed when gliding (in meters per second) */
25
- glidingFallingSpeed?: number | undefined;
26
- }
27
- export declare namespace PBAvatarLocomotionSettings {
28
- function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
29
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
30
- function fromJSON(object: any): PBAvatarLocomotionSettings;
31
- function toJSON(message: PBAvatarLocomotionSettings): unknown;
32
- function create<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(base?: I): PBAvatarLocomotionSettings;
33
- function fromPartial<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(object: I): PBAvatarLocomotionSettings;
34
- }
35
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
36
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
37
- $case: string;
38
- } ? {
39
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
40
- } & {
41
- $case: T["$case"];
42
- } : T extends {} ? {
43
- [K in keyof T]?: DeepPartial<T[K]>;
44
- } : Partial<T>;
45
- type KeysOfUnion<T> = T extends T ? keyof T : never;
46
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
47
- [K in keyof P]: Exact<P[K], I[K]>;
48
- } & {
49
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
50
- };
51
- export {};
@@ -1,177 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBAvatarLocomotionSettings = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- exports.protobufPackage = "decentraland.sdk.components";
10
- function createBasePBAvatarLocomotionSettings() {
11
- return {
12
- walkSpeed: undefined,
13
- jogSpeed: undefined,
14
- runSpeed: undefined,
15
- jumpHeight: undefined,
16
- runJumpHeight: undefined,
17
- hardLandingCooldown: undefined,
18
- doubleJumpHeight: undefined,
19
- glidingSpeed: undefined,
20
- glidingFallingSpeed: undefined,
21
- };
22
- }
23
- var PBAvatarLocomotionSettings;
24
- (function (PBAvatarLocomotionSettings) {
25
- function encode(message, writer = minimal_1.default.Writer.create()) {
26
- if (message.walkSpeed !== undefined) {
27
- writer.uint32(13).float(message.walkSpeed);
28
- }
29
- if (message.jogSpeed !== undefined) {
30
- writer.uint32(21).float(message.jogSpeed);
31
- }
32
- if (message.runSpeed !== undefined) {
33
- writer.uint32(29).float(message.runSpeed);
34
- }
35
- if (message.jumpHeight !== undefined) {
36
- writer.uint32(37).float(message.jumpHeight);
37
- }
38
- if (message.runJumpHeight !== undefined) {
39
- writer.uint32(45).float(message.runJumpHeight);
40
- }
41
- if (message.hardLandingCooldown !== undefined) {
42
- writer.uint32(53).float(message.hardLandingCooldown);
43
- }
44
- if (message.doubleJumpHeight !== undefined) {
45
- writer.uint32(61).float(message.doubleJumpHeight);
46
- }
47
- if (message.glidingSpeed !== undefined) {
48
- writer.uint32(69).float(message.glidingSpeed);
49
- }
50
- if (message.glidingFallingSpeed !== undefined) {
51
- writer.uint32(77).float(message.glidingFallingSpeed);
52
- }
53
- return writer;
54
- }
55
- PBAvatarLocomotionSettings.encode = encode;
56
- function decode(input, length) {
57
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
58
- let end = length === undefined ? reader.len : reader.pos + length;
59
- const message = createBasePBAvatarLocomotionSettings();
60
- while (reader.pos < end) {
61
- const tag = reader.uint32();
62
- switch (tag >>> 3) {
63
- case 1:
64
- if (tag !== 13) {
65
- break;
66
- }
67
- message.walkSpeed = reader.float();
68
- continue;
69
- case 2:
70
- if (tag !== 21) {
71
- break;
72
- }
73
- message.jogSpeed = reader.float();
74
- continue;
75
- case 3:
76
- if (tag !== 29) {
77
- break;
78
- }
79
- message.runSpeed = reader.float();
80
- continue;
81
- case 4:
82
- if (tag !== 37) {
83
- break;
84
- }
85
- message.jumpHeight = reader.float();
86
- continue;
87
- case 5:
88
- if (tag !== 45) {
89
- break;
90
- }
91
- message.runJumpHeight = reader.float();
92
- continue;
93
- case 6:
94
- if (tag !== 53) {
95
- break;
96
- }
97
- message.hardLandingCooldown = reader.float();
98
- continue;
99
- case 7:
100
- if (tag !== 61) {
101
- break;
102
- }
103
- message.doubleJumpHeight = reader.float();
104
- continue;
105
- case 8:
106
- if (tag !== 69) {
107
- break;
108
- }
109
- message.glidingSpeed = reader.float();
110
- continue;
111
- case 9:
112
- if (tag !== 77) {
113
- break;
114
- }
115
- message.glidingFallingSpeed = reader.float();
116
- continue;
117
- }
118
- if ((tag & 7) === 4 || tag === 0) {
119
- break;
120
- }
121
- reader.skipType(tag & 7);
122
- }
123
- return message;
124
- }
125
- PBAvatarLocomotionSettings.decode = decode;
126
- function fromJSON(object) {
127
- return {
128
- walkSpeed: isSet(object.walkSpeed) ? Number(object.walkSpeed) : undefined,
129
- jogSpeed: isSet(object.jogSpeed) ? Number(object.jogSpeed) : undefined,
130
- runSpeed: isSet(object.runSpeed) ? Number(object.runSpeed) : undefined,
131
- jumpHeight: isSet(object.jumpHeight) ? Number(object.jumpHeight) : undefined,
132
- runJumpHeight: isSet(object.runJumpHeight) ? Number(object.runJumpHeight) : undefined,
133
- hardLandingCooldown: isSet(object.hardLandingCooldown) ? Number(object.hardLandingCooldown) : undefined,
134
- doubleJumpHeight: isSet(object.doubleJumpHeight) ? Number(object.doubleJumpHeight) : undefined,
135
- glidingSpeed: isSet(object.glidingSpeed) ? Number(object.glidingSpeed) : undefined,
136
- glidingFallingSpeed: isSet(object.glidingFallingSpeed) ? Number(object.glidingFallingSpeed) : undefined,
137
- };
138
- }
139
- PBAvatarLocomotionSettings.fromJSON = fromJSON;
140
- function toJSON(message) {
141
- const obj = {};
142
- message.walkSpeed !== undefined && (obj.walkSpeed = message.walkSpeed);
143
- message.jogSpeed !== undefined && (obj.jogSpeed = message.jogSpeed);
144
- message.runSpeed !== undefined && (obj.runSpeed = message.runSpeed);
145
- message.jumpHeight !== undefined && (obj.jumpHeight = message.jumpHeight);
146
- message.runJumpHeight !== undefined && (obj.runJumpHeight = message.runJumpHeight);
147
- message.hardLandingCooldown !== undefined && (obj.hardLandingCooldown = message.hardLandingCooldown);
148
- message.doubleJumpHeight !== undefined && (obj.doubleJumpHeight = message.doubleJumpHeight);
149
- message.glidingSpeed !== undefined && (obj.glidingSpeed = message.glidingSpeed);
150
- message.glidingFallingSpeed !== undefined && (obj.glidingFallingSpeed = message.glidingFallingSpeed);
151
- return obj;
152
- }
153
- PBAvatarLocomotionSettings.toJSON = toJSON;
154
- function create(base) {
155
- return PBAvatarLocomotionSettings.fromPartial(base !== null && base !== void 0 ? base : {});
156
- }
157
- PBAvatarLocomotionSettings.create = create;
158
- function fromPartial(object) {
159
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
160
- const message = createBasePBAvatarLocomotionSettings();
161
- message.walkSpeed = (_a = object.walkSpeed) !== null && _a !== void 0 ? _a : undefined;
162
- message.jogSpeed = (_b = object.jogSpeed) !== null && _b !== void 0 ? _b : undefined;
163
- message.runSpeed = (_c = object.runSpeed) !== null && _c !== void 0 ? _c : undefined;
164
- message.jumpHeight = (_d = object.jumpHeight) !== null && _d !== void 0 ? _d : undefined;
165
- message.runJumpHeight = (_e = object.runJumpHeight) !== null && _e !== void 0 ? _e : undefined;
166
- message.hardLandingCooldown = (_f = object.hardLandingCooldown) !== null && _f !== void 0 ? _f : undefined;
167
- message.doubleJumpHeight = (_g = object.doubleJumpHeight) !== null && _g !== void 0 ? _g : undefined;
168
- message.glidingSpeed = (_h = object.glidingSpeed) !== null && _h !== void 0 ? _h : undefined;
169
- message.glidingFallingSpeed = (_j = object.glidingFallingSpeed) !== null && _j !== void 0 ? _j : undefined;
170
- return message;
171
- }
172
- PBAvatarLocomotionSettings.fromPartial = fromPartial;
173
- })(PBAvatarLocomotionSettings || (exports.PBAvatarLocomotionSettings = PBAvatarLocomotionSettings = {}));
174
- function isSet(value) {
175
- return value !== null && value !== undefined;
176
- }
177
- //# sourceMappingURL=avatar_locomotion_settings.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_locomotion_settings.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA2C7D,SAAS,oCAAoC;IAC3C,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,mBAAmB,EAAE,SAAS;QAC9B,gBAAgB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KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,71 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Vector3 } from "../../common/vectors.gen";
3
- export declare const protobufPackage = "decentraland.sdk.components";
4
- export interface PBAvatarMovement {
5
- velocity: Vector3 | undefined;
6
- /** 0-360, yaw only; this is the authoritative facing (other clients read it, and physics treats the avatar as upright). Lean is expressed separately via tilt_pitch/tilt_roll. */
7
- orientation: number;
8
- groundDirection?: Vector3 | undefined;
9
- /** set for one frame when a walk_target ends: true = reached target, false = failed; absent = in progress or no walk */
10
- walkSuccess?: boolean | undefined;
11
- /** if set, the engine plays this animation instead of selecting one from velocity heuristics */
12
- animation?: MovementAnimation | undefined;
13
- /** render-only forward/back lean in degrees, applied on top of `orientation` (rotation about the avatar's local X axis). Does not affect the physics capsule (stays upright) or the facing other clients read. Defaults to 0. */
14
- tiltPitch?: number | undefined;
15
- /** render-only sideways lean in degrees, applied on top of `orientation` (rotation about the avatar's local Z axis). Same constraints as tilt_pitch. Useful e.g. for glider banking. Defaults to 0. */
16
- tiltRoll?: number | undefined;
17
- }
18
- /**
19
- * Describes the animation the movement scene wants the avatar to play.
20
- * One GLB = one clip (following the scene-emote convention: single clip, or a clip named with `_Avatar` suffix).
21
- * When absent the engine falls back to its built-in velocity-based selection (walk/run/jump/idle).
22
- */
23
- export interface MovementAnimation {
24
- /** scene-relative path to the gltf/glb asset (resolved via the scene content map) */
25
- src: string;
26
- /** whether the clip repeats once it reaches the end */
27
- loop: boolean;
28
- /** playback speed multiplier (1.0 = clip's native rate) */
29
- speed: number;
30
- /** true: a triggerSceneEmote may take over; false: emotes are suppressed while this animation plays */
31
- idle: boolean;
32
- /** cross-fade duration when `src` changes; defaults to 0.2 when unset. Not applied to loop/speed/idle changes. */
33
- transitionSeconds?: number | undefined;
34
- /** if set, the engine seeks to this position (in seconds) this frame. Clear on subsequent frames to allow normal playback. The scene can read `AvatarAnimationState.playback_time` first to decide. */
35
- playbackTime?: number | undefined;
36
- /** scene-relative paths to audio clips (.mp3/.ogg) to play this frame on the avatar audio bus. Fire-and-forget: each listed clip plays once per frame it appears; leaving a clip set for multiple frames re-triggers it. No stop mechanism. Use `AvatarAnimationState.playback_time` to trigger sounds at the right point in the clip (e.g. foot plants). */
37
- sounds: string[];
38
- }
39
- export declare namespace PBAvatarMovement {
40
- function encode(message: PBAvatarMovement, writer?: _m0.Writer): _m0.Writer;
41
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovement;
42
- function fromJSON(object: any): PBAvatarMovement;
43
- function toJSON(message: PBAvatarMovement): unknown;
44
- function create<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(base?: I): PBAvatarMovement;
45
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(object: I): PBAvatarMovement;
46
- }
47
- export declare namespace MovementAnimation {
48
- function encode(message: MovementAnimation, writer?: _m0.Writer): _m0.Writer;
49
- function decode(input: _m0.Reader | Uint8Array, length?: number): MovementAnimation;
50
- function fromJSON(object: any): MovementAnimation;
51
- function toJSON(message: MovementAnimation): unknown;
52
- function create<I extends Exact<DeepPartial<MovementAnimation>, I>>(base?: I): MovementAnimation;
53
- function fromPartial<I extends Exact<DeepPartial<MovementAnimation>, I>>(object: I): MovementAnimation;
54
- }
55
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
56
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
57
- $case: string;
58
- } ? {
59
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
60
- } & {
61
- $case: T["$case"];
62
- } : T extends {} ? {
63
- [K in keyof T]?: DeepPartial<T[K]>;
64
- } : Partial<T>;
65
- type KeysOfUnion<T> = T extends T ? keyof T : never;
66
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
67
- [K in keyof P]: Exact<P[K], I[K]>;
68
- } & {
69
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
70
- };
71
- export {};