@zuzjs/flare-admin 0.1.3 → 0.1.5
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/README.md +210 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +484 -1
- package/dist/index.d.ts +57 -2
- package/dist/index.js +3 -3
- package/dist/lib/grpc.d.ts +11 -0
- package/dist/lib/storage.d.ts +98 -0
- package/dist/serverTimestamp.d.ts +13 -0
- package/dist/types/index.d.ts +320 -0
- package/package.json +4 -1
- package/proto/admin.proto +129 -0
- package/proto/app.proto +69 -0
- package/proto/auth.proto +70 -0
- package/proto/flare.proto +11 -0
- package/proto/query.proto +109 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package flare;
|
|
4
|
+
|
|
5
|
+
service QueryService {
|
|
6
|
+
rpc RunQuery (QueryRequest) returns (QueryResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message QueryRequest {
|
|
10
|
+
string app_id = 1;
|
|
11
|
+
string collection = 2;
|
|
12
|
+
StructuredQuery query = 3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message QueryResponse {
|
|
16
|
+
string collection = 1;
|
|
17
|
+
StructuredQuery query = 2;
|
|
18
|
+
int32 count = 3;
|
|
19
|
+
string data_json = 4;
|
|
20
|
+
string error = 5;
|
|
21
|
+
string error_description = 6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message StructuredQuery {
|
|
25
|
+
repeated AnyFilter where = 1;
|
|
26
|
+
repeated OrderByClause order_by = 2;
|
|
27
|
+
int32 limit = 3;
|
|
28
|
+
int32 offset = 4;
|
|
29
|
+
CursorValue start_at = 5;
|
|
30
|
+
CursorValue start_after = 6;
|
|
31
|
+
CursorValue end_at = 7;
|
|
32
|
+
CursorValue end_before = 8;
|
|
33
|
+
repeated AggregateSpec aggregate = 9;
|
|
34
|
+
GroupByClause group_by = 10;
|
|
35
|
+
repeated HavingClause having = 11;
|
|
36
|
+
repeated JoinClause joins = 12;
|
|
37
|
+
VectorSearchClause vector_search = 13;
|
|
38
|
+
repeated string select = 14;
|
|
39
|
+
string distinct_field = 15;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message QueryFilter {
|
|
43
|
+
string field = 1;
|
|
44
|
+
string op = 2;
|
|
45
|
+
string value_json = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message OrFilter {
|
|
49
|
+
repeated AnyFilter or = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message AndFilter {
|
|
53
|
+
repeated AnyFilter and = 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message AnyFilter {
|
|
57
|
+
oneof filter {
|
|
58
|
+
QueryFilter query_filter = 1;
|
|
59
|
+
OrFilter or_filter = 2;
|
|
60
|
+
AndFilter and_filter = 3;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message OrderByClause {
|
|
65
|
+
string field = 1;
|
|
66
|
+
string dir = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GroupByClause {
|
|
70
|
+
repeated string fields = 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message HavingClause {
|
|
74
|
+
string field = 1;
|
|
75
|
+
string op = 2;
|
|
76
|
+
double value = 3;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message CursorValue {
|
|
80
|
+
repeated string values_json = 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message AggregateSpec {
|
|
84
|
+
string fn = 1;
|
|
85
|
+
string field = 2;
|
|
86
|
+
string alias = 3;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message JoinClause {
|
|
90
|
+
string from = 1;
|
|
91
|
+
string local_field = 2;
|
|
92
|
+
string foreign_field = 3;
|
|
93
|
+
string as = 4;
|
|
94
|
+
bool single = 5;
|
|
95
|
+
repeated AnyFilter where = 6;
|
|
96
|
+
repeated OrderByClause order_by = 7;
|
|
97
|
+
int32 limit = 8;
|
|
98
|
+
int32 offset = 9;
|
|
99
|
+
repeated string select = 10;
|
|
100
|
+
repeated JoinClause joins = 11;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message VectorSearchClause {
|
|
104
|
+
string field = 1;
|
|
105
|
+
repeated double vector = 2;
|
|
106
|
+
int32 k = 3;
|
|
107
|
+
string metric = 4;
|
|
108
|
+
double min_score = 5;
|
|
109
|
+
}
|