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