@dcl/protocol 1.0.0-2951957767.commit-5cf29ab → 1.0.0-2959062070.commit-c98319b

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.
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.bff;
4
+
5
+ message GetChallengeRequest {
6
+ string address = 1;
7
+ }
8
+
9
+ message GetChallengeResponse {
10
+ string challenge_to_sign = 1;
11
+ bool already_connected = 2;
12
+ }
13
+
14
+ message SignedChallenge {
15
+ string auth_chain_json = 1;
16
+ }
17
+
18
+ message WelcomePeerInformation {
19
+ string peer_id = 1;
20
+ }
21
+
22
+ service BffAuthenticationService {
23
+ rpc GetChallenge(GetChallengeRequest) returns (GetChallengeResponse) {}
24
+ rpc Authenticate(SignedChallenge) returns (WelcomePeerInformation) {}
25
+ }
@@ -0,0 +1,49 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.bff;
4
+
5
+ message Subscription {
6
+ uint32 subscription_id = 1;
7
+ }
8
+
9
+ message SubscriptionRequest {
10
+ string topic = 1;
11
+ }
12
+
13
+ message PeerTopicSubscriptionResultElem {
14
+ bytes payload = 1;
15
+ string topic = 2;
16
+ string sender = 3;
17
+ }
18
+
19
+ message SystemTopicSubscriptionResultElem {
20
+ bytes payload = 1;
21
+ string topic = 2;
22
+ }
23
+
24
+ message PublishToTopicRequest {
25
+ string topic = 1;
26
+ bytes payload = 2;
27
+ }
28
+
29
+ message PublishToTopicResult {
30
+ bool ok = 1;
31
+ }
32
+
33
+ message UnsubscriptionResult {
34
+ bool ok = 1;
35
+ }
36
+
37
+ service CommsService {
38
+ rpc SubscribeToPeerMessages(SubscriptionRequest) returns (Subscription) {}
39
+ rpc GetPeerMessages(Subscription) returns (stream PeerTopicSubscriptionResultElem) {}
40
+ rpc UnsubscribeToPeerMessages(Subscription) returns (UnsubscriptionResult) {}
41
+
42
+ rpc SubscribeToSystemMessages(SubscriptionRequest) returns (Subscription) {}
43
+ rpc GetSystemMessages(Subscription) returns (stream SystemTopicSubscriptionResultElem) {}
44
+ rpc UnsubscribeToSystemMessages(Subscription) returns (UnsubscriptionResult) {}
45
+
46
+
47
+ // send a peer message to a topic
48
+ rpc PublishToTopic(PublishToTopicRequest) returns (PublishToTopicResult) {}
49
+ }
@@ -0,0 +1,66 @@
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+ import "google/api/annotations.proto";
5
+
6
+ package decentraland.bff;
7
+
8
+ message AboutResponse {
9
+ bool healthy = 1;
10
+ AboutConfiguration configurations = 2;
11
+ ContentInfo content = 3;
12
+ CommsInfo comms = 4;
13
+ LambdasInfo lambdas = 5;
14
+ BffInfo bff = 6;
15
+
16
+ message BaseService {
17
+ bool healthy = 1;
18
+ optional string version = 2;
19
+ optional string commit_hash = 3;
20
+ optional string public_url = 4;
21
+ }
22
+
23
+ message AboutConfiguration {
24
+ optional string realm_name = 1;
25
+ }
26
+ message ContentInfo {
27
+ // common properties
28
+ bool healthy = 1;
29
+ optional string version = 2;
30
+ optional string commit_hash = 3;
31
+ optional string public_url = 4;
32
+ }
33
+ message LambdasInfo {
34
+ // common properties
35
+ bool healthy = 1;
36
+ optional string version = 2;
37
+ optional string commit_hash = 3;
38
+ optional string public_url = 4;
39
+ }
40
+ message CommsInfo {
41
+ // common properties
42
+ bool healthy = 1;
43
+ optional string version = 2;
44
+ optional string commit_hash = 3;
45
+ optional string public_url = 4;
46
+ // specific properties
47
+ string protocol = 50;
48
+ optional int32 users_count = 51;
49
+ }
50
+ message BffInfo {
51
+ // common properties
52
+ bool healthy = 1;
53
+ optional string version = 2;
54
+ optional string commit_hash = 3;
55
+ optional string public_url = 4;
56
+ // specific properties
57
+ optional int32 user_count = 51;
58
+ }
59
+ }
60
+
61
+ service HttpEndpoints {
62
+ // Returns the status and configuration of the bff microservice
63
+ rpc About(google.protobuf.Empty) returns (AboutResponse) {
64
+ option (google.api.http) = { get: "/about" };
65
+ }
66
+ }
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-2951957767.commit-5cf29ab",
3
+ "version": "1.0.0-2959062070.commit-c98319b",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "./scripts/check-proto-compabitility.sh"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "",
11
11
  "license": "Apache-2.0",
12
12
  "devDependencies": {
13
- "proto-compatibility-tool": "^1.1.1-20220811001836.commit-414739b"
13
+ "proto-compatibility-tool": "^1.1.2-20220830190053.commit-de57caa"
14
14
  },
15
15
  "files": [
16
16
  "kernel",
17
17
  "renderer-protocol",
18
- "ecs"
18
+ "ecs",
19
+ "bff"
19
20
  ],
20
- "commit": "5cf29ab8d6bc2430e0e9c95db7ca59605a5dd6db"
21
+ "commit": "c98319be3c830e9203bc28323da6ef0de3f90fa7"
21
22
  }