@dcl/protocol 1.0.0-4408137944.commit-a67c796 → 1.0.0-4427886959.commit-6b9dcb5

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 (30) hide show
  1. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +4816 -0
  2. package/out-js/decentraland/social/friendships/friendships.gen.js +1216 -0
  3. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
  4. package/out-js/social.gen.d.ts +1 -0
  5. package/out-js/social.gen.js +6 -0
  6. package/out-js/social.gen.js.map +1 -0
  7. package/out-ts/decentraland/social/friendships/friendships.gen.ts +1447 -0
  8. package/out-ts/social.gen.ts +3 -0
  9. package/package.json +2 -2
  10. package/proto/decentraland/sdk/components/animator.proto +15 -8
  11. package/proto/decentraland/sdk/components/audio_source.proto +16 -6
  12. package/proto/decentraland/sdk/components/audio_stream.proto +6 -3
  13. package/proto/decentraland/sdk/components/avatar_attach.proto +14 -6
  14. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +20 -7
  15. package/proto/decentraland/sdk/components/avatar_shape.proto +34 -24
  16. package/proto/decentraland/sdk/components/billboard.proto +12 -5
  17. package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
  18. package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
  19. package/proto/decentraland/sdk/components/gltf_container.proto +5 -5
  20. package/proto/decentraland/sdk/components/mesh_collider.proto +22 -9
  21. package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
  22. package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
  23. package/proto/decentraland/sdk/components/pointer_events.proto +28 -14
  24. package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
  25. package/proto/decentraland/sdk/components/raycast.proto +10 -7
  26. package/proto/decentraland/sdk/components/raycast_result.proto +17 -12
  27. package/proto/decentraland/sdk/components/text_shape.proto +33 -24
  28. package/proto/decentraland/sdk/components/ui_text.proto +8 -5
  29. package/proto/decentraland/social/friendships/friendships.proto +106 -0
  30. package/public/social.proto +4 -0
@@ -8,10 +8,13 @@ import "decentraland/sdk/components/common/texts.proto";
8
8
 
9
9
  option (common.ecs_component_id) = 1052;
10
10
 
11
+ // The UiText component creates a text widget inside a UI component tree. Its position and
12
+ // layout properties can be specified in a UiTransform component on the same Entity.
13
+
11
14
  message PBUiText {
12
- string value = 1;
13
- optional decentraland.common.Color4 color = 2; // default=(1.0,1.0,1.0,1.0)
14
- optional common.TextAlignMode text_align = 3; // default='center'
15
- optional common.Font font = 4; // default=0
16
- optional int32 font_size = 5; // default=10
15
+ string value = 1; // the text content
16
+ optional decentraland.common.Color4 color = 2; // RGBA color (default: opaque white)
17
+ optional common.TextAlignMode text_align = 3; // alignment within the bounds (default: center)
18
+ optional common.Font font = 4; // font for the text (default: sans-serif)
19
+ optional int32 font_size = 5; // size of the text (default: 10)
17
20
  }
@@ -0,0 +1,106 @@
1
+ syntax = "proto3";
2
+ package decentraland.social.friendships;
3
+
4
+ import "google/protobuf/empty.proto";
5
+
6
+ // Validation and anti-spam errors
7
+ enum FriendshipErrorCode {
8
+ TOO_MANY_REQUESTS_SENT = 0;
9
+ NOT_ENOUGH_TIME_PASSED = 1;
10
+ BLOCKED_USER = 2;
11
+ NON_EXISTING_USER = 3;
12
+ INVALID_REQUEST = 4;
13
+ UNKNOWN = 5;
14
+ }
15
+
16
+ // This message is a response that is sent from the server to the client
17
+ message FriendshipEventResponse {
18
+ oneof body {
19
+ RequestResponse request = 1;
20
+ AcceptResponse accept = 2;
21
+ RejectResponse reject = 4;
22
+ DeleteResponse delete = 5;
23
+ CancelResponse cancel = 6;
24
+ }
25
+ }
26
+
27
+ message FriendshipEventPayload {
28
+ oneof body {
29
+ RequestPayload request = 1;
30
+ AcceptPayload accept = 2;
31
+ RejectPayload reject = 4;
32
+ DeletePayload delete = 5;
33
+ CancelPayload cancel = 6;
34
+ }
35
+ }
36
+
37
+ message User { string address = 1; }
38
+
39
+ message Users { repeated User users = 1; }
40
+
41
+ message RequestResponse {
42
+ User user = 1;
43
+ int64 created_at = 2;
44
+ optional string message = 3;
45
+ }
46
+
47
+ message RequestPayload {
48
+ User user = 1;
49
+ optional string message = 3;
50
+ }
51
+
52
+ message Requests {
53
+ int64 total = 1; // Total amount of friendship requests
54
+ repeated RequestResponse items = 2;
55
+ }
56
+
57
+ message RequestEvents {
58
+ Requests outgoing = 1; // Requests the authed user have sent to users
59
+ Requests incoming = 2; // Requests the authed user have received from users
60
+ }
61
+
62
+ message AcceptResponse { User user = 1; }
63
+
64
+ message AcceptPayload { User user = 1; }
65
+
66
+ message RejectResponse { User user = 1; }
67
+
68
+ message RejectPayload { User user = 1; }
69
+
70
+ message DeleteResponse { User user = 1; }
71
+
72
+ message DeletePayload { User user = 1; }
73
+
74
+ message CancelResponse { User user = 1; }
75
+
76
+ message CancelPayload { User user = 1; }
77
+
78
+ message UpdateFriendshipPayload { FriendshipEventPayload event = 1; }
79
+
80
+ message UpdateFriendshipResponse {
81
+ oneof response {
82
+ FriendshipErrorCode error = 1;
83
+ FriendshipEventResponse event = 2;
84
+ }
85
+ }
86
+
87
+ message SubscribeFriendshipEventsUpdatesResponse {
88
+ repeated FriendshipEventResponse events = 1;
89
+ }
90
+
91
+ service FriendshipsService {
92
+ // Get the list of friends for the authenticated user
93
+ rpc GetFriends(google.protobuf.Empty) returns (stream Users) {}
94
+
95
+ // Get the list of request events for the authenticated user
96
+ rpc GetRequestEvents(google.protobuf.Empty) returns (RequestEvents) {}
97
+
98
+ // Update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
99
+ rpc UpdateFriendshipEvent(UpdateFriendshipPayload)
100
+ returns (UpdateFriendshipResponse) {}
101
+
102
+ // Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL,
103
+ // DELETE
104
+ rpc SubscribeFriendshipEventsUpdates(google.protobuf.Empty)
105
+ returns (stream SubscribeFriendshipEventsUpdatesResponse) {}
106
+ }
@@ -0,0 +1,4 @@
1
+ syntax = "proto3";
2
+ package decentraland.social;
3
+
4
+ import public "decentraland/social/friendships/friendships.proto";