@dcl/protocol 1.0.0-12988319503.commit-ea9043b → 1.0.0-13037001105.commit-b3fea33
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.
- package/out-js/decentraland/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +16 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +103 -4
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -37
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +2 -201
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/{social/friendships/friendships.gen.d.ts → social_service/v1/social_service_v1.gen.d.ts} +3 -2
- package/out-js/decentraland/{social/friendships/friendships.gen.js → social_service/v1/social_service_v1.gen.js} +3 -3
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +479 -0
- package/out-js/decentraland/{social_service_v2/social_service.gen.js → social_service/v2/social_service_v2.gen.js} +1133 -395
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +109 -2
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1 -230
- package/out-ts/decentraland/{social/friendships/friendships.gen.ts → social_service/v1/social_service_v1.gen.ts} +3 -2
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2598 -0
- package/package.json +2 -2
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/communications_controller.proto +6 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +1 -8
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -23
- package/proto/decentraland/{social/friendships/friendships.proto → social_service/v1/social_service_v1.proto} +2 -1
- package/proto/decentraland/social_service/v2/social_service_v2.proto +159 -0
- package/public/sdk-components.proto +0 -2
- package/public/social.proto +3 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +0 -357
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +0 -1
- package/out-js/social_service_v2.gen.d.ts +0 -1
- package/out-js/social_service_v2.gen.js +0 -6
- package/out-js/social_service_v2.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +0 -1709
- package/out-ts/social_service_v2.gen.ts +0 -3
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/light.proto +0 -42
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -25
- package/proto/decentraland/sdk/components/spotlight.proto +0 -21
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -41
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
- package/proto/decentraland/social_service_v2/social_service.proto +0 -111
- package/public/social_service_v2.proto +0 -4
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package decentraland.sdk.components;
|
|
4
|
-
|
|
5
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
-
import "decentraland/common/colors.proto";
|
|
7
|
-
|
|
8
|
-
option (common.ecs_component_id) = 1210;
|
|
9
|
-
|
|
10
|
-
message PBCameraLayer {
|
|
11
|
-
// layer to which these settings apply. must be > 0
|
|
12
|
-
// Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
|
|
13
|
-
uint32 layer = 1;
|
|
14
|
-
|
|
15
|
-
// should the sun light affect this layer? default false
|
|
16
|
-
optional bool directional_light = 2;
|
|
17
|
-
|
|
18
|
-
// should this layer show player avatars? default false
|
|
19
|
-
optional bool show_avatars = 3;
|
|
20
|
-
|
|
21
|
-
// should this layer show the sky? default false
|
|
22
|
-
optional bool show_skybox = 4;
|
|
23
|
-
|
|
24
|
-
// should this layer show distance fog? default false
|
|
25
|
-
optional bool show_fog = 5;
|
|
26
|
-
|
|
27
|
-
// ambient light overrides for this layer. default -> use same as main camera
|
|
28
|
-
optional decentraland.common.Color3 ambient_color_override = 6;
|
|
29
|
-
optional float ambient_brightness_override = 7;
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/common/colors.proto";
|
|
5
|
-
import "decentraland/common/vectors.proto";
|
|
6
|
-
|
|
7
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
8
|
-
option (common.ecs_component_id) = 1206;
|
|
9
|
-
|
|
10
|
-
// defines the global scene light settings. must be added to the scene root.
|
|
11
|
-
// to control sunlight color, intensity, shadows etc, you can also add a PBLight to the scene root.
|
|
12
|
-
message PBGlobalLight {
|
|
13
|
-
// the direction the directional light shines in.
|
|
14
|
-
// default depends on time of day and explorer implementation
|
|
15
|
-
optional decentraland.common.Vector3 direction = 1;
|
|
16
|
-
// ambient light color
|
|
17
|
-
// default: White
|
|
18
|
-
optional decentraland.common.Color3 ambient_color = 2;
|
|
19
|
-
// ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
|
|
20
|
-
// default 1
|
|
21
|
-
optional float ambient_brightness = 3;
|
|
22
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
option (common.ecs_component_id) = 1200;
|
|
6
|
-
|
|
7
|
-
// a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
|
8
|
-
// This component must be added to a direct child of an entity with a PBGltfContainer component, or
|
|
9
|
-
// to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
|
10
|
-
// in the parent.
|
|
11
|
-
// The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
|
12
|
-
//
|
|
13
|
-
// The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
|
14
|
-
// - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
|
15
|
-
// - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
|
16
|
-
// - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
|
17
|
-
// - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
|
18
|
-
//
|
|
19
|
-
// After creation, if an animation moves the node, the `Transform` will be updated.
|
|
20
|
-
//
|
|
21
|
-
// From the scene, you can modify various components to alter the gltf node:
|
|
22
|
-
// - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
|
23
|
-
// regardless of any intermediate gltf node hierarchy.
|
|
24
|
-
// If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
|
25
|
-
// - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
|
26
|
-
// - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
|
27
|
-
// - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
|
28
|
-
// - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
|
29
|
-
// used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
|
|
30
|
-
// PBMaterial will be maintained.
|
|
31
|
-
//
|
|
32
|
-
// The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
|
33
|
-
// - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
|
34
|
-
// change the state to `GNS_FAILED`.
|
|
35
|
-
// - deleting the scene entity will not delete the gltf node.
|
|
36
|
-
//
|
|
37
|
-
// Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
|
38
|
-
// are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
|
39
|
-
// the gltf node will also be displayed.
|
|
40
|
-
message PBGltfNode {
|
|
41
|
-
string path = 1; // the path of the target node in the Gltf.
|
|
42
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
option (common.ecs_component_id) = 1201;
|
|
6
|
-
|
|
7
|
-
// See the details of the GltfNode component for more information.
|
|
8
|
-
|
|
9
|
-
// The state of a linked gltf node.
|
|
10
|
-
// If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
|
11
|
-
message PBGltfNodeState {
|
|
12
|
-
GltfNodeStateValue state = 1;
|
|
13
|
-
optional string error = 2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
enum GltfNodeStateValue {
|
|
17
|
-
GNSV_PENDING = 0;
|
|
18
|
-
GNSV_FAILED = 1;
|
|
19
|
-
GNSV_READY = 2;
|
|
20
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/common/colors.proto";
|
|
5
|
-
|
|
6
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
7
|
-
option (common.ecs_component_id) = 1204;
|
|
8
|
-
|
|
9
|
-
// defines a light source.
|
|
10
|
-
// the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
|
|
11
|
-
// a PBGlobalLight component can also be added to the root to control the directional light direction.
|
|
12
|
-
// point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
|
|
13
|
-
message PBLight {
|
|
14
|
-
// whether the light is on
|
|
15
|
-
// default true
|
|
16
|
-
optional bool enabled = 1;
|
|
17
|
-
// light brightness in lux (lumens/m^2).
|
|
18
|
-
//
|
|
19
|
-
// for global directional light, this applies as a constant value at all surfaces and distances (though the effect on the surface still depends on incidence angle).
|
|
20
|
-
// the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
|
|
21
|
-
// for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
|
|
22
|
-
//
|
|
23
|
-
// for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
|
|
24
|
-
// divide lumens by ~12 (4*pi).
|
|
25
|
-
// e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
|
|
26
|
-
// a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
|
|
27
|
-
//
|
|
28
|
-
// default
|
|
29
|
-
// for point/spotlights: 10,000
|
|
30
|
-
// for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
|
|
31
|
-
optional float illuminance = 2;
|
|
32
|
-
// whether the light should cast shadows.
|
|
33
|
-
// note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
|
|
34
|
-
// of lights depending on the implementation, platform, and user settings.
|
|
35
|
-
// default
|
|
36
|
-
// for point/spotlights: false / off
|
|
37
|
-
// for global directional light: true / on
|
|
38
|
-
optional bool shadows = 3;
|
|
39
|
-
// light color
|
|
40
|
-
// default White
|
|
41
|
-
optional decentraland.common.Color3 color = 4;
|
|
42
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/common/vectors.proto";
|
|
5
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
-
option (common.ecs_component_id) = 1209;
|
|
7
|
-
|
|
8
|
-
message PBPrimaryPointerInfo {
|
|
9
|
-
optional PointerType pointer_type = 1;
|
|
10
|
-
// in pixels
|
|
11
|
-
optional decentraland.common.Vector2 screen_coordinates = 2;
|
|
12
|
-
// in pixels
|
|
13
|
-
optional decentraland.common.Vector2 screen_delta = 3;
|
|
14
|
-
// ray direction that can be used with the primary camera origin for
|
|
15
|
-
// raycasting from the cursor into the world
|
|
16
|
-
optional decentraland.common.Vector3 world_ray_direction = 4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
enum PointerType {
|
|
20
|
-
POT_NONE = 0;
|
|
21
|
-
POT_MOUSE = 1;
|
|
22
|
-
POT_PAD = 2;
|
|
23
|
-
POT_TOUCH = 3;
|
|
24
|
-
POT_WAND = 4;
|
|
25
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
|
|
4
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
option (common.ecs_component_id) = 1205;
|
|
6
|
-
|
|
7
|
-
// defines a spotlight.
|
|
8
|
-
// spotlights are point lights that emit light only in a cone around the transform's forward direction.
|
|
9
|
-
// add this component together with the PBLight component to transform a point light into a spotlight.
|
|
10
|
-
// note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
|
|
11
|
-
// so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
|
|
12
|
-
// a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
|
|
13
|
-
// and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
|
|
14
|
-
message PBSpotlight {
|
|
15
|
-
// the cone radius in radians. distance away from forward in which the light is visible.
|
|
16
|
-
// for a torch a value around 0.15 is appropriate.
|
|
17
|
-
float angle = 1;
|
|
18
|
-
// optional angle at which the light is brightest. should be <= outer angle.
|
|
19
|
-
// if specified, the light will fall off smoothly between `inner_angle` and `angle`.
|
|
20
|
-
optional float inner_angle = 2;
|
|
21
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package decentraland.sdk.components;
|
|
4
|
-
|
|
5
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
-
import "decentraland/common/colors.proto";
|
|
7
|
-
|
|
8
|
-
option (common.ecs_component_id) = 1207;
|
|
9
|
-
|
|
10
|
-
message PBTextureCamera {
|
|
11
|
-
// rendered texture width
|
|
12
|
-
optional uint32 width = 1;
|
|
13
|
-
// rendered texture height
|
|
14
|
-
optional uint32 height = 2;
|
|
15
|
-
// which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
|
|
16
|
-
// defaults to 0
|
|
17
|
-
optional uint32 layer = 3;
|
|
18
|
-
|
|
19
|
-
// default black
|
|
20
|
-
optional decentraland.common.Color4 clear_color = 6;
|
|
21
|
-
// default infinity
|
|
22
|
-
optional float far_plane = 7;
|
|
23
|
-
|
|
24
|
-
oneof mode {
|
|
25
|
-
Perspective perspective = 8;
|
|
26
|
-
Orthographic orthographic = 9;
|
|
27
|
-
/* Portal portal = 10; */
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message Perspective {
|
|
32
|
-
// vertical field of view in radians
|
|
33
|
-
// defaults to pi/4 = 45 degrees
|
|
34
|
-
optional float field_of_view = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message Orthographic {
|
|
38
|
-
// vertical extent of the visible range in meters
|
|
39
|
-
// defaults to 4m
|
|
40
|
-
optional float vertical_range = 1;
|
|
41
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
4
|
-
package decentraland.sdk.components;
|
|
5
|
-
|
|
6
|
-
option (common.ecs_component_id) = 1203;
|
|
7
|
-
|
|
8
|
-
import "decentraland/common/colors.proto";
|
|
9
|
-
|
|
10
|
-
// The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture.
|
|
11
|
-
message PBUiCanvas {
|
|
12
|
-
uint32 width = 1;
|
|
13
|
-
uint32 height = 2;
|
|
14
|
-
|
|
15
|
-
optional decentraland.common.Color4 color = 3; // default = (0.0, 0.0, 0.0, 0.0) / transparent
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package decentraland.sdk.components;
|
|
4
|
-
|
|
5
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
-
import "decentraland/common/vectors.proto";
|
|
7
|
-
|
|
8
|
-
option (common.ecs_component_id) = 1202;
|
|
9
|
-
|
|
10
|
-
message PBUiScrollResult {
|
|
11
|
-
decentraland.common.Vector2 value = 1;
|
|
12
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.social_service_v2;
|
|
3
|
-
|
|
4
|
-
import "google/protobuf/empty.proto";
|
|
5
|
-
|
|
6
|
-
// Errors
|
|
7
|
-
|
|
8
|
-
message InvalidFriendshipAction {}
|
|
9
|
-
|
|
10
|
-
message InternalServerError {}
|
|
11
|
-
|
|
12
|
-
// Types
|
|
13
|
-
|
|
14
|
-
message User { string address = 1; }
|
|
15
|
-
|
|
16
|
-
message RequestResponse {
|
|
17
|
-
User user = 1;
|
|
18
|
-
int64 created_at = 2;
|
|
19
|
-
optional string message = 3;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message RequestPayload {
|
|
23
|
-
User user = 1;
|
|
24
|
-
optional string message = 3;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
message Requests {
|
|
28
|
-
repeated RequestResponse requests = 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message AcceptResponse { User user = 1; }
|
|
32
|
-
|
|
33
|
-
message AcceptPayload { User user = 1; }
|
|
34
|
-
|
|
35
|
-
message RejectResponse { User user = 1; }
|
|
36
|
-
|
|
37
|
-
message RejectPayload { User user = 1; }
|
|
38
|
-
|
|
39
|
-
message DeleteResponse { User user = 1; }
|
|
40
|
-
|
|
41
|
-
message DeletePayload { User user = 1; }
|
|
42
|
-
|
|
43
|
-
message CancelResponse { User user = 1; }
|
|
44
|
-
|
|
45
|
-
message CancelPayload { User user = 1; }
|
|
46
|
-
|
|
47
|
-
message UpsertFriendshipPayload {
|
|
48
|
-
oneof action {
|
|
49
|
-
RequestPayload request = 1;
|
|
50
|
-
AcceptPayload accept = 2;
|
|
51
|
-
RejectPayload reject = 4;
|
|
52
|
-
DeletePayload delete = 5;
|
|
53
|
-
CancelPayload cancel = 6;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message MutualFriendsPayload {
|
|
58
|
-
User user = 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message UsersResponse {
|
|
62
|
-
repeated User users = 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message FriendshipRequestsResponse {
|
|
66
|
-
oneof response {
|
|
67
|
-
Requests requests = 1;
|
|
68
|
-
InternalServerError internal_server_error = 2;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message UpsertFriendshipResponse {
|
|
73
|
-
message Accepted {}
|
|
74
|
-
oneof response {
|
|
75
|
-
Accepted accepted = 1;
|
|
76
|
-
InvalidFriendshipAction invalid_friendship_action = 2;
|
|
77
|
-
InternalServerError internal_server_error = 3;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message FriendshipUpdate {
|
|
82
|
-
oneof update {
|
|
83
|
-
RequestResponse request = 1;
|
|
84
|
-
AcceptResponse accept = 2;
|
|
85
|
-
RejectResponse reject = 4;
|
|
86
|
-
DeleteResponse delete = 5;
|
|
87
|
-
CancelResponse cancel = 6;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
service SocialService {
|
|
92
|
-
// Get the list of friends for the authenticated user
|
|
93
|
-
rpc GetFriends(google.protobuf.Empty) returns (stream UsersResponse) {}
|
|
94
|
-
|
|
95
|
-
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
96
|
-
rpc GetMutualFriends(MutualFriendsPayload) returns (stream UsersResponse) {}
|
|
97
|
-
|
|
98
|
-
// Get the pending friendship requests for the authenticated user
|
|
99
|
-
rpc GetPendingFriendshipRequests(google.protobuf.Empty) returns (FriendshipRequestsResponse) {}
|
|
100
|
-
|
|
101
|
-
// Get the sent friendship requests for the authenticated user
|
|
102
|
-
rpc GetSentFriendshipRequests(google.protobuf.Empty) returns (FriendshipRequestsResponse) {}
|
|
103
|
-
|
|
104
|
-
// Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
105
|
-
rpc UpsertFriendship(UpsertFriendshipPayload)
|
|
106
|
-
returns (UpsertFriendshipResponse) {}
|
|
107
|
-
|
|
108
|
-
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
109
|
-
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
110
|
-
returns (stream FriendshipUpdate) {}
|
|
111
|
-
}
|