telegram-jobs-contract 1.0.0

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 (47) hide show
  1. package/README.md +73 -0
  2. package/dist/contracts/bundles.contract.d.ts +183 -0
  3. package/dist/contracts/bundles.contract.d.ts.map +1 -0
  4. package/dist/contracts/bundles.contract.js +29 -0
  5. package/dist/contracts/channels.contract.d.ts +947 -0
  6. package/dist/contracts/channels.contract.d.ts.map +1 -0
  7. package/dist/contracts/channels.contract.js +114 -0
  8. package/dist/contracts/jobs.contract.d.ts +939 -0
  9. package/dist/contracts/jobs.contract.d.ts.map +1 -0
  10. package/dist/contracts/jobs.contract.js +69 -0
  11. package/dist/contracts/notifications.contract.d.ts +725 -0
  12. package/dist/contracts/notifications.contract.d.ts.map +1 -0
  13. package/dist/contracts/notifications.contract.js +65 -0
  14. package/dist/contracts/resume.contract.d.ts +87 -0
  15. package/dist/contracts/resume.contract.d.ts.map +1 -0
  16. package/dist/contracts/resume.contract.js +26 -0
  17. package/dist/contracts/sniper.contract.d.ts +108 -0
  18. package/dist/contracts/sniper.contract.d.ts.map +1 -0
  19. package/dist/contracts/sniper.contract.js +27 -0
  20. package/dist/contracts/stats.contract.d.ts +148 -0
  21. package/dist/contracts/stats.contract.d.ts.map +1 -0
  22. package/dist/contracts/stats.contract.js +41 -0
  23. package/dist/contracts/user.contract.d.ts +362 -0
  24. package/dist/contracts/user.contract.d.ts.map +1 -0
  25. package/dist/contracts/user.contract.js +31 -0
  26. package/dist/index.d.ts +3504 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +58 -0
  29. package/dist/schemas/bundles.d.ts +33 -0
  30. package/dist/schemas/bundles.d.ts.map +1 -0
  31. package/dist/schemas/bundles.js +15 -0
  32. package/dist/schemas/channels.d.ts +134 -0
  33. package/dist/schemas/channels.d.ts.map +1 -0
  34. package/dist/schemas/channels.js +25 -0
  35. package/dist/schemas/common.d.ts +12 -0
  36. package/dist/schemas/common.d.ts.map +1 -0
  37. package/dist/schemas/common.js +8 -0
  38. package/dist/schemas/errors.d.ts +29 -0
  39. package/dist/schemas/errors.d.ts.map +1 -0
  40. package/dist/schemas/errors.js +17 -0
  41. package/dist/schemas/jobs.d.ts +563 -0
  42. package/dist/schemas/jobs.d.ts.map +1 -0
  43. package/dist/schemas/jobs.js +64 -0
  44. package/dist/schemas/user.d.ts +262 -0
  45. package/dist/schemas/user.d.ts.map +1 -0
  46. package/dist/schemas/user.js +36 -0
  47. package/package.json +40 -0
