asfur 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +174 -667
  2. package/index.ts +6 -6
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -89,757 +89,264 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
89
89
  } & {
90
90
  __v: number;
91
91
  }>;
92
- export declare const MongoInstructionsSchema: Schema<{
93
- user_id: string;
94
- prompt: string;
95
- _id?: string | undefined;
96
- created_at?: number | Date | undefined;
97
- updated_at?: number | Date | undefined;
98
- }, import("mongoose").Model<{
99
- user_id: string;
100
- prompt: string;
101
- _id?: string | undefined;
102
- created_at?: number | Date | undefined;
103
- updated_at?: number | Date | undefined;
104
- }, any, any, any, import("mongoose").Document<unknown, any, {
105
- user_id: string;
106
- prompt: string;
107
- _id?: string | undefined;
108
- created_at?: number | Date | undefined;
109
- updated_at?: number | Date | undefined;
110
- }, any> & {
111
- user_id: string;
112
- prompt: string;
113
- _id?: string | undefined;
114
- created_at?: number | Date | undefined;
115
- updated_at?: number | Date | undefined;
116
- } & Required<{
117
- _id: string;
118
- }> & {
119
- __v: number;
120
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
92
+ export declare const MongoInstructionsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
93
+ versionKey: false;
94
+ toJSON: {
95
+ virtuals: true;
96
+ };
97
+ toObject: {
98
+ virtuals: true;
99
+ };
100
+ }, {
101
+ created_at: number;
102
+ updated_at: number;
121
103
  user_id: string;
122
- prompt: string;
123
- _id?: string | undefined;
124
- created_at?: number | Date | undefined;
125
- updated_at?: number | Date | undefined;
104
+ prompt?: string | null | undefined;
126
105
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
106
+ created_at: number;
107
+ updated_at: number;
127
108
  user_id: string;
128
- prompt: string;
129
- _id?: string | undefined;
130
- created_at?: number | Date | undefined;
131
- updated_at?: number | Date | undefined;
109
+ prompt?: string | null | undefined;
132
110
  }>, {}> & import("mongoose").FlatRecord<{
111
+ created_at: number;
112
+ updated_at: number;
133
113
  user_id: string;
134
- prompt: string;
135
- _id?: string | undefined;
136
- created_at?: number | Date | undefined;
137
- updated_at?: number | Date | undefined;
138
- }> & Required<{
139
- _id: string;
114
+ prompt?: string | null | undefined;
140
115
  }> & {
116
+ _id: import("mongoose").Types.ObjectId;
117
+ } & {
141
118
  __v: number;
142
119
  }>;
