@dailydotdev/schema 0.1.0 → 0.2.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/dist/bragi/pipelines_connect.cjs +1 -133
- package/dist/bragi/pipelines_connect.js +1 -110
- package/dist/bragi/pipelines_pb.cjs +1 -842
- package/dist/bragi/pipelines_pb.js +1 -801
- package/dist/bragi/proxy_connect.cjs +1 -88
- package/dist/bragi/proxy_connect.js +1 -65
- package/dist/bragi/proxy_pb.cjs +1 -595
- package/dist/bragi/proxy_pb.js +1 -561
- package/dist/daily-api/posts_connect.cjs +1 -44
- package/dist/daily-api/posts_connect.js +1 -21
- package/dist/daily-api/posts_pb.cjs +1 -122
- package/dist/daily-api/posts_pb.js +1 -98
- package/dist/feed/personalised/personalised_pb.cjs +1 -122
- package/dist/feed/personalised/personalised_pb.js +1 -98
- package/dist/index.cjs +1 -39
- package/dist/index.js +1 -10
- package/dist/snotra/engagement/engagement_pb.cjs +1 -201
- package/dist/snotra/engagement/engagement_pb.js +1 -175
- package/dist/snotra/personalisation/personalisation_pb.cjs +1 -431
- package/dist/snotra/personalisation/personalisation_pb.js +1 -400
- package/dist/util/error_pb.cjs +1 -71
- package/dist/util/error_pb.js +1 -48
- package/package.json +2 -14
- package/tsup.config.js +31 -0
|
@@ -1,133 +1 @@
|
|
|
1
|
-
var
|
|
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_connect_exports = {};
|
|
19
|
-
__export(pipelines_connect_exports, {
|
|
20
|
-
Pipelines: () => Pipelines
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(pipelines_connect_exports);
|
|
23
|
-
var import_pipelines_pb = require("./pipelines_pb.ts");
|
|
24
|
-
var import_protobuf = require("@bufbuild/protobuf");
|
|
25
|
-
var import_proxy_pb = require("./proxy_pb.ts");
|
|
26
|
-
const Pipelines = {
|
|
27
|
-
typeName: "bragi.pipelines.Pipelines",
|
|
28
|
-
methods: {
|
|
29
|
-
/**
|
|
30
|
-
* Calculates new dimensions for a post
|
|
31
|
-
*
|
|
32
|
-
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
33
|
-
*/
|
|
34
|
-
enrichPost: {
|
|
35
|
-
name: "EnrichPost",
|
|
36
|
-
I: import_pipelines_pb.EnrichRequest,
|
|
37
|
-
O: import_pipelines_pb.EnrichResponse,
|
|
38
|
-
kind: import_protobuf.MethodKind.Unary
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* Turns a user's prompt into a search query
|
|
42
|
-
*
|
|
43
|
-
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
44
|
-
*/
|
|
45
|
-
generateSearchQuery: {
|
|
46
|
-
name: "GenerateSearchQuery",
|
|
47
|
-
I: import_pipelines_pb.SearchQueryRequest,
|
|
48
|
-
O: import_pipelines_pb.SearchQueryResponse,
|
|
49
|
-
kind: import_protobuf.MethodKind.Unary
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* Filters a list of search results based on a user's prompt
|
|
53
|
-
*
|
|
54
|
-
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
55
|
-
*/
|
|
56
|
-
filterSearchResults: {
|
|
57
|
-
name: "FilterSearchResults",
|
|
58
|
-
I: import_pipelines_pb.FilterSearchRequest,
|
|
59
|
-
O: import_pipelines_pb.FilterSearchResponse,
|
|
60
|
-
kind: import_protobuf.MethodKind.Unary
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* Generates a prompt to answer a user's question
|
|
64
|
-
*
|
|
65
|
-
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
66
|
-
*/
|
|
67
|
-
buildSearchPrompt: {
|
|
68
|
-
name: "BuildSearchPrompt",
|
|
69
|
-
I: import_pipelines_pb.SearchPromptRequest,
|
|
70
|
-
O: import_pipelines_pb.SearchPromptResponse,
|
|
71
|
-
kind: import_protobuf.MethodKind.Unary
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* Streams the search answer
|
|
75
|
-
*
|
|
76
|
-
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
77
|
-
*/
|
|
78
|
-
streamSearchAnswer: {
|
|
79
|
-
name: "StreamSearchAnswer",
|
|
80
|
-
I: import_pipelines_pb.SearchAnswerRequest,
|
|
81
|
-
O: import_proxy_pb.ChatStreamResponse,
|
|
82
|
-
kind: import_protobuf.MethodKind.ServerStreaming
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Checks if the url is in the cache
|
|
86
|
-
*
|
|
87
|
-
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
88
|
-
*/
|
|
89
|
-
isPageInCache: {
|
|
90
|
-
name: "IsPageInCache",
|
|
91
|
-
I: import_pipelines_pb.IsPageInCacheRequest,
|
|
92
|
-
O: import_pipelines_pb.IsPageInCacheResponse,
|
|
93
|
-
kind: import_protobuf.MethodKind.Unary
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
97
|
-
*
|
|
98
|
-
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
99
|
-
*/
|
|
100
|
-
cachePage: {
|
|
101
|
-
name: "CachePage",
|
|
102
|
-
I: import_pipelines_pb.ScrapedPage,
|
|
103
|
-
O: import_protobuf.Empty,
|
|
104
|
-
kind: import_protobuf.MethodKind.Unary
|
|
105
|
-
},
|
|
106
|
-
/**
|
|
107
|
-
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
108
|
-
*
|
|
109
|
-
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
110
|
-
*/
|
|
111
|
-
buildSearchPromptV2: {
|
|
112
|
-
name: "BuildSearchPromptV2",
|
|
113
|
-
I: import_pipelines_pb.SearchPromptV2Request,
|
|
114
|
-
O: import_pipelines_pb.SearchPromptResponse,
|
|
115
|
-
kind: import_protobuf.MethodKind.Unary
|
|
116
|
-
},
|
|
117
|
-
/**
|
|
118
|
-
* Generates a collection from a set of posts
|
|
119
|
-
*
|
|
120
|
-
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
121
|
-
*/
|
|
122
|
-
generateCollection: {
|
|
123
|
-
name: "GenerateCollection",
|
|
124
|
-
I: import_pipelines_pb.GenerateCollectionRequest,
|
|
125
|
-
O: import_pipelines_pb.GenerateCollectionResponse,
|
|
126
|
-
kind: import_protobuf.MethodKind.Unary
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
131
|
-
0 && (module.exports = {
|
|
132
|
-
Pipelines
|
|
133
|
-
});
|
|
1
|
+
var e,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0})})(o,{Pipelines:()=>h}),module.exports=(e=o,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of t(o))a.call(e,c)||c===i||r(e,c,{get:()=>o[c],enumerable:!(s=n(o,c))||s.enumerable});return e})(r({},"__esModule",{value:!0}),e));var i=require("./pipelines_pb.cjs"),s=require("@bufbuild/protobuf"),c=require("./proxy_pb.cjs");const h={typeName:"bragi.pipelines.Pipelines",methods:{enrichPost:{name:"EnrichPost",I:i.EnrichRequest,O:i.EnrichResponse,kind:s.MethodKind.Unary},generateSearchQuery:{name:"GenerateSearchQuery",I:i.SearchQueryRequest,O:i.SearchQueryResponse,kind:s.MethodKind.Unary},filterSearchResults:{name:"FilterSearchResults",I:i.FilterSearchRequest,O:i.FilterSearchResponse,kind:s.MethodKind.Unary},buildSearchPrompt:{name:"BuildSearchPrompt",I:i.SearchPromptRequest,O:i.SearchPromptResponse,kind:s.MethodKind.Unary},streamSearchAnswer:{name:"StreamSearchAnswer",I:i.SearchAnswerRequest,O:c.ChatStreamResponse,kind:s.MethodKind.ServerStreaming},isPageInCache:{name:"IsPageInCache",I:i.IsPageInCacheRequest,O:i.IsPageInCacheResponse,kind:s.MethodKind.Unary},cachePage:{name:"CachePage",I:i.ScrapedPage,O:s.Empty,kind:s.MethodKind.Unary},buildSearchPromptV2:{name:"BuildSearchPromptV2",I:i.SearchPromptV2Request,O:i.SearchPromptResponse,kind:s.MethodKind.Unary},generateCollection:{name:"GenerateCollection",I:i.GenerateCollectionRequest,O:i.GenerateCollectionResponse,kind:s.MethodKind.Unary}}};
|
|
@@ -1,110 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChatStreamResponse } from "./proxy_pb.ts";
|
|
4
|
-
const Pipelines = {
|
|
5
|
-
typeName: "bragi.pipelines.Pipelines",
|
|
6
|
-
methods: {
|
|
7
|
-
/**
|
|
8
|
-
* Calculates new dimensions for a post
|
|
9
|
-
*
|
|
10
|
-
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
11
|
-
*/
|
|
12
|
-
enrichPost: {
|
|
13
|
-
name: "EnrichPost",
|
|
14
|
-
I: EnrichRequest,
|
|
15
|
-
O: EnrichResponse,
|
|
16
|
-
kind: MethodKind.Unary
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Turns a user's prompt into a search query
|
|
20
|
-
*
|
|
21
|
-
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
22
|
-
*/
|
|
23
|
-
generateSearchQuery: {
|
|
24
|
-
name: "GenerateSearchQuery",
|
|
25
|
-
I: SearchQueryRequest,
|
|
26
|
-
O: SearchQueryResponse,
|
|
27
|
-
kind: MethodKind.Unary
|
|
28
|
-
},
|
|
29
|
-
/**
|
|
30
|
-
* Filters a list of search results based on a user's prompt
|
|
31
|
-
*
|
|
32
|
-
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
33
|
-
*/
|
|
34
|
-
filterSearchResults: {
|
|
35
|
-
name: "FilterSearchResults",
|
|
36
|
-
I: FilterSearchRequest,
|
|
37
|
-
O: FilterSearchResponse,
|
|
38
|
-
kind: MethodKind.Unary
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* Generates a prompt to answer a user's question
|
|
42
|
-
*
|
|
43
|
-
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
44
|
-
*/
|
|
45
|
-
buildSearchPrompt: {
|
|
46
|
-
name: "BuildSearchPrompt",
|
|
47
|
-
I: SearchPromptRequest,
|
|
48
|
-
O: SearchPromptResponse,
|
|
49
|
-
kind: MethodKind.Unary
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* Streams the search answer
|
|
53
|
-
*
|
|
54
|
-
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
55
|
-
*/
|
|
56
|
-
streamSearchAnswer: {
|
|
57
|
-
name: "StreamSearchAnswer",
|
|
58
|
-
I: SearchAnswerRequest,
|
|
59
|
-
O: ChatStreamResponse,
|
|
60
|
-
kind: MethodKind.ServerStreaming
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* Checks if the url is in the cache
|
|
64
|
-
*
|
|
65
|
-
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
66
|
-
*/
|
|
67
|
-
isPageInCache: {
|
|
68
|
-
name: "IsPageInCache",
|
|
69
|
-
I: IsPageInCacheRequest,
|
|
70
|
-
O: IsPageInCacheResponse,
|
|
71
|
-
kind: MethodKind.Unary
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
75
|
-
*
|
|
76
|
-
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
77
|
-
*/
|
|
78
|
-
cachePage: {
|
|
79
|
-
name: "CachePage",
|
|
80
|
-
I: ScrapedPage,
|
|
81
|
-
O: Empty,
|
|
82
|
-
kind: MethodKind.Unary
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
86
|
-
*
|
|
87
|
-
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
88
|
-
*/
|
|
89
|
-
buildSearchPromptV2: {
|
|
90
|
-
name: "BuildSearchPromptV2",
|
|
91
|
-
I: SearchPromptV2Request,
|
|
92
|
-
O: SearchPromptResponse,
|
|
93
|
-
kind: MethodKind.Unary
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Generates a collection from a set of posts
|
|
97
|
-
*
|
|
98
|
-
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
99
|
-
*/
|
|
100
|
-
generateCollection: {
|
|
101
|
-
name: "GenerateCollection",
|
|
102
|
-
I: GenerateCollectionRequest,
|
|
103
|
-
O: GenerateCollectionResponse,
|
|
104
|
-
kind: MethodKind.Unary
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
export {
|
|
109
|
-
Pipelines
|
|
110
|
-
};
|
|
1
|
+
import{EnrichRequest as e,EnrichResponse as r,FilterSearchRequest as a,FilterSearchResponse as n,GenerateCollectionRequest as i,GenerateCollectionResponse as t,IsPageInCacheRequest as m,IsPageInCacheResponse as o,ScrapedPage as c,SearchAnswerRequest as p,SearchPromptRequest as s,SearchPromptResponse as h,SearchPromptV2Request as l,SearchQueryRequest as d,SearchQueryResponse as S}from"./pipelines_pb.ts";import{Empty as y,MethodKind as I}from"@bufbuild/protobuf";import{ChatStreamResponse as u}from"./proxy_pb.ts";const P={typeName:"bragi.pipelines.Pipelines",methods:{enrichPost:{name:"EnrichPost",I:e,O:r,kind:I.Unary},generateSearchQuery:{name:"GenerateSearchQuery",I:d,O:S,kind:I.Unary},filterSearchResults:{name:"FilterSearchResults",I:a,O:n,kind:I.Unary},buildSearchPrompt:{name:"BuildSearchPrompt",I:s,O:h,kind:I.Unary},streamSearchAnswer:{name:"StreamSearchAnswer",I:p,O:u,kind:I.ServerStreaming},isPageInCache:{name:"IsPageInCache",I:m,O:o,kind:I.Unary},cachePage:{name:"CachePage",I:c,O:y,kind:I.Unary},buildSearchPromptV2:{name:"BuildSearchPromptV2",I:l,O:h,kind:I.Unary},generateCollection:{name:"GenerateCollection",I:i,O:t,kind:I.Unary}}};export{P as Pipelines};
|