@dcl/protocol 1.0.0-4982452399.commit-2113622 → 1.0.0-4984397350.commit-6fe3e1b
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/sdk/components/nft_shape.gen.d.ts +3 -3
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +7 -7
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +168 -33
- package/out-js/decentraland/social/friendships/friendships.gen.js +1030 -139
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +10 -10
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +1146 -150
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/nft_shape.proto +3 -3
- 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-4984397350.commit-6fe3e1b",
|
|
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": "6fe3e1bbc29baaab95d8844782a3baf41e61c776"
|
|
33
33
|
}
|
|
@@ -9,13 +9,13 @@ option (common.ecs_component_id) = 1040;
|
|
|
9
9
|
|
|
10
10
|
// The NftShape component renders a framed picture from an NFT. It supports PNG, JPEG and GIF files.
|
|
11
11
|
//
|
|
12
|
-
// The `
|
|
13
|
-
//
|
|
12
|
+
// The `urn` field is the URI of the NFT, and must follow the format 'urn:decentraland:<CHAIN>:<CONTRACT_STANDARD>:<CONTRACT_ADDRESS>:<TOKEN_ID>'
|
|
13
|
+
// Example: 'urn:decentraland:ethereum:erc721:0x00000000:123'
|
|
14
14
|
//
|
|
15
15
|
// The picture frame can have several different styles, plus a background color for images that have
|
|
16
16
|
// transparent pixels.
|
|
17
17
|
message PBNftShape {
|
|
18
|
-
string
|
|
18
|
+
string urn = 1; // the URI of the NFT
|
|
19
19
|
optional NftFrameType style = 2; // the frame style (default NFT_CLASSIC)
|
|
20
20
|
optional decentraland.common.Color3 color = 3; // RGB background (default [0.6404918, 0.611472, 0.8584906])
|
|
21
21
|
}
|
|
@@ -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
|
}
|