143
- export declare const MongoSourceSchema: Schema<{
144
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
145
- status: "approved" | "pending" | "inactive" | "in_review";
146
- source_id: string | number;
147
- source_name: string;
148
- is_public: boolean;
149
- created_at: Date;
150
- _id?: string | undefined;
151
- title?: string | undefined;
152
- source_public_id?: string | number | undefined;
153
- last_text_id?: number | undefined;
154
- url?: string | undefined;
155
- description?: string | undefined;
156
- language?: string | undefined;
157
- source_geo?: string | undefined;
158
- tags?: string[] | undefined;
159
- metadata?: Record<string, any> | undefined;
160
- updated_at?: Date | undefined;
161
- user_id?: string | undefined;
162
- }, import("mongoose").Model<{
163
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
164
- status: "approved" | "pending" | "inactive" | "in_review";
165
- source_id: string | number;
166
- source_name: string;
167
- is_public: boolean;
168
- created_at: Date;
169
- _id?: string | undefined;
170
- title?: string | undefined;
171
- source_public_id?: string | number | undefined;
172
- last_text_id?: number | undefined;
173
- url?: string | undefined;
174
- description?: string | undefined;
175
- language?: string | undefined;
176
- source_geo?: string | undefined;
177
- tags?: string[] | undefined;
178
- metadata?: Record<string, any> | undefined;
179
- updated_at?: Date | undefined;
180
- user_id?: string | undefined;
181
- }, any, any, any, import("mongoose").Document<unknown, any, {
182
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
183
- status: "approved" | "pending" | "inactive" | "in_review";
184
- source_id: string | number;
185
- source_name: string;
186
- is_public: boolean;
187
- created_at: Date;
188
- _id?: string | undefined;
189
- title?: string | undefined;
190
- source_public_id?: string | number | undefined;
191
- last_text_id?: number | undefined;
192
- url?: string | undefined;
193
- description?: string | undefined;
194
- language?: string | undefined;
195
- source_geo?: string | undefined;
196
- tags?: string[] | undefined;
197
- metadata?: Record<string, any> | undefined;
198
- updated_at?: Date | undefined;
199
- user_id?: string | undefined;
200
- }, any> & {
201
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
202
- status: "approved" | "pending" | "inactive" | "in_review";
203
- source_id: string | number;
204
- source_name: string;
205
- is_public: boolean;
206
- created_at: Date;
207
- _id?: string | undefined;
208
- title?: string | undefined;
209
- source_public_id?: string | number | undefined;
210
- last_text_id?: number | undefined;
211
- url?: string | undefined;
212
- description?: string | undefined;
213
- language?: string | undefined;
214
- source_geo?: string | undefined;
215
- tags?: string[] | undefined;
216
- metadata?: Record<string, any> | undefined;
217
- updated_at?: Date | undefined;
218
- user_id?: string | undefined;
219
- } & Required<{
220
- _id: string;
221
- }> & {
222
- __v: number;
223
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
224
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
120
+ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
121
+ versionKey: false;
122
+ toJSON: {
123
+ virtuals: true;
124
+ };
125
+ toObject: {
126
+ virtuals: true;
127
+ };
128
+ }, {
129
+ title: string;
130
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other" | "twitter" | "youtube";
225
131
  status: "approved" | "pending" | "inactive" | "in_review";
226
- source_id: string | number;
132
+ source_id: string;
133
+ source_public_id: string;
227
134
  source_name: string;
135
+ tags: string[];
228
136
  is_public: boolean;
229
- created_at: Date;
230
- _id?: string | undefined;
231
- title?: string | undefined;
232
- source_public_id?: string | number | undefined;
233
- last_text_id?: number | undefined;
234
- url?: string | undefined;
235
- description?: string | undefined;
236
- language?: string | undefined;
237
- source_geo?: string | undefined;
238
- tags?: string[] | undefined;
239
- metadata?: Record<string, any> | undefined;
240
- updated_at?: Date | undefined;
241
- user_id?: string | undefined;
137
+ metadata: any;
138
+ created_at: NativeDate;
139
+ updated_at: NativeDate;
140
+ last_text_id?: number | null | undefined;
141
+ url?: string | null | undefined;
142
+ description?: string | null | undefined;
143
+ source_geo?: string | null | undefined;
242
144
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
243
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
145
+ title: string;
146
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other" | "twitter" | "youtube";
244
147
  status: "approved" | "pending" | "inactive" | "in_review";
245
- source_id: string | number;
148
+ source_id: string;
149
+ source_public_id: string;
246
150
  source_name: string;
151
+ tags: string[];
247
152
  is_public: boolean;
248
- created_at: Date;
249
- _id?: string | undefined;
250
- title?: string | undefined;
251
- source_public_id?: string | number | undefined;
252
- last_text_id?: number | undefined;
253
- url?: string | undefined;
254
- description?: string | undefined;
255
- language?: string | undefined;
256
- source_geo?: string | undefined;
257
- tags?: string[] | undefined;
258
- metadata?: Record<string, any> | undefined;
259
- updated_at?: Date | undefined;
260
- user_id?: string | undefined;
153
+ metadata: any;
154
+ created_at: NativeDate;
155
+ updated_at: NativeDate;
156
+ last_text_id?: number | null | undefined;
157
+ url?: string | null | undefined;
158
+ description?: string | null | undefined;
159
+ source_geo?: string | null | undefined;
261
160
  }>, {}> & import("mongoose").FlatRecord<{
262
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
161
+ title: string;
162
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other" | "twitter" | "youtube";
263
163
  status: "approved" | "pending" | "inactive" | "in_review";
264
- source_id: string | number;
164
+ source_id: string;
165
+ source_public_id: string;
265
166
  source_name: string;
167
+ tags: string[];
266
168
  is_public: boolean;
267
- created_at: Date;
268
- _id?: string | undefined;
269
- title?: string | undefined;
270
- source_public_id?: string | number | undefined;
271
- last_text_id?: number | undefined;
272
- url?: string | undefined;
273
- description?: string | undefined;
274
- language?: string | undefined;
275
- source_geo?: string | undefined;
276
- tags?: string[] | undefined;
277
- metadata?: Record<string, any> | undefined;
278
- updated_at?: Date | undefined;
279
- user_id?: string | undefined;
280
- }> & Required<{
281
- _id: string;
169
+ metadata: any;
170
+ created_at: NativeDate;
171
+ updated_at: NativeDate;
172
+ last_text_id?: number | null | undefined;
173
+ url?: string | null | undefined;
174
+ description?: string | null | undefined;
175
+ source_geo?: string | null | undefined;
282
176
  }> & {
177
+ _id: import("mongoose").Types.ObjectId;
178
+ } & {
283
179
  __v: number;
284
180
  }>;
