2021-03-18 22:14:56 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = "github.com/lbryio/hub/protobuf/go/pb";
|
2021-05-31 20:53:08 +02:00
|
|
|
import "google/protobuf/wrappers.proto";
|
2021-06-03 06:31:58 +02:00
|
|
|
import "result.proto";
|
2021-03-18 22:14:56 +01:00
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
service Hub {
|
2021-06-03 06:31:58 +02:00
|
|
|
rpc Search (SearchRequest) returns (Outputs) {}
|
2021-03-18 22:14:56 +01:00
|
|
|
}
|
|
|
|
|
2021-05-18 12:02:55 +02:00
|
|
|
message InvertibleField {
|
|
|
|
bool invert = 1;
|
|
|
|
repeated string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RangeField {
|
2021-05-16 05:13:14 +02:00
|
|
|
enum Op {
|
|
|
|
EQ = 0;
|
|
|
|
LTE = 1;
|
|
|
|
GTE = 2;
|
|
|
|
LT = 3;
|
|
|
|
GT = 4;
|
|
|
|
}
|
|
|
|
Op op = 1;
|
|
|
|
repeated string value = 2;
|
|
|
|
}
|
|
|
|
|
2021-03-18 22:14:56 +01:00
|
|
|
message SearchRequest {
|
2021-05-31 20:53:08 +02:00
|
|
|
string text = 1;
|
2021-05-25 05:28:43 +02:00
|
|
|
repeated string name = 2;
|
2021-05-31 20:53:08 +02:00
|
|
|
.google.protobuf.Int32Value amount_order = 3;
|
|
|
|
.google.protobuf.Int32Value limit = 4;
|
2021-05-18 12:02:55 +02:00
|
|
|
repeated string order_by = 5;
|
2021-05-31 20:53:08 +02:00
|
|
|
.google.protobuf.Int32Value offset = 6;
|
|
|
|
.google.protobuf.BoolValue is_controlling = 7;
|
|
|
|
string last_take_over_height = 19;
|
|
|
|
InvertibleField claim_id = 20;
|
2021-05-16 05:13:14 +02:00
|
|
|
repeated string claim_name = 22;
|
|
|
|
repeated string normalized = 23;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField tx_position = 24;
|
|
|
|
RangeField amount = 25;
|
|
|
|
RangeField timestamp = 26;
|
|
|
|
RangeField creation_timestamp = 27;
|
|
|
|
RangeField height = 28;
|
|
|
|
RangeField creation_height = 29;
|
|
|
|
RangeField activation_height = 30;
|
|
|
|
RangeField expiration_height = 31;
|
|
|
|
RangeField release_time = 32;
|
2021-05-16 05:13:14 +02:00
|
|
|
repeated string short_url = 33;
|
|
|
|
repeated string canonical_url = 34;
|
|
|
|
repeated string title = 35;
|
|
|
|
repeated string author = 36;
|
|
|
|
repeated string description = 37;
|
2021-05-13 22:06:19 +02:00
|
|
|
repeated string claim_type = 38;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField reposted = 39;
|
2021-05-16 05:13:14 +02:00
|
|
|
repeated string stream_type = 40;
|
|
|
|
repeated string media_type = 41;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField fee_amount = 42;
|
2021-05-16 05:13:14 +02:00
|
|
|
repeated string fee_currency = 43;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField duration = 44;
|
2021-05-13 22:06:19 +02:00
|
|
|
string reposted_claim_hash = 45;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField censor_type = 46;
|
2021-05-13 22:06:19 +02:00
|
|
|
string claims_in_channel = 47;
|
2021-05-18 12:02:55 +02:00
|
|
|
RangeField channel_join = 48;
|
2021-05-31 20:53:08 +02:00
|
|
|
.google.protobuf.BoolValue signature_valid = 49;
|
|
|
|
RangeField effective_amount = 51;
|
|
|
|
RangeField support_amount = 52;
|
|
|
|
RangeField trending_group = 53;
|
|
|
|
RangeField trending_mixed = 54;
|
|
|
|
RangeField trending_local = 55;
|
|
|
|
RangeField trending_global = 56;
|
|
|
|
InvertibleField channel_id = 57;
|
|
|
|
InvertibleField channel_ids = 58;
|
|
|
|
repeated string tx_id = 59;
|
|
|
|
.google.protobuf.Int32Value tx_nout = 60;
|
|
|
|
repeated string signature = 61;
|
|
|
|
repeated string signature_digest = 62;
|
|
|
|
repeated string public_key_bytes = 63;
|
|
|
|
repeated string public_key_hash = 64;
|
|
|
|
string public_key_id = 65;
|
|
|
|
repeated bytes _id = 66;
|
2021-06-01 04:19:10 +02:00
|
|
|
repeated string any_tags = 67;
|
|
|
|
repeated string all_tags = 68;
|
|
|
|
repeated string not_tags = 69;
|
|
|
|
repeated string reposted_claim_id = 70;
|
|
|
|
.google.protobuf.BoolValue has_channel_signature = 71;
|
|
|
|
.google.protobuf.BoolValue has_source = 72;
|
|
|
|
.google.protobuf.Int32Value limit_claims_per_channel = 73;
|
|
|
|
repeated string any_languages = 74;
|
|
|
|
repeated string all_languages = 75;
|
2021-06-09 04:07:59 +02:00
|
|
|
.google.protobuf.BoolValue remove_duplicates = 76;
|
2021-06-10 02:04:29 +02:00
|
|
|
.google.protobuf.BoolValue no_totals = 77;
|
2021-06-17 18:15:05 +02:00
|
|
|
repeated string search_indices = 78;
|
2021-06-03 06:31:58 +02:00
|
|
|
}
|