@dcl/protocol 1.0.0-4863715547.commit-286ee57 → 1.0.0-4949759723.commit-9a568b1
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/social/friendships/friendships.gen.d.ts +5798 -2549
- package/out-js/decentraland/social/friendships/friendships.gen.js +941 -115
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +1124 -143
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/social/friendships/friendships.proto +64 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-4949759723.commit-9a568b1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"out-js",
|
|
30
30
|
"public"
|
|
31
31
|
],
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "9a568b16b2eafb134177329ba670c1451be8a169"
|
|
33
33
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
+
option (common.ecs_component_id) = 1044;
|
|
7
|
+
|
|
8
|
+
message PBVideoEvent {
|
|
9
|
+
uint32 timestamp = 1; // monotonic counter
|
|
10
|
+
uint32 tick_number = 2; // number of tick in which the event was produced, equals to EngineInfo.tick_number
|
|
11
|
+
float current_offset = 3;
|
|
12
|
+
float video_length = 4;
|
|
13
|
+
VideoState state = 5;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
enum VideoState {
|
|
17
|
+
VS_NONE = 0;
|
|
18
|
+
VS_ERROR = 1;
|
|
19
|
+
VS_LOADING = 2;
|
|
20
|
+
VS_READY = 3;
|
|
21
|
+
VS_PLAYING = 4;
|
|
22
|
+
VS_BUFFERING = 5;
|
|
23
|
+
VS_SEEKING = 6;
|
|
24
|
+
VS_PAUSED = 7;
|
|
25
|
+
}
|
|
@@ -6,17 +6,6 @@
|
|
|
6
6
|
syntax = "proto3";
|
|
7
7
|
package decentraland.social.friendships;
|
|
8
8
|
|
|
9
|
-
enum ServiceErrors {
|
|
10
|
-
// proto3 requires that first value in enum have numeric value of 0
|
|
11
|
-
UNKNOWN = 0;
|
|
12
|
-
BAD_REQUEST = 400;
|
|
13
|
-
UNAUTHORIZED = 401;
|
|
14
|
-
FORBIDDEN = 403;
|
|
15
|
-
NOT_FOUND = 404;
|
|
16
|
-
TOO_MANY_REQUESTS = 429;
|
|
17
|
-
INTERNAL_SERVER_ERROR = 500;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
9
|
// This message is a response that is sent from the server to the client
|
|
21
10
|
message FriendshipEventResponse {
|
|
22
11
|
oneof body {
|
|
@@ -28,6 +17,10 @@ message FriendshipEventResponse {
|
|
|
28
17
|
}
|
|
29
18
|
}
|
|
30
19
|
|
|
20
|
+
message FriendshipEventResponses {
|
|
21
|
+
repeated FriendshipEventResponse responses = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
31
24
|
message FriendshipEventPayload {
|
|
32
25
|
oneof body {
|
|
33
26
|
RequestPayload request = 1;
|
|
@@ -85,30 +78,80 @@ message UpdateFriendshipPayload {
|
|
|
85
78
|
optional Payload auth_token = 2;
|
|
86
79
|
}
|
|
87
80
|
|
|
88
|
-
message UpdateFriendshipResponse { FriendshipEventResponse event = 1; }
|
|
89
|
-
|
|
90
|
-
message SubscribeFriendshipEventsUpdatesResponse {
|
|
91
|
-
repeated FriendshipEventResponse events = 1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
81
|
message Payload {
|
|
95
82
|
// For internal use only, subject to change.
|
|
96
83
|
optional string synapse_token = 1;
|
|
97
84
|
}
|
|
98
85
|
|
|
86
|
+
message BadRequestError {
|
|
87
|
+
string message = 1;
|
|
88
|
+
}
|
|
89
|
+
message UnauthorizedError {
|
|
90
|
+
string message = 1;
|
|
91
|
+
}
|
|
92
|
+
message ForbiddenError {
|
|
93
|
+
string message = 1;
|
|
94
|
+
}
|
|
95
|
+
message TooManyRequestsError {
|
|
96
|
+
string message = 1;
|
|
97
|
+
}
|
|
98
|
+
message InternalServerError {
|
|
99
|
+
string message = 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message UsersResponse {
|
|
103
|
+
oneof response {
|
|
104
|
+
Users users = 1;
|
|
105
|
+
InternalServerError internal_server_error = 2;
|
|
106
|
+
UnauthorizedError unauthorized_error = 3;
|
|
107
|
+
ForbiddenError forbidden_error = 4;
|
|
108
|
+
TooManyRequestsError too_many_requests_error = 5;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message RequestEventsResponse {
|
|
113
|
+
oneof response {
|
|
114
|
+
RequestEvents events = 1;
|
|
115
|
+
InternalServerError internal_server_error = 2;
|
|
116
|
+
UnauthorizedError unauthorized_error = 3;
|
|
117
|
+
ForbiddenError forbidden_error = 4;
|
|
118
|
+
TooManyRequestsError too_many_requests_error = 5;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message UpdateFriendshipResponse {
|
|
123
|
+
oneof response {
|
|
124
|
+
FriendshipEventResponse event = 1;
|
|
125
|
+
InternalServerError internal_server_error = 2;
|
|
126
|
+
UnauthorizedError unauthorized_error = 3;
|
|
127
|
+
ForbiddenError forbidden_error = 4;
|
|
128
|
+
TooManyRequestsError too_many_requests_error = 5;
|
|
129
|
+
BadRequestError bad_request_error = 6;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message SubscribeFriendshipEventsUpdatesResponse {
|
|
134
|
+
oneof response {
|
|
135
|
+
FriendshipEventResponses events = 1;
|
|
136
|
+
InternalServerError internal_server_error = 2;
|
|
137
|
+
UnauthorizedError unauthorized_error = 3;
|
|
138
|
+
ForbiddenError forbidden_error = 4;
|
|
139
|
+
TooManyRequestsError too_many_requests_error = 5;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
99
143
|
service FriendshipsService {
|
|
100
144
|
// Get the list of friends for the authenticated user
|
|
101
|
-
rpc GetFriends(Payload) returns (stream
|
|
145
|
+
rpc GetFriends(Payload) returns (stream UsersResponse) {}
|
|
102
146
|
|
|
103
147
|
// Get the list of request events for the authenticated user
|
|
104
|
-
rpc GetRequestEvents(Payload) returns (
|
|
148
|
+
rpc GetRequestEvents(Payload) returns (RequestEventsResponse) {}
|
|
105
149
|
|
|
106
150
|
// Update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
107
151
|
rpc UpdateFriendshipEvent(UpdateFriendshipPayload)
|
|
108
152
|
returns (UpdateFriendshipResponse) {}
|
|
109
153
|
|
|
110
|
-
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL,
|
|
111
|
-
// DELETE
|
|
154
|
+
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
112
155
|
rpc SubscribeFriendshipEventsUpdates(Payload)
|
|
113
156
|
returns (stream SubscribeFriendshipEventsUpdatesResponse) {}
|
|
114
157
|
}
|