285
- export declare const MongoQuerySchema: Schema<{
286
- user_id: string;
287
- sources: string[];
288
- time_range: {
289
- type: "relative";
290
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
291
- } | {
292
- type: "absolute";
293
- start: number | Date;
294
- end: number | Date;
295
- };
296
- _id?: string | undefined;
297
- title?: string | undefined;
298
- query?: string | undefined;
299
- user_instructions?: string | undefined;
300
- thread_id?: string | undefined;
301
- }, import("mongoose").Model<{
302
- user_id: string;
303
- sources: string[];
304
- time_range: {
305
- type: "relative";
306
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
307
- } | {
308
- type: "absolute";
309
- start: number | Date;
310
- end: number | Date;
311
- };
312
- _id?: string | undefined;
313
- title?: string | undefined;
314
- query?: string | undefined;
315
- user_instructions?: string | undefined;
316
- thread_id?: string | undefined;
317
- }, any, any, any, import("mongoose").Document<unknown, any, {
318
- user_id: string;
319
- sources: string[];
320
- time_range: {
321
- type: "relative";
322
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
323
- } | {
324
- type: "absolute";
325
- start: number | Date;
326
- end: number | Date;
181
+ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
182
+ versionKey: false;
183
+ toJSON: {
184
+ virtuals: true;
327
185
  };
328
- _id?: string | undefined;
329
- title?: string | undefined;
330
- query?: string | undefined;
331
- user_instructions?: string | undefined;
332
- thread_id?: string | undefined;
333
- }, any> & {
334
- user_id: string;
335
- sources: string[];
336
- time_range: {
337
- type: "relative";
338
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
339
- } | {
340
- type: "absolute";
341
- start: number | Date;
342
- end: number | Date;
186
+ toObject: {
187
+ virtuals: true;
343
188
  };
344
- _id?: string | undefined;
345
- title?: string | undefined;
346
- query?: string | undefined;
347
- user_instructions?: string | undefined;
348
- thread_id?: string | undefined;
349
- } & Required<{
350
- _id: string;
351
- }> & {
352
- __v: number;
353
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
189
+ }, {
354
190
  user_id: string;
355
191
  sources: string[];
356
- time_range: {
357
- type: "relative";
358
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
359
- } | {
360
- type: "absolute";
361
- start: number | Date;
362
- end: number | Date;
363
- };
364
- _id?: string | undefined;
365
- title?: string | undefined;
366
- query?: string | undefined;
367
- user_instructions?: string | undefined;
368
- thread_id?: string | undefined;
192
+ time_range: any;
193
+ title?: string | null | undefined;
194
+ query?: string | null | undefined;
195
+ user_instructions?: string | null | undefined;
369
196
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
370
197
  user_id: string;
371
198
  sources: string[];
372
- time_range: {
373
- type: "relative";
374
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
375
- } | {
376
- type: "absolute";
377
- start: number | Date;
378
- end: number | Date;
379
- };
380
- _id?: string | undefined;
381
- title?: string | undefined;
382
- query?: string | undefined;
383
- user_instructions?: string | undefined;
384
- thread_id?: string | undefined;
199
+ time_range: any;
200
+ title?: string | null | undefined;
201
+ query?: string | null | undefined;
202
+ user_instructions?: string | null | undefined;
385
203
  }>, {}> & import("mongoose").FlatRecord<{
386
204
  user_id: string;
387
205
  sources: string[];
388
- time_range: {
389
- type: "relative";
390
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
391
- } | {
392
- type: "absolute";
393
- start: number | Date;
394
- end: number | Date;
395
- };
396
- _id?: string | undefined;
397
- title?: string | undefined;
398
- query?: string | undefined;
399
- user_instructions?: string | undefined;
400
- thread_id?: string | undefined;
401
- }> & Required<{
402
- _id: string;
206
+ time_range: any;
207
+ title?: string | null | undefined;
208
+ query?: string | null | undefined;
209
+ user_instructions?: string | null | undefined;
403
210
  }> & {
211
+ _id: import("mongoose").Types.ObjectId;
212
+ } & {
404
213
  __v: number;
405
214
  }>;
406
- export declare const MongoUserSettingsSchema: Schema<{
407
- status: "inactive" | "active";
408
- user_id: string;
409
- sources: string[];
410
- time_range: {
411
- type: "relative";
412
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
413
- } | {
414
- type: "absolute";
415
- start: number | Date;
416
- end: number | Date;
417
- };
418
- has_jobs_access: boolean;
419
- active_jobs_limit: number;
420
- _id?: string | undefined;
421
- created_at?: number | Date | undefined;
422
- updated_at?: number | Date | undefined;
423
- thread_id?: string | undefined;
424
- instructions?: string | undefined;
425
- }, import("mongoose").Model<{
426
- status: "inactive" | "active";
427
- user_id: string;
428
- sources: string[];
429
- time_range: {
430
- type: "relative";
431
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
432
- } | {
433
- type: "absolute";
434
- start: number | Date;
435
- end: number | Date;
436
- };
437
- has_jobs_access: boolean;
438
- active_jobs_limit: number;
439
- _id?: string | undefined;
440
- created_at?: number | Date | undefined;
441
- updated_at?: number | Date | undefined;
442
- thread_id?: string | undefined;
443
- instructions?: string | undefined;
444
- }, any, any, any, import("mongoose").Document<unknown, any, {
445
- status: "inactive" | "active";
446
- user_id: string;
447
- sources: string[];
448
- time_range: {
449
- type: "relative";
450
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
451
- } | {
452
- type: "absolute";
453
- start: number | Date;
454
- end: number | Date;
215
+ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
216
+ versionKey: false;
217
+ toJSON: {
218
+ virtuals: true;
455
219
  };
456
- has_jobs_access: boolean;
457
- active_jobs_limit: number;
458
- _id?: string | undefined;
459
- created_at?: number | Date | undefined;
460
- updated_at?: number | Date | undefined;
461
- thread_id?: string | undefined;
462
- instructions?: string | undefined;
463
- }, any> & {
464
- status: "inactive" | "active";
465
- user_id: string;
466
- sources: string[];
467
- time_range: {
468
- type: "relative";
469
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
470
- } | {
471
- type: "absolute";
472
- start: number | Date;
473
- end: number | Date;
220
+ toObject: {
221
+ virtuals: true;
474
222
  };
475
- has_jobs_access: boolean;
476
- active_jobs_limit: number;
477
- _id?: string | undefined;
478
- created_at?: number | Date | undefined;
479
- updated_at?: number | Date | undefined;
480
- thread_id?: string | undefined;
481
- instructions?: string | undefined;
482
- } & Required<{
483
- _id: string;
484
- }> & {
485
- __v: number;
486
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
223
+ }, {
487
224
  status: "inactive" | "active";
225
+ created_at: NativeDate;
226
+ updated_at: NativeDate;
488
227
  user_id: string;
489
228
  sources: string[];
490
- time_range: {
491
- type: "relative";
492
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
493
- } | {
494
- type: "absolute";
495
- start: number | Date;
496
- end: number | Date;
497
- };
498
229
  has_jobs_access: boolean;
499
230
  active_jobs_limit: number;
500
- _id?: string | undefined;
501
- created_at?: number | Date | undefined;
502
- updated_at?: number | Date | undefined;
503
- thread_id?: string | undefined;
504
- instructions?: string | undefined;
231
+ time_range?: any;
232
+ thread_id?: string | null | undefined;
233
+ instructions?: string | null | undefined;
505
234
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
506
235
  status: "inactive" | "active";
236
+ created_at: NativeDate;
237
+ updated_at: NativeDate;
507
238
  user_id: string;
508
239
  sources: string[];
509
- time_range: {
510
- type: "relative";
511
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
512
- } | {
513
- type: "absolute";
514
- start: number | Date;
515
- end: number | Date;
516
- };
517
240
  has_jobs_access: boolean;
518
241
  active_jobs_limit: number;
519
- _id?: string | undefined;
520
- created_at?: number | Date | undefined;
521
- updated_at?: number | Date | undefined;
522
- thread_id?: string | undefined;
523
- instructions?: string | undefined;
242
+ time_range?: any;
243
+ thread_id?: string | null | undefined;
244
+ instructions?: string | null | undefined;
524
245
  }>, {}> & import("mongoose").FlatRecord<{
525
246
  status: "inactive" | "active";
247
+ created_at: NativeDate;
248
+ updated_at: NativeDate;
526
249
  user_id: string;
527
250
  sources: string[];
528
- time_range: {
529
- type: "relative";
530
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
531
- } | {
532
- type: "absolute";
533
- start: number | Date;
534
- end: number | Date;
535
- };
536
251
  has_jobs_access: boolean;
537
252
  active_jobs_limit: number;
538
- _id?: string | undefined;
539
- created_at?: number | Date | undefined;
540
- updated_at?: number | Date | undefined;
541
- thread_id?: string | undefined;
542
- instructions?: string | undefined;
543
- }> & Required<{
544
- _id: string;
253
+ time_range?: any;
254
+ thread_id?: string | null | undefined;
255
+ instructions?: string | null | undefined;
545
256
  }> & {
257
+ _id: import("mongoose").Types.ObjectId;
258
+ } & {
546
259
  __v: number;
547
260
  }>;
548
- export declare const MongoConversationSchema: Schema<{
549
- status: "inactive" | "active";
550
- user_id: string;
551
- is_job: boolean;
552
- _id?: string | undefined;
553
- title?: string | undefined;
554
- created_at?: number | Date | undefined;
555
- updated_at?: number | Date | undefined;
556
- thread_id?: string | undefined;
557
- }, import("mongoose").Model<{
558
- status: "inactive" | "active";
559
- user_id: string;
560
- is_job: boolean;
561
- _id?: string | undefined;
562
- title?: string | undefined;
563
- created_at?: number | Date | undefined;
564
- updated_at?: number | Date | undefined;
565
- thread_id?: string | undefined;
566
- }, any, any, any, import("mongoose").Document<unknown, any, {
567
- status: "inactive" | "active";
568
- user_id: string;
569
- is_job: boolean;
570
- _id?: string | undefined;
571
- title?: string | undefined;
572
- created_at?: number | Date | undefined;
573
- updated_at?: number | Date | undefined;
574
- thread_id?: string | undefined;
575
- }, any> & {
576
- status: "inactive" | "active";
577
- user_id: string;
578
- is_job: boolean;
579
- _id?: string | undefined;
580
- title?: string | undefined;
581
- created_at?: number | Date | undefined;
582
- updated_at?: number | Date | undefined;
583
- thread_id?: string | undefined;
584
- } & Required<{
585
- _id: string;
586
- }> & {
587
- __v: number;
588
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
261
+ export declare const MongoConversationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
262
+ versionKey: false;
263
+ toJSON: {
264
+ virtuals: true;
265
+ };
266
+ toObject: {
267
+ virtuals: true;
268
+ };
269
+ }, {
589
270
  status: "inactive" | "active";
271
+ created_at: NativeDate;
272
+ updated_at: NativeDate;
590
273
  user_id: string;
591
274
  is_job: boolean;
592
- _id?: string | undefined;
593
- title?: string | undefined;
594
- created_at?: number | Date | undefined;
595
- updated_at?: number | Date | undefined;
596
- thread_id?: string | undefined;
275
+ title?: string | null | undefined;
276
+ thread_id?: string | null | undefined;
597
277
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
598
278
  status: "inactive" | "active";
279
+ created_at: NativeDate;
280
+ updated_at: NativeDate;
599
281
  user_id: string;
600
282
  is_job: boolean;
601
- _id?: string | undefined;
602
- title?: string | undefined;
603
- created_at?: number | Date | undefined;
604
- updated_at?: number | Date | undefined;
605
- thread_id?: string | undefined;
283
+ title?: string | null | undefined;
284
+ thread_id?: string | null | undefined;
606
285
  }>, {}> & import("mongoose").FlatRecord<{
607
286
  status: "inactive" | "active";
287
+ created_at: NativeDate;
288
+ updated_at: NativeDate;
608
289
  user_id: string;
609
290
  is_job: boolean;
610
- _id?: string | undefined;
611
- title?: string | undefined;
612
- created_at?: number | Date | undefined;
613
- updated_at?: number | Date | undefined;
614
- thread_id?: string | undefined;
615
- }> & Required<{
616
- _id: string;
291
+ title?: string | null | undefined;
292
+ thread_id?: string | null | undefined;
617
293
  }> & {
294
+ _id: import("mongoose").Types.ObjectId;
295
+ } & {
618
296
  __v: number;
619
297
  }>;
620
- export declare const MongoJobSchema: Schema<{
621
- status: "inactive" | "active";
622
- user_id: string;
623
- query: {
624
- user_id: string;
625
- sources: string[];
626
- time_range: {
627
- type: "relative";
628
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
629
- } | {
630
- type: "absolute";
631
- start: number | Date;
632
- end: number | Date;
633
- };
634
- _id?: string | undefined;
635
- title?: string | undefined;
636
- query?: string | undefined;
637
- user_instructions?: string | undefined;
638
- thread_id?: string | undefined;
639
- };
640
- job_name: string;
641
- _id?: string | undefined;
642
- created_at?: number | Date | undefined;
643
- updated_at?: number | Date | undefined;
644
- thread_id?: string | undefined;
645
- job_description?: string | undefined;
646
- schedule?: string | undefined;
647
- schedule_text?: string | undefined;
648
- active_until?: number | Date | undefined;
649
- conversation_id?: string | undefined;
650
- time_zone?: string | undefined;
651
- }, import("mongoose").Model<{
652
- status: "inactive" | "active";
653
- user_id: string;
654
- query: {
655
- user_id: string;
656
- sources: string[];
657
- time_range: {
658
- type: "relative";
659
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
660
- } | {
661
- type: "absolute";
662
- start: number | Date;
663
- end: number | Date;
664
- };
665
- _id?: string | undefined;
666
- title?: string | undefined;
667
- query?: string | undefined;
668
- user_instructions?: string | undefined;
669
- thread_id?: string | undefined;
670
- };
671
- job_name: string;
672
- _id?: string | undefined;
673
- created_at?: number | Date | undefined;
674
- updated_at?: number | Date | undefined;
675
- thread_id?: string | undefined;
676
- job_description?: string | undefined;
677
- schedule?: string | undefined;
678
- schedule_text?: string | undefined;
679
- active_until?: number | Date | undefined;
680
- conversation_id?: string | undefined;
681
- time_zone?: string | undefined;
682
- }, any, any, any, import("mongoose").Document<unknown, any, {
683
- status: "inactive" | "active";
684
- user_id: string;
685
- query: {
686
- user_id: string;
687
- sources: string[];
688
- time_range: {
689
- type: "relative";
690
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
691
- } | {
692
- type: "absolute";
693
- start: number | Date;
694
- end: number | Date;
695
- };
696
- _id?: string | undefined;
697
- title?: string | undefined;
698
- query?: string | undefined;
699
- user_instructions?: string | undefined;
700
- thread_id?: string | undefined;
298
+ export declare const MongoJobSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
299
+ versionKey: false;
300
+ toJSON: {
301
+ virtuals: true;
701
302
  };
702
- job_name: string;
703
- _id?: string | undefined;
704
- created_at?: number | Date | undefined;
705
- updated_at?: number | Date | undefined;
706
- thread_id?: string | undefined;
707
- job_description?: string | undefined;
708
- schedule?: string | undefined;
709
- schedule_text?: string | undefined;
710
- active_until?: number | Date | undefined;
711
- conversation_id?: string | undefined;
712
- time_zone?: string | undefined;
713
- }, any> & {
714
- status: "inactive" | "active";
715
- user_id: string;
716
- query: {
717
- user_id: string;
718
- sources: string[];
719
- time_range: {
720
- type: "relative";
721
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
722
- } | {
723
- type: "absolute";
724
- start: number | Date;
725
- end: number | Date;
726
- };
727
- _id?: string | undefined;
728
- title?: string | undefined;
729
- query?: string | undefined;
730
- user_instructions?: string | undefined;
731
- thread_id?: string | undefined;
303
+ toObject: {
304
+ virtuals: true;
732
305
  };
733
- job_name: string;
734
- _id?: string | undefined;
735
- created_at?: number | Date | undefined;
736
- updated_at?: number | Date | undefined;
737
- thread_id?: string | undefined;
738
- job_description?: string | undefined;
739
- schedule?: string | undefined;
740
- schedule_text?: string | undefined;
741
- active_until?: number | Date | undefined;
742
- conversation_id?: string | undefined;
743
- time_zone?: string | undefined;
744
- } & Required<{
745
- _id: string;
746
- }> & {
747
- __v: number;
748
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
306
+ }, {
749
307
  status: "inactive" | "active";
308
+ created_at: number;
309
+ updated_at: number;
750
310
  user_id: string;
751
- query: {
752
- user_id: string;
753
- sources: string[];
754
- time_range: {
755
- type: "relative";
756
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
757
- } | {
758
- type: "absolute";
759
- start: number | Date;
760
- end: number | Date;
761
- };
762
- _id?: string | undefined;
763
- title?: string | undefined;
764
- query?: string | undefined;
765
- user_instructions?: string | undefined;
766
- thread_id?: string | undefined;
767
- };
311
+ query: any;
768
312
  job_name: string;
769
- _id?: string | undefined;
770
- created_at?: number | Date | undefined;
771
- updated_at?: number | Date | undefined;
772
- thread_id?: string | undefined;
773
- job_description?: string | undefined;
774
- schedule?: string | undefined;
775
- schedule_text?: string | undefined;
776
- active_until?: number | Date | undefined;
777
- conversation_id?: string | undefined;
778
- time_zone?: string | undefined;
313
+ thread_id?: string | null | undefined;
314
+ job_description?: string | null | undefined;
315
+ schedule?: string | null | undefined;
316
+ schedule_text?: string | null | undefined;
317
+ active_until?: number | null | undefined;
318
+ conversation_id?: string | null | undefined;
319
+ time_zone?: string | null | undefined;
779
320
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
780
321
  status: "inactive" | "active";
322
+ created_at: number;
323
+ updated_at: number;
781
324
  user_id: string;
782
- query: {
783
- user_id: string;
784
- sources: string[];
785
- time_range: {
786
- type: "relative";
787
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
788
- } | {
789
- type: "absolute";
790
- start: number | Date;
791
- end: number | Date;
792
- };
793
- _id?: string | undefined;
794
- title?: string | undefined;
795
- query?: string | undefined;
796
- user_instructions?: string | undefined;
797
- thread_id?: string | undefined;
798
- };
325
+ query: any;
799
326
  job_name: string;
800
- _id?: string | undefined;
801
- created_at?: number | Date | undefined;
802
- updated_at?: number | Date | undefined;
803
- thread_id?: string | undefined;
804
- job_description?: string | undefined;
805
- schedule?: string | undefined;
806
- schedule_text?: string | undefined;
807
- active_until?: number | Date | undefined;
808
- conversation_id?: string | undefined;
809
- time_zone?: string | undefined;
327
+ thread_id?: string | null | undefined;
328
+ job_description?: string | null | undefined;
329
+ schedule?: string | null | undefined;
330
+ schedule_text?: string | null | undefined;
331
+ active_until?: number | null | undefined;
332
+ conversation_id?: string | null | undefined;
333
+ time_zone?: string | null | undefined;
810
334
  }>, {}> & import("mongoose").FlatRecord<{
811
335
  status: "inactive" | "active";
336
+ created_at: number;
337
+ updated_at: number;
812
338
  user_id: string;
813
- query: {
814
- user_id: string;
815
- sources: string[];
816
- time_range: {
817
- type: "relative";
818
- time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
819
- } | {
820
- type: "absolute";
821
- start: number | Date;
822
- end: number | Date;
823
- };
824
- _id?: string | undefined;
825
- title?: string | undefined;
826
- query?: string | undefined;
827
- user_instructions?: string | undefined;
828
- thread_id?: string | undefined;
829
- };
339
+ query: any;
830
340
  job_name: string;
831
- _id?: string | undefined;
832
- created_at?: number | Date | undefined;
833
- updated_at?: number | Date | undefined;
834
- thread_id?: string | undefined;
835
- job_description?: string | undefined;
836
- schedule?: string | undefined;
837
- schedule_text?: string | undefined;
838
- active_until?: number | Date | undefined;
839
- conversation_id?: string | undefined;
840
- time_zone?: string | undefined;
841
- }> & Required<{
842
- _id: string;
341
+ thread_id?: string | null | undefined;
342
+ job_description?: string | null | undefined;
343
+ schedule?: string | null | undefined;
344
+ schedule_text?: string | null | undefined;
345
+ active_until?: number | null | undefined;
346
+ conversation_id?: string | null | undefined;
347
+ time_zone?: string | null | undefined;
843
348
  }> & {
349
+ _id: import("mongoose").Types.ObjectId;
350
+ } & {
844
351
  __v: number;
845
352
  }>;
package/index.ts CHANGED
@@ -39,7 +39,7 @@ export const MongoDataSchema = new Schema(
39
39
  }
40
40
  );
41
41
 
42
- export const MongoInstructionsSchema = new Schema<InstructionsType>(
42
+ export const MongoInstructionsSchema = new Schema(
43
43
  {
44
44
  user_id: { type: String, required: true },
45
45
  prompt: { type: String },
@@ -53,7 +53,7 @@ export const MongoInstructionsSchema = new Schema<InstructionsType>(
53
53
  }
54
54
  );
55
55
 
56
- export const MongoSourceSchema = new Schema<SourceType>(
56
+ export const MongoSourceSchema = new Schema(
57
57
  {
58
58
  title: { type: String, required: true }, // e.g., 'Telegram Channel Name'
59
59
  platform: {
@@ -96,7 +96,7 @@ export const MongoSourceSchema = new Schema<SourceType>(
96
96
  }
97
97
  );
98
98
 
99
- export const MongoQuerySchema = new Schema<QueryType>(
99
+ export const MongoQuerySchema = new Schema(
100
100
  {
101
101
  title: { type: String }, // e.g., 'Search Query'
102
102
  query: { type: String }, // search query includes geo information where it should be extracted with LLM
@@ -115,7 +115,7 @@ export const MongoQuerySchema = new Schema<QueryType>(
115
115
  }
116
116
  );
117
117
 
118
- export const MongoUserSettingsSchema = new Schema<UserSettingsType>(
118
+ export const MongoUserSettingsSchema = new Schema(
119
119
  {
120
120
  sources: { type: [String] }, // array of source _id strings
121
121
  time_range: {
@@ -141,7 +141,7 @@ export const MongoUserSettingsSchema = new Schema<UserSettingsType>(
141
141
  }
142
142
  );
143
143
 
144
- export const MongoConversationSchema = new Schema<ConversationType>(
144
+ export const MongoConversationSchema = new Schema(
145
145
  {
146
146
  user_id: { type: String, required: true }, // user identifier
147
147
  title: { type: String }, // optional title for the conversation
@@ -162,7 +162,7 @@ export const MongoConversationSchema = new Schema<ConversationType>(
162
162
  }
163
163
  );
164
164
 
165
- export const MongoJobSchema = new Schema<JobType>(
165
+ export const MongoJobSchema = new Schema(
166
166
  {
167
167
  user_id: { type: String, required: true }, // user identifier
168
168
  job_name: { type: String, required: true }, // name of the automation job
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",