@dailydotdev/schema 0.1.0
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/LICENSE +661 -0
- package/README.md +1 -0
- package/dist/bragi/pipelines_connect.cjs +133 -0
- package/dist/bragi/pipelines_connect.d.cts +113 -0
- package/dist/bragi/pipelines_connect.d.ts +113 -0
- package/dist/bragi/pipelines_connect.js +110 -0
- package/dist/bragi/pipelines_pb.cjs +842 -0
- package/dist/bragi/pipelines_pb.d.cts +467 -0
- package/dist/bragi/pipelines_pb.d.ts +467 -0
- package/dist/bragi/pipelines_pb.js +801 -0
- package/dist/bragi/proxy_connect.cjs +88 -0
- package/dist/bragi/proxy_connect.d.cts +68 -0
- package/dist/bragi/proxy_connect.d.ts +68 -0
- package/dist/bragi/proxy_connect.js +65 -0
- package/dist/bragi/proxy_pb.cjs +595 -0
- package/dist/bragi/proxy_pb.d.cts +332 -0
- package/dist/bragi/proxy_pb.d.ts +332 -0
- package/dist/bragi/proxy_pb.js +561 -0
- package/dist/daily-api/posts_connect.cjs +44 -0
- package/dist/daily-api/posts_connect.d.cts +24 -0
- package/dist/daily-api/posts_connect.d.ts +24 -0
- package/dist/daily-api/posts_connect.js +21 -0
- package/dist/daily-api/posts_pb.cjs +122 -0
- package/dist/daily-api/posts_pb.d.cts +50 -0
- package/dist/daily-api/posts_pb.d.ts +50 -0
- package/dist/daily-api/posts_pb.js +98 -0
- package/dist/feed/personalised/personalised_pb.cjs +122 -0
- package/dist/feed/personalised/personalised_pb.d.cts +50 -0
- package/dist/feed/personalised/personalised_pb.d.ts +50 -0
- package/dist/feed/personalised/personalised_pb.js +98 -0
- package/dist/index.cjs +39 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/snotra/engagement/engagement_pb.cjs +201 -0
- package/dist/snotra/engagement/engagement_pb.d.cts +133 -0
- package/dist/snotra/engagement/engagement_pb.d.ts +133 -0
- package/dist/snotra/engagement/engagement_pb.js +175 -0
- package/dist/snotra/personalisation/personalisation_pb.cjs +431 -0
- package/dist/snotra/personalisation/personalisation_pb.d.cts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.d.ts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.js +400 -0
- package/dist/util/error_pb.cjs +71 -0
- package/dist/util/error_pb.d.cts +25 -0
- package/dist/util/error_pb.d.ts +25 -0
- package/dist/util/error_pb.js +48 -0
- package/package.json +44 -0
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
2
|
+
var ContentFormat = /* @__PURE__ */ ((ContentFormat2) => {
|
|
3
|
+
ContentFormat2[ContentFormat2["XML"] = 0] = "XML";
|
|
4
|
+
ContentFormat2[ContentFormat2["Markdown"] = 1] = "Markdown";
|
|
5
|
+
ContentFormat2[ContentFormat2["HTML"] = 2] = "HTML";
|
|
6
|
+
return ContentFormat2;
|
|
7
|
+
})(ContentFormat || {});
|
|
8
|
+
proto3.util.setEnumType(ContentFormat, "bragi.pipelines.ContentFormat", [
|
|
9
|
+
{ no: 0, name: "XML" },
|
|
10
|
+
{ no: 1, name: "Markdown" },
|
|
11
|
+
{ no: 2, name: "HTML" }
|
|
12
|
+
]);
|
|
13
|
+
var ContextBuildingStrategy = /* @__PURE__ */ ((ContextBuildingStrategy2) => {
|
|
14
|
+
ContextBuildingStrategy2[ContextBuildingStrategy2["StuffDocumentFirst"] = 0] = "StuffDocumentFirst";
|
|
15
|
+
return ContextBuildingStrategy2;
|
|
16
|
+
})(ContextBuildingStrategy || {});
|
|
17
|
+
proto3.util.setEnumType(ContextBuildingStrategy, "bragi.pipelines.ContextBuildingStrategy", [
|
|
18
|
+
{ no: 0, name: "StuffDocumentFirst" }
|
|
19
|
+
]);
|
|
20
|
+
class EnrichRequest extends Message {
|
|
21
|
+
/**
|
|
22
|
+
* Format of the content
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: bragi.pipelines.ContentFormat content_format = 1;
|
|
25
|
+
*/
|
|
26
|
+
contentFormat = 0 /* XML */;
|
|
27
|
+
/**
|
|
28
|
+
* Posts' content
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string content = 2;
|
|
31
|
+
*/
|
|
32
|
+
content = "";
|
|
33
|
+
/**
|
|
34
|
+
* Post's title
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string title = 3;
|
|
37
|
+
*/
|
|
38
|
+
title = "";
|
|
39
|
+
constructor(data) {
|
|
40
|
+
super();
|
|
41
|
+
proto3.util.initPartial(data, this);
|
|
42
|
+
}
|
|
43
|
+
static runtime = proto3;
|
|
44
|
+
static typeName = "bragi.pipelines.EnrichRequest";
|
|
45
|
+
static fields = proto3.util.newFieldList(() => [
|
|
46
|
+
{ no: 1, name: "content_format", kind: "enum", T: proto3.getEnumType(ContentFormat) },
|
|
47
|
+
{
|
|
48
|
+
no: 2,
|
|
49
|
+
name: "content",
|
|
50
|
+
kind: "scalar",
|
|
51
|
+
T: 9
|
|
52
|
+
/* ScalarType.STRING */
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
no: 3,
|
|
56
|
+
name: "title",
|
|
57
|
+
kind: "scalar",
|
|
58
|
+
T: 9
|
|
59
|
+
/* ScalarType.STRING */
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
62
|
+
static fromBinary(bytes, options) {
|
|
63
|
+
return new EnrichRequest().fromBinary(bytes, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJson(jsonValue, options) {
|
|
66
|
+
return new EnrichRequest().fromJson(jsonValue, options);
|
|
67
|
+
}
|
|
68
|
+
static fromJsonString(jsonString, options) {
|
|
69
|
+
return new EnrichRequest().fromJsonString(jsonString, options);
|
|
70
|
+
}
|
|
71
|
+
static equals(a, b) {
|
|
72
|
+
return proto3.util.equals(EnrichRequest, a, b);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
class PostDimensions extends Message {
|
|
76
|
+
/**
|
|
77
|
+
* Summary of the post
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string summary = 1;
|
|
80
|
+
*/
|
|
81
|
+
summary = "";
|
|
82
|
+
/**
|
|
83
|
+
* List of tags/topics
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: repeated string tags = 2;
|
|
86
|
+
*/
|
|
87
|
+
tags = [];
|
|
88
|
+
/**
|
|
89
|
+
* List of followup questions a user may ask
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: repeated string questions = 3;
|
|
92
|
+
*/
|
|
93
|
+
questions = [];
|
|
94
|
+
/**
|
|
95
|
+
* Types of content (news, story, opinion, etc)
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: repeated string content_curation = 4;
|
|
98
|
+
*/
|
|
99
|
+
contentCuration = [];
|
|
100
|
+
constructor(data) {
|
|
101
|
+
super();
|
|
102
|
+
proto3.util.initPartial(data, this);
|
|
103
|
+
}
|
|
104
|
+
static runtime = proto3;
|
|
105
|
+
static typeName = "bragi.pipelines.PostDimensions";
|
|
106
|
+
static fields = proto3.util.newFieldList(() => [
|
|
107
|
+
{
|
|
108
|
+
no: 1,
|
|
109
|
+
name: "summary",
|
|
110
|
+
kind: "scalar",
|
|
111
|
+
T: 9
|
|
112
|
+
/* ScalarType.STRING */
|
|
113
|
+
},
|
|
114
|
+
{ no: 2, name: "tags", kind: "scalar", T: 9, repeated: true },
|
|
115
|
+
{ no: 3, name: "questions", kind: "scalar", T: 9, repeated: true },
|
|
116
|
+
{ no: 4, name: "content_curation", kind: "scalar", T: 9, repeated: true }
|
|
117
|
+
]);
|
|
118
|
+
static fromBinary(bytes, options) {
|
|
119
|
+
return new PostDimensions().fromBinary(bytes, options);
|
|
120
|
+
}
|
|
121
|
+
static fromJson(jsonValue, options) {
|
|
122
|
+
return new PostDimensions().fromJson(jsonValue, options);
|
|
123
|
+
}
|
|
124
|
+
static fromJsonString(jsonString, options) {
|
|
125
|
+
return new PostDimensions().fromJsonString(jsonString, options);
|
|
126
|
+
}
|
|
127
|
+
static equals(a, b) {
|
|
128
|
+
return proto3.util.equals(PostDimensions, a, b);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
class EnrichResponse extends Message {
|
|
132
|
+
/**
|
|
133
|
+
* Operation id
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string id = 1;
|
|
136
|
+
*/
|
|
137
|
+
id = "";
|
|
138
|
+
/**
|
|
139
|
+
* Model used to enrich the post
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string model = 2;
|
|
142
|
+
*/
|
|
143
|
+
model = "";
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: bragi.pipelines.PostDimensions dims = 3;
|
|
146
|
+
*/
|
|
147
|
+
dims;
|
|
148
|
+
constructor(data) {
|
|
149
|
+
super();
|
|
150
|
+
proto3.util.initPartial(data, this);
|
|
151
|
+
}
|
|
152
|
+
static runtime = proto3;
|
|
153
|
+
static typeName = "bragi.pipelines.EnrichResponse";
|
|
154
|
+
static fields = proto3.util.newFieldList(() => [
|
|
155
|
+
{
|
|
156
|
+
no: 1,
|
|
157
|
+
name: "id",
|
|
158
|
+
kind: "scalar",
|
|
159
|
+
T: 9
|
|
160
|
+
/* ScalarType.STRING */
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
no: 2,
|
|
164
|
+
name: "model",
|
|
165
|
+
kind: "scalar",
|
|
166
|
+
T: 9
|
|
167
|
+
/* ScalarType.STRING */
|
|
168
|
+
},
|
|
169
|
+
{ no: 3, name: "dims", kind: "message", T: PostDimensions }
|
|
170
|
+
]);
|
|
171
|
+
static fromBinary(bytes, options) {
|
|
172
|
+
return new EnrichResponse().fromBinary(bytes, options);
|
|
173
|
+
}
|
|
174
|
+
static fromJson(jsonValue, options) {
|
|
175
|
+
return new EnrichResponse().fromJson(jsonValue, options);
|
|
176
|
+
}
|
|
177
|
+
static fromJsonString(jsonString, options) {
|
|
178
|
+
return new EnrichResponse().fromJsonString(jsonString, options);
|
|
179
|
+
}
|
|
180
|
+
static equals(a, b) {
|
|
181
|
+
return proto3.util.equals(EnrichResponse, a, b);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class SearchQueryRequest extends Message {
|
|
185
|
+
/**
|
|
186
|
+
* User's prompt
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: string prompt = 1;
|
|
189
|
+
*/
|
|
190
|
+
prompt = "";
|
|
191
|
+
constructor(data) {
|
|
192
|
+
super();
|
|
193
|
+
proto3.util.initPartial(data, this);
|
|
194
|
+
}
|
|
195
|
+
static runtime = proto3;
|
|
196
|
+
static typeName = "bragi.pipelines.SearchQueryRequest";
|
|
197
|
+
static fields = proto3.util.newFieldList(() => [
|
|
198
|
+
{
|
|
199
|
+
no: 1,
|
|
200
|
+
name: "prompt",
|
|
201
|
+
kind: "scalar",
|
|
202
|
+
T: 9
|
|
203
|
+
/* ScalarType.STRING */
|
|
204
|
+
}
|
|
205
|
+
]);
|
|
206
|
+
static fromBinary(bytes, options) {
|
|
207
|
+
return new SearchQueryRequest().fromBinary(bytes, options);
|
|
208
|
+
}
|
|
209
|
+
static fromJson(jsonValue, options) {
|
|
210
|
+
return new SearchQueryRequest().fromJson(jsonValue, options);
|
|
211
|
+
}
|
|
212
|
+
static fromJsonString(jsonString, options) {
|
|
213
|
+
return new SearchQueryRequest().fromJsonString(jsonString, options);
|
|
214
|
+
}
|
|
215
|
+
static equals(a, b) {
|
|
216
|
+
return proto3.util.equals(SearchQueryRequest, a, b);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
class SearchQueryResponse extends Message {
|
|
220
|
+
/**
|
|
221
|
+
* Operation id
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: string id = 1;
|
|
224
|
+
*/
|
|
225
|
+
id = "";
|
|
226
|
+
/**
|
|
227
|
+
* Search query
|
|
228
|
+
*
|
|
229
|
+
* @generated from field: string query = 2;
|
|
230
|
+
*/
|
|
231
|
+
query = "";
|
|
232
|
+
constructor(data) {
|
|
233
|
+
super();
|
|
234
|
+
proto3.util.initPartial(data, this);
|
|
235
|
+
}
|
|
236
|
+
static runtime = proto3;
|
|
237
|
+
static typeName = "bragi.pipelines.SearchQueryResponse";
|
|
238
|
+
static fields = proto3.util.newFieldList(() => [
|
|
239
|
+
{
|
|
240
|
+
no: 1,
|
|
241
|
+
name: "id",
|
|
242
|
+
kind: "scalar",
|
|
243
|
+
T: 9
|
|
244
|
+
/* ScalarType.STRING */
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
no: 2,
|
|
248
|
+
name: "query",
|
|
249
|
+
kind: "scalar",
|
|
250
|
+
T: 9
|
|
251
|
+
/* ScalarType.STRING */
|
|
252
|
+
}
|
|
253
|
+
]);
|
|
254
|
+
static fromBinary(bytes, options) {
|
|
255
|
+
return new SearchQueryResponse().fromBinary(bytes, options);
|
|
256
|
+
}
|
|
257
|
+
static fromJson(jsonValue, options) {
|
|
258
|
+
return new SearchQueryResponse().fromJson(jsonValue, options);
|
|
259
|
+
}
|
|
260
|
+
static fromJsonString(jsonString, options) {
|
|
261
|
+
return new SearchQueryResponse().fromJsonString(jsonString, options);
|
|
262
|
+
}
|
|
263
|
+
static equals(a, b) {
|
|
264
|
+
return proto3.util.equals(SearchQueryResponse, a, b);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
class FilterSearchRequest extends Message {
|
|
268
|
+
/**
|
|
269
|
+
* User's prompt
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: string prompt = 1;
|
|
272
|
+
*/
|
|
273
|
+
prompt = "";
|
|
274
|
+
/**
|
|
275
|
+
* Search results as a JSON string
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: string results = 2;
|
|
278
|
+
*/
|
|
279
|
+
results = "";
|
|
280
|
+
constructor(data) {
|
|
281
|
+
super();
|
|
282
|
+
proto3.util.initPartial(data, this);
|
|
283
|
+
}
|
|
284
|
+
static runtime = proto3;
|
|
285
|
+
static typeName = "bragi.pipelines.FilterSearchRequest";
|
|
286
|
+
static fields = proto3.util.newFieldList(() => [
|
|
287
|
+
{
|
|
288
|
+
no: 1,
|
|
289
|
+
name: "prompt",
|
|
290
|
+
kind: "scalar",
|
|
291
|
+
T: 9
|
|
292
|
+
/* ScalarType.STRING */
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
no: 2,
|
|
296
|
+
name: "results",
|
|
297
|
+
kind: "scalar",
|
|
298
|
+
T: 9
|
|
299
|
+
/* ScalarType.STRING */
|
|
300
|
+
}
|
|
301
|
+
]);
|
|
302
|
+
static fromBinary(bytes, options) {
|
|
303
|
+
return new FilterSearchRequest().fromBinary(bytes, options);
|
|
304
|
+
}
|
|
305
|
+
static fromJson(jsonValue, options) {
|
|
306
|
+
return new FilterSearchRequest().fromJson(jsonValue, options);
|
|
307
|
+
}
|
|
308
|
+
static fromJsonString(jsonString, options) {
|
|
309
|
+
return new FilterSearchRequest().fromJsonString(jsonString, options);
|
|
310
|
+
}
|
|
311
|
+
static equals(a, b) {
|
|
312
|
+
return proto3.util.equals(FilterSearchRequest, a, b);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
class FilterSearchResponse extends Message {
|
|
316
|
+
/**
|
|
317
|
+
* Operation id
|
|
318
|
+
*
|
|
319
|
+
* @generated from field: string id = 1;
|
|
320
|
+
*/
|
|
321
|
+
id = "";
|
|
322
|
+
/**
|
|
323
|
+
* Index of search results to keep
|
|
324
|
+
*
|
|
325
|
+
* @generated from field: repeated uint32 indexes = 2;
|
|
326
|
+
*/
|
|
327
|
+
indexes = [];
|
|
328
|
+
constructor(data) {
|
|
329
|
+
super();
|
|
330
|
+
proto3.util.initPartial(data, this);
|
|
331
|
+
}
|
|
332
|
+
static runtime = proto3;
|
|
333
|
+
static typeName = "bragi.pipelines.FilterSearchResponse";
|
|
334
|
+
static fields = proto3.util.newFieldList(() => [
|
|
335
|
+
{
|
|
336
|
+
no: 1,
|
|
337
|
+
name: "id",
|
|
338
|
+
kind: "scalar",
|
|
339
|
+
T: 9
|
|
340
|
+
/* ScalarType.STRING */
|
|
341
|
+
},
|
|
342
|
+
{ no: 2, name: "indexes", kind: "scalar", T: 13, repeated: true }
|
|
343
|
+
]);
|
|
344
|
+
static fromBinary(bytes, options) {
|
|
345
|
+
return new FilterSearchResponse().fromBinary(bytes, options);
|
|
346
|
+
}
|
|
347
|
+
static fromJson(jsonValue, options) {
|
|
348
|
+
return new FilterSearchResponse().fromJson(jsonValue, options);
|
|
349
|
+
}
|
|
350
|
+
static fromJsonString(jsonString, options) {
|
|
351
|
+
return new FilterSearchResponse().fromJsonString(jsonString, options);
|
|
352
|
+
}
|
|
353
|
+
static equals(a, b) {
|
|
354
|
+
return proto3.util.equals(FilterSearchResponse, a, b);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
class ScrapedPage extends Message {
|
|
358
|
+
/**
|
|
359
|
+
* Page's HTML
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: string page = 1;
|
|
362
|
+
*/
|
|
363
|
+
page = "";
|
|
364
|
+
/**
|
|
365
|
+
* Page's URL
|
|
366
|
+
*
|
|
367
|
+
* @generated from field: string url = 2;
|
|
368
|
+
*/
|
|
369
|
+
url = "";
|
|
370
|
+
constructor(data) {
|
|
371
|
+
super();
|
|
372
|
+
proto3.util.initPartial(data, this);
|
|
373
|
+
}
|
|
374
|
+
static runtime = proto3;
|
|
375
|
+
static typeName = "bragi.pipelines.ScrapedPage";
|
|
376
|
+
static fields = proto3.util.newFieldList(() => [
|
|
377
|
+
{
|
|
378
|
+
no: 1,
|
|
379
|
+
name: "page",
|
|
380
|
+
kind: "scalar",
|
|
381
|
+
T: 9
|
|
382
|
+
/* ScalarType.STRING */
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
no: 2,
|
|
386
|
+
name: "url",
|
|
387
|
+
kind: "scalar",
|
|
388
|
+
T: 9
|
|
389
|
+
/* ScalarType.STRING */
|
|
390
|
+
}
|
|
391
|
+
]);
|
|
392
|
+
static fromBinary(bytes, options) {
|
|
393
|
+
return new ScrapedPage().fromBinary(bytes, options);
|
|
394
|
+
}
|
|
395
|
+
static fromJson(jsonValue, options) {
|
|
396
|
+
return new ScrapedPage().fromJson(jsonValue, options);
|
|
397
|
+
}
|
|
398
|
+
static fromJsonString(jsonString, options) {
|
|
399
|
+
return new ScrapedPage().fromJsonString(jsonString, options);
|
|
400
|
+
}
|
|
401
|
+
static equals(a, b) {
|
|
402
|
+
return proto3.util.equals(ScrapedPage, a, b);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
class SearchPromptRequest extends Message {
|
|
406
|
+
/**
|
|
407
|
+
* User's prompt
|
|
408
|
+
*
|
|
409
|
+
* @generated from field: string prompt = 1;
|
|
410
|
+
*/
|
|
411
|
+
prompt = "";
|
|
412
|
+
/**
|
|
413
|
+
* Scraped search results
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: repeated bragi.pipelines.ScrapedPage search_results = 2;
|
|
416
|
+
*/
|
|
417
|
+
searchResults = [];
|
|
418
|
+
/**
|
|
419
|
+
* Context building strategy
|
|
420
|
+
*
|
|
421
|
+
* @generated from field: bragi.pipelines.ContextBuildingStrategy strategy = 3;
|
|
422
|
+
*/
|
|
423
|
+
strategy = 0 /* StuffDocumentFirst */;
|
|
424
|
+
constructor(data) {
|
|
425
|
+
super();
|
|
426
|
+
proto3.util.initPartial(data, this);
|
|
427
|
+
}
|
|
428
|
+
static runtime = proto3;
|
|
429
|
+
static typeName = "bragi.pipelines.SearchPromptRequest";
|
|
430
|
+
static fields = proto3.util.newFieldList(() => [
|
|
431
|
+
{
|
|
432
|
+
no: 1,
|
|
433
|
+
name: "prompt",
|
|
434
|
+
kind: "scalar",
|
|
435
|
+
T: 9
|
|
436
|
+
/* ScalarType.STRING */
|
|
437
|
+
},
|
|
438
|
+
{ no: 2, name: "search_results", kind: "message", T: ScrapedPage, repeated: true },
|
|
439
|
+
{ no: 3, name: "strategy", kind: "enum", T: proto3.getEnumType(ContextBuildingStrategy) }
|
|
440
|
+
]);
|
|
441
|
+
static fromBinary(bytes, options) {
|
|
442
|
+
return new SearchPromptRequest().fromBinary(bytes, options);
|
|
443
|
+
}
|
|
444
|
+
static fromJson(jsonValue, options) {
|
|
445
|
+
return new SearchPromptRequest().fromJson(jsonValue, options);
|
|
446
|
+
}
|
|
447
|
+
static fromJsonString(jsonString, options) {
|
|
448
|
+
return new SearchPromptRequest().fromJsonString(jsonString, options);
|
|
449
|
+
}
|
|
450
|
+
static equals(a, b) {
|
|
451
|
+
return proto3.util.equals(SearchPromptRequest, a, b);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
class SearchPromptV2Request extends Message {
|
|
455
|
+
/**
|
|
456
|
+
* User's prompt
|
|
457
|
+
*
|
|
458
|
+
* @generated from field: string prompt = 1;
|
|
459
|
+
*/
|
|
460
|
+
prompt = "";
|
|
461
|
+
/**
|
|
462
|
+
* Search results urls
|
|
463
|
+
*
|
|
464
|
+
* @generated from field: repeated string urls = 2;
|
|
465
|
+
*/
|
|
466
|
+
urls = [];
|
|
467
|
+
/**
|
|
468
|
+
* Context building strategy
|
|
469
|
+
*
|
|
470
|
+
* @generated from field: bragi.pipelines.ContextBuildingStrategy strategy = 3;
|
|
471
|
+
*/
|
|
472
|
+
strategy = 0 /* StuffDocumentFirst */;
|
|
473
|
+
constructor(data) {
|
|
474
|
+
super();
|
|
475
|
+
proto3.util.initPartial(data, this);
|
|
476
|
+
}
|
|
477
|
+
static runtime = proto3;
|
|
478
|
+
static typeName = "bragi.pipelines.SearchPromptV2Request";
|
|
479
|
+
static fields = proto3.util.newFieldList(() => [
|
|
480
|
+
{
|
|
481
|
+
no: 1,
|
|
482
|
+
name: "prompt",
|
|
483
|
+
kind: "scalar",
|
|
484
|
+
T: 9
|
|
485
|
+
/* ScalarType.STRING */
|
|
486
|
+
},
|
|
487
|
+
{ no: 2, name: "urls", kind: "scalar", T: 9, repeated: true },
|
|
488
|
+
{ no: 3, name: "strategy", kind: "enum", T: proto3.getEnumType(ContextBuildingStrategy) }
|
|
489
|
+
]);
|
|
490
|
+
static fromBinary(bytes, options) {
|
|
491
|
+
return new SearchPromptV2Request().fromBinary(bytes, options);
|
|
492
|
+
}
|
|
493
|
+
static fromJson(jsonValue, options) {
|
|
494
|
+
return new SearchPromptV2Request().fromJson(jsonValue, options);
|
|
495
|
+
}
|
|
496
|
+
static fromJsonString(jsonString, options) {
|
|
497
|
+
return new SearchPromptV2Request().fromJsonString(jsonString, options);
|
|
498
|
+
}
|
|
499
|
+
static equals(a, b) {
|
|
500
|
+
return proto3.util.equals(SearchPromptV2Request, a, b);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
class SearchPromptResponse extends Message {
|
|
504
|
+
/**
|
|
505
|
+
* Generated prompt
|
|
506
|
+
*
|
|
507
|
+
* @generated from field: string prompt = 1;
|
|
508
|
+
*/
|
|
509
|
+
prompt = "";
|
|
510
|
+
constructor(data) {
|
|
511
|
+
super();
|
|
512
|
+
proto3.util.initPartial(data, this);
|
|
513
|
+
}
|
|
514
|
+
static runtime = proto3;
|
|
515
|
+
static typeName = "bragi.pipelines.SearchPromptResponse";
|
|
516
|
+
static fields = proto3.util.newFieldList(() => [
|
|
517
|
+
{
|
|
518
|
+
no: 1,
|
|
519
|
+
name: "prompt",
|
|
520
|
+
kind: "scalar",
|
|
521
|
+
T: 9
|
|
522
|
+
/* ScalarType.STRING */
|
|
523
|
+
}
|
|
524
|
+
]);
|
|
525
|
+
static fromBinary(bytes, options) {
|
|
526
|
+
return new SearchPromptResponse().fromBinary(bytes, options);
|
|
527
|
+
}
|
|
528
|
+
static fromJson(jsonValue, options) {
|
|
529
|
+
return new SearchPromptResponse().fromJson(jsonValue, options);
|
|
530
|
+
}
|
|
531
|
+
static fromJsonString(jsonString, options) {
|
|
532
|
+
return new SearchPromptResponse().fromJsonString(jsonString, options);
|
|
533
|
+
}
|
|
534
|
+
static equals(a, b) {
|
|
535
|
+
return proto3.util.equals(SearchPromptResponse, a, b);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
class SearchAnswerRequest extends Message {
|
|
539
|
+
/**
|
|
540
|
+
* Prompt to answer
|
|
541
|
+
*
|
|
542
|
+
* @generated from field: string prompt = 1;
|
|
543
|
+
*/
|
|
544
|
+
prompt = "";
|
|
545
|
+
constructor(data) {
|
|
546
|
+
super();
|
|
547
|
+
proto3.util.initPartial(data, this);
|
|
548
|
+
}
|
|
549
|
+
static runtime = proto3;
|
|
550
|
+
static typeName = "bragi.pipelines.SearchAnswerRequest";
|
|
551
|
+
static fields = proto3.util.newFieldList(() => [
|
|
552
|
+
{
|
|
553
|
+
no: 1,
|
|
554
|
+
name: "prompt",
|
|
555
|
+
kind: "scalar",
|
|
556
|
+
T: 9
|
|
557
|
+
/* ScalarType.STRING */
|
|
558
|
+
}
|
|
559
|
+
]);
|
|
560
|
+
static fromBinary(bytes, options) {
|
|
561
|
+
return new SearchAnswerRequest().fromBinary(bytes, options);
|
|
562
|
+
}
|
|
563
|
+
static fromJson(jsonValue, options) {
|
|
564
|
+
return new SearchAnswerRequest().fromJson(jsonValue, options);
|
|
565
|
+
}
|
|
566
|
+
static fromJsonString(jsonString, options) {
|
|
567
|
+
return new SearchAnswerRequest().fromJsonString(jsonString, options);
|
|
568
|
+
}
|
|
569
|
+
static equals(a, b) {
|
|
570
|
+
return proto3.util.equals(SearchAnswerRequest, a, b);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
class IsPageInCacheRequest extends Message {
|
|
574
|
+
/**
|
|
575
|
+
* URL to check
|
|
576
|
+
*
|
|
577
|
+
* @generated from field: string url = 1;
|
|
578
|
+
*/
|
|
579
|
+
url = "";
|
|
580
|
+
constructor(data) {
|
|
581
|
+
super();
|
|
582
|
+
proto3.util.initPartial(data, this);
|
|
583
|
+
}
|
|
584
|
+
static runtime = proto3;
|
|
585
|
+
static typeName = "bragi.pipelines.IsPageInCacheRequest";
|
|
586
|
+
static fields = proto3.util.newFieldList(() => [
|
|
587
|
+
{
|
|
588
|
+
no: 1,
|
|
589
|
+
name: "url",
|
|
590
|
+
kind: "scalar",
|
|
591
|
+
T: 9
|
|
592
|
+
/* ScalarType.STRING */
|
|
593
|
+
}
|
|
594
|
+
]);
|
|
595
|
+
static fromBinary(bytes, options) {
|
|
596
|
+
return new IsPageInCacheRequest().fromBinary(bytes, options);
|
|
597
|
+
}
|
|
598
|
+
static fromJson(jsonValue, options) {
|
|
599
|
+
return new IsPageInCacheRequest().fromJson(jsonValue, options);
|
|
600
|
+
}
|
|
601
|
+
static fromJsonString(jsonString, options) {
|
|
602
|
+
return new IsPageInCacheRequest().fromJsonString(jsonString, options);
|
|
603
|
+
}
|
|
604
|
+
static equals(a, b) {
|
|
605
|
+
return proto3.util.equals(IsPageInCacheRequest, a, b);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
class IsPageInCacheResponse extends Message {
|
|
609
|
+
/**
|
|
610
|
+
* Whether the page is in the cache
|
|
611
|
+
*
|
|
612
|
+
* @generated from field: bool in_cache = 1;
|
|
613
|
+
*/
|
|
614
|
+
inCache = false;
|
|
615
|
+
constructor(data) {
|
|
616
|
+
super();
|
|
617
|
+
proto3.util.initPartial(data, this);
|
|
618
|
+
}
|
|
619
|
+
static runtime = proto3;
|
|
620
|
+
static typeName = "bragi.pipelines.IsPageInCacheResponse";
|
|
621
|
+
static fields = proto3.util.newFieldList(() => [
|
|
622
|
+
{
|
|
623
|
+
no: 1,
|
|
624
|
+
name: "in_cache",
|
|
625
|
+
kind: "scalar",
|
|
626
|
+
T: 8
|
|
627
|
+
/* ScalarType.BOOL */
|
|
628
|
+
}
|
|
629
|
+
]);
|
|
630
|
+
static fromBinary(bytes, options) {
|
|
631
|
+
return new IsPageInCacheResponse().fromBinary(bytes, options);
|
|
632
|
+
}
|
|
633
|
+
static fromJson(jsonValue, options) {
|
|
634
|
+
return new IsPageInCacheResponse().fromJson(jsonValue, options);
|
|
635
|
+
}
|
|
636
|
+
static fromJsonString(jsonString, options) {
|
|
637
|
+
return new IsPageInCacheResponse().fromJsonString(jsonString, options);
|
|
638
|
+
}
|
|
639
|
+
static equals(a, b) {
|
|
640
|
+
return proto3.util.equals(IsPageInCacheResponse, a, b);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
class CollectionPostInput extends Message {
|
|
644
|
+
/**
|
|
645
|
+
* Post's title
|
|
646
|
+
*
|
|
647
|
+
* @generated from field: string title = 1;
|
|
648
|
+
*/
|
|
649
|
+
title = "";
|
|
650
|
+
/**
|
|
651
|
+
* Post's summary (TLDR)
|
|
652
|
+
*
|
|
653
|
+
* @generated from field: string summary = 2;
|
|
654
|
+
*/
|
|
655
|
+
summary = "";
|
|
656
|
+
constructor(data) {
|
|
657
|
+
super();
|
|
658
|
+
proto3.util.initPartial(data, this);
|
|
659
|
+
}
|
|
660
|
+
static runtime = proto3;
|
|
661
|
+
static typeName = "bragi.pipelines.CollectionPostInput";
|
|
662
|
+
static fields = proto3.util.newFieldList(() => [
|
|
663
|
+
{
|
|
664
|
+
no: 1,
|
|
665
|
+
name: "title",
|
|
666
|
+
kind: "scalar",
|
|
667
|
+
T: 9
|
|
668
|
+
/* ScalarType.STRING */
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
no: 2,
|
|
672
|
+
name: "summary",
|
|
673
|
+
kind: "scalar",
|
|
674
|
+
T: 9
|
|
675
|
+
/* ScalarType.STRING */
|
|
676
|
+
}
|
|
677
|
+
]);
|
|
678
|
+
static fromBinary(bytes, options) {
|
|
679
|
+
return new CollectionPostInput().fromBinary(bytes, options);
|
|
680
|
+
}
|
|
681
|
+
static fromJson(jsonValue, options) {
|
|
682
|
+
return new CollectionPostInput().fromJson(jsonValue, options);
|
|
683
|
+
}
|
|
684
|
+
static fromJsonString(jsonString, options) {
|
|
685
|
+
return new CollectionPostInput().fromJsonString(jsonString, options);
|
|
686
|
+
}
|
|
687
|
+
static equals(a, b) {
|
|
688
|
+
return proto3.util.equals(CollectionPostInput, a, b);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
class GenerateCollectionRequest extends Message {
|
|
692
|
+
/**
|
|
693
|
+
* Posts to generate the collection from
|
|
694
|
+
*
|
|
695
|
+
* @generated from field: repeated bragi.pipelines.CollectionPostInput posts = 1;
|
|
696
|
+
*/
|
|
697
|
+
posts = [];
|
|
698
|
+
constructor(data) {
|
|
699
|
+
super();
|
|
700
|
+
proto3.util.initPartial(data, this);
|
|
701
|
+
}
|
|
702
|
+
static runtime = proto3;
|
|
703
|
+
static typeName = "bragi.pipelines.GenerateCollectionRequest";
|
|
704
|
+
static fields = proto3.util.newFieldList(() => [
|
|
705
|
+
{ no: 1, name: "posts", kind: "message", T: CollectionPostInput, repeated: true }
|
|
706
|
+
]);
|
|
707
|
+
static fromBinary(bytes, options) {
|
|
708
|
+
return new GenerateCollectionRequest().fromBinary(bytes, options);
|
|
709
|
+
}
|
|
710
|
+
static fromJson(jsonValue, options) {
|
|
711
|
+
return new GenerateCollectionRequest().fromJson(jsonValue, options);
|
|
712
|
+
}
|
|
713
|
+
static fromJsonString(jsonString, options) {
|
|
714
|
+
return new GenerateCollectionRequest().fromJsonString(jsonString, options);
|
|
715
|
+
}
|
|
716
|
+
static equals(a, b) {
|
|
717
|
+
return proto3.util.equals(GenerateCollectionRequest, a, b);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
class GenerateCollectionResponse extends Message {
|
|
721
|
+
/**
|
|
722
|
+
* Operation id
|
|
723
|
+
*
|
|
724
|
+
* @generated from field: string id = 1;
|
|
725
|
+
*/
|
|
726
|
+
id = "";
|
|
727
|
+
/**
|
|
728
|
+
* Generated post's title
|
|
729
|
+
*
|
|
730
|
+
* @generated from field: string title = 2;
|
|
731
|
+
*/
|
|
732
|
+
title = "";
|
|
733
|
+
/**
|
|
734
|
+
* Generated post's content
|
|
735
|
+
*
|
|
736
|
+
* @generated from field: string content = 3;
|
|
737
|
+
*/
|
|
738
|
+
content = "";
|
|
739
|
+
constructor(data) {
|
|
740
|
+
super();
|
|
741
|
+
proto3.util.initPartial(data, this);
|
|
742
|
+
}
|
|
743
|
+
static runtime = proto3;
|
|
744
|
+
static typeName = "bragi.pipelines.GenerateCollectionResponse";
|
|
745
|
+
static fields = proto3.util.newFieldList(() => [
|
|
746
|
+
{
|
|
747
|
+
no: 1,
|
|
748
|
+
name: "id",
|
|
749
|
+
kind: "scalar",
|
|
750
|
+
T: 9
|
|
751
|
+
/* ScalarType.STRING */
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
no: 2,
|
|
755
|
+
name: "title",
|
|
756
|
+
kind: "scalar",
|
|
757
|
+
T: 9
|
|
758
|
+
/* ScalarType.STRING */
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
no: 3,
|
|
762
|
+
name: "content",
|
|
763
|
+
kind: "scalar",
|
|
764
|
+
T: 9
|
|
765
|
+
/* ScalarType.STRING */
|
|
766
|
+
}
|
|
767
|
+
]);
|
|
768
|
+
static fromBinary(bytes, options) {
|
|
769
|
+
return new GenerateCollectionResponse().fromBinary(bytes, options);
|
|
770
|
+
}
|
|
771
|
+
static fromJson(jsonValue, options) {
|
|
772
|
+
return new GenerateCollectionResponse().fromJson(jsonValue, options);
|
|
773
|
+
}
|
|
774
|
+
static fromJsonString(jsonString, options) {
|
|
775
|
+
return new GenerateCollectionResponse().fromJsonString(jsonString, options);
|
|
776
|
+
}
|
|
777
|
+
static equals(a, b) {
|
|
778
|
+
return proto3.util.equals(GenerateCollectionResponse, a, b);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
export {
|
|
782
|
+
CollectionPostInput,
|
|
783
|
+
ContentFormat,
|
|
784
|
+
ContextBuildingStrategy,
|
|
785
|
+
EnrichRequest,
|
|
786
|
+
EnrichResponse,
|
|
787
|
+
FilterSearchRequest,
|
|
788
|
+
FilterSearchResponse,
|
|
789
|
+
GenerateCollectionRequest,
|
|
790
|
+
GenerateCollectionResponse,
|
|
791
|
+
IsPageInCacheRequest,
|
|
792
|
+
IsPageInCacheResponse,
|
|
793
|
+
PostDimensions,
|
|
794
|
+
ScrapedPage,
|
|
795
|
+
SearchAnswerRequest,
|
|
796
|
+
SearchPromptRequest,
|
|
797
|
+
SearchPromptResponse,
|
|
798
|
+
SearchPromptV2Request,
|
|
799
|
+
SearchQueryRequest,
|
|
800
|
+
SearchQueryResponse
|
|
801
|
+
};
|