@dailydotdev/schema 0.1.0 → 0.2.2
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.d.cts +206 -1
- package/dist/daily-api/posts_pb.d.ts +206 -1
- package/dist/daily-api/posts_pb.js +1 -98
- package/dist/daily-api/pubsub/content-updated_pb.cjs +1 -0
- package/dist/daily-api/pubsub/content-updated_pb.d.cts +119 -0
- package/dist/daily-api/pubsub/content-updated_pb.d.ts +119 -0
- package/dist/daily-api/pubsub/content-updated_pb.js +1 -0
- package/dist/daily-api/sources_pb.cjs +1 -0
- package/dist/daily-api/sources_pb.d.cts +69 -0
- package/dist/daily-api/sources_pb.d.ts +69 -0
- package/dist/daily-api/sources_pb.js +1 -0
- 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.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- 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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Source } from '../sources_pb.cjs';
|
|
3
|
+
import { ContentMeta, PostRelation, ContentQuality } from '../posts_pb.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from message dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage
|
|
7
|
+
*/
|
|
8
|
+
declare class ContentUpdatedMessage extends Message<ContentUpdatedMessage> {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from field: string yggdrasil_id = 1;
|
|
11
|
+
*/
|
|
12
|
+
yggdrasilId: string;
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string post_id = 2;
|
|
15
|
+
*/
|
|
16
|
+
postId: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string type = 3;
|
|
19
|
+
*/
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: string title = 4;
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: int32 created_at = 5;
|
|
27
|
+
*/
|
|
28
|
+
createdAt: number;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: int32 updated_at = 6;
|
|
31
|
+
*/
|
|
32
|
+
updatedAt: number;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: dailydotdev.api.sources.Source source = 7;
|
|
35
|
+
*/
|
|
36
|
+
source?: Source;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: repeated string tags = 8;
|
|
39
|
+
*/
|
|
40
|
+
tags: string[];
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: repeated string keywords = 9;
|
|
43
|
+
*/
|
|
44
|
+
keywords: string[];
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: bool banned = 10;
|
|
47
|
+
*/
|
|
48
|
+
banned: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bool private = 11;
|
|
51
|
+
*/
|
|
52
|
+
private: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: bool visible = 12;
|
|
55
|
+
*/
|
|
56
|
+
visible: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string origin = 13;
|
|
59
|
+
*/
|
|
60
|
+
origin: string;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: string url = 14;
|
|
63
|
+
*/
|
|
64
|
+
url: string;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: string canonical_url = 15;
|
|
67
|
+
*/
|
|
68
|
+
canonicalUrl: string;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string image = 16;
|
|
71
|
+
*/
|
|
72
|
+
image: string;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string description = 17;
|
|
75
|
+
*/
|
|
76
|
+
description: string;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: int32 read_time = 18;
|
|
79
|
+
*/
|
|
80
|
+
readTime: number;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: string summary = 19;
|
|
83
|
+
*/
|
|
84
|
+
summary: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string content = 20;
|
|
87
|
+
*/
|
|
88
|
+
content: string;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: string language = 21;
|
|
91
|
+
*/
|
|
92
|
+
language: string;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: dailydotdev.api.posts.ContentMeta content_meta = 22;
|
|
95
|
+
*/
|
|
96
|
+
contentMeta?: ContentMeta;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: repeated dailydotdev.api.posts.PostRelation relatedPosts = 23;
|
|
99
|
+
*/
|
|
100
|
+
relatedPosts: PostRelation[];
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: repeated string content_curation = 24;
|
|
103
|
+
*/
|
|
104
|
+
contentCuration: string[];
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: dailydotdev.api.posts.ContentQuality content_quality = 25;
|
|
107
|
+
*/
|
|
108
|
+
contentQuality?: ContentQuality;
|
|
109
|
+
constructor(data?: PartialMessage<ContentUpdatedMessage>);
|
|
110
|
+
static readonly runtime: typeof proto3;
|
|
111
|
+
static readonly typeName = "dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage";
|
|
112
|
+
static readonly fields: FieldList;
|
|
113
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentUpdatedMessage;
|
|
114
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentUpdatedMessage;
|
|
115
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentUpdatedMessage;
|
|
116
|
+
static equals(a: ContentUpdatedMessage | PlainMessage<ContentUpdatedMessage> | undefined, b: ContentUpdatedMessage | PlainMessage<ContentUpdatedMessage> | undefined): boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { ContentUpdatedMessage };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Source } from '../sources_pb.js';
|
|
3
|
+
import { ContentMeta, PostRelation, ContentQuality } from '../posts_pb.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from message dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage
|
|
7
|
+
*/
|
|
8
|
+
declare class ContentUpdatedMessage extends Message<ContentUpdatedMessage> {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from field: string yggdrasil_id = 1;
|
|
11
|
+
*/
|
|
12
|
+
yggdrasilId: string;
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string post_id = 2;
|
|
15
|
+
*/
|
|
16
|
+
postId: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string type = 3;
|
|
19
|
+
*/
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: string title = 4;
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: int32 created_at = 5;
|
|
27
|
+
*/
|
|
28
|
+
createdAt: number;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: int32 updated_at = 6;
|
|
31
|
+
*/
|
|
32
|
+
updatedAt: number;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: dailydotdev.api.sources.Source source = 7;
|
|
35
|
+
*/
|
|
36
|
+
source?: Source;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: repeated string tags = 8;
|
|
39
|
+
*/
|
|
40
|
+
tags: string[];
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: repeated string keywords = 9;
|
|
43
|
+
*/
|
|
44
|
+
keywords: string[];
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: bool banned = 10;
|
|
47
|
+
*/
|
|
48
|
+
banned: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bool private = 11;
|
|
51
|
+
*/
|
|
52
|
+
private: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: bool visible = 12;
|
|
55
|
+
*/
|
|
56
|
+
visible: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string origin = 13;
|
|
59
|
+
*/
|
|
60
|
+
origin: string;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: string url = 14;
|
|
63
|
+
*/
|
|
64
|
+
url: string;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: string canonical_url = 15;
|
|
67
|
+
*/
|
|
68
|
+
canonicalUrl: string;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string image = 16;
|
|
71
|
+
*/
|
|
72
|
+
image: string;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string description = 17;
|
|
75
|
+
*/
|
|
76
|
+
description: string;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: int32 read_time = 18;
|
|
79
|
+
*/
|
|
80
|
+
readTime: number;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: string summary = 19;
|
|
83
|
+
*/
|
|
84
|
+
summary: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string content = 20;
|
|
87
|
+
*/
|
|
88
|
+
content: string;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: string language = 21;
|
|
91
|
+
*/
|
|
92
|
+
language: string;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: dailydotdev.api.posts.ContentMeta content_meta = 22;
|
|
95
|
+
*/
|
|
96
|
+
contentMeta?: ContentMeta;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: repeated dailydotdev.api.posts.PostRelation relatedPosts = 23;
|
|
99
|
+
*/
|
|
100
|
+
relatedPosts: PostRelation[];
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: repeated string content_curation = 24;
|
|
103
|
+
*/
|
|
104
|
+
contentCuration: string[];
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: dailydotdev.api.posts.ContentQuality content_quality = 25;
|
|
107
|
+
*/
|
|
108
|
+
contentQuality?: ContentQuality;
|
|
109
|
+
constructor(data?: PartialMessage<ContentUpdatedMessage>);
|
|
110
|
+
static readonly runtime: typeof proto3;
|
|
111
|
+
static readonly typeName = "dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage";
|
|
112
|
+
static readonly fields: FieldList;
|
|
113
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentUpdatedMessage;
|
|
114
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentUpdatedMessage;
|
|
115
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentUpdatedMessage;
|
|
116
|
+
static equals(a: ContentUpdatedMessage | PlainMessage<ContentUpdatedMessage> | undefined, b: ContentUpdatedMessage | PlainMessage<ContentUpdatedMessage> | undefined): boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { ContentUpdatedMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as a,proto3 as n}from"@bufbuild/protobuf";import{Source as e}from"../sources_pb.ts";import{ContentMeta as t,ContentQuality as i,PostRelation as r}from"../posts_pb.ts";class s extends a{yggdrasilId="";postId="";type="";title="";createdAt=0;updatedAt=0;source;tags=[];keywords=[];banned=!1;private=!1;visible=!1;origin="";url="";canonicalUrl="";image="";description="";readTime=0;summary="";content="";language="";contentMeta;relatedPosts=[];contentCuration=[];contentQuality;constructor(a){super(),n.util.initPartial(a,this)}static runtime=n;static typeName="dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage";static fields=n.util.newFieldList((()=>[{no:1,name:"yggdrasil_id",kind:"scalar",T:9},{no:2,name:"post_id",kind:"scalar",T:9},{no:3,name:"type",kind:"scalar",T:9},{no:4,name:"title",kind:"scalar",T:9},{no:5,name:"created_at",kind:"scalar",T:5},{no:6,name:"updated_at",kind:"scalar",T:5},{no:7,name:"source",kind:"message",T:e},{no:8,name:"tags",kind:"scalar",T:9,repeated:!0},{no:9,name:"keywords",kind:"scalar",T:9,repeated:!0},{no:10,name:"banned",kind:"scalar",T:8},{no:11,name:"private",kind:"scalar",T:8},{no:12,name:"visible",kind:"scalar",T:8},{no:13,name:"origin",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"canonical_url",kind:"scalar",T:9},{no:16,name:"image",kind:"scalar",T:9},{no:17,name:"description",kind:"scalar",T:9},{no:18,name:"read_time",kind:"scalar",T:5},{no:19,name:"summary",kind:"scalar",T:9},{no:20,name:"content",kind:"scalar",T:9},{no:21,name:"language",kind:"scalar",T:9},{no:22,name:"content_meta",kind:"message",T:t},{no:23,name:"relatedPosts",kind:"message",T:r,repeated:!0},{no:24,name:"content_curation",kind:"scalar",T:9,repeated:!0},{no:25,name:"content_quality",kind:"message",T:i}]));static fromBinary(a,n){return(new s).fromBinary(a,n)}static fromJson(a,n){return(new s).fromJson(a,n)}static fromJsonString(a,n){return(new s).fromJsonString(a,n)}static equals(a,e){return n.util.equals(s,a,e)}}export{s as ContentUpdatedMessage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((e,r)=>{for(var t in r)a(e,t,{get:r[t],enumerable:!0})})(o,{Source:()=>s}),module.exports=(e=o,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of t(o))n.call(e,c)||c===i||a(e,c,{get:()=>o[c],enumerable:!(s=r(o,c))||s.enumerable});return e})(a({},"__esModule",{value:!0}),e));var i=require("@bufbuild/protobuf");class s extends i.Message{id="";type="";createdAt=0;active=!1;name="";image="";private=!1;headerImage="";color="";handle="";twitter="";website="";description="";constructor(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="dailydotdev.api.sources.Source";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"created_at",kind:"scalar",T:5},{no:4,name:"active",kind:"scalar",T:8},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"image",kind:"scalar",T:9},{no:7,name:"private",kind:"scalar",T:8},{no:8,name:"header_image",kind:"scalar",T:9},{no:9,name:"color",kind:"scalar",T:9},{no:10,name:"handle",kind:"scalar",T:9},{no:11,name:"twitter",kind:"scalar",T:9},{no:12,name:"website",kind:"scalar",T:9},{no:13,name:"description",kind:"scalar",T:9}]));static fromBinary(e,a){return(new s).fromBinary(e,a)}static fromJson(e,a){return(new s).fromJson(e,a)}static fromJsonString(e,a){return(new s).fromJsonString(e,a)}static equals(e,a){return i.proto3.util.equals(s,e,a)}}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message dailydotdev.api.sources.Source
|
|
5
|
+
*/
|
|
6
|
+
declare class Source extends Message<Source> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: string id = 1;
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string type = 2;
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: int32 created_at = 3;
|
|
17
|
+
*/
|
|
18
|
+
createdAt: number;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: bool active = 4;
|
|
21
|
+
*/
|
|
22
|
+
active: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string name = 5;
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string image = 6;
|
|
29
|
+
*/
|
|
30
|
+
image: string;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: bool private = 7;
|
|
33
|
+
*/
|
|
34
|
+
private: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string header_image = 8;
|
|
37
|
+
*/
|
|
38
|
+
headerImage: string;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string color = 9;
|
|
41
|
+
*/
|
|
42
|
+
color: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: string handle = 10;
|
|
45
|
+
*/
|
|
46
|
+
handle: string;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string twitter = 11;
|
|
49
|
+
*/
|
|
50
|
+
twitter: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: string website = 12;
|
|
53
|
+
*/
|
|
54
|
+
website: string;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string description = 13;
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
constructor(data?: PartialMessage<Source>);
|
|
60
|
+
static readonly runtime: typeof proto3;
|
|
61
|
+
static readonly typeName = "dailydotdev.api.sources.Source";
|
|
62
|
+
static readonly fields: FieldList;
|
|
63
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Source;
|
|
64
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Source;
|
|
65
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Source;
|
|
66
|
+
static equals(a: Source | PlainMessage<Source> | undefined, b: Source | PlainMessage<Source> | undefined): boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { Source };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message dailydotdev.api.sources.Source
|
|
5
|
+
*/
|
|
6
|
+
declare class Source extends Message<Source> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: string id = 1;
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string type = 2;
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: int32 created_at = 3;
|
|
17
|
+
*/
|
|
18
|
+
createdAt: number;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: bool active = 4;
|
|
21
|
+
*/
|
|
22
|
+
active: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string name = 5;
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string image = 6;
|
|
29
|
+
*/
|
|
30
|
+
image: string;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: bool private = 7;
|
|
33
|
+
*/
|
|
34
|
+
private: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string header_image = 8;
|
|
37
|
+
*/
|
|
38
|
+
headerImage: string;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string color = 9;
|
|
41
|
+
*/
|
|
42
|
+
color: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: string handle = 10;
|
|
45
|
+
*/
|
|
46
|
+
handle: string;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string twitter = 11;
|
|
49
|
+
*/
|
|
50
|
+
twitter: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: string website = 12;
|
|
53
|
+
*/
|
|
54
|
+
website: string;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string description = 13;
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
constructor(data?: PartialMessage<Source>);
|
|
60
|
+
static readonly runtime: typeof proto3;
|
|
61
|
+
static readonly typeName = "dailydotdev.api.sources.Source";
|
|
62
|
+
static readonly fields: FieldList;
|
|
63
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Source;
|
|
64
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Source;
|
|
65
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Source;
|
|
66
|
+
static equals(a: Source | PlainMessage<Source> | undefined, b: Source | PlainMessage<Source> | undefined): boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { Source };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as a,proto3 as e}from"@bufbuild/protobuf";class n extends a{id="";type="";createdAt=0;active=!1;name="";image="";private=!1;headerImage="";color="";handle="";twitter="";website="";description="";constructor(a){super(),e.util.initPartial(a,this)}static runtime=e;static typeName="dailydotdev.api.sources.Source";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"created_at",kind:"scalar",T:5},{no:4,name:"active",kind:"scalar",T:8},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"image",kind:"scalar",T:9},{no:7,name:"private",kind:"scalar",T:8},{no:8,name:"header_image",kind:"scalar",T:9},{no:9,name:"color",kind:"scalar",T:9},{no:10,name:"handle",kind:"scalar",T:9},{no:11,name:"twitter",kind:"scalar",T:9},{no:12,name:"website",kind:"scalar",T:9},{no:13,name:"description",kind:"scalar",T:9}]));static fromBinary(a,e){return(new n).fromBinary(a,e)}static fromJson(a,e){return(new n).fromJson(a,e)}static fromJsonString(a,e){return(new n).fromJsonString(a,e)}static equals(a,i){return e.util.equals(n,a,i)}}export{n as Source};
|
|
@@ -1,122 +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 personalised_pb_exports = {};
|
|
19
|
-
__export(personalised_pb_exports, {
|
|
20
|
-
Request: () => Request,
|
|
21
|
-
Response: () => Response
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(personalised_pb_exports);
|
|
24
|
-
var import_protobuf = require("@bufbuild/protobuf");
|
|
25
|
-
class Request extends import_protobuf.Message {
|
|
26
|
-
/**
|
|
27
|
-
* @generated from field: string user_id = 1;
|
|
28
|
-
*/
|
|
29
|
-
userId = "";
|
|
30
|
-
/**
|
|
31
|
-
* @generated from field: int32 count = 2;
|
|
32
|
-
*/
|
|
33
|
-
count = 0;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from field: int32 max_post_days = 3;
|
|
36
|
-
*/
|
|
37
|
-
maxPostDays = 0;
|
|
38
|
-
constructor(data) {
|
|
39
|
-
super();
|
|
40
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
41
|
-
}
|
|
42
|
-
static runtime = import_protobuf.proto3;
|
|
43
|
-
static typeName = "personalised.Request";
|
|
44
|
-
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
45
|
-
{
|
|
46
|
-
no: 1,
|
|
47
|
-
name: "user_id",
|
|
48
|
-
kind: "scalar",
|
|
49
|
-
T: 9
|
|
50
|
-
/* ScalarType.STRING */
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
no: 2,
|
|
54
|
-
name: "count",
|
|
55
|
-
kind: "scalar",
|
|
56
|
-
T: 5
|
|
57
|
-
/* ScalarType.INT32 */
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
no: 3,
|
|
61
|
-
name: "max_post_days",
|
|
62
|
-
kind: "scalar",
|
|
63
|
-
T: 5
|
|
64
|
-
/* ScalarType.INT32 */
|
|
65
|
-
}
|
|
66
|
-
]);
|
|
67
|
-
static fromBinary(bytes, options) {
|
|
68
|
-
return new Request().fromBinary(bytes, options);
|
|
69
|
-
}
|
|
70
|
-
static fromJson(jsonValue, options) {
|
|
71
|
-
return new Request().fromJson(jsonValue, options);
|
|
72
|
-
}
|
|
73
|
-
static fromJsonString(jsonString, options) {
|
|
74
|
-
return new Request().fromJsonString(jsonString, options);
|
|
75
|
-
}
|
|
76
|
-
static equals(a, b) {
|
|
77
|
-
return import_protobuf.proto3.util.equals(Request, a, b);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
class Response extends import_protobuf.Message {
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: int32 rows = 1;
|
|
83
|
-
*/
|
|
84
|
-
rows = 0;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from field: repeated string data = 2;
|
|
87
|
-
*/
|
|
88
|
-
data = [];
|
|
89
|
-
constructor(data) {
|
|
90
|
-
super();
|
|
91
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
92
|
-
}
|
|
93
|
-
static runtime = import_protobuf.proto3;
|
|
94
|
-
static typeName = "personalised.Response";
|
|
95
|
-
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
96
|
-
{
|
|
97
|
-
no: 1,
|
|
98
|
-
name: "rows",
|
|
99
|
-
kind: "scalar",
|
|
100
|
-
T: 5
|
|
101
|
-
/* ScalarType.INT32 */
|
|
102
|
-
},
|
|
103
|
-
{ no: 2, name: "data", kind: "scalar", T: 9, repeated: true }
|
|
104
|
-
]);
|
|
105
|
-
static fromBinary(bytes, options) {
|
|
106
|
-
return new Response().fromBinary(bytes, options);
|
|
107
|
-
}
|
|
108
|
-
static fromJson(jsonValue, options) {
|
|
109
|
-
return new Response().fromJson(jsonValue, options);
|
|
110
|
-
}
|
|
111
|
-
static fromJsonString(jsonString, options) {
|
|
112
|
-
return new Response().fromJsonString(jsonString, options);
|
|
113
|
-
}
|
|
114
|
-
static equals(a, b) {
|
|
115
|
-
return import_protobuf.proto3.util.equals(Response, a, b);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
-
0 && (module.exports = {
|
|
120
|
-
Request,
|
|
121
|
-
Response
|
|
122
|
-
});
|
|
1
|
+
var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={};((t,r)=>{for(var o in r)e(t,o,{get:r[o],enumerable:!0})})(n,{Request:()=>i,Response:()=>u}),module.exports=(t=n,((t,n,a,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let u of o(n))s.call(t,u)||u===a||e(t,u,{get:()=>n[u],enumerable:!(i=r(n,u))||i.enumerable});return t})(e({},"__esModule",{value:!0}),t));var a=require("@bufbuild/protobuf");class i extends a.Message{userId="";count=0;maxPostDays=0;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="personalised.Request";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"count",kind:"scalar",T:5},{no:3,name:"max_post_days",kind:"scalar",T:5}]));static fromBinary(t,e){return(new i).fromBinary(t,e)}static fromJson(t,e){return(new i).fromJson(t,e)}static fromJsonString(t,e){return(new i).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(i,t,e)}}class u extends a.Message{rows=0;data=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="personalised.Response";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"rows",kind:"scalar",T:5},{no:2,name:"data",kind:"scalar",T:9,repeated:!0}]));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,e){return a.proto3.util.equals(u,t,e)}}
|
|
@@ -1,98 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
class Request extends Message {
|
|
3
|
-
/**
|
|
4
|
-
* @generated from field: string user_id = 1;
|
|
5
|
-
*/
|
|
6
|
-
userId = "";
|
|
7
|
-
/**
|
|
8
|
-
* @generated from field: int32 count = 2;
|
|
9
|
-
*/
|
|
10
|
-
count = 0;
|
|
11
|
-
/**
|
|
12
|
-
* @generated from field: int32 max_post_days = 3;
|
|
13
|
-
*/
|
|
14
|
-
maxPostDays = 0;
|
|
15
|
-
constructor(data) {
|
|
16
|
-
super();
|
|
17
|
-
proto3.util.initPartial(data, this);
|
|
18
|
-
}
|
|
19
|
-
static runtime = proto3;
|
|
20
|
-
static typeName = "personalised.Request";
|
|
21
|
-
static fields = proto3.util.newFieldList(() => [
|
|
22
|
-
{
|
|
23
|
-
no: 1,
|
|
24
|
-
name: "user_id",
|
|
25
|
-
kind: "scalar",
|
|
26
|
-
T: 9
|
|
27
|
-
/* ScalarType.STRING */
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
no: 2,
|
|
31
|
-
name: "count",
|
|
32
|
-
kind: "scalar",
|
|
33
|
-
T: 5
|
|
34
|
-
/* ScalarType.INT32 */
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
no: 3,
|
|
38
|
-
name: "max_post_days",
|
|
39
|
-
kind: "scalar",
|
|
40
|
-
T: 5
|
|
41
|
-
/* ScalarType.INT32 */
|
|
42
|
-
}
|
|
43
|
-
]);
|
|
44
|
-
static fromBinary(bytes, options) {
|
|
45
|
-
return new Request().fromBinary(bytes, options);
|
|
46
|
-
}
|
|
47
|
-
static fromJson(jsonValue, options) {
|
|
48
|
-
return new Request().fromJson(jsonValue, options);
|
|
49
|
-
}
|
|
50
|
-
static fromJsonString(jsonString, options) {
|
|
51
|
-
return new Request().fromJsonString(jsonString, options);
|
|
52
|
-
}
|
|
53
|
-
static equals(a, b) {
|
|
54
|
-
return proto3.util.equals(Request, a, b);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
class Response extends Message {
|
|
58
|
-
/**
|
|
59
|
-
* @generated from field: int32 rows = 1;
|
|
60
|
-
*/
|
|
61
|
-
rows = 0;
|
|
62
|
-
/**
|
|
63
|
-
* @generated from field: repeated string data = 2;
|
|
64
|
-
*/
|
|
65
|
-
data = [];
|
|
66
|
-
constructor(data) {
|
|
67
|
-
super();
|
|
68
|
-
proto3.util.initPartial(data, this);
|
|
69
|
-
}
|
|
70
|
-
static runtime = proto3;
|
|
71
|
-
static typeName = "personalised.Response";
|
|
72
|
-
static fields = proto3.util.newFieldList(() => [
|
|
73
|
-
{
|
|
74
|
-
no: 1,
|
|
75
|
-
name: "rows",
|
|
76
|
-
kind: "scalar",
|
|
77
|
-
T: 5
|
|
78
|
-
/* ScalarType.INT32 */
|
|
79
|
-
},
|
|
80
|
-
{ no: 2, name: "data", kind: "scalar", T: 9, repeated: true }
|
|
81
|
-
]);
|
|
82
|
-
static fromBinary(bytes, options) {
|
|
83
|
-
return new Response().fromBinary(bytes, options);
|
|
84
|
-
}
|
|
85
|
-
static fromJson(jsonValue, options) {
|
|
86
|
-
return new Response().fromJson(jsonValue, options);
|
|
87
|
-
}
|
|
88
|
-
static fromJsonString(jsonString, options) {
|
|
89
|
-
return new Response().fromJsonString(jsonString, options);
|
|
90
|
-
}
|
|
91
|
-
static equals(a, b) {
|
|
92
|
-
return proto3.util.equals(Response, a, b);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
Request,
|
|
97
|
-
Response
|
|
98
|
-
};
|
|
1
|
+
import{Message as t,proto3 as r}from"@bufbuild/protobuf";class s extends t{userId="";count=0;maxPostDays=0;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="personalised.Request";static fields=r.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"count",kind:"scalar",T:5},{no:3,name:"max_post_days",kind:"scalar",T:5}]));static fromBinary(t,r){return(new s).fromBinary(t,r)}static fromJson(t,r){return(new s).fromJson(t,r)}static fromJsonString(t,r){return(new s).fromJsonString(t,r)}static equals(t,n){return r.util.equals(s,t,n)}}class n extends t{rows=0;data=[];constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="personalised.Response";static fields=r.util.newFieldList((()=>[{no:1,name:"rows",kind:"scalar",T:5},{no:2,name:"data",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,r){return(new n).fromBinary(t,r)}static fromJson(t,r){return(new n).fromJson(t,r)}static fromJsonString(t,r){return(new n).fromJsonString(t,r)}static equals(t,s){return r.util.equals(n,t,s)}}export{s as Request,n as Response};
|
package/dist/index.cjs
CHANGED
|
@@ -1,39 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var generated_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(generated_exports);
|
|
17
|
-
__reExport(generated_exports, require("./bragi/pipelines_connect"), module.exports);
|
|
18
|
-
__reExport(generated_exports, require("./bragi/pipelines_pb"), module.exports);
|
|
19
|
-
__reExport(generated_exports, require("./bragi/proxy_connect"), module.exports);
|
|
20
|
-
__reExport(generated_exports, require("./bragi/proxy_pb"), module.exports);
|
|
21
|
-
__reExport(generated_exports, require("./daily-api/posts_connect"), module.exports);
|
|
22
|
-
__reExport(generated_exports, require("./daily-api/posts_pb"), module.exports);
|
|
23
|
-
__reExport(generated_exports, require("./feed/personalised/personalised_pb"), module.exports);
|
|
24
|
-
__reExport(generated_exports, require("./snotra/engagement/engagement_pb"), module.exports);
|
|
25
|
-
__reExport(generated_exports, require("./snotra/personalisation/personalisation_pb"), module.exports);
|
|
26
|
-
__reExport(generated_exports, require("./util/error_pb"), module.exports);
|
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
-
0 && (module.exports = {
|
|
29
|
-
...require("./bragi/pipelines_connect"),
|
|
30
|
-
...require("./bragi/pipelines_pb"),
|
|
31
|
-
...require("./bragi/proxy_connect"),
|
|
32
|
-
...require("./bragi/proxy_pb"),
|
|
33
|
-
...require("./daily-api/posts_connect"),
|
|
34
|
-
...require("./daily-api/posts_pb"),
|
|
35
|
-
...require("./feed/personalised/personalised_pb"),
|
|
36
|
-
...require("./snotra/engagement/engagement_pb"),
|
|
37
|
-
...require("./snotra/personalisation/personalisation_pb"),
|
|
38
|
-
...require("./util/error_pb")
|
|
39
|
-
});
|
|
1
|
+
var e,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,s=(e,s,i,u)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of t(s))p.call(e,l)||l===i||r(e,l,{get:()=>s[l],enumerable:!(u=o(s,l))||u.enumerable});return e},i=(e,r,o)=>(s(e,r,"default"),o&&s(o,r,"default")),u={};module.exports=(e=u,s(r({},"__esModule",{value:!0}),e)),i(u,require("./bragi/pipelines_connect.cjs"),module.exports),i(u,require("./bragi/pipelines_pb.cjs"),module.exports),i(u,require("./bragi/proxy_connect.cjs"),module.exports),i(u,require("./bragi/proxy_pb.cjs"),module.exports),i(u,require("./daily-api/posts_connect.cjs"),module.exports),i(u,require("./daily-api/posts_pb.cjs"),module.exports),i(u,require("./daily-api/sources_pb.cjs"),module.exports),i(u,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),i(u,require("./feed/personalised/personalised_pb.cjs"),module.exports),i(u,require("./snotra/engagement/engagement_pb.cjs"),module.exports),i(u,require("./snotra/personalisation/personalisation_pb.cjs"),module.exports),i(u,require("./util/error_pb.cjs"),module.exports);
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,9 @@ export { CollectionPostInput, ContentFormat, ContextBuildingStrategy, EnrichRequ
|
|
|
3
3
|
export { LLMProxy } from './bragi/proxy_connect.cjs';
|
|
4
4
|
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ModelProvider, Usage } from './bragi/proxy_pb.cjs';
|
|
5
5
|
export { PostService } from './daily-api/posts_connect.cjs';
|
|
6
|
-
export { CreatePostRequest, CreatePostResponse } from './daily-api/posts_pb.cjs';
|
|
6
|
+
export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, CreatePostResponse, Enriched, Language, PostEmbedding, PostRelation, Scraped } from './daily-api/posts_pb.cjs';
|
|
7
|
+
export { Source } from './daily-api/sources_pb.cjs';
|
|
8
|
+
export { ContentUpdatedMessage } from './daily-api/pubsub/content-updated_pb.cjs';
|
|
7
9
|
export { Request, Response } from './feed/personalised/personalised_pb.cjs';
|
|
8
10
|
export { Action, Event, GetUserEventRequest, GetUserEventResponse } from './snotra/engagement/engagement_pb.cjs';
|
|
9
11
|
export { CreateVectorIndexMetaRequest, CreateVectorIndexMetaResponse, GetUserRankRequest, GetUserRankResponse, GetVectorIndexMetaRequest, GetVectorIndexMetaResponse, RankType, UserRank, VectorIndexMeta } from './snotra/personalisation/personalisation_pb.cjs';
|