@dailydotdev/schema 0.2.12 → 0.2.15
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/dist/bragi/pipelines_connect.cjs +1 -1
- package/dist/bragi/pipelines_connect.d.cts +89 -1
- package/dist/bragi/pipelines_connect.d.ts +89 -1
- package/dist/bragi/pipelines_connect.js +1 -1
- package/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +316 -1
- package/dist/bragi/pipelines_pb.d.ts +316 -1
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/bragi/proxy_pb.cjs +1 -1
- package/dist/bragi/proxy_pb.d.cts +46 -2
- package/dist/bragi/proxy_pb.d.ts +46 -2
- package/dist/bragi/proxy_pb.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/mimir/search/search_pb.cjs +1 -0
- package/dist/mimir/search/search_pb.d.cts +245 -0
- package/dist/mimir/search/search_pb.d.ts +245 -0
- package/dist/mimir/search/search_pb.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Error } from '../../util/error_pb.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum search.Order
|
|
6
|
+
*/
|
|
7
|
+
declare enum Order {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: ASC = 0;
|
|
10
|
+
*/
|
|
11
|
+
ASC = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: DESC = 1;
|
|
14
|
+
*/
|
|
15
|
+
DESC = 1
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum search.Quantifier
|
|
19
|
+
*/
|
|
20
|
+
declare enum Quantifier {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ANY = 0;
|
|
23
|
+
*/
|
|
24
|
+
ANY = 0,
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: ALL = 1;
|
|
27
|
+
*/
|
|
28
|
+
ALL = 1
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum search.Operation
|
|
32
|
+
*/
|
|
33
|
+
declare enum Operation {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: INCLUDE = 0;
|
|
36
|
+
*/
|
|
37
|
+
INCLUDE = 0,
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: EXCLUDE = 1;
|
|
40
|
+
*/
|
|
41
|
+
EXCLUDE = 1
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message search.SearchRequest
|
|
45
|
+
*/
|
|
46
|
+
declare class SearchRequest extends Message<SearchRequest> {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string query = 1;
|
|
49
|
+
*/
|
|
50
|
+
query: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: int32 version = 2;
|
|
53
|
+
*/
|
|
54
|
+
version: number;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: int32 offset = 3;
|
|
57
|
+
*/
|
|
58
|
+
offset: number;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: int32 limit = 4;
|
|
61
|
+
*/
|
|
62
|
+
limit: number;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: repeated search.Filter filters = 5;
|
|
65
|
+
*/
|
|
66
|
+
filters: Filter[];
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: search.Sort sort = 6;
|
|
69
|
+
*/
|
|
70
|
+
sort?: Sort;
|
|
71
|
+
constructor(data?: PartialMessage<SearchRequest>);
|
|
72
|
+
static readonly runtime: typeof proto3;
|
|
73
|
+
static readonly typeName = "search.SearchRequest";
|
|
74
|
+
static readonly fields: FieldList;
|
|
75
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchRequest;
|
|
76
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
77
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
78
|
+
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message search.Sort
|
|
82
|
+
*/
|
|
83
|
+
declare class Sort extends Message<Sort> {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string field = 1;
|
|
86
|
+
*/
|
|
87
|
+
field: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: search.Order order = 2;
|
|
90
|
+
*/
|
|
91
|
+
order: Order;
|
|
92
|
+
constructor(data?: PartialMessage<Sort>);
|
|
93
|
+
static readonly runtime: typeof proto3;
|
|
94
|
+
static readonly typeName = "search.Sort";
|
|
95
|
+
static readonly fields: FieldList;
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
|
|
98
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
|
|
99
|
+
static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from message search.Filter
|
|
103
|
+
*/
|
|
104
|
+
declare class Filter extends Message<Filter> {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string field = 1;
|
|
107
|
+
*/
|
|
108
|
+
field: string;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from oneof search.Filter.condition
|
|
111
|
+
*/
|
|
112
|
+
condition: {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: search.BoolFilter bool_filter = 2;
|
|
115
|
+
*/
|
|
116
|
+
value: BoolFilter;
|
|
117
|
+
case: "boolFilter";
|
|
118
|
+
} | {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: search.TimeRangeFilter time_range_filter = 3;
|
|
121
|
+
*/
|
|
122
|
+
value: TimeRangeFilter;
|
|
123
|
+
case: "timeRangeFilter";
|
|
124
|
+
} | {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: search.StringListFilter string_list_filter = 4;
|
|
127
|
+
*/
|
|
128
|
+
value: StringListFilter;
|
|
129
|
+
case: "stringListFilter";
|
|
130
|
+
} | {
|
|
131
|
+
case: undefined;
|
|
132
|
+
value?: undefined;
|
|
133
|
+
};
|
|
134
|
+
constructor(data?: PartialMessage<Filter>);
|
|
135
|
+
static readonly runtime: typeof proto3;
|
|
136
|
+
static readonly typeName = "search.Filter";
|
|
137
|
+
static readonly fields: FieldList;
|
|
138
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
|
|
139
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
|
|
140
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
|
|
141
|
+
static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message search.BoolFilter
|
|
145
|
+
*/
|
|
146
|
+
declare class BoolFilter extends Message<BoolFilter> {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: bool value = 1;
|
|
149
|
+
*/
|
|
150
|
+
value: boolean;
|
|
151
|
+
constructor(data?: PartialMessage<BoolFilter>);
|
|
152
|
+
static readonly runtime: typeof proto3;
|
|
153
|
+
static readonly typeName = "search.BoolFilter";
|
|
154
|
+
static readonly fields: FieldList;
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
158
|
+
static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message search.StringListFilter
|
|
162
|
+
*/
|
|
163
|
+
declare class StringListFilter extends Message<StringListFilter> {
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: repeated string value = 1;
|
|
166
|
+
*/
|
|
167
|
+
value: string[];
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: search.Quantifier quantifier = 2;
|
|
170
|
+
*/
|
|
171
|
+
quantifier: Quantifier;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: search.Operation operation = 3;
|
|
174
|
+
*/
|
|
175
|
+
operation: Operation;
|
|
176
|
+
constructor(data?: PartialMessage<StringListFilter>);
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "search.StringListFilter";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
183
|
+
static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message search.TimeRangeFilter
|
|
187
|
+
*/
|
|
188
|
+
declare class TimeRangeFilter extends Message<TimeRangeFilter> {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: optional int64 start_timestamp = 1;
|
|
191
|
+
*/
|
|
192
|
+
startTimestamp?: bigint;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: optional int64 end_timestamp = 2;
|
|
195
|
+
*/
|
|
196
|
+
endTimestamp?: bigint;
|
|
197
|
+
constructor(data?: PartialMessage<TimeRangeFilter>);
|
|
198
|
+
static readonly runtime: typeof proto3;
|
|
199
|
+
static readonly typeName = "search.TimeRangeFilter";
|
|
200
|
+
static readonly fields: FieldList;
|
|
201
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
203
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
204
|
+
static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message search.SearchResponse
|
|
208
|
+
*/
|
|
209
|
+
declare class SearchResponse extends Message<SearchResponse> {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: repeated search.SearchResult result = 1;
|
|
212
|
+
*/
|
|
213
|
+
result: SearchResult[];
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: repeated util.Error error = 2;
|
|
216
|
+
*/
|
|
217
|
+
error: Error[];
|
|
218
|
+
constructor(data?: PartialMessage<SearchResponse>);
|
|
219
|
+
static readonly runtime: typeof proto3;
|
|
220
|
+
static readonly typeName = "search.SearchResponse";
|
|
221
|
+
static readonly fields: FieldList;
|
|
222
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResponse;
|
|
223
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
224
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
225
|
+
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @generated from message search.SearchResult
|
|
229
|
+
*/
|
|
230
|
+
declare class SearchResult extends Message<SearchResult> {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string post_id = 1;
|
|
233
|
+
*/
|
|
234
|
+
postId: string;
|
|
235
|
+
constructor(data?: PartialMessage<SearchResult>);
|
|
236
|
+
static readonly runtime: typeof proto3;
|
|
237
|
+
static readonly typeName = "search.SearchResult";
|
|
238
|
+
static readonly fields: FieldList;
|
|
239
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResult;
|
|
240
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResult;
|
|
241
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResult;
|
|
242
|
+
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Error } from '../../util/error_pb.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum search.Order
|
|
6
|
+
*/
|
|
7
|
+
declare enum Order {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: ASC = 0;
|
|
10
|
+
*/
|
|
11
|
+
ASC = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: DESC = 1;
|
|
14
|
+
*/
|
|
15
|
+
DESC = 1
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum search.Quantifier
|
|
19
|
+
*/
|
|
20
|
+
declare enum Quantifier {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ANY = 0;
|
|
23
|
+
*/
|
|
24
|
+
ANY = 0,
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: ALL = 1;
|
|
27
|
+
*/
|
|
28
|
+
ALL = 1
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum search.Operation
|
|
32
|
+
*/
|
|
33
|
+
declare enum Operation {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: INCLUDE = 0;
|
|
36
|
+
*/
|
|
37
|
+
INCLUDE = 0,
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: EXCLUDE = 1;
|
|
40
|
+
*/
|
|
41
|
+
EXCLUDE = 1
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message search.SearchRequest
|
|
45
|
+
*/
|
|
46
|
+
declare class SearchRequest extends Message<SearchRequest> {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string query = 1;
|
|
49
|
+
*/
|
|
50
|
+
query: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: int32 version = 2;
|
|
53
|
+
*/
|
|
54
|
+
version: number;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: int32 offset = 3;
|
|
57
|
+
*/
|
|
58
|
+
offset: number;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: int32 limit = 4;
|
|
61
|
+
*/
|
|
62
|
+
limit: number;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: repeated search.Filter filters = 5;
|
|
65
|
+
*/
|
|
66
|
+
filters: Filter[];
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: search.Sort sort = 6;
|
|
69
|
+
*/
|
|
70
|
+
sort?: Sort;
|
|
71
|
+
constructor(data?: PartialMessage<SearchRequest>);
|
|
72
|
+
static readonly runtime: typeof proto3;
|
|
73
|
+
static readonly typeName = "search.SearchRequest";
|
|
74
|
+
static readonly fields: FieldList;
|
|
75
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchRequest;
|
|
76
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
77
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
78
|
+
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message search.Sort
|
|
82
|
+
*/
|
|
83
|
+
declare class Sort extends Message<Sort> {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string field = 1;
|
|
86
|
+
*/
|
|
87
|
+
field: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: search.Order order = 2;
|
|
90
|
+
*/
|
|
91
|
+
order: Order;
|
|
92
|
+
constructor(data?: PartialMessage<Sort>);
|
|
93
|
+
static readonly runtime: typeof proto3;
|
|
94
|
+
static readonly typeName = "search.Sort";
|
|
95
|
+
static readonly fields: FieldList;
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
|
|
98
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
|
|
99
|
+
static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from message search.Filter
|
|
103
|
+
*/
|
|
104
|
+
declare class Filter extends Message<Filter> {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string field = 1;
|
|
107
|
+
*/
|
|
108
|
+
field: string;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from oneof search.Filter.condition
|
|
111
|
+
*/
|
|
112
|
+
condition: {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: search.BoolFilter bool_filter = 2;
|
|
115
|
+
*/
|
|
116
|
+
value: BoolFilter;
|
|
117
|
+
case: "boolFilter";
|
|
118
|
+
} | {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: search.TimeRangeFilter time_range_filter = 3;
|
|
121
|
+
*/
|
|
122
|
+
value: TimeRangeFilter;
|
|
123
|
+
case: "timeRangeFilter";
|
|
124
|
+
} | {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: search.StringListFilter string_list_filter = 4;
|
|
127
|
+
*/
|
|
128
|
+
value: StringListFilter;
|
|
129
|
+
case: "stringListFilter";
|
|
130
|
+
} | {
|
|
131
|
+
case: undefined;
|
|
132
|
+
value?: undefined;
|
|
133
|
+
};
|
|
134
|
+
constructor(data?: PartialMessage<Filter>);
|
|
135
|
+
static readonly runtime: typeof proto3;
|
|
136
|
+
static readonly typeName = "search.Filter";
|
|
137
|
+
static readonly fields: FieldList;
|
|
138
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
|
|
139
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
|
|
140
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
|
|
141
|
+
static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message search.BoolFilter
|
|
145
|
+
*/
|
|
146
|
+
declare class BoolFilter extends Message<BoolFilter> {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: bool value = 1;
|
|
149
|
+
*/
|
|
150
|
+
value: boolean;
|
|
151
|
+
constructor(data?: PartialMessage<BoolFilter>);
|
|
152
|
+
static readonly runtime: typeof proto3;
|
|
153
|
+
static readonly typeName = "search.BoolFilter";
|
|
154
|
+
static readonly fields: FieldList;
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
157
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
|
|
158
|
+
static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message search.StringListFilter
|
|
162
|
+
*/
|
|
163
|
+
declare class StringListFilter extends Message<StringListFilter> {
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: repeated string value = 1;
|
|
166
|
+
*/
|
|
167
|
+
value: string[];
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: search.Quantifier quantifier = 2;
|
|
170
|
+
*/
|
|
171
|
+
quantifier: Quantifier;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: search.Operation operation = 3;
|
|
174
|
+
*/
|
|
175
|
+
operation: Operation;
|
|
176
|
+
constructor(data?: PartialMessage<StringListFilter>);
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "search.StringListFilter";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
|
|
183
|
+
static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message search.TimeRangeFilter
|
|
187
|
+
*/
|
|
188
|
+
declare class TimeRangeFilter extends Message<TimeRangeFilter> {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: optional int64 start_timestamp = 1;
|
|
191
|
+
*/
|
|
192
|
+
startTimestamp?: bigint;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: optional int64 end_timestamp = 2;
|
|
195
|
+
*/
|
|
196
|
+
endTimestamp?: bigint;
|
|
197
|
+
constructor(data?: PartialMessage<TimeRangeFilter>);
|
|
198
|
+
static readonly runtime: typeof proto3;
|
|
199
|
+
static readonly typeName = "search.TimeRangeFilter";
|
|
200
|
+
static readonly fields: FieldList;
|
|
201
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
203
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
|
|
204
|
+
static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message search.SearchResponse
|
|
208
|
+
*/
|
|
209
|
+
declare class SearchResponse extends Message<SearchResponse> {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: repeated search.SearchResult result = 1;
|
|
212
|
+
*/
|
|
213
|
+
result: SearchResult[];
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: repeated util.Error error = 2;
|
|
216
|
+
*/
|
|
217
|
+
error: Error[];
|
|
218
|
+
constructor(data?: PartialMessage<SearchResponse>);
|
|
219
|
+
static readonly runtime: typeof proto3;
|
|
220
|
+
static readonly typeName = "search.SearchResponse";
|
|
221
|
+
static readonly fields: FieldList;
|
|
222
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResponse;
|
|
223
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
224
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
225
|
+
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @generated from message search.SearchResult
|
|
229
|
+
*/
|
|
230
|
+
declare class SearchResult extends Message<SearchResult> {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string post_id = 1;
|
|
233
|
+
*/
|
|
234
|
+
postId: string;
|
|
235
|
+
constructor(data?: PartialMessage<SearchResult>);
|
|
236
|
+
static readonly runtime: typeof proto3;
|
|
237
|
+
static readonly typeName = "search.SearchResult";
|
|
238
|
+
static readonly fields: FieldList;
|
|
239
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchResult;
|
|
240
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchResult;
|
|
241
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResult;
|
|
242
|
+
static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as t,proto3 as e}from"@bufbuild/protobuf";import{Error as n}from"../../util/error_pb.ts";var r=(t=>(t[t.ASC=0]="ASC",t[t.DESC=1]="DESC",t))(r||{});e.util.setEnumType(r,"search.Order",[{no:0,name:"ASC"},{no:1,name:"DESC"}]);var i=(t=>(t[t.ANY=0]="ANY",t[t.ALL=1]="ALL",t))(i||{});e.util.setEnumType(i,"search.Quantifier",[{no:0,name:"ANY"},{no:1,name:"ALL"}]);var s=(t=>(t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t))(s||{});e.util.setEnumType(s,"search.Operation",[{no:0,name:"INCLUDE"},{no:1,name:"EXCLUDE"}]);class a extends t{query="";version=0;offset=0;limit=0;filters=[];sort;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"offset",kind:"scalar",T:5},{no:4,name:"limit",kind:"scalar",T:5},{no:5,name:"filters",kind:"message",T:u,repeated:!0},{no:6,name:"sort",kind:"message",T:o}]));static fromBinary(t,e){return(new a).fromBinary(t,e)}static fromJson(t,e){return(new a).fromJson(t,e)}static fromJsonString(t,e){return(new a).fromJsonString(t,e)}static equals(t,n){return e.util.equals(a,t,n)}}class o extends t{field="";order=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.Sort";static fields=e.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"enum",T:e.getEnumType(r)}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,n){return e.util.equals(o,t,n)}}class u extends t{field="";condition={case:void 0};constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.Filter";static fields=e.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"bool_filter",kind:"message",T:m,oneof:"condition"},{no:3,name:"time_range_filter",kind:"message",T:c,oneof:"condition"},{no:4,name:"string_list_filter",kind:"message",T:l,oneof:"condition"}]));static fromBinary(t,e){return(new u).fromBinary(t,e)}static fromJson(t,e){return(new u).fromJson(t,e)}static fromJsonString(t,e){return(new u).fromJsonString(t,e)}static equals(t,n){return e.util.equals(u,t,n)}}class m extends t{value=!1;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.BoolFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:8}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,n){return e.util.equals(m,t,n)}}class l extends t{value=[];quantifier=0;operation=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.StringListFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:9,repeated:!0},{no:2,name:"quantifier",kind:"enum",T:e.getEnumType(i)},{no:3,name:"operation",kind:"enum",T:e.getEnumType(s)}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,n){return e.util.equals(l,t,n)}}class c extends t{startTimestamp;endTimestamp;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.TimeRangeFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"start_timestamp",kind:"scalar",T:3,opt:!0},{no:2,name:"end_timestamp",kind:"scalar",T:3,opt:!0}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,n){return e.util.equals(c,t,n)}}class f extends t{result=[];error=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:d,repeated:!0},{no:2,name:"error",kind:"message",T:n,repeated:!0}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,n){return e.util.equals(f,t,n)}}class d extends t{postId="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchResult";static fields=e.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,n){return e.util.equals(d,t,n)}}export{m as BoolFilter,u as Filter,s as Operation,r as Order,i as Quantifier,a as SearchRequest,f as SearchResponse,d as SearchResult,o as Sort,l as StringListFilter,c as TimeRangeFilter};
|