@dailydotdev/schema 0.2.78 → 0.3.1

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.
@@ -1,5 +1,34 @@
1
1
  import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
2
 
3
+ /**
4
+ * @generated from enum dailydotdev.api.sources.SourceEngine
5
+ */
6
+ declare enum SourceEngine {
7
+ /**
8
+ * @generated from enum value: SOURCE_ENGINE_UNSPECIFIED = 0;
9
+ */
10
+ UNSPECIFIED = 0,
11
+ /**
12
+ * @generated from enum value: SOURCE_ENGINE_RSS = 1;
13
+ */
14
+ RSS = 1,
15
+ /**
16
+ * @generated from enum value: SOURCE_ENGINE_YOUTUBE_CHANNEL = 2;
17
+ */
18
+ YOUTUBE_CHANNEL = 2,
19
+ /**
20
+ * @generated from enum value: SOURCE_ENGINE_RSS_NEWSLETTER = 3;
21
+ */
22
+ RSS_NEWSLETTER = 3,
23
+ /**
24
+ * @generated from enum value: SOURCE_ENGINE_PAGE = 4;
25
+ */
26
+ PAGE = 4,
27
+ /**
28
+ * @generated from enum value: SOURCE_ENGINE_TWITTER_ACCOUNT = 5;
29
+ */
30
+ TWITTER_ACCOUNT = 5
31
+ }
3
32
  /**
4
33
  * @generated from message dailydotdev.api.sources.Source
5
34
  */
@@ -66,88 +95,135 @@ declare class Source extends Message<Source> {
66
95
  static equals(a: Source | PlainMessage<Source> | undefined, b: Source | PlainMessage<Source> | undefined): boolean;
67
96
  }
68
97
  /**
69
- * @generated from message dailydotdev.api.sources.ScrapeSourceRequest
98
+ * @generated from message dailydotdev.api.sources.SelectorIngestionOptions
70
99
  */