@@ -0,0 +1,947 @@
1
+ import { z } from 'zod';
2
+ export declare const channelsContract: {
3
+ getAvailableChannels: {
4
+ summary: "Get all channels server monitors (authenticated)";
5
+ method: "GET";
6
+ path: "/api/channels/available";
7
+ responses: {
8
+ 200: z.ZodObject<{
9
+ success: z.ZodLiteral<true>;
10
+ message: z.ZodString;
11
+ data: z.ZodObject<{
12
+ channels: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ username: z.ZodString;
15
+ title: z.ZodString;
16
+ description: z.ZodOptional<z.ZodString>;
17
+ category: z.ZodOptional<z.ZodString>;
18
+ memberCount: z.ZodOptional<z.ZodString>;
19
+ isActive: z.ZodBoolean;
20
+ isRecommended: z.ZodBoolean;
21
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
22
+ createdAt: z.ZodString;
23
+ updatedAt: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: string;
26
+ createdAt: string;
27
+ username: string;
28
+ title: string;
29
+ isActive: boolean;
30
+ isRecommended: boolean;
31
+ description?: string | undefined;
32
+ updatedAt?: string | undefined;
33
+ category?: string | undefined;
34
+ memberCount?: string | undefined;
35
+ lastScrapedAt?: string | undefined;
36
+ }, {
37
+ id: string;
38
+ createdAt: string;
39
+ username: string;
40
+ title: string;
41
+ isActive: boolean;
42
+ isRecommended: boolean;
43
+ description?: string | undefined;
44
+ updatedAt?: string | undefined;
45
+ category?: string | undefined;
46
+ memberCount?: string | undefined;
47
+ lastScrapedAt?: string | undefined;
48
+ }>, "many">;
49
+ }, "strip", z.ZodTypeAny, {
50
+ channels: {
51
+ id: string;
52
+ createdAt: string;
53
+ username: string;
54
+ title: string;
55
+ isActive: boolean;
56
+ isRecommended: boolean;
57
+ description?: string | undefined;
58
+ updatedAt?: string | undefined;
59
+ category?: string | undefined;
60
+ memberCount?: string | undefined;
61
+ lastScrapedAt?: string | undefined;
62
+ }[];
63
+ }, {
64
+ channels: {
65
+ id: string;
66
+ createdAt: string;
67
+ username: string;
68
+ title: string;
69
+ isActive: boolean;
70
+ isRecommended: boolean;
71
+ description?: string | undefined;
72
+ updatedAt?: string | undefined;
73
+ category?: string | undefined;
74
+ memberCount?: string | undefined;
75
+ lastScrapedAt?: string | undefined;
76
+ }[];
77
+ }>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ message: string;
80
+ success: true;
81
+ data: {
82
+ channels: {
83
+ id: string;
84
+ createdAt: string;
85
+ username: string;
86
+ title: string;
87
+ isActive: boolean;
88
+ isRecommended: boolean;
89
+ description?: string | undefined;
90
+ updatedAt?: string | undefined;
91
+ category?: string | undefined;
92
+ memberCount?: string | undefined;
93
+ lastScrapedAt?: string | undefined;
94
+ }[];
95
+ };
96
+ }, {
97
+ message: string;
98
+ success: true;
99
+ data: {
100
+ channels: {
101
+ id: string;
102
+ createdAt: string;
103
+ username: string;
104
+ title: string;
105
+ isActive: boolean;
106
+ isRecommended: boolean;
107
+ description?: string | undefined;
108
+ updatedAt?: string | undefined;
109
+ category?: string | undefined;
110
+ memberCount?: string | undefined;
111
+ lastScrapedAt?: string | undefined;
112
+ }[];
113
+ };
114
+ }>;
115
+ 401: z.ZodObject<{
116
+ success: z.ZodLiteral<false>;
117
+ message: z.ZodString;
118
+ errors: z.ZodOptional<z.ZodAny>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ message: string;
121
+ success: false;
122
+ errors?: any;
123
+ }, {
124
+ message: string;
125
+ success: false;
126
+ errors?: any;
127
+ }>;
128
+ 500: z.ZodObject<{
129
+ success: z.ZodLiteral<false>;
130
+ message: z.ZodString;
131
+ errors: z.ZodOptional<z.ZodAny>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ message: string;
134
+ success: false;
135
+ errors?: any;
136
+ }, {
137
+ message: string;
138
+ success: false;
139
+ errors?: any;
140
+ }>;
141
+ };
142
+ };
143
+ getUserChannels: {
144
+ summary: "Get user subscribed channels";
145
+ method: "GET";
146
+ path: "/api/channels/user-channels";
147
+ responses: {
148
+ 200: z.ZodObject<{
149
+ success: z.ZodLiteral<true>;
150
+ message: z.ZodString;
151
+ data: z.ZodObject<{
152
+ channels: z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ username: z.ZodString;
155
+ title: z.ZodString;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ category: z.ZodOptional<z.ZodString>;
158
+ memberCount: z.ZodOptional<z.ZodString>;
159
+ isActive: z.ZodBoolean;
160
+ isRecommended: z.ZodBoolean;
161
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
162
+ createdAt: z.ZodString;
163
+ updatedAt: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ id: string;
166
+ createdAt: string;
167
+ username: string;
168
+ title: string;
169
+ isActive: boolean;
170
+ isRecommended: boolean;
171
+ description?: string | undefined;
172
+ updatedAt?: string | undefined;
173
+ category?: string | undefined;
174
+ memberCount?: string | undefined;
175
+ lastScrapedAt?: string | undefined;
176
+ }, {
177
+ id: string;
178
+ createdAt: string;
179
+ username: string;
180
+ title: string;
181
+ isActive: boolean;
182
+ isRecommended: boolean;
183
+ description?: string | undefined;
184
+ updatedAt?: string | undefined;
185
+ category?: string | undefined;
186
+ memberCount?: string | undefined;
187
+ lastScrapedAt?: string | undefined;
188
+ }>, "many">;
189
+ }, "strip", z.ZodTypeAny, {
190
+ channels: {
191
+ id: string;
192
+ createdAt: string;
193
+ username: string;
194
+ title: string;
195
+ isActive: boolean;
196
+ isRecommended: boolean;
197
+ description?: string | undefined;
198
+ updatedAt?: string | undefined;
199
+ category?: string | undefined;
200
+ memberCount?: string | undefined;
201
+ lastScrapedAt?: string | undefined;
202
+ }[];
203
+ }, {
204
+ channels: {
205
+ id: string;
206
+ createdAt: string;
207
+ username: string;
208
+ title: string;
209
+ isActive: boolean;
210
+ isRecommended: boolean;
211
+ description?: string | undefined;
212
+ updatedAt?: string | undefined;
213
+ category?: string | undefined;
214
+ memberCount?: string | undefined;
215
+ lastScrapedAt?: string | undefined;
216
+ }[];
217
+ }>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ message: string;
220
+ success: true;
221
+ data: {
222
+ channels: {
223
+ id: string;
224
+ createdAt: string;
225
+ username: string;
226
+ title: string;
227
+ isActive: boolean;
228
+ isRecommended: boolean;
229
+ description?: string | undefined;
230
+ updatedAt?: string | undefined;
231
+ category?: string | undefined;
232
+ memberCount?: string | undefined;
233
+ lastScrapedAt?: string | undefined;
234
+ }[];
235
+ };
236
+ }, {
237
+ message: string;
238
+ success: true;
239
+ data: {
240
+ channels: {
241
+ id: string;
242
+ createdAt: string;
243
+ username: string;
244
+ title: string;
245
+ isActive: boolean;
246
+ isRecommended: boolean;
247
+ description?: string | undefined;
248
+ updatedAt?: string | undefined;
249
+ category?: string | undefined;
250
+ memberCount?: string | undefined;
251
+ lastScrapedAt?: string | undefined;
252
+ }[];
253
+ };
254
+ }>;
255
+ 401: z.ZodObject<{
256
+ success: z.ZodLiteral<false>;
257
+ message: z.ZodString;
258
+ errors: z.ZodOptional<z.ZodAny>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ message: string;
261
+ success: false;
262
+ errors?: any;
263
+ }, {
264
+ message: string;
265
+ success: false;
266
+ errors?: any;
267
+ }>;
268
+ 500: z.ZodObject<{
269
+ success: z.ZodLiteral<false>;
270
+ message: z.ZodString;
271
+ errors: z.ZodOptional<z.ZodAny>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ message: string;
274
+ success: false;
275
+ errors?: any;
276
+ }, {
277
+ message: string;
278
+ success: false;
279
+ errors?: any;
280
+ }>;
281
+ };
282
+ };
283
+ getRecommendedChannels: {
284
+ summary: "Get recommended channels";
285
+ method: "GET";
286
+ path: "/api/channels/recommended";
287
+ responses: {
288
+ 200: z.ZodObject<{
289
+ success: z.ZodLiteral<true>;
290
+ message: z.ZodString;
291
+ data: z.ZodArray<z.ZodObject<{
292
+ id: z.ZodString;
293
+ username: z.ZodString;
294
+ title: z.ZodString;
295
+ description: z.ZodOptional<z.ZodString>;
296
+ category: z.ZodOptional<z.ZodString>;
297
+ memberCount: z.ZodOptional<z.ZodString>;
298
+ isActive: z.ZodBoolean;
299
+ isRecommended: z.ZodBoolean;
300
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
301
+ createdAt: z.ZodString;
302
+ updatedAt: z.ZodOptional<z.ZodString>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: string;
306
+ username: string;
307
+ title: string;
308
+ isActive: boolean;
309
+ isRecommended: boolean;
310
+ description?: string | undefined;
311
+ updatedAt?: string | undefined;
312
+ category?: string | undefined;
313
+ memberCount?: string | undefined;
314
+ lastScrapedAt?: string | undefined;
315
+ }, {
316
+ id: string;
317
+ createdAt: string;
318
+ username: string;
319
+ title: string;
320
+ isActive: boolean;
321
+ isRecommended: boolean;
322
+ description?: string | undefined;
323
+ updatedAt?: string | undefined;
324
+ category?: string | undefined;
325
+ memberCount?: string | undefined;
326
+ lastScrapedAt?: string | undefined;
327
+ }>, "many">;
328
+ }, "strip", z.ZodTypeAny, {
329
+ message: string;
330
+ success: true;
331
+ data: {
332
+ id: string;
333
+ createdAt: string;
334
+ username: string;
335
+ title: string;
336
+ isActive: boolean;
337
+ isRecommended: boolean;
338
+ description?: string | undefined;
339
+ updatedAt?: string | undefined;
340
+ category?: string | undefined;
341
+ memberCount?: string | undefined;
342
+ lastScrapedAt?: string | undefined;
343
+ }[];
344
+ }, {
345
+ message: string;
346
+ success: true;
347
+ data: {
348
+ id: string;
349
+ createdAt: string;
350
+ username: string;
351
+ title: string;
352
+ isActive: boolean;
353
+ isRecommended: boolean;
354
+ description?: string | undefined;
355
+ updatedAt?: string | undefined;
356
+ category?: string | undefined;
357
+ memberCount?: string | undefined;
358
+ lastScrapedAt?: string | undefined;
359
+ }[];
360
+ }>;
361
+ 500: z.ZodObject<{
362
+ success: z.ZodLiteral<false>;
363
+ message: z.ZodString;
364
+ errors: z.ZodOptional<z.ZodAny>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ message: string;
367
+ success: false;
368
+ errors?: any;
369
+ }, {
370
+ message: string;
371
+ success: false;
372
+ errors?: any;
373
+ }>;
374
+ };
375
+ };
376
+ getCategories: {
377
+ summary: "Get all channel categories";
378
+ method: "GET";
379
+ path: "/api/channels/categories";
380
+ responses: {
381
+ 200: z.ZodObject<{
382
+ success: z.ZodLiteral<true>;
383
+ message: z.ZodString;
384
+ data: z.ZodArray<z.ZodObject<{
385
+ name: z.ZodString;
386
+ count: z.ZodNumber;
387
+ }, "strip", z.ZodTypeAny, {
388
+ name: string;
389
+ count: number;
390
+ }, {
391
+ name: string;
392
+ count: number;
393
+ }>, "many">;
394
+ }, "strip", z.ZodTypeAny, {
395
+ message: string;
396
+ success: true;
397
+ data: {
398
+ name: string;
399
+ count: number;
400
+ }[];
401
+ }, {
402
+ message: string;
403
+ success: true;
404
+ data: {
405
+ name: string;
406
+ count: number;
407
+ }[];
408
+ }>;
409
+ 500: z.ZodObject<{
410
+ success: z.ZodLiteral<false>;
411
+ message: z.ZodString;
412
+ errors: z.ZodOptional<z.ZodAny>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ message: string;
415
+ success: false;
416
+ errors?: any;
417
+ }, {
418
+ message: string;
419
+ success: false;
420
+ errors?: any;
421
+ }>;
422
+ };
423
+ };
424
+ exploreChannels: {
425
+ summary: "Get explore channels modal data";
426
+ method: "GET";
427
+ path: "/api/channels/explore";
428
+ responses: {
429
+ 200: z.ZodObject<{
430
+ success: z.ZodLiteral<true>;
431
+ message: z.ZodString;
432
+ data: z.ZodObject<{
433
+ categories: z.ZodArray<z.ZodObject<{
434
+ name: z.ZodString;
435
+ count: z.ZodNumber;
436
+ }, "strip", z.ZodTypeAny, {
437
+ name: string;
438
+ count: number;
439
+ }, {
440
+ name: string;
441
+ count: number;
442
+ }>, "many">;
443
+ channelsByCategory: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
444
+ id: z.ZodString;
445
+ username: z.ZodString;
446
+ title: z.ZodString;
447
+ description: z.ZodOptional<z.ZodString>;
448
+ category: z.ZodOptional<z.ZodString>;
449
+ memberCount: z.ZodOptional<z.ZodString>;
450
+ isActive: z.ZodBoolean;
451
+ isRecommended: z.ZodBoolean;
452
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
453
+ createdAt: z.ZodString;
454
+ updatedAt: z.ZodOptional<z.ZodString>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ id: string;
457
+ createdAt: string;
458
+ username: string;
459
+ title: string;
460
+ isActive: boolean;
461
+ isRecommended: boolean;
462
+ description?: string | undefined;
463
+ updatedAt?: string | undefined;
464
+ category?: string | undefined;
465
+ memberCount?: string | undefined;
466
+ lastScrapedAt?: string | undefined;
467
+ }, {
468
+ id: string;
469
+ createdAt: string;
470
+ username: string;
471
+ title: string;
472
+ isActive: boolean;
473
+ isRecommended: boolean;
474
+ description?: string | undefined;
475
+ updatedAt?: string | undefined;
476
+ category?: string | undefined;
477
+ memberCount?: string | undefined;
478
+ lastScrapedAt?: string | undefined;
479
+ }>, "many">>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ categories: {
482
+ name: string;
483
+ count: number;
484
+ }[];
485
+ channelsByCategory: Record<string, {
486
+ id: string;
487
+ createdAt: string;
488
+ username: string;
489
+ title: string;
490
+ isActive: boolean;
491
+ isRecommended: boolean;
492
+ description?: string | undefined;
493
+ updatedAt?: string | undefined;
494
+ category?: string | undefined;
495
+ memberCount?: string | undefined;
496
+ lastScrapedAt?: string | undefined;
497
+ }[]>;
498
+ }, {
499
+ categories: {
500
+ name: string;
501
+ count: number;
502
+ }[];
503
+ channelsByCategory: Record<string, {
504
+ id: string;
505
+ createdAt: string;
506
+ username: string;
507
+ title: string;
508
+ isActive: boolean;
509
+ isRecommended: boolean;
510
+ description?: string | undefined;
511
+ updatedAt?: string | undefined;
512
+ category?: string | undefined;
513
+ memberCount?: string | undefined;
514
+ lastScrapedAt?: string | undefined;
515
+ }[]>;
516
+ }>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ message: string;
519
+ success: true;
520
+ data: {
521
+ categories: {
522
+ name: string;
523
+ count: number;
524
+ }[];
525
+ channelsByCategory: Record<string, {
526
+ id: string;
527
+ createdAt: string;
528
+ username: string;
529
+ title: string;
530
+ isActive: boolean;
531
+ isRecommended: boolean;
532
+ description?: string | undefined;
533
+ updatedAt?: string | undefined;
534
+ category?: string | undefined;
535
+ memberCount?: string | undefined;
536
+ lastScrapedAt?: string | undefined;
537
+ }[]>;
538
+ };
539
+ }, {
540
+ message: string;
541
+ success: true;
542
+ data: {
543
+ categories: {
544
+ name: string;
545
+ count: number;
546
+ }[];
547
+ channelsByCategory: Record<string, {
548
+ id: string;
549
+ createdAt: string;
550
+ username: string;
551
+ title: string;
552
+ isActive: boolean;
553
+ isRecommended: boolean;
554
+ description?: string | undefined;
555
+ updatedAt?: string | undefined;
556
+ category?: string | undefined;
557
+ memberCount?: string | undefined;
558
+ lastScrapedAt?: string | undefined;
559
+ }[]>;
560
+ };
561
+ }>;
562
+ 401: z.ZodObject<{
563
+ success: z.ZodLiteral<false>;
564
+ message: z.ZodString;
565
+ errors: z.ZodOptional<z.ZodAny>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ message: string;
568
+ success: false;
569
+ errors?: any;
570
+ }, {
571
+ message: string;
572
+ success: false;
573
+ errors?: any;
574
+ }>;
575
+ 500: z.ZodObject<{
576
+ success: z.ZodLiteral<false>;
577
+ message: z.ZodString;
578
+ errors: z.ZodOptional<z.ZodAny>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ message: string;
581
+ success: false;
582
+ errors?: any;
583
+ }, {
584
+ message: string;
585
+ success: false;
586
+ errors?: any;
587
+ }>;
588
+ };
589
+ };
590
+ searchChannels: {
591
+ summary: "Search channels by query";
592
+ method: "POST";
593
+ body: z.ZodObject<{
594
+ query: z.ZodString;
595
+ }, "strip", z.ZodTypeAny, {
596
+ query: string;
597
+ }, {
598
+ query: string;
599
+ }>;
600
+ path: "/api/channels/search";
601
+ responses: {
602
+ 200: z.ZodObject<{
603
+ success: z.ZodLiteral<true>;
604
+ message: z.ZodString;
605
+ data: z.ZodArray<z.ZodObject<{
606
+ id: z.ZodString;
607
+ username: z.ZodString;
608
+ title: z.ZodString;
609
+ description: z.ZodOptional<z.ZodString>;
610
+ category: z.ZodOptional<z.ZodString>;
611
+ memberCount: z.ZodOptional<z.ZodString>;
612
+ isActive: z.ZodBoolean;
613
+ isRecommended: z.ZodBoolean;
614
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
615
+ createdAt: z.ZodString;
616
+ updatedAt: z.ZodOptional<z.ZodString>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ id: string;
619
+ createdAt: string;
620
+ username: string;
621
+ title: string;
622
+ isActive: boolean;
623
+ isRecommended: boolean;
624
+ description?: string | undefined;
625
+ updatedAt?: string | undefined;
626
+ category?: string | undefined;
627
+ memberCount?: string | undefined;
628
+ lastScrapedAt?: string | undefined;
629
+ }, {
630
+ id: string;
631
+ createdAt: string;
632
+ username: string;
633
+ title: string;
634
+ isActive: boolean;
635
+ isRecommended: boolean;
636
+ description?: string | undefined;
637
+ updatedAt?: string | undefined;
638
+ category?: string | undefined;
639
+ memberCount?: string | undefined;
640
+ lastScrapedAt?: string | undefined;
641
+ }>, "many">;
642
+ }, "strip", z.ZodTypeAny, {
643
+ message: string;
644
+ success: true;
645
+ data: {
646
+ id: string;
647
+ createdAt: string;
648
+ username: string;
649
+ title: string;
650
+ isActive: boolean;
651
+ isRecommended: boolean;
652
+ description?: string | undefined;
653
+ updatedAt?: string | undefined;
654
+ category?: string | undefined;
655
+ memberCount?: string | undefined;
656
+ lastScrapedAt?: string | undefined;
657
+ }[];
658
+ }, {
659
+ message: string;
660
+ success: true;
661
+ data: {
662
+ id: string;
663
+ createdAt: string;
664
+ username: string;
665
+ title: string;
666
+ isActive: boolean;
667
+ isRecommended: boolean;
668
+ description?: string | undefined;
669
+ updatedAt?: string | undefined;
670
+ category?: string | undefined;
671
+ memberCount?: string | undefined;
672
+ lastScrapedAt?: string | undefined;
673
+ }[];
674
+ }>;
675
+ 400: z.ZodObject<{
676
+ success: z.ZodLiteral<false>;
677
+ message: z.ZodString;
678
+ errors: z.ZodOptional<z.ZodAny>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ message: string;
681
+ success: false;
682
+ errors?: any;
683
+ }, {
684
+ message: string;
685
+ success: false;
686
+ errors?: any;
687
+ }>;
688
+ 500: z.ZodObject<{
689
+ success: z.ZodLiteral<false>;
690
+ message: z.ZodString;
691
+ errors: z.ZodOptional<z.ZodAny>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ message: string;
694
+ success: false;
695
+ errors?: any;
696
+ }, {
697
+ message: string;
698
+ success: false;
699
+ errors?: any;
700
+ }>;
701
+ };
702
+ };
703
+ subscribeToChannels: {
704
+ summary: "Subscribe to channels (replaces existing)";
705
+ method: "POST";
706
+ body: z.ZodObject<{
707
+ channelUsernames: z.ZodArray<z.ZodString, "many">;
708
+ }, "strip", z.ZodTypeAny, {
709
+ channelUsernames: string[];
710
+ }, {
711
+ channelUsernames: string[];
712
+ }>;
713
+ path: "/api/channels/subscribe";
714
+ responses: {
715
+ 200: z.ZodObject<{
716
+ success: z.ZodLiteral<true>;
717
+ message: z.ZodString;
718
+ data: z.ZodObject<{
719
+ subscribedChannels: z.ZodArray<z.ZodString, "many">;
720
+ message: z.ZodString;
721
+ }, "strip", z.ZodTypeAny, {
722
+ message: string;
723
+ subscribedChannels: string[];
724
+ }, {
725
+ message: string;
726
+ subscribedChannels: string[];
727
+ }>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ message: string;
730
+ success: true;
731
+ data: {
732
+ message: string;
733
+ subscribedChannels: string[];
734
+ };
735
+ }, {
736
+ message: string;
737
+ success: true;
738
+ data: {
739
+ message: string;
740
+ subscribedChannels: string[];
741
+ };
742
+ }>;
743
+ 400: z.ZodObject<{
744
+ success: z.ZodLiteral<false>;
745
+ message: z.ZodString;
746
+ errors: z.ZodOptional<z.ZodAny>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ message: string;
749
+ success: false;
750
+ errors?: any;
751
+ }, {
752
+ message: string;
753
+ success: false;
754
+ errors?: any;
755
+ }>;
756
+ 401: z.ZodObject<{
757
+ success: z.ZodLiteral<false>;
758
+ message: z.ZodString;
759
+ errors: z.ZodOptional<z.ZodAny>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ message: string;
762
+ success: false;
763
+ errors?: any;
764
+ }, {
765
+ message: string;
766
+ success: false;
767
+ errors?: any;
768
+ }>;
769
+ 500: z.ZodObject<{
770
+ success: z.ZodLiteral<false>;
771
+ message: z.ZodString;
772
+ errors: z.ZodOptional<z.ZodAny>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ message: string;
775
+ success: false;
776
+ errors?: any;
777
+ }, {
778
+ message: string;
779
+ success: false;
780
+ errors?: any;
781
+ }>;
782
+ };
783
+ };
784
+ addChannels: {
785
+ summary: "Add channels to subscription";
786
+ method: "POST";
787
+ body: z.ZodObject<{
788
+ channelUsernames: z.ZodArray<z.ZodString, "many">;
789
+ }, "strip", z.ZodTypeAny, {
790
+ channelUsernames: string[];
791
+ }, {
792
+ channelUsernames: string[];
793
+ }>;
794
+ path: "/api/channels/add";
795
+ responses: {
796
+ 200: z.ZodObject<{
797
+ success: z.ZodLiteral<true>;
798
+ message: z.ZodString;
799
+ data: z.ZodObject<{
800
+ subscribedChannels: z.ZodArray<z.ZodString, "many">;
801
+ message: z.ZodString;
802
+ }, "strip", z.ZodTypeAny, {
803
+ message: string;
804
+ subscribedChannels: string[];
805
+ }, {
806
+ message: string;
807
+ subscribedChannels: string[];
808
+ }>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ message: string;
811
+ success: true;
812
+ data: {
813
+ message: string;
814
+ subscribedChannels: string[];
815
+ };
816
+ }, {
817
+ message: string;
818
+ success: true;
819
+ data: {
820
+ message: string;
821
+ subscribedChannels: string[];
822
+ };
823
+ }>;
824
+ 400: z.ZodObject<{
825
+ success: z.ZodLiteral<false>;
826
+ message: z.ZodString;
827
+ errors: z.ZodOptional<z.ZodAny>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ message: string;
830
+ success: false;
831
+ errors?: any;
832
+ }, {
833
+ message: string;
834
+ success: false;
835
+ errors?: any;
836
+ }>;
837
+ 401: z.ZodObject<{
838
+ success: z.ZodLiteral<false>;
839
+ message: z.ZodString;
840
+ errors: z.ZodOptional<z.ZodAny>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ message: string;
843
+ success: false;
844
+ errors?: any;
845
+ }, {
846
+ message: string;
847
+ success: false;
848
+ errors?: any;
849
+ }>;
850
+ 500: z.ZodObject<{
851
+ success: z.ZodLiteral<false>;
852
+ message: z.ZodString;
853
+ errors: z.ZodOptional<z.ZodAny>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ message: string;
856
+ success: false;
857
+ errors?: any;
858
+ }, {
859
+ message: string;
860
+ success: false;
861
+ errors?: any;
862
+ }>;
863
+ };
864
+ };
865
+ unsubscribeFromChannel: {
866
+ summary: "Unsubscribe from channel";
867
+ method: "POST";
868
+ body: z.ZodObject<{
869
+ channelUsername: z.ZodString;
870
+ }, "strip", z.ZodTypeAny, {
871
+ channelUsername: string;
872
+ }, {
873
+ channelUsername: string;
874
+ }>;
875
+ path: "/api/channels/unsubscribe";
876
+ responses: {
877
+ 200: z.ZodObject<{
878
+ success: z.ZodLiteral<true>;
879
+ message: z.ZodString;
880
+ data: z.ZodObject<{
881
+ subscribedChannels: z.ZodArray<z.ZodString, "many">;
882
+ message: z.ZodString;
883
+ }, "strip", z.ZodTypeAny, {
884
+ message: string;
885
+ subscribedChannels: string[];
886
+ }, {
887
+ message: string;
888
+ subscribedChannels: string[];
889
+ }>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ message: string;
892
+ success: true;
893
+ data: {
894
+ message: string;
895
+ subscribedChannels: string[];
896
+ };
897
+ }, {
898
+ message: string;
899
+ success: true;
900
+ data: {
901
+ message: string;
902
+ subscribedChannels: string[];
903
+ };
904
+ }>;
905
+ 400: z.ZodObject<{
906
+ success: z.ZodLiteral<false>;
907
+ message: z.ZodString;
908
+ errors: z.ZodOptional<z.ZodAny>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ message: string;
911
+ success: false;
912
+ errors?: any;
913
+ }, {
914
+ message: string;
915
+ success: false;
916
+ errors?: any;
917
+ }>;
918
+ 401: z.ZodObject<{
919
+ success: z.ZodLiteral<false>;
920
+ message: z.ZodString;
921
+ errors: z.ZodOptional<z.ZodAny>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ message: string;
924
+ success: false;
925
+ errors?: any;
926
+ }, {
927
+ message: string;
928
+ success: false;
929
+ errors?: any;
930
+ }>;
931
+ 500: z.ZodObject<{
932
+ success: z.ZodLiteral<false>;
933
+ message: z.ZodString;
934
+ errors: z.ZodOptional<z.ZodAny>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ message: string;
937
+ success: false;
938
+ errors?: any;
939
+ }, {
940
+ message: string;
941
+ success: false;
942
+ errors?: any;
943
+ }>;
944
+ };
945
+ };
946
+ };
947
+ //# sourceMappingURL=channels.contract.d.ts.map