harvester_sdk 1.0.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.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Asfur SDK
2
+
3
+ A simple SDK for interacting with the Asfur API.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install asfur
9
+ # or
10
+ yarn add asfur
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { SourceType, TextType, QueryType } from 'asfur';
@@ -0,0 +1,627 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/session" />
19
+ /// <reference types="mongoose/types/types" />
20
+ /// <reference types="mongoose/types/utility" />
21
+ /// <reference types="mongoose/types/validation" />
22
+ /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ /// <reference types="mongoose/types/inferrawdoctype" />
26
+ export * from './types';
27
+ import { Schema } from 'mongoose';
28
+ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
29
+ versionKey: false;
30
+ toJSON: {
31
+ virtuals: true;
32
+ };
33
+ toObject: {
34
+ virtuals: true;
35
+ };
36
+ }, {
37
+ created_at: number;
38
+ updated_at: number;
39
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
40
+ timestamp: number;
41
+ text_geo: string[];
42
+ source_id: any;
43
+ source_name: string;
44
+ media: import("mongoose").Types.DocumentArray<{
45
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
46
+ url?: string | null | undefined;
47
+ caption?: string | null | undefined;
48
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
49
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
50
+ url?: string | null | undefined;
51
+ caption?: string | null | undefined;
52
+ }> & {
53
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
54
+ url?: string | null | undefined;
55
+ caption?: string | null | undefined;
56
+ }>;
57
+ language?: string | null | undefined;
58
+ metadata?: any;
59
+ source_region?: string | null | undefined;
60
+ source_public_id?: any;
61
+ platform_id?: any;
62
+ original_text_id?: any;
63
+ original_text?: string | null | undefined;
64
+ translated_text?: string | null | undefined;
65
+ is_reply?: boolean | null | undefined;
66
+ reply_to_message_id?: any;
67
+ author?: string | null | undefined;
68
+ replies?: any;
69
+ entities?: any;
70
+ author_username?: string | null | undefined;
71
+ author_id?: string | null | undefined;
72
+ source_geo?: string | null | undefined;
73
+ pipeline_name?: string | null | undefined;
74
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
75
+ created_at: number;
76
+ updated_at: number;
77
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
78
+ timestamp: number;
79
+ text_geo: string[];
80
+ source_id: any;
81
+ source_name: string;
82
+ media: import("mongoose").Types.DocumentArray<{
83
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
84
+ url?: string | null | undefined;
85
+ caption?: string | null | undefined;
86
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
87
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
88
+ url?: string | null | undefined;
89
+ caption?: string | null | undefined;
90
+ }> & {
91
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
92
+ url?: string | null | undefined;
93
+ caption?: string | null | undefined;
94
+ }>;
95
+ language?: string | null | undefined;
96
+ metadata?: any;
97
+ source_region?: string | null | undefined;
98
+ source_public_id?: any;
99
+ platform_id?: any;
100
+ original_text_id?: any;
101
+ original_text?: string | null | undefined;
102
+ translated_text?: string | null | undefined;
103
+ is_reply?: boolean | null | undefined;
104
+ reply_to_message_id?: any;
105
+ author?: string | null | undefined;
106
+ replies?: any;
107
+ entities?: any;
108
+ author_username?: string | null | undefined;
109
+ author_id?: string | null | undefined;
110
+ source_geo?: string | null | undefined;
111
+ pipeline_name?: string | null | undefined;
112
+ }>, {}> & import("mongoose").FlatRecord<{
113
+ created_at: number;
114
+ updated_at: number;
115
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
116
+ timestamp: number;
117
+ text_geo: string[];
118
+ source_id: any;
119
+ source_name: string;
120
+ media: import("mongoose").Types.DocumentArray<{
121
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
122
+ url?: string | null | undefined;
123
+ caption?: string | null | undefined;
124
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
125
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
126
+ url?: string | null | undefined;
127
+ caption?: string | null | undefined;
128
+ }> & {
129
+ type?: "image" | "video" | "audio" | "link" | null | undefined;
130
+ url?: string | null | undefined;
131
+ caption?: string | null | undefined;
132
+ }>;
133
+ language?: string | null | undefined;
134
+ metadata?: any;
135
+ source_region?: string | null | undefined;
136
+ source_public_id?: any;
137
+ platform_id?: any;
138
+ original_text_id?: any;
139
+ original_text?: string | null | undefined;
140
+ translated_text?: string | null | undefined;
141
+ is_reply?: boolean | null | undefined;
142
+ reply_to_message_id?: any;
143
+ author?: string | null | undefined;
144
+ replies?: any;
145
+ entities?: any;
146
+ author_username?: string | null | undefined;
147
+ author_id?: string | null | undefined;
148
+ source_geo?: string | null | undefined;
149
+ pipeline_name?: string | null | undefined;
150
+ }> & {
151
+ _id: import("mongoose").Types.ObjectId;
152
+ } & {
153
+ __v: number;
154
+ }>;
155
+ export declare const MongoInstructionsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
156
+ versionKey: false;
157
+ toJSON: {
158
+ virtuals: true;
159
+ };
160
+ toObject: {
161
+ virtuals: true;
162
+ };
163
+ }, {
164
+ created_at: number;
165
+ updated_at: number;
166
+ user_id: string;
167
+ prompt?: string | null | undefined;
168
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
169
+ created_at: number;
170
+ updated_at: number;
171
+ user_id: string;
172
+ prompt?: string | null | undefined;
173
+ }>, {}> & import("mongoose").FlatRecord<{
174
+ created_at: number;
175
+ updated_at: number;
176
+ user_id: string;
177
+ prompt?: string | null | undefined;
178
+ }> & {
179
+ _id: import("mongoose").Types.ObjectId;
180
+ } & {
181
+ __v: number;
182
+ }>;
183
+ export declare const MongoRegionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
184
+ versionKey: false;
185
+ toJSON: {
186
+ virtuals: true;
187
+ };
188
+ toObject: {
189
+ virtuals: true;
190
+ };
191
+ }, {
192
+ name: string;
193
+ slug: string;
194
+ created_at: number;
195
+ updated_at: number;
196
+ legend?: string | null | undefined;
197
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
198
+ name: string;
199
+ slug: string;
200
+ created_at: number;
201
+ updated_at: number;
202
+ legend?: string | null | undefined;
203
+ }>, {}> & import("mongoose").FlatRecord<{
204
+ name: string;
205
+ slug: string;
206
+ created_at: number;
207
+ updated_at: number;
208
+ legend?: string | null | undefined;
209
+ }> & {
210
+ _id: import("mongoose").Types.ObjectId;
211
+ } & {
212
+ __v: number;
213
+ }>;
214
+ export declare const MongoSourceGroupSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
215
+ versionKey: false;
216
+ toJSON: {
217
+ virtuals: true;
218
+ };
219
+ toObject: {
220
+ virtuals: true;
221
+ };
222
+ }, {
223
+ name: string;
224
+ created_at: number;
225
+ updated_at: number;
226
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
227
+ description?: string | null | undefined;
228
+ region_id?: string | null | undefined;
229
+ max_active_sources?: number | null | undefined;
230
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
231
+ name: string;
232
+ created_at: number;
233
+ updated_at: number;
234
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
235
+ description?: string | null | undefined;
236
+ region_id?: string | null | undefined;
237
+ max_active_sources?: number | null | undefined;
238
+ }>, {}> & import("mongoose").FlatRecord<{
239
+ name: string;
240
+ created_at: number;
241
+ updated_at: number;
242
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
243
+ description?: string | null | undefined;
244
+ region_id?: string | null | undefined;
245
+ max_active_sources?: number | null | undefined;
246
+ }> & {
247
+ _id: import("mongoose").Types.ObjectId;
248
+ } & {
249
+ __v: number;
250
+ }>;
251
+ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
252
+ versionKey: false;
253
+ toJSON: {
254
+ virtuals: true;
255
+ };
256
+ toObject: {
257
+ virtuals: true;
258
+ };
259
+ }, {
260
+ name: string;
261
+ created_at: number;
262
+ updated_at: number;
263
+ status: "active" | "pending" | "inactive" | "requested";
264
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
265
+ entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
266
+ tags: string[];
267
+ is_public: boolean;
268
+ metadata: any;
269
+ description?: string | null | undefined;
270
+ region_id?: string | null | undefined;
271
+ title?: string | null | undefined;
272
+ public_id?: any;
273
+ url?: string | null | undefined;
274
+ language?: string | null | undefined;
275
+ group_id?: string | null | undefined;
276
+ requested_by?: {
277
+ user_id?: string | null | undefined;
278
+ username?: string | null | undefined;
279
+ full_name?: string | null | undefined;
280
+ email?: string | null | undefined;
281
+ requested_at?: number | null | undefined;
282
+ } | null | undefined;
283
+ notes?: string | null | undefined;
284
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
285
+ name: string;
286
+ created_at: number;
287
+ updated_at: number;
288
+ status: "active" | "pending" | "inactive" | "requested";
289
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
290
+ entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
291
+ tags: string[];
292
+ is_public: boolean;
293
+ metadata: any;
294
+ description?: string | null | undefined;
295
+ region_id?: string | null | undefined;
296
+ title?: string | null | undefined;
297
+ public_id?: any;
298
+ url?: string | null | undefined;
299
+ language?: string | null | undefined;
300
+ group_id?: string | null | undefined;
301
+ requested_by?: {
302
+ user_id?: string | null | undefined;
303
+ username?: string | null | undefined;
304
+ full_name?: string | null | undefined;
305
+ email?: string | null | undefined;
306
+ requested_at?: number | null | undefined;
307
+ } | null | undefined;
308
+ notes?: string | null | undefined;
309
+ }>, {}> & import("mongoose").FlatRecord<{
310
+ name: string;
311
+ created_at: number;
312
+ updated_at: number;
313
+ status: "active" | "pending" | "inactive" | "requested";
314
+ platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
315
+ entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
316
+ tags: string[];
317
+ is_public: boolean;
318
+ metadata: any;
319
+ description?: string | null | undefined;
320
+ region_id?: string | null | undefined;
321
+ title?: string | null | undefined;
322
+ public_id?: any;
323
+ url?: string | null | undefined;
324
+ language?: string | null | undefined;
325
+ group_id?: string | null | undefined;
326
+ requested_by?: {
327
+ user_id?: string | null | undefined;
328
+ username?: string | null | undefined;
329
+ full_name?: string | null | undefined;
330
+ email?: string | null | undefined;
331
+ requested_at?: number | null | undefined;
332
+ } | null | undefined;
333
+ notes?: string | null | undefined;
334
+ }> & {
335
+ _id: import("mongoose").Types.ObjectId;
336
+ } & {
337
+ __v: number;
338
+ }>;
339
+ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
340
+ versionKey: false;
341
+ toJSON: {
342
+ virtuals: true;
343
+ };
344
+ toObject: {
345
+ virtuals: true;
346
+ };
347
+ }, {
348
+ user_id: string;
349
+ timestamp: number;
350
+ geos: string[];
351
+ sources: string[];
352
+ geos_ids: string[];
353
+ time_range: any;
354
+ title?: string | null | undefined;
355
+ query?: string | null | undefined;
356
+ user_instructions?: string | null | undefined;
357
+ user_time_zone?: string | null | undefined;
358
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
359
+ user_id: string;
360
+ timestamp: number;
361
+ geos: string[];
362
+ sources: string[];
363
+ geos_ids: string[];
364
+ time_range: any;
365
+ title?: string | null | undefined;
366
+ query?: string | null | undefined;
367
+ user_instructions?: string | null | undefined;
368
+ user_time_zone?: string | null | undefined;
369
+ }>, {}> & import("mongoose").FlatRecord<{
370
+ user_id: string;
371
+ timestamp: number;
372
+ geos: string[];
373
+ sources: string[];
374
+ geos_ids: string[];
375
+ time_range: any;
376
+ title?: string | null | undefined;
377
+ query?: string | null | undefined;
378
+ user_instructions?: string | null | undefined;
379
+ user_time_zone?: string | null | undefined;
380
+ }> & {
381
+ _id: import("mongoose").Types.ObjectId;
382
+ } & {
383
+ __v: number;
384
+ }>;
385
+ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
386
+ versionKey: false;
387
+ toJSON: {
388
+ virtuals: true;
389
+ };
390
+ toObject: {
391
+ virtuals: true;
392
+ };
393
+ }, {
394
+ created_at: NativeDate;
395
+ updated_at: NativeDate;
396
+ status: "active" | "inactive";
397
+ user_id: string;
398
+ geos: string[];
399
+ sources: string[];
400
+ has_jobs_access: boolean;
401
+ active_jobs_limit: number;
402
+ time_range?: any;
403
+ thread_id?: string | null | undefined;
404
+ instructions?: string | null | undefined;
405
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
406
+ created_at: NativeDate;
407
+ updated_at: NativeDate;
408
+ status: "active" | "inactive";
409
+ user_id: string;
410
+ geos: string[];
411
+ sources: string[];
412
+ has_jobs_access: boolean;
413
+ active_jobs_limit: number;
414
+ time_range?: any;
415
+ thread_id?: string | null | undefined;
416
+ instructions?: string | null | undefined;
417
+ }>, {}> & import("mongoose").FlatRecord<{
418
+ created_at: NativeDate;
419
+ updated_at: NativeDate;
420
+ status: "active" | "inactive";
421
+ user_id: string;
422
+ geos: string[];
423
+ sources: string[];
424
+ has_jobs_access: boolean;
425
+ active_jobs_limit: number;
426
+ time_range?: any;
427
+ thread_id?: string | null | undefined;
428
+ instructions?: string | null | undefined;
429
+ }> & {
430
+ _id: import("mongoose").Types.ObjectId;
431
+ } & {
432
+ __v: number;
433
+ }>;
434
+ export declare const MongoConversationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
435
+ versionKey: false;
436
+ toJSON: {
437
+ virtuals: true;
438
+ };
439
+ toObject: {
440
+ virtuals: true;
441
+ };
442
+ }, {
443
+ created_at: NativeDate;
444
+ updated_at: NativeDate;
445
+ status: "active" | "inactive";
446
+ user_id: string;
447
+ is_job: boolean;
448
+ title?: string | null | undefined;
449
+ thread_id?: string | null | undefined;
450
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
451
+ created_at: NativeDate;
452
+ updated_at: NativeDate;
453
+ status: "active" | "inactive";
454
+ user_id: string;
455
+ is_job: boolean;
456
+ title?: string | null | undefined;
457
+ thread_id?: string | null | undefined;
458
+ }>, {}> & import("mongoose").FlatRecord<{
459
+ created_at: NativeDate;
460
+ updated_at: NativeDate;
461
+ status: "active" | "inactive";
462
+ user_id: string;
463
+ is_job: boolean;
464
+ title?: string | null | undefined;
465
+ thread_id?: string | null | undefined;
466
+ }> & {
467
+ _id: import("mongoose").Types.ObjectId;
468
+ } & {
469
+ __v: number;
470
+ }>;
471
+ export declare const MongoJobSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
472
+ versionKey: false;
473
+ toJSON: {
474
+ virtuals: true;
475
+ };
476
+ toObject: {
477
+ virtuals: true;
478
+ };
479
+ }, {
480
+ created_at: number;
481
+ updated_at: number;
482
+ status: "active" | "inactive";
483
+ user_id: string;
484
+ query: any;
485
+ job_name: string;
486
+ thread_id?: string | null | undefined;
487
+ job_description?: string | null | undefined;
488
+ schedule?: string | null | undefined;
489
+ schedule_text?: string | null | undefined;
490
+ active_until?: number | null | undefined;
491
+ conversation_id?: string | null | undefined;
492
+ time_zone?: string | null | undefined;
493
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
494
+ created_at: number;
495
+ updated_at: number;
496
+ status: "active" | "inactive";
497
+ user_id: string;
498
+ query: any;
499
+ job_name: string;
500
+ thread_id?: string | null | undefined;
501
+ job_description?: string | null | undefined;
502
+ schedule?: string | null | undefined;
503
+ schedule_text?: string | null | undefined;
504
+ active_until?: number | null | undefined;
505
+ conversation_id?: string | null | undefined;
506
+ time_zone?: string | null | undefined;
507
+ }>, {}> & import("mongoose").FlatRecord<{
508
+ created_at: number;
509
+ updated_at: number;
510
+ status: "active" | "inactive";
511
+ user_id: string;
512
+ query: any;
513
+ job_name: string;
514
+ thread_id?: string | null | undefined;
515
+ job_description?: string | null | undefined;
516
+ schedule?: string | null | undefined;
517
+ schedule_text?: string | null | undefined;
518
+ active_until?: number | null | undefined;
519
+ conversation_id?: string | null | undefined;
520
+ time_zone?: string | null | undefined;
521
+ }> & {
522
+ _id: import("mongoose").Types.ObjectId;
523
+ } & {
524
+ __v: number;
525
+ }>;
526
+ export declare const MongoGeoSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
527
+ versionKey: false;
528
+ toJSON: {
529
+ virtuals: true;
530
+ };
531
+ toObject: {
532
+ virtuals: true;
533
+ };
534
+ }, {
535
+ subscribers: string[];
536
+ is_used: boolean;
537
+ geo_text?: string | null | undefined;
538
+ timestamp?: number | null | undefined;
539
+ count?: number | null | undefined;
540
+ region?: string | null | undefined;
541
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
542
+ subscribers: string[];
543
+ is_used: boolean;
544
+ geo_text?: string | null | undefined;
545
+ timestamp?: number | null | undefined;
546
+ count?: number | null | undefined;
547
+ region?: string | null | undefined;
548
+ }>, {}> & import("mongoose").FlatRecord<{
549
+ subscribers: string[];
550
+ is_used: boolean;
551
+ geo_text?: string | null | undefined;
552
+ timestamp?: number | null | undefined;
553
+ count?: number | null | undefined;
554
+ region?: string | null | undefined;
555
+ }> & {
556
+ _id: import("mongoose").Types.ObjectId;
557
+ } & {
558
+ __v: number;
559
+ }>;
560
+ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
561
+ versionKey: false;
562
+ toJSON: {
563
+ virtuals: true;
564
+ };
565
+ toObject: {
566
+ virtuals: true;
567
+ };
568
+ }, {
569
+ geos: string[];
570
+ created_at?: number | null | undefined;
571
+ updated_at?: number | null | undefined;
572
+ type?: string | null | undefined;
573
+ description?: string | null | undefined;
574
+ title?: string | null | undefined;
575
+ region?: string | null | undefined;
576
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
577
+ geos: string[];
578
+ created_at?: number | null | undefined;
579
+ updated_at?: number | null | undefined;
580
+ type?: string | null | undefined;
581
+ description?: string | null | undefined;
582
+ title?: string | null | undefined;
583
+ region?: string | null | undefined;
584
+ }>, {}> & import("mongoose").FlatRecord<{
585
+ geos: string[];
586
+ created_at?: number | null | undefined;
587
+ updated_at?: number | null | undefined;
588
+ type?: string | null | undefined;
589
+ description?: string | null | undefined;
590
+ title?: string | null | undefined;
591
+ region?: string | null | undefined;
592
+ }> & {
593
+ _id: import("mongoose").Types.ObjectId;
594
+ } & {
595
+ __v: number;
596
+ }>;
597
+ export declare const MongoApiKeySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
598
+ versionKey: false;
599
+ toJSON: {
600
+ virtuals: true;
601
+ };
602
+ toObject: {
603
+ virtuals: true;
604
+ };
605
+ }, {
606
+ created_at: number;
607
+ updated_at: number;
608
+ status: "active" | "inactive";
609
+ user_id: string;
610
+ api_key: string;
611
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
612
+ created_at: number;
613
+ updated_at: number;
614
+ status: "active" | "inactive";
615
+ user_id: string;
616
+ api_key: string;
617
+ }>, {}> & import("mongoose").FlatRecord<{
618
+ created_at: number;
619
+ updated_at: number;
620
+ status: "active" | "inactive";
621
+ user_id: string;
622
+ api_key: string;
623
+ }> & {
624
+ _id: import("mongoose").Types.ObjectId;
625
+ } & {
626
+ __v: number;
627
+ }>;