@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
|
@@ -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 posts_pb_exports = {};
|
|
19
|
-
__export(posts_pb_exports, {
|
|
20
|
-
CreatePostRequest: () => CreatePostRequest,
|
|
21
|
-
CreatePostResponse: () => CreatePostResponse
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(posts_pb_exports);
|
|
24
|
-
var import_protobuf = require("@bufbuild/protobuf");
|
|
25
|
-
class CreatePostRequest extends import_protobuf.Message {
|
|
26
|
-
/**
|
|
27
|
-
* @generated from field: string url = 1;
|
|
28
|
-
*/
|
|
29
|
-
url = "";
|
|
30
|
-
/**
|
|
31
|
-
* @generated from field: string source_id = 2;
|
|
32
|
-
*/
|
|
33
|
-
sourceId = "";
|
|
34
|
-
/**
|
|
35
|
-
* @generated from field: optional string yggdrasil_id = 3;
|
|
36
|
-
*/
|
|
37
|
-
yggdrasilId;
|
|
38
|
-
constructor(data) {
|
|
39
|
-
super();
|
|
40
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
41
|
-
}
|
|
42
|
-
static runtime = import_protobuf.proto3;
|
|
43
|
-
static typeName = "dailydotdev.api.posts.CreatePostRequest";
|
|
44
|
-
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
45
|
-
{
|
|
46
|
-
no: 1,
|
|
47
|
-
name: "url",
|
|
48
|
-
kind: "scalar",
|
|
49
|
-
T: 9
|
|
50
|
-
/* ScalarType.STRING */
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
no: 2,
|
|
54
|
-
name: "source_id",
|
|
55
|
-
kind: "scalar",
|
|
56
|
-
T: 9
|
|
57
|
-
/* ScalarType.STRING */
|
|
58
|
-
},
|
|
59
|
-
{ no: 3, name: "yggdrasil_id", kind: "scalar", T: 9, opt: true }
|
|
60
|
-
]);
|
|
61
|
-
static fromBinary(bytes, options) {
|
|
62
|
-
return new CreatePostRequest().fromBinary(bytes, options);
|
|
63
|
-
}
|
|
64
|
-
static fromJson(jsonValue, options) {
|
|
65
|
-
return new CreatePostRequest().fromJson(jsonValue, options);
|
|
66
|
-
}
|
|
67
|
-
static fromJsonString(jsonString, options) {
|
|
68
|
-
return new CreatePostRequest().fromJsonString(jsonString, options);
|
|
69
|
-
}
|
|
70
|
-
static equals(a, b) {
|
|
71
|
-
return import_protobuf.proto3.util.equals(CreatePostRequest, a, b);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
class CreatePostResponse extends import_protobuf.Message {
|
|
75
|
-
/**
|
|
76
|
-
* @generated from field: string post_id = 1;
|
|
77
|
-
*/
|
|
78
|
-
postId = "";
|
|
79
|
-
/**
|
|
80
|
-
* @generated from field: string url = 2;
|
|
81
|
-
*/
|
|
82
|
-
url = "";
|
|
83
|
-
constructor(data) {
|
|
84
|
-
super();
|
|
85
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
86
|
-
}
|
|
87
|
-
static runtime = import_protobuf.proto3;
|
|
88
|
-
static typeName = "dailydotdev.api.posts.CreatePostResponse";
|
|
89
|
-
static fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
90
|
-
{
|
|
91
|
-
no: 1,
|
|
92
|
-
name: "post_id",
|
|
93
|
-
kind: "scalar",
|
|
94
|
-
T: 9
|
|
95
|
-
/* ScalarType.STRING */
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
no: 2,
|
|
99
|
-
name: "url",
|
|
100
|
-
kind: "scalar",
|
|
101
|
-
T: 9
|
|
102
|
-
/* ScalarType.STRING */
|
|
103
|
-
}
|
|
104
|
-
]);
|
|
105
|
-
static fromBinary(bytes, options) {
|
|
106
|
-
return new CreatePostResponse().fromBinary(bytes, options);
|
|
107
|
-
}
|
|
108
|
-
static fromJson(jsonValue, options) {
|
|
109
|
-
return new CreatePostResponse().fromJson(jsonValue, options);
|
|
110
|
-
}
|
|
111
|
-
static fromJsonString(jsonString, options) {
|
|
112
|
-
return new CreatePostResponse().fromJsonString(jsonString, options);
|
|
113
|
-
}
|
|
114
|
-
static equals(a, b) {
|
|
115
|
-
return import_protobuf.proto3.util.equals(CreatePostResponse, a, b);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
-
0 && (module.exports = {
|
|
120
|
-
CreatePostRequest,
|
|
121
|
-
CreatePostResponse
|
|
122
|
-
});
|
|
1
|
+
var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(s,{AIGCDetect:()=>p,Cleaned:()=>f,ContentMeta:()=>g,ContentQuality:()=>y,CreatePostRequest:()=>a,CreatePostResponse:()=>c,Enriched:()=>u,Language:()=>m,PostEmbedding:()=>d,PostRelation:()=>w,Scraped:()=>l}),module.exports=(t=s,((t,s,i,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let c of n(s))o.call(t,c)||c===i||e(t,c,{get:()=>s[c],enumerable:!(a=r(s,c))||a.enumerable});return t})(e({},"__esModule",{value:!0}),t));var i=require("@bufbuild/protobuf");class a extends i.Message{url="";sourceId="";yggdrasilId;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.CreatePostRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"source_id",kind:"scalar",T:9},{no:3,name:"yggdrasil_id",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,e){return(new a).fromBinary(t,e)}static fromJson(t,e){return(new a).fromJson(t,e)}static fromJsonString(t,e){return(new a).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(a,t,e)}}class c extends i.Message{postId="";url="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.CreatePostResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(c,t,e)}}class l extends i.Message{resourceLocation="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.Scraped";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"resource_location",kind:"scalar",T:9}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(l,t,e)}}class u extends i.Message{provider="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.Enriched";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));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 i.proto3.util.equals(u,t,e)}}class d extends i.Message{provider="";model="";size=i.protoInt64.zero;contentType="";resourceLocation="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.PostEmbedding";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"size",kind:"scalar",T:3},{no:4,name:"content_type",kind:"scalar",T:9},{no:5,name:"resource_location",kind:"scalar",T:9}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(d,t,e)}}class m extends i.Message{provider="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.Language";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(m,t,e)}}class p extends i.Message{provider="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.AIGCDetect";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(p,t,e)}}class f extends i.Message{resourceLocation="";provider="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.Cleaned";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"resource_location",kind:"scalar",T:9},{no:2,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(f,t,e)}}class g extends i.Message{scraped;enriched;cleaned=[];embedding;language;aigcDetect;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.ContentMeta";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"scraped",kind:"message",T:l},{no:2,name:"enriched",kind:"message",T:u},{no:3,name:"cleaned",kind:"message",T:f,repeated:!0},{no:4,name:"embedding",kind:"message",T:d},{no:5,name:"language",kind:"message",T:m},{no:6,name:"aigc_detect",kind:"message",T:p}]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(g,t,e)}}class y extends i.Message{isAiProbability=0;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.ContentQuality";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"is_ai_probability",kind:"scalar",T:2}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(y,t,e)}}class w extends i.Message{postId="";relatedPostId="";type="";createdAt=0;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="dailydotdev.api.posts.PostRelation";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"related_post_id",kind:"scalar",T:9},{no:3,name:"type",kind:"scalar",T:9},{no:4,name:"created_at",kind:"scalar",T:5}]));static fromBinary(t,e){return(new w).fromBinary(t,e)}static fromJson(t,e){return(new w).fromJson(t,e)}static fromJsonString(t,e){return(new w).fromJsonString(t,e)}static equals(t,e){return i.proto3.util.equals(w,t,e)}}
|
|
@@ -46,5 +46,210 @@ declare class CreatePostResponse extends Message<CreatePostResponse> {
|
|
|
46
46
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostResponse;
|
|
47
47
|
static equals(a: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined, b: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined): boolean;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message dailydotdev.api.posts.Scraped
|
|
51
|
+
*/
|
|
52
|
+
declare class Scraped extends Message<Scraped> {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string resource_location = 1;
|
|
55
|
+
*/
|
|
56
|
+
resourceLocation: string;
|
|
57
|
+
constructor(data?: PartialMessage<Scraped>);
|
|
58
|
+
static readonly runtime: typeof proto3;
|
|
59
|
+
static readonly typeName = "dailydotdev.api.posts.Scraped";
|
|
60
|
+
static readonly fields: FieldList;
|
|
61
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Scraped;
|
|
62
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Scraped;
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Scraped;
|
|
64
|
+
static equals(a: Scraped | PlainMessage<Scraped> | undefined, b: Scraped | PlainMessage<Scraped> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message dailydotdev.api.posts.Enriched
|
|
68
|
+
*/
|
|
69
|
+
declare class Enriched extends Message<Enriched> {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string provider = 1;
|
|
72
|
+
*/
|
|
73
|
+
provider: string;
|
|
74
|
+
constructor(data?: PartialMessage<Enriched>);
|
|
75
|
+
static readonly runtime: typeof proto3;
|
|
76
|
+
static readonly typeName = "dailydotdev.api.posts.Enriched";
|
|
77
|
+
static readonly fields: FieldList;
|
|
78
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Enriched;
|
|
79
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Enriched;
|
|
80
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Enriched;
|
|
81
|
+
static equals(a: Enriched | PlainMessage<Enriched> | undefined, b: Enriched | PlainMessage<Enriched> | undefined): boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message dailydotdev.api.posts.PostEmbedding
|
|
85
|
+
*/
|
|
86
|
+
declare class PostEmbedding extends Message<PostEmbedding> {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string provider = 1;
|
|
89
|
+
*/
|
|
90
|
+
provider: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string model = 2;
|
|
93
|
+
*/
|
|
94
|
+
model: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: int64 size = 3;
|
|
97
|
+
*/
|
|
98
|
+
size: any;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string content_type = 4;
|
|
101
|
+
*/
|
|
102
|
+
contentType: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string resource_location = 5;
|
|
105
|
+
*/
|
|
106
|
+
resourceLocation: string;
|
|
107
|
+
constructor(data?: PartialMessage<PostEmbedding>);
|
|
108
|
+
static readonly runtime: typeof proto3;
|
|
109
|
+
static readonly typeName = "dailydotdev.api.posts.PostEmbedding";
|
|
110
|
+
static readonly fields: FieldList;
|
|
111
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostEmbedding;
|
|
112
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostEmbedding;
|
|
113
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostEmbedding;
|
|
114
|
+
static equals(a: PostEmbedding | PlainMessage<PostEmbedding> | undefined, b: PostEmbedding | PlainMessage<PostEmbedding> | undefined): boolean;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message dailydotdev.api.posts.Language
|
|
118
|
+
*/
|
|
119
|
+
declare class Language extends Message<Language> {
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string provider = 1;
|
|
122
|
+
*/
|
|
123
|
+
provider: string;
|
|
124
|
+
constructor(data?: PartialMessage<Language>);
|
|
125
|
+
static readonly runtime: typeof proto3;
|
|
126
|
+
static readonly typeName = "dailydotdev.api.posts.Language";
|
|
127
|
+
static readonly fields: FieldList;
|
|
128
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Language;
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Language;
|
|
130
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Language;
|
|
131
|
+
static equals(a: Language | PlainMessage<Language> | undefined, b: Language | PlainMessage<Language> | undefined): boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from message dailydotdev.api.posts.AIGCDetect
|
|
135
|
+
*/
|
|
136
|
+
declare class AIGCDetect extends Message<AIGCDetect> {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: string provider = 1;
|
|
139
|
+
*/
|
|
140
|
+
provider: string;
|
|
141
|
+
constructor(data?: PartialMessage<AIGCDetect>);
|
|
142
|
+
static readonly runtime: typeof proto3;
|
|
143
|
+
static readonly typeName = "dailydotdev.api.posts.AIGCDetect";
|
|
144
|
+
static readonly fields: FieldList;
|
|
145
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AIGCDetect;
|
|
146
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AIGCDetect;
|
|
147
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AIGCDetect;
|
|
148
|
+
static equals(a: AIGCDetect | PlainMessage<AIGCDetect> | undefined, b: AIGCDetect | PlainMessage<AIGCDetect> | undefined): boolean;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message dailydotdev.api.posts.Cleaned
|
|
152
|
+
*/
|
|
153
|
+
declare class Cleaned extends Message<Cleaned> {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string resource_location = 1;
|
|
156
|
+
*/
|
|
157
|
+
resourceLocation: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string provider = 2;
|
|
160
|
+
*/
|
|
161
|
+
provider: string;
|
|
162
|
+
constructor(data?: PartialMessage<Cleaned>);
|
|
163
|
+
static readonly runtime: typeof proto3;
|
|
164
|
+
static readonly typeName = "dailydotdev.api.posts.Cleaned";
|
|
165
|
+
static readonly fields: FieldList;
|
|
166
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Cleaned;
|
|
167
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Cleaned;
|
|
168
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Cleaned;
|
|
169
|
+
static equals(a: Cleaned | PlainMessage<Cleaned> | undefined, b: Cleaned | PlainMessage<Cleaned> | undefined): boolean;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message dailydotdev.api.posts.ContentMeta
|
|
173
|
+
*/
|
|
174
|
+
declare class ContentMeta extends Message<ContentMeta> {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: dailydotdev.api.posts.Scraped scraped = 1;
|
|
177
|
+
*/
|
|
178
|
+
scraped?: Scraped;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: dailydotdev.api.posts.Enriched enriched = 2;
|
|
181
|
+
*/
|
|
182
|
+
enriched?: Enriched;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: repeated dailydotdev.api.posts.Cleaned cleaned = 3;
|
|
185
|
+
*/
|
|
186
|
+
cleaned: Cleaned[];
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: dailydotdev.api.posts.PostEmbedding embedding = 4;
|
|
189
|
+
*/
|
|
190
|
+
embedding?: PostEmbedding;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: dailydotdev.api.posts.Language language = 5;
|
|
193
|
+
*/
|
|
194
|
+
language?: Language;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: dailydotdev.api.posts.AIGCDetect aigc_detect = 6;
|
|
197
|
+
*/
|
|
198
|
+
aigcDetect?: AIGCDetect;
|
|
199
|
+
constructor(data?: PartialMessage<ContentMeta>);
|
|
200
|
+
static readonly runtime: typeof proto3;
|
|
201
|
+
static readonly typeName = "dailydotdev.api.posts.ContentMeta";
|
|
202
|
+
static readonly fields: FieldList;
|
|
203
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentMeta;
|
|
204
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentMeta;
|
|
205
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentMeta;
|
|
206
|
+
static equals(a: ContentMeta | PlainMessage<ContentMeta> | undefined, b: ContentMeta | PlainMessage<ContentMeta> | undefined): boolean;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message dailydotdev.api.posts.ContentQuality
|
|
210
|
+
*/
|
|
211
|
+
declare class ContentQuality extends Message<ContentQuality> {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: float is_ai_probability = 1;
|
|
214
|
+
*/
|
|
215
|
+
isAiProbability: number;
|
|
216
|
+
constructor(data?: PartialMessage<ContentQuality>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "dailydotdev.api.posts.ContentQuality";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentQuality;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentQuality;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentQuality;
|
|
223
|
+
static equals(a: ContentQuality | PlainMessage<ContentQuality> | undefined, b: ContentQuality | PlainMessage<ContentQuality> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message dailydotdev.api.posts.PostRelation
|
|
227
|
+
*/
|
|
228
|
+
declare class PostRelation extends Message<PostRelation> {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: string post_id = 1;
|
|
231
|
+
*/
|
|
232
|
+
postId: string;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: string related_post_id = 2;
|
|
235
|
+
*/
|
|
236
|
+
relatedPostId: string;
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: string type = 3;
|
|
239
|
+
*/
|
|
240
|
+
type: string;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: int32 created_at = 4;
|
|
243
|
+
*/
|
|
244
|
+
createdAt: number;
|
|
245
|
+
constructor(data?: PartialMessage<PostRelation>);
|
|
246
|
+
static readonly runtime: typeof proto3;
|
|
247
|
+
static readonly typeName = "dailydotdev.api.posts.PostRelation";
|
|
248
|
+
static readonly fields: FieldList;
|
|
249
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostRelation;
|
|
250
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostRelation;
|
|
251
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostRelation;
|
|
252
|
+
static equals(a: PostRelation | PlainMessage<PostRelation> | undefined, b: PostRelation | PlainMessage<PostRelation> | undefined): boolean;
|
|
253
|
+
}
|
|
49
254
|
|
|
50
|
-
export { CreatePostRequest, CreatePostResponse };
|
|
255
|
+
export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, CreatePostResponse, Enriched, Language, PostEmbedding, PostRelation, Scraped };
|
|
@@ -46,5 +46,210 @@ declare class CreatePostResponse extends Message<CreatePostResponse> {
|
|
|
46
46
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePostResponse;
|
|
47
47
|
static equals(a: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined, b: CreatePostResponse | PlainMessage<CreatePostResponse> | undefined): boolean;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message dailydotdev.api.posts.Scraped
|
|
51
|
+
*/
|
|
52
|
+
declare class Scraped extends Message<Scraped> {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string resource_location = 1;
|
|
55
|
+
*/
|
|
56
|
+
resourceLocation: string;
|
|
57
|
+
constructor(data?: PartialMessage<Scraped>);
|
|
58
|
+
static readonly runtime: typeof proto3;
|
|
59
|
+
static readonly typeName = "dailydotdev.api.posts.Scraped";
|
|
60
|
+
static readonly fields: FieldList;
|
|
61
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Scraped;
|
|
62
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Scraped;
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Scraped;
|
|
64
|
+
static equals(a: Scraped | PlainMessage<Scraped> | undefined, b: Scraped | PlainMessage<Scraped> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message dailydotdev.api.posts.Enriched
|
|
68
|
+
*/
|
|
69
|
+
declare class Enriched extends Message<Enriched> {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string provider = 1;
|
|
72
|
+
*/
|
|
73
|
+
provider: string;
|
|
74
|
+
constructor(data?: PartialMessage<Enriched>);
|
|
75
|
+
static readonly runtime: typeof proto3;
|
|
76
|
+
static readonly typeName = "dailydotdev.api.posts.Enriched";
|
|
77
|
+
static readonly fields: FieldList;
|
|
78
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Enriched;
|
|
79
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Enriched;
|
|
80
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Enriched;
|
|
81
|
+
static equals(a: Enriched | PlainMessage<Enriched> | undefined, b: Enriched | PlainMessage<Enriched> | undefined): boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message dailydotdev.api.posts.PostEmbedding
|
|
85
|
+
*/
|
|
86
|
+
declare class PostEmbedding extends Message<PostEmbedding> {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string provider = 1;
|
|
89
|
+
*/
|
|
90
|
+
provider: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string model = 2;
|
|
93
|
+
*/
|
|
94
|
+
model: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: int64 size = 3;
|
|
97
|
+
*/
|
|
98
|
+
size: any;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string content_type = 4;
|
|
101
|
+
*/
|
|
102
|
+
contentType: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string resource_location = 5;
|
|
105
|
+
*/
|
|
106
|
+
resourceLocation: string;
|
|
107
|
+
constructor(data?: PartialMessage<PostEmbedding>);
|
|
108
|
+
static readonly runtime: typeof proto3;
|
|
109
|
+
static readonly typeName = "dailydotdev.api.posts.PostEmbedding";
|
|
110
|
+
static readonly fields: FieldList;
|
|
111
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostEmbedding;
|
|
112
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostEmbedding;
|
|
113
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostEmbedding;
|
|
114
|
+
static equals(a: PostEmbedding | PlainMessage<PostEmbedding> | undefined, b: PostEmbedding | PlainMessage<PostEmbedding> | undefined): boolean;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message dailydotdev.api.posts.Language
|
|
118
|
+
*/
|
|
119
|
+
declare class Language extends Message<Language> {
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string provider = 1;
|
|
122
|
+
*/
|
|
123
|
+
provider: string;
|
|
124
|
+
constructor(data?: PartialMessage<Language>);
|
|
125
|
+
static readonly runtime: typeof proto3;
|
|
126
|
+
static readonly typeName = "dailydotdev.api.posts.Language";
|
|
127
|
+
static readonly fields: FieldList;
|
|
128
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Language;
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Language;
|
|
130
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Language;
|
|
131
|
+
static equals(a: Language | PlainMessage<Language> | undefined, b: Language | PlainMessage<Language> | undefined): boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from message dailydotdev.api.posts.AIGCDetect
|
|
135
|
+
*/
|
|
136
|
+
declare class AIGCDetect extends Message<AIGCDetect> {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: string provider = 1;
|
|
139
|
+
*/
|
|
140
|
+
provider: string;
|
|
141
|
+
constructor(data?: PartialMessage<AIGCDetect>);
|
|
142
|
+
static readonly runtime: typeof proto3;
|
|
143
|
+
static readonly typeName = "dailydotdev.api.posts.AIGCDetect";
|
|
144
|
+
static readonly fields: FieldList;
|
|
145
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AIGCDetect;
|
|
146
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AIGCDetect;
|
|
147
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AIGCDetect;
|
|
148
|
+
static equals(a: AIGCDetect | PlainMessage<AIGCDetect> | undefined, b: AIGCDetect | PlainMessage<AIGCDetect> | undefined): boolean;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message dailydotdev.api.posts.Cleaned
|
|
152
|
+
*/
|
|
153
|
+
declare class Cleaned extends Message<Cleaned> {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string resource_location = 1;
|
|
156
|
+
*/
|
|
157
|
+
resourceLocation: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string provider = 2;
|
|
160
|
+
*/
|
|
161
|
+
provider: string;
|
|
162
|
+
constructor(data?: PartialMessage<Cleaned>);
|
|
163
|
+
static readonly runtime: typeof proto3;
|
|
164
|
+
static readonly typeName = "dailydotdev.api.posts.Cleaned";
|
|
165
|
+
static readonly fields: FieldList;
|
|
166
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Cleaned;
|
|
167
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Cleaned;
|
|
168
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Cleaned;
|
|
169
|
+
static equals(a: Cleaned | PlainMessage<Cleaned> | undefined, b: Cleaned | PlainMessage<Cleaned> | undefined): boolean;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message dailydotdev.api.posts.ContentMeta
|
|
173
|
+
*/
|
|
174
|
+
declare class ContentMeta extends Message<ContentMeta> {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: dailydotdev.api.posts.Scraped scraped = 1;
|
|
177
|
+
*/
|
|
178
|
+
scraped?: Scraped;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: dailydotdev.api.posts.Enriched enriched = 2;
|
|
181
|
+
*/
|
|
182
|
+
enriched?: Enriched;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: repeated dailydotdev.api.posts.Cleaned cleaned = 3;
|
|
185
|
+
*/
|
|
186
|
+
cleaned: Cleaned[];
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: dailydotdev.api.posts.PostEmbedding embedding = 4;
|
|
189
|
+
*/
|
|
190
|
+
embedding?: PostEmbedding;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: dailydotdev.api.posts.Language language = 5;
|
|
193
|
+
*/
|
|
194
|
+
language?: Language;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: dailydotdev.api.posts.AIGCDetect aigc_detect = 6;
|
|
197
|
+
*/
|
|
198
|
+
aigcDetect?: AIGCDetect;
|
|
199
|
+
constructor(data?: PartialMessage<ContentMeta>);
|
|
200
|
+
static readonly runtime: typeof proto3;
|
|
201
|
+
static readonly typeName = "dailydotdev.api.posts.ContentMeta";
|
|
202
|
+
static readonly fields: FieldList;
|
|
203
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentMeta;
|
|
204
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentMeta;
|
|
205
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentMeta;
|
|
206
|
+
static equals(a: ContentMeta | PlainMessage<ContentMeta> | undefined, b: ContentMeta | PlainMessage<ContentMeta> | undefined): boolean;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message dailydotdev.api.posts.ContentQuality
|
|
210
|
+
*/
|
|
211
|
+
declare class ContentQuality extends Message<ContentQuality> {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: float is_ai_probability = 1;
|
|
214
|
+
*/
|
|
215
|
+
isAiProbability: number;
|
|
216
|
+
constructor(data?: PartialMessage<ContentQuality>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "dailydotdev.api.posts.ContentQuality";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContentQuality;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContentQuality;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContentQuality;
|
|
223
|
+
static equals(a: ContentQuality | PlainMessage<ContentQuality> | undefined, b: ContentQuality | PlainMessage<ContentQuality> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message dailydotdev.api.posts.PostRelation
|
|
227
|
+
*/
|
|
228
|
+
declare class PostRelation extends Message<PostRelation> {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: string post_id = 1;
|
|
231
|
+
*/
|
|
232
|
+
postId: string;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: string related_post_id = 2;
|
|
235
|
+
*/
|
|
236
|
+
relatedPostId: string;
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: string type = 3;
|
|
239
|
+
*/
|
|
240
|
+
type: string;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: int32 created_at = 4;
|
|
243
|
+
*/
|
|
244
|
+
createdAt: number;
|
|
245
|
+
constructor(data?: PartialMessage<PostRelation>);
|
|
246
|
+
static readonly runtime: typeof proto3;
|
|
247
|
+
static readonly typeName = "dailydotdev.api.posts.PostRelation";
|
|
248
|
+
static readonly fields: FieldList;
|
|
249
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostRelation;
|
|
250
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostRelation;
|
|
251
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostRelation;
|
|
252
|
+
static equals(a: PostRelation | PlainMessage<PostRelation> | undefined, b: PostRelation | PlainMessage<PostRelation> | undefined): boolean;
|
|
253
|
+
}
|
|
49
254
|
|
|
50
|
-
export { CreatePostRequest, CreatePostResponse };
|
|
255
|
+
export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, CreatePostResponse, Enriched, Language, PostEmbedding, PostRelation, Scraped };
|
|
@@ -1,98 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
class CreatePostRequest extends Message {
|
|
3
|
-
/**
|
|
4
|
-
* @generated from field: string url = 1;
|
|
5
|
-
*/
|
|
6
|
-
url = "";
|
|
7
|
-
/**
|
|
8
|
-
* @generated from field: string source_id = 2;
|
|
9
|
-
*/
|
|
10
|
-
sourceId = "";
|
|
11
|
-
/**
|
|
12
|
-
* @generated from field: optional string yggdrasil_id = 3;
|
|
13
|
-
*/
|
|
14
|
-
yggdrasilId;
|
|
15
|
-
constructor(data) {
|
|
16
|
-
super();
|
|
17
|
-
proto3.util.initPartial(data, this);
|
|
18
|
-
}
|
|
19
|
-
static runtime = proto3;
|
|
20
|
-
static typeName = "dailydotdev.api.posts.CreatePostRequest";
|
|
21
|
-
static fields = proto3.util.newFieldList(() => [
|
|
22
|
-
{
|
|
23
|
-
no: 1,
|
|
24
|
-
name: "url",
|
|
25
|
-
kind: "scalar",
|
|
26
|
-
T: 9
|
|
27
|
-
/* ScalarType.STRING */
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
no: 2,
|
|
31
|
-
name: "source_id",
|
|
32
|
-
kind: "scalar",
|
|
33
|
-
T: 9
|
|
34
|
-
/* ScalarType.STRING */
|
|
35
|
-
},
|
|
36
|
-
{ no: 3, name: "yggdrasil_id", kind: "scalar", T: 9, opt: true }
|
|
37
|
-
]);
|
|
38
|
-
static fromBinary(bytes, options) {
|
|
39
|
-
return new CreatePostRequest().fromBinary(bytes, options);
|
|
40
|
-
}
|
|
41
|
-
static fromJson(jsonValue, options) {
|
|
42
|
-
return new CreatePostRequest().fromJson(jsonValue, options);
|
|
43
|
-
}
|
|
44
|
-
static fromJsonString(jsonString, options) {
|
|
45
|
-
return new CreatePostRequest().fromJsonString(jsonString, options);
|
|
46
|
-
}
|
|
47
|
-
static equals(a, b) {
|
|
48
|
-
return proto3.util.equals(CreatePostRequest, a, b);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class CreatePostResponse extends Message {
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: string post_id = 1;
|
|
54
|
-
*/
|
|
55
|
-
postId = "";
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: string url = 2;
|
|
58
|
-
*/
|
|
59
|
-
url = "";
|
|
60
|
-
constructor(data) {
|
|
61
|
-
super();
|
|
62
|
-
proto3.util.initPartial(data, this);
|
|
63
|
-
}
|
|
64
|
-
static runtime = proto3;
|
|
65
|
-
static typeName = "dailydotdev.api.posts.CreatePostResponse";
|
|
66
|
-
static fields = proto3.util.newFieldList(() => [
|
|
67
|
-
{
|
|
68
|
-
no: 1,
|
|
69
|
-
name: "post_id",
|
|
70
|
-
kind: "scalar",
|
|
71
|
-
T: 9
|
|
72
|
-
/* ScalarType.STRING */
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
no: 2,
|
|
76
|
-
name: "url",
|
|
77
|
-
kind: "scalar",
|
|
78
|
-
T: 9
|
|
79
|
-
/* ScalarType.STRING */
|
|
80
|
-
}
|
|
81
|
-
]);
|
|
82
|
-
static fromBinary(bytes, options) {
|
|
83
|
-
return new CreatePostResponse().fromBinary(bytes, options);
|
|
84
|
-
}
|
|
85
|
-
static fromJson(jsonValue, options) {
|
|
86
|
-
return new CreatePostResponse().fromJson(jsonValue, options);
|
|
87
|
-
}
|
|
88
|
-
static fromJsonString(jsonString, options) {
|
|
89
|
-
return new CreatePostResponse().fromJsonString(jsonString, options);
|
|
90
|
-
}
|
|
91
|
-
static equals(a, b) {
|
|
92
|
-
return proto3.util.equals(CreatePostResponse, a, b);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
CreatePostRequest,
|
|
97
|
-
CreatePostResponse
|
|
98
|
-
};
|
|
1
|
+
import{Message as t,proto3 as i,protoInt64 as e}from"@bufbuild/protobuf";class r extends t{url="";sourceId="";yggdrasilId;constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.CreatePostRequest";static fields=i.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"source_id",kind:"scalar",T:9},{no:3,name:"yggdrasil_id",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,i){return(new r).fromBinary(t,i)}static fromJson(t,i){return(new r).fromJson(t,i)}static fromJsonString(t,i){return(new r).fromJsonString(t,i)}static equals(t,e){return i.util.equals(r,t,e)}}class n extends t{postId="";url="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.CreatePostResponse";static fields=i.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]));static fromBinary(t,i){return(new n).fromBinary(t,i)}static fromJson(t,i){return(new n).fromJson(t,i)}static fromJsonString(t,i){return(new n).fromJsonString(t,i)}static equals(t,e){return i.util.equals(n,t,e)}}class s extends t{resourceLocation="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.Scraped";static fields=i.util.newFieldList((()=>[{no:1,name:"resource_location",kind:"scalar",T:9}]));static fromBinary(t,i){return(new s).fromBinary(t,i)}static fromJson(t,i){return(new s).fromJson(t,i)}static fromJsonString(t,i){return(new s).fromJsonString(t,i)}static equals(t,e){return i.util.equals(s,t,e)}}class a extends t{provider="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.Enriched";static fields=i.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,i){return(new a).fromBinary(t,i)}static fromJson(t,i){return(new a).fromJson(t,i)}static fromJsonString(t,i){return(new a).fromJsonString(t,i)}static equals(t,e){return i.util.equals(a,t,e)}}class o extends t{provider="";model="";size=e.zero;contentType="";resourceLocation="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.PostEmbedding";static fields=i.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"model",kind:"scalar",T:9},{no:3,name:"size",kind:"scalar",T:3},{no:4,name:"content_type",kind:"scalar",T:9},{no:5,name:"resource_location",kind:"scalar",T:9}]));static fromBinary(t,i){return(new o).fromBinary(t,i)}static fromJson(t,i){return(new o).fromJson(t,i)}static fromJsonString(t,i){return(new o).fromJsonString(t,i)}static equals(t,e){return i.util.equals(o,t,e)}}class c extends t{provider="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.Language";static fields=i.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,i){return(new c).fromBinary(t,i)}static fromJson(t,i){return(new c).fromJson(t,i)}static fromJsonString(t,i){return(new c).fromJsonString(t,i)}static equals(t,e){return i.util.equals(c,t,e)}}class l extends t{provider="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.AIGCDetect";static fields=i.util.newFieldList((()=>[{no:1,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,i){return(new l).fromBinary(t,i)}static fromJson(t,i){return(new l).fromJson(t,i)}static fromJsonString(t,i){return(new l).fromJsonString(t,i)}static equals(t,e){return i.util.equals(l,t,e)}}class u extends t{resourceLocation="";provider="";constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.Cleaned";static fields=i.util.newFieldList((()=>[{no:1,name:"resource_location",kind:"scalar",T:9},{no:2,name:"provider",kind:"scalar",T:9}]));static fromBinary(t,i){return(new u).fromBinary(t,i)}static fromJson(t,i){return(new u).fromJson(t,i)}static fromJsonString(t,i){return(new u).fromJsonString(t,i)}static equals(t,e){return i.util.equals(u,t,e)}}class d extends t{scraped;enriched;cleaned=[];embedding;language;aigcDetect;constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.ContentMeta";static fields=i.util.newFieldList((()=>[{no:1,name:"scraped",kind:"message",T:s},{no:2,name:"enriched",kind:"message",T:a},{no:3,name:"cleaned",kind:"message",T:u,repeated:!0},{no:4,name:"embedding",kind:"message",T:o},{no:5,name:"language",kind:"message",T:c},{no:6,name:"aigc_detect",kind:"message",T:l}]));static fromBinary(t,i){return(new d).fromBinary(t,i)}static fromJson(t,i){return(new d).fromJson(t,i)}static fromJsonString(t,i){return(new d).fromJsonString(t,i)}static equals(t,e){return i.util.equals(d,t,e)}}class m extends t{isAiProbability=0;constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.ContentQuality";static fields=i.util.newFieldList((()=>[{no:1,name:"is_ai_probability",kind:"scalar",T:2}]));static fromBinary(t,i){return(new m).fromBinary(t,i)}static fromJson(t,i){return(new m).fromJson(t,i)}static fromJsonString(t,i){return(new m).fromJsonString(t,i)}static equals(t,e){return i.util.equals(m,t,e)}}class f extends t{postId="";relatedPostId="";type="";createdAt=0;constructor(t){super(),i.util.initPartial(t,this)}static runtime=i;static typeName="dailydotdev.api.posts.PostRelation";static fields=i.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9},{no:2,name:"related_post_id",kind:"scalar",T:9},{no:3,name:"type",kind:"scalar",T:9},{no:4,name:"created_at",kind:"scalar",T:5}]));static fromBinary(t,i){return(new f).fromBinary(t,i)}static fromJson(t,i){return(new f).fromJson(t,i)}static fromJsonString(t,i){return(new f).fromJsonString(t,i)}static equals(t,e){return i.util.equals(f,t,e)}}export{l as AIGCDetect,u as Cleaned,d as ContentMeta,m as ContentQuality,r as CreatePostRequest,n as CreatePostResponse,a as Enriched,c as Language,o as PostEmbedding,f as PostRelation,s as Scraped};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((e,a)=>{for(var t in a)n(e,t,{get:a[t],enumerable:!0})})(o,{ContentUpdatedMessage:()=>c}),module.exports=(e=o,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let d of t(o))r.call(e,d)||d===i||n(e,d,{get:()=>o[d],enumerable:!(s=a(o,d))||s.enumerable});return e})(n({},"__esModule",{value:!0}),e));var i=require("@bufbuild/protobuf"),s=require("../sources_pb.cjs"),d=require("../posts_pb.cjs");class c extends i.Message{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(e){super(),i.proto3.util.initPartial(e,this)}static runtime=i.proto3;static typeName="dailydotdev.api.pubsub.contentupdated.ContentUpdatedMessage";static fields=i.proto3.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:s.Source},{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:d.ContentMeta},{no:23,name:"relatedPosts",kind:"message",T:d.PostRelation,repeated:!0},{no:24,name:"content_curation",kind:"scalar",T:9,repeated:!0},{no:25,name:"content_quality",kind:"message",T:d.ContentQuality}]));static fromBinary(e,n){return(new c).fromBinary(e,n)}static fromJson(e,n){return(new c).fromJson(e,n)}static fromJsonString(e,n){return(new c).fromJsonString(e,n)}static equals(e,n){return i.proto3.util.equals(c,e,n)}}
|