71
- declare class ScrapeSourceRequest extends Message<ScrapeSourceRequest> {
100
+ declare class SelectorIngestionOptions extends Message<SelectorIngestionOptions> {
72
101
  /**
73
- * @generated from field: string url = 1;
102
+ * @generated from field: optional string selector = 1;
74
103
  */
75
- url: string;
76
- constructor(data?: PartialMessage<ScrapeSourceRequest>);
104
+ selector?: string;
105
+ /**
106
+ * @generated from field: optional string evaluator = 2;
107
+ */
108
+ evaluator?: string;
109
+ constructor(data?: PartialMessage<SelectorIngestionOptions>);
77
110
  static readonly runtime: typeof proto3;
78
- static readonly typeName = "dailydotdev.api.sources.ScrapeSourceRequest";
111
+ static readonly typeName = "dailydotdev.api.sources.SelectorIngestionOptions";
79
112
  static readonly fields: FieldList;
80
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScrapeSourceRequest;
81
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScrapeSourceRequest;
82
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScrapeSourceRequest;
83
- static equals(a: ScrapeSourceRequest | PlainMessage<ScrapeSourceRequest> | undefined, b: ScrapeSourceRequest | PlainMessage<ScrapeSourceRequest> | undefined): boolean;
113
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SelectorIngestionOptions;
114
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SelectorIngestionOptions;
115
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SelectorIngestionOptions;
116
+ static equals(a: SelectorIngestionOptions | PlainMessage<SelectorIngestionOptions> | undefined, b: SelectorIngestionOptions | PlainMessage<SelectorIngestionOptions> | undefined): boolean;
84
117
  }
85
118
  /**
86
- * @generated from message dailydotdev.api.sources.ScrapeSourceFeed
119
+ * @generated from message dailydotdev.api.sources.RssIngestion
87
120
  */
88
- declare class ScrapeSourceFeed extends Message<ScrapeSourceFeed> {
121
+ declare class RssIngestion extends Message<RssIngestion> {
89
122
  /**
90
- * @generated from field: string url = 1;
123
+ * @generated from field: string feed_url = 1;
91
124
  */
92
- url: string;
125
+ feedUrl: string;
126
+ constructor(data?: PartialMessage<RssIngestion>);
127
+ static readonly runtime: typeof proto3;
128
+ static readonly typeName = "dailydotdev.api.sources.RssIngestion";
129
+ static readonly fields: FieldList;
130
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RssIngestion;
131
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RssIngestion;
132
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RssIngestion;
133
+ static equals(a: RssIngestion | PlainMessage<RssIngestion> | undefined, b: RssIngestion | PlainMessage<RssIngestion> | undefined): boolean;
134
+ }
135
+ /**
136
+ * @generated from message dailydotdev.api.sources.YoutubeChannelIngestion
137
+ */
138
+ declare class YoutubeChannelIngestion extends Message<YoutubeChannelIngestion> {
93
139
  /**
94
- * @generated from field: optional string title = 2;
140
+ * @generated from field: string channel_url = 1;
95
141
  */
96
- title?: string;
97
- constructor(data?: PartialMessage<ScrapeSourceFeed>);
142
+ channelUrl: string;
143
+ constructor(data?: PartialMessage<YoutubeChannelIngestion>);
98
144
  static readonly runtime: typeof proto3;
99
- static readonly typeName = "dailydotdev.api.sources.ScrapeSourceFeed";
145
+ static readonly typeName = "dailydotdev.api.sources.YoutubeChannelIngestion";
100
146
  static readonly fields: FieldList;
101
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScrapeSourceFeed;
102
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScrapeSourceFeed;
103
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScrapeSourceFeed;
104
- static equals(a: ScrapeSourceFeed | PlainMessage<ScrapeSourceFeed> | undefined, b: ScrapeSourceFeed | PlainMessage<ScrapeSourceFeed> | undefined): boolean;
147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): YoutubeChannelIngestion;
148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): YoutubeChannelIngestion;
149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): YoutubeChannelIngestion;
150
+ static equals(a: YoutubeChannelIngestion | PlainMessage<YoutubeChannelIngestion> | undefined, b: YoutubeChannelIngestion | PlainMessage<YoutubeChannelIngestion> | undefined): boolean;
105
151
  }
106
152
  /**
107
- * @generated from message dailydotdev.api.sources.ScrapeSourceResponse
153
+ * @generated from message dailydotdev.api.sources.RssNewsletterIngestion
108
154
  */
109
- declare class ScrapeSourceResponse extends Message<ScrapeSourceResponse> {
155
+ declare class RssNewsletterIngestion extends Message<RssNewsletterIngestion> {
110
156
  /**
111
- * @generated from field: string type = 1;
157
+ * @generated from field: string feed_url = 1;
112
158
  */
113
- type: string;
159
+ feedUrl: string;
114
160
  /**
115
- * @generated from field: optional string name = 2;
161
+ * @generated from field: optional dailydotdev.api.sources.SelectorIngestionOptions extraction = 2;
116
162
  */
117
- name?: string;
163
+ extraction?: SelectorIngestionOptions;
164
+ constructor(data?: PartialMessage<RssNewsletterIngestion>);
165
+ static readonly runtime: typeof proto3;
166
+ static readonly typeName = "dailydotdev.api.sources.RssNewsletterIngestion";
167
+ static readonly fields: FieldList;
168
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RssNewsletterIngestion;
169
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RssNewsletterIngestion;
170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RssNewsletterIngestion;
171
+ static equals(a: RssNewsletterIngestion | PlainMessage<RssNewsletterIngestion> | undefined, b: RssNewsletterIngestion | PlainMessage<RssNewsletterIngestion> | undefined): boolean;
172
+ }
173
+ /**
174
+ * @generated from message dailydotdev.api.sources.PageIngestion
175
+ */
176
+ declare class PageIngestion extends Message<PageIngestion> {
118
177
  /**
119
- * @generated from field: optional string logo = 3;
178
+ * @generated from field: string page_url = 1;
120
179
  */
121
- logo?: string;
180
+ pageUrl: string;
122
181
  /**
123
- * @generated from field: optional string website = 4;
182
+ * @generated from field: optional dailydotdev.api.sources.SelectorIngestionOptions extraction = 2;
124
183
  */
125
- website?: string;
184
+ extraction?: SelectorIngestionOptions;
185
+ constructor(data?: PartialMessage<PageIngestion>);
186
+ static readonly runtime: typeof proto3;
187
+ static readonly typeName = "dailydotdev.api.sources.PageIngestion";
188
+ static readonly fields: FieldList;
189
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageIngestion;
190
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageIngestion;
191
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageIngestion;
192
+ static equals(a: PageIngestion | PlainMessage<PageIngestion> | undefined, b: PageIngestion | PlainMessage<PageIngestion> | undefined): boolean;
193
+ }
194
+ /**
195
+ * @generated from message dailydotdev.api.sources.TwitterAccountIngestion
196
+ */
197
+ declare class TwitterAccountIngestion extends Message<TwitterAccountIngestion> {
126
198
  /**
127
- * @generated from field: repeated dailydotdev.api.sources.ScrapeSourceFeed feeds = 5;
199
+ * @generated from field: string username = 1;
128
200
  */
129
- feeds: ScrapeSourceFeed[];
130
- constructor(data?: PartialMessage<ScrapeSourceResponse>);
201
+ username: string;
202
+ /**
203
+ * @generated from field: optional float audience_fit_threshold = 2;
204
+ */
205
+ audienceFitThreshold?: number;
206
+ constructor(data?: PartialMessage<TwitterAccountIngestion>);
131
207
  static readonly runtime: typeof proto3;
132
- static readonly typeName = "dailydotdev.api.sources.ScrapeSourceResponse";
208
+ static readonly typeName = "dailydotdev.api.sources.TwitterAccountIngestion";
133
209
  static readonly fields: FieldList;
134
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScrapeSourceResponse;
135
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScrapeSourceResponse;
136
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScrapeSourceResponse;
137
- static equals(a: ScrapeSourceResponse | PlainMessage<ScrapeSourceResponse> | undefined, b: ScrapeSourceResponse | PlainMessage<ScrapeSourceResponse> | undefined): boolean;
210
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TwitterAccountIngestion;
211
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TwitterAccountIngestion;
212
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TwitterAccountIngestion;
213
+ static equals(a: TwitterAccountIngestion | PlainMessage<TwitterAccountIngestion> | undefined, b: TwitterAccountIngestion | PlainMessage<TwitterAccountIngestion> | undefined): boolean;
138
214
  }
139
215
  /**
140
- * @generated from message dailydotdev.api.sources.CreateSourceRequest
216
+ * @generated from message dailydotdev.api.sources.ProvisionSourceRequest
141
217
  */
142
- declare class CreateSourceRequest extends Message<CreateSourceRequest> {
218
+ declare class ProvisionSourceRequest extends Message<ProvisionSourceRequest> {
143
219
  /**
144
- * @generated from field: string id = 1;
220
+ * @generated from field: string source_id = 1;
145
221
  */
146
- id: string;
222
+ sourceId: string;
147
223
  /**
148
- * @generated from field: string name = 2;
224
+ * @generated from field: optional string name = 2;
149
225
  */
150
- name: string;
226
+ name?: string;
151
227
  /**
152
228
  * @generated from field: optional string image = 3;
153
229
  */
@@ -160,73 +236,113 @@ declare class CreateSourceRequest extends Message<CreateSourceRequest> {
160
236
  * @generated from field: optional string website = 5;
161
237
  */
162
238
  website?: string;
163
- constructor(data?: PartialMessage<CreateSourceRequest>);
164
- static readonly runtime: typeof proto3;
165
- static readonly typeName = "dailydotdev.api.sources.CreateSourceRequest";
166
- static readonly fields: FieldList;
167
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSourceRequest;
168
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSourceRequest;
169
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSourceRequest;
170
- static equals(a: CreateSourceRequest | PlainMessage<CreateSourceRequest> | undefined, b: CreateSourceRequest | PlainMessage<CreateSourceRequest> | undefined): boolean;
171
- }
172
- /**
173
- * @generated from message dailydotdev.api.sources.CreateSourceResponse
174
- */
175
- declare class CreateSourceResponse extends Message<CreateSourceResponse> {
176
239
  /**
177
- * @generated from field: dailydotdev.api.sources.Source source = 1;
240
+ * @generated from field: optional bool scrape_metadata = 6;
178
241
  */
179
- source?: Source;
180
- constructor(data?: PartialMessage<CreateSourceResponse>);
242
+ scrapeMetadata?: boolean;
243
+ /**
244
+ * @generated from oneof dailydotdev.api.sources.ProvisionSourceRequest.ingestion
245
+ */
246
+ ingestion: {
247
+ /**
248
+ * @generated from field: dailydotdev.api.sources.RssIngestion rss = 10;
249
+ */
250
+ value: RssIngestion;
251
+ case: "rss";
252
+ } | {
253
+ /**
254
+ * @generated from field: dailydotdev.api.sources.YoutubeChannelIngestion youtube_channel = 11;
255
+ */
256
+ value: YoutubeChannelIngestion;
257
+ case: "youtubeChannel";
258
+ } | {
259
+ /**
260
+ * @generated from field: dailydotdev.api.sources.RssNewsletterIngestion rss_newsletter = 12;
261
+ */
262
+ value: RssNewsletterIngestion;
263
+ case: "rssNewsletter";
264
+ } | {
265
+ /**
266
+ * @generated from field: dailydotdev.api.sources.PageIngestion page = 13;
267
+ */
268
+ value: PageIngestion;
269
+ case: "page";
270
+ } | {
271
+ /**
272
+ * @generated from field: dailydotdev.api.sources.TwitterAccountIngestion twitter_account = 14;
273
+ */
274
+ value: TwitterAccountIngestion;
275
+ case: "twitterAccount";
276
+ } | {
277
+ case: undefined;
278
+ value?: undefined;
279
+ };
280
+ constructor(data?: PartialMessage<ProvisionSourceRequest>);
181
281
  static readonly runtime: typeof proto3;
182
- static readonly typeName = "dailydotdev.api.sources.CreateSourceResponse";
282
+ static readonly typeName = "dailydotdev.api.sources.ProvisionSourceRequest";
183
283
  static readonly fields: FieldList;
184
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSourceResponse;
185
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSourceResponse;
186
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSourceResponse;
187
- static equals(a: CreateSourceResponse | PlainMessage<CreateSourceResponse> | undefined, b: CreateSourceResponse | PlainMessage<CreateSourceResponse> | undefined): boolean;
284
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProvisionSourceRequest;
285
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProvisionSourceRequest;
286
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProvisionSourceRequest;
287
+ static equals(a: ProvisionSourceRequest | PlainMessage<ProvisionSourceRequest> | undefined, b: ProvisionSourceRequest | PlainMessage<ProvisionSourceRequest> | undefined): boolean;
188
288
  }
189
289
  /**
190
- * @generated from message dailydotdev.api.sources.AddSourceFeedRequest
290
+ * @generated from message dailydotdev.api.sources.ProvisionedIngestion
191
291
  */
192
- declare class AddSourceFeedRequest extends Message<AddSourceFeedRequest> {
292
+ declare class ProvisionedIngestion extends Message<ProvisionedIngestion> {
193
293
  /**
194
- * @generated from field: string source_id = 1;
294
+ * @generated from field: dailydotdev.api.sources.SourceEngine engine = 1;
195
295
  */
196
- sourceId: string;
296
+ engine: SourceEngine;
297
+ /**
298
+ * @generated from field: string url = 2;
299
+ */
300
+ url: string;
301
+ /**
302
+ * @generated from field: optional string selector = 3;
303
+ */
304
+ selector?: string;
197
305
  /**
198
- * @generated from field: string feed = 2;
306
+ * @generated from field: optional string evaluator = 4;
199
307
  */
200
- feed: string;
201
- constructor(data?: PartialMessage<AddSourceFeedRequest>);
308
+ evaluator?: string;
309
+ /**
310
+ * @generated from field: optional string twitter_username = 5;
311
+ */
312
+ twitterUsername?: string;
313
+ /**
314
+ * @generated from field: optional float audience_fit_threshold = 6;
315
+ */
316
+ audienceFitThreshold?: number;
317
+ constructor(data?: PartialMessage<ProvisionedIngestion>);
202
318
  static readonly runtime: typeof proto3;
203
- static readonly typeName = "dailydotdev.api.sources.AddSourceFeedRequest";
319
+ static readonly typeName = "dailydotdev.api.sources.ProvisionedIngestion";
204
320
  static readonly fields: FieldList;
205
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddSourceFeedRequest;
206
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddSourceFeedRequest;
207
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddSourceFeedRequest;
208
- static equals(a: AddSourceFeedRequest | PlainMessage<AddSourceFeedRequest> | undefined, b: AddSourceFeedRequest | PlainMessage<AddSourceFeedRequest> | undefined): boolean;
321
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProvisionedIngestion;
322
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProvisionedIngestion;
323
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProvisionedIngestion;
324
+ static equals(a: ProvisionedIngestion | PlainMessage<ProvisionedIngestion> | undefined, b: ProvisionedIngestion | PlainMessage<ProvisionedIngestion> | undefined): boolean;
209
325
  }
210
326
  /**
211
- * @generated from message dailydotdev.api.sources.AddSourceFeedResponse
327
+ * @generated from message dailydotdev.api.sources.ProvisionSourceResponse
212
328
  */
213
- declare class AddSourceFeedResponse extends Message<AddSourceFeedResponse> {
329
+ declare class ProvisionSourceResponse extends Message<ProvisionSourceResponse> {
214
330
  /**
215
- * @generated from field: string source_id = 1;
331
+ * @generated from field: dailydotdev.api.sources.Source source = 1;
216
332
  */
217
- sourceId: string;
333
+ source?: Source;
218
334
  /**
219
- * @generated from field: string feed = 2;
335
+ * @generated from field: dailydotdev.api.sources.ProvisionedIngestion ingestion = 2;
220
336
  */
221
- feed: string;
222
- constructor(data?: PartialMessage<AddSourceFeedResponse>);
337
+ ingestion?: ProvisionedIngestion;
338
+ constructor(data?: PartialMessage<ProvisionSourceResponse>);
223
339
  static readonly runtime: typeof proto3;
224
- static readonly typeName = "dailydotdev.api.sources.AddSourceFeedResponse";
340
+ static readonly typeName = "dailydotdev.api.sources.ProvisionSourceResponse";
225
341
  static readonly fields: FieldList;
226
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddSourceFeedResponse;
227
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddSourceFeedResponse;
228
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddSourceFeedResponse;
229
- static equals(a: AddSourceFeedResponse | PlainMessage<AddSourceFeedResponse> | undefined, b: AddSourceFeedResponse | PlainMessage<AddSourceFeedResponse> | undefined): boolean;
342
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProvisionSourceResponse;
343
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProvisionSourceResponse;
344
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProvisionSourceResponse;
345
+ static equals(a: ProvisionSourceResponse | PlainMessage<ProvisionSourceResponse> | undefined, b: ProvisionSourceResponse | PlainMessage<ProvisionSourceResponse> | undefined): boolean;
230
346
  }
231
347
 
232
- export { AddSourceFeedRequest, AddSourceFeedResponse, CreateSourceRequest, CreateSourceResponse, ScrapeSourceFeed, ScrapeSourceRequest, ScrapeSourceResponse, Source };
348
+ export { PageIngestion, ProvisionSourceRequest, ProvisionSourceResponse, ProvisionedIngestion, RssIngestion, RssNewsletterIngestion, SelectorIngestionOptions, Source, SourceEngine, TwitterAccountIngestion, YoutubeChannelIngestion };
@@ -1 +1 @@
1
- import{Message as t,proto3 as e}from"@bufbuild/protobuf";class n extends t{id="";type="";createdAt=0;active=!1;name="";image="";private=!1;headerImage;color;handle="";twitter;website;description;constructor(t){super(),e.util.initPartial(t,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,opt:!0},{no:9,name:"color",kind:"scalar",T:9,opt:!0},{no:10,name:"handle",kind:"scalar",T:9},{no:11,name:"twitter",kind:"scalar",T:9,opt:!0},{no:12,name:"website",kind:"scalar",T:9,opt:!0},{no:13,name:"description",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,e){return(new n).fromBinary(t,e)}static fromJson(t,e){return(new n).fromJson(t,e)}static fromJsonString(t,e){return(new n).fromJsonString(t,e)}static equals(t,r){return e.util.equals(n,t,r)}}class r extends t{url="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ScrapeSourceRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new r).fromBinary(t,e)}static fromJson(t,e){return(new r).fromJson(t,e)}static fromJsonString(t,e){return(new r).fromJsonString(t,e)}static equals(t,n){return e.util.equals(r,t,n)}}class a extends t{url="";title;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ScrapeSourceFeed";static fields=e.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"title",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,n){return e.util.equals(a,t,n)}}class i extends t{type="";name;logo;website;feeds=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ScrapeSourceResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"logo",kind:"scalar",T:9,opt:!0},{no:4,name:"website",kind:"scalar",T:9,opt:!0},{no:5,name:"feeds",kind:"message",T:a,repeated:!0}]));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,n){return e.util.equals(i,t,n)}}class s extends t{id="";name="";image;twitter;website;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.CreateSourceRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9,opt:!0},{no:4,name:"twitter",kind:"scalar",T:9,opt:!0},{no:5,name:"website",kind:"scalar",T:9,opt:!0}]));static fromBinary(t,e){return(new s).fromBinary(t,e)}static fromJson(t,e){return(new s).fromJson(t,e)}static fromJsonString(t,e){return(new s).fromJsonString(t,e)}static equals(t,n){return e.util.equals(s,t,n)}}class o extends t{source;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.CreateSourceResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"source",kind:"message",T:n}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,n){return e.util.equals(o,t,n)}}class c extends t{sourceId="";feed="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.AddSourceFeedRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"source_id",kind:"scalar",T:9},{no:2,name:"feed",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,n){return e.util.equals(c,t,n)}}class u extends t{sourceId="";feed="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.AddSourceFeedResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"source_id",kind:"scalar",T:9},{no:2,name:"feed",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,n){return e.util.equals(u,t,n)}}export{c as AddSourceFeedRequest,u as AddSourceFeedResponse,s as CreateSourceRequest,o as CreateSourceResponse,a as ScrapeSourceFeed,r as ScrapeSourceRequest,i as ScrapeSourceResponse,n as Source};
1
+ import{Message as t,proto3 as e}from"@bufbuild/protobuf";var n=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.RSS=1]="RSS",t[t.YOUTUBE_CHANNEL=2]="YOUTUBE_CHANNEL",t[t.RSS_NEWSLETTER=3]="RSS_NEWSLETTER",t[t.PAGE=4]="PAGE",t[t.TWITTER_ACCOUNT=5]="TWITTER_ACCOUNT",t))(n||{});e.util.setEnumType(n,"dailydotdev.api.sources.SourceEngine",[{no:0,name:"SOURCE_ENGINE_UNSPECIFIED"},{no:1,name:"SOURCE_ENGINE_RSS"},{no:2,name:"SOURCE_ENGINE_YOUTUBE_CHANNEL"},{no:3,name:"SOURCE_ENGINE_RSS_NEWSLETTER"},{no:4,name:"SOURCE_ENGINE_PAGE"},{no:5,name:"SOURCE_ENGINE_TWITTER_ACCOUNT"}]);class i extends t{id="";type="";createdAt=0;active=!1;name="";image="";private=!1;headerImage;color;handle="";twitter;website;description;constructor(t){super(),e.util.initPartial(t,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,opt:!0},{no:9,name:"color",kind:"scalar",T:9,opt:!0},{no:10,name:"handle",kind:"scalar",T:9},{no:11,name:"twitter",kind:"scalar",T:9,opt:!0},{no:12,name:"website",kind:"scalar",T:9,opt:!0},{no:13,name:"description",kind:"scalar",T:9,opt:!0}]));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,n){return e.util.equals(i,t,n)}}class a extends t{selector;evaluator;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.SelectorIngestionOptions";static fields=e.util.newFieldList((()=>[{no:1,name:"selector",kind:"scalar",T:9,opt:!0},{no:2,name:"evaluator",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,n){return e.util.equals(a,t,n)}}class r extends t{feedUrl="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.RssIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"feed_url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new r).fromBinary(t,e)}static fromJson(t,e){return(new r).fromJson(t,e)}static fromJsonString(t,e){return(new r).fromJsonString(t,e)}static equals(t,n){return e.util.equals(r,t,n)}}class s extends t{channelUrl="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.YoutubeChannelIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"channel_url",kind:"scalar",T:9}]));static fromBinary(t,e){return(new s).fromBinary(t,e)}static fromJson(t,e){return(new s).fromJson(t,e)}static fromJsonString(t,e){return(new s).fromJsonString(t,e)}static equals(t,n){return e.util.equals(s,t,n)}}class o extends t{feedUrl="";extraction;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.RssNewsletterIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"feed_url",kind:"scalar",T:9},{no:2,name:"extraction",kind:"message",T:a,opt:!0}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,n){return e.util.equals(o,t,n)}}class c extends t{pageUrl="";extraction;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.PageIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"page_url",kind:"scalar",T:9},{no:2,name:"extraction",kind:"message",T:a,opt:!0}]));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,n){return e.util.equals(c,t,n)}}class u extends t{username="";audienceFitThreshold;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.TwitterAccountIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"audience_fit_threshold",kind:"scalar",T:2,opt:!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,n){return e.util.equals(u,t,n)}}class l extends t{sourceId="";name;image;twitter;website;scrapeMetadata;ingestion={case:void 0};constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ProvisionSourceRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"source_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"image",kind:"scalar",T:9,opt:!0},{no:4,name:"twitter",kind:"scalar",T:9,opt:!0},{no:5,name:"website",kind:"scalar",T:9,opt:!0},{no:6,name:"scrape_metadata",kind:"scalar",T:8,opt:!0},{no:10,name:"rss",kind:"message",T:r,oneof:"ingestion"},{no:11,name:"youtube_channel",kind:"message",T:s,oneof:"ingestion"},{no:12,name:"rss_newsletter",kind:"message",T:o,oneof:"ingestion"},{no:13,name:"page",kind:"message",T:c,oneof:"ingestion"},{no:14,name:"twitter_account",kind:"message",T:u,oneof:"ingestion"}]));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,n){return e.util.equals(l,t,n)}}class m extends t{engine=0;url="";selector;evaluator;twitterUsername;audienceFitThreshold;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ProvisionedIngestion";static fields=e.util.newFieldList((()=>[{no:1,name:"engine",kind:"enum",T:e.getEnumType(n)},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"selector",kind:"scalar",T:9,opt:!0},{no:4,name:"evaluator",kind:"scalar",T:9,opt:!0},{no:5,name:"twitter_username",kind:"scalar",T:9,opt:!0},{no:6,name:"audience_fit_threshold",kind:"scalar",T:2,opt:!0}]));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,n){return e.util.equals(m,t,n)}}class d extends t{source;ingestion;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="dailydotdev.api.sources.ProvisionSourceResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"source",kind:"message",T:i},{no:2,name:"ingestion",kind:"message",T:m}]));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,n){return e.util.equals(d,t,n)}}export{c as PageIngestion,l as ProvisionSourceRequest,d as ProvisionSourceResponse,m as ProvisionedIngestion,r as RssIngestion,o as RssNewsletterIngestion,a as SelectorIngestionOptions,i as Source,n as SourceEngine,u as TwitterAccountIngestion,s as YoutubeChannelIngestion};
package/dist/index.d.cts CHANGED
@@ -15,7 +15,7 @@ export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, Cr
15
15
  export { SourceRequestService } from './daily-api/source-requests_connect.cjs';
16
16
  export { CreateSourceRequestInput, CreateSourceRequestResponse } from './daily-api/source-requests_pb.cjs';
17
17
  export { SourceService } from './daily-api/sources_connect.cjs';
18
- export { AddSourceFeedRequest, AddSourceFeedResponse, CreateSourceRequest, CreateSourceResponse, ScrapeSourceFeed, ScrapeSourceRequest, ScrapeSourceResponse, Source } from './daily-api/sources_pb.cjs';
18
+ export { PageIngestion, ProvisionSourceRequest, ProvisionSourceResponse, ProvisionedIngestion, RssIngestion, RssNewsletterIngestion, SelectorIngestionOptions, Source, SourceEngine, TwitterAccountIngestion, YoutubeChannelIngestion } from './daily-api/sources_pb.cjs';
19
19
  export { CandidateStatus, UserCandidatePreference } from './daily-api/user-candidate-preference_pb.cjs';
20
20
  export { UserExperience, UserExperienceSkill, UserExperienceType, UserProfile } from './daily-api/user-experience_pb.cjs';
21
21
  export { UserCV } from './daily-api/user_pb.cjs';
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export { AIGCDetect, Cleaned, ContentMeta, ContentQuality, CreatePostRequest, Cr
15
15
  export { SourceRequestService } from './daily-api/source-requests_connect.js';
16
16
  export { CreateSourceRequestInput, CreateSourceRequestResponse } from './daily-api/source-requests_pb.js';
17
17
  export { SourceService } from './daily-api/sources_connect.js';
18
- export { AddSourceFeedRequest, AddSourceFeedResponse, CreateSourceRequest, CreateSourceResponse, ScrapeSourceFeed, ScrapeSourceRequest, ScrapeSourceResponse, Source } from './daily-api/sources_pb.js';
18
+ export { PageIngestion, ProvisionSourceRequest, ProvisionSourceResponse, ProvisionedIngestion, RssIngestion, RssNewsletterIngestion, SelectorIngestionOptions, Source, SourceEngine, TwitterAccountIngestion, YoutubeChannelIngestion } from './daily-api/sources_pb.js';
19
19
  export { CandidateStatus, UserCandidatePreference } from './daily-api/user-candidate-preference_pb.js';
20
20
  export { UserExperience, UserExperienceSkill, UserExperienceType, UserProfile } from './daily-api/user-experience_pb.js';
21
21
  export { UserCV } from './daily-api/user_pb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailydotdev/schema",
3
- "version": "0.2.78",
3
+ "version": "0.3.1",
4
4
  "author": "@dailydotdev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",