telegram-jobs-contract 1.0.13 → 1.0.15

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.
@@ -8,109 +8,75 @@ export declare const channelsContract: {
8
8
  200: z.ZodObject<{
9
9
  success: z.ZodLiteral<true>;
10
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">;
11
+ data: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ username: z.ZodString;
14
+ title: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ category: z.ZodOptional<z.ZodString>;
17
+ memberCount: z.ZodOptional<z.ZodString>;
18
+ isActive: z.ZodBoolean;
19
+ isRecommended: z.ZodBoolean;
20
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
21
+ createdAt: z.ZodString;
22
+ updatedAt: z.ZodOptional<z.ZodString>;
49
23
  }, "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
- }[];
24
+ id: string;
25
+ createdAt: string;
26
+ username: string;
27
+ title: string;
28
+ isActive: boolean;
29
+ isRecommended: boolean;
30
+ description?: string | undefined;
31
+ updatedAt?: string | undefined;
32
+ category?: string | undefined;
33
+ memberCount?: string | undefined;
34
+ lastScrapedAt?: string | undefined;
63
35
  }, {
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
- }>;
36
+ id: string;
37
+ createdAt: string;
38
+ username: string;
39
+ title: string;
40
+ isActive: boolean;
41
+ isRecommended: boolean;
42
+ description?: string | undefined;
43
+ updatedAt?: string | undefined;
44
+ category?: string | undefined;
45
+ memberCount?: string | undefined;
46
+ lastScrapedAt?: string | undefined;
47
+ }>, "many">;
78
48
  }, "strip", z.ZodTypeAny, {
79
49
  message: string;
80
50
  success: true;
81
51
  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
- };
52
+ id: string;
53
+ createdAt: string;
54
+ username: string;
55
+ title: string;
56
+ isActive: boolean;
57
+ isRecommended: boolean;
58
+ description?: string | undefined;
59
+ updatedAt?: string | undefined;
60
+ category?: string | undefined;
61
+ memberCount?: string | undefined;
62
+ lastScrapedAt?: string | undefined;
63
+ }[];
96
64
  }, {
97
65
  message: string;
98
66
  success: true;
99
67
  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
- };
68
+ id: string;
69
+ createdAt: string;
70
+ username: string;
71
+ title: string;
72
+ isActive: boolean;
73
+ isRecommended: boolean;
74
+ description?: string | undefined;
75
+ updatedAt?: string | undefined;
76
+ category?: string | undefined;
77
+ memberCount?: string | undefined;
78
+ lastScrapedAt?: string | undefined;
79
+ }[];
114
80
  }>;
115
81
  401: z.ZodObject<{
116
82
  success: z.ZodLiteral<false>;
@@ -148,109 +114,75 @@ export declare const channelsContract: {
148
114
  200: z.ZodObject<{
149
115
  success: z.ZodLiteral<true>;
150
116
  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">;
117
+ data: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ username: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ category: z.ZodOptional<z.ZodString>;
123
+ memberCount: z.ZodOptional<z.ZodString>;
124
+ isActive: z.ZodBoolean;
125
+ isRecommended: z.ZodBoolean;
126
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
127
+ createdAt: z.ZodString;
128
+ updatedAt: z.ZodOptional<z.ZodString>;
189
129
  }, "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
- }[];
130
+ id: string;
131
+ createdAt: string;
132
+ username: string;
133
+ title: string;
134
+ isActive: boolean;
135
+ isRecommended: boolean;
136
+ description?: string | undefined;
137
+ updatedAt?: string | undefined;
138
+ category?: string | undefined;
139
+ memberCount?: string | undefined;
140
+ lastScrapedAt?: string | undefined;
203
141
  }, {
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
- }>;
142
+ id: string;
143
+ createdAt: string;
144
+ username: string;
145
+ title: string;
146
+ isActive: boolean;
147
+ isRecommended: boolean;
148
+ description?: string | undefined;
149
+ updatedAt?: string | undefined;
150
+ category?: string | undefined;
151
+ memberCount?: string | undefined;
152
+ lastScrapedAt?: string | undefined;
153
+ }>, "many">;
218
154
  }, "strip", z.ZodTypeAny, {
219
155
  message: string;
220
156
  success: true;
221
157
  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
- };
158
+ id: string;
159
+ createdAt: string;
160
+ username: string;
161
+ title: string;
162
+ isActive: boolean;
163
+ isRecommended: boolean;
164
+ description?: string | undefined;
165
+ updatedAt?: string | undefined;
166
+ category?: string | undefined;
167
+ memberCount?: string | undefined;
168
+ lastScrapedAt?: string | undefined;
169
+ }[];
236
170
  }, {
237
171
  message: string;
238
172
  success: true;
239
173
  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
- };
174
+ id: string;
175
+ createdAt: string;
176
+ username: string;
177
+ title: string;
178
+ isActive: boolean;
179
+ isRecommended: boolean;
180
+ description?: string | undefined;
181
+ updatedAt?: string | undefined;
182
+ category?: string | undefined;
183
+ memberCount?: string | undefined;
184
+ lastScrapedAt?: string | undefined;
185
+ }[];
254
186
  }>;
255
187
  401: z.ZodObject<{
256
188
  success: z.ZodLiteral<false>;
@@ -381,30 +313,15 @@ export declare const channelsContract: {
381
313
  200: z.ZodObject<{
382
314
  success: z.ZodLiteral<true>;
383
315
  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">;
316
+ data: z.ZodArray<z.ZodString, "many">;
394
317
  }, "strip", z.ZodTypeAny, {
395
318
  message: string;
396
319
  success: true;
397
- data: {
398
- name: string;
399
- count: number;
400
- }[];
320
+ data: string[];
401
321
  }, {
402
322
  message: string;
403
323
  success: true;
404
- data: {
405
- name: string;
406
- count: number;
407
- }[];
324
+ data: string[];
408
325
  }>;
409
326
  500: z.ZodObject<{
410
327
  success: z.ZodLiteral<false>;
@@ -422,6 +339,16 @@ export declare const channelsContract: {
422
339
  };
423
340
  };
424
341
  exploreChannels: {
342
+ query: z.ZodObject<{
343
+ searchQuery: z.ZodOptional<z.ZodString>;
344
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ categories?: string[] | undefined;
347
+ searchQuery?: string | undefined;
348
+ }, {
349
+ categories?: string[] | undefined;
350
+ searchQuery?: string | undefined;
351
+ }>;
425
352
  summary: "Get explore channels modal data";
426
353
  method: "GET";
427
354
  path: "/api/channels/explore";
@@ -430,133 +357,70 @@ export declare const channelsContract: {
430
357
  success: z.ZodLiteral<true>;
431
358
  message: z.ZodString;
432
359
  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;
360
+ channels: z.ZodArray<z.ZodObject<{
445
361
  username: z.ZodString;
446
362
  title: z.ZodString;
447
363
  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>;
364
+ memberCount: z.ZodOptional<z.ZodNumber>;
365
+ isJoined: z.ZodBoolean;
455
366
  }, "strip", z.ZodTypeAny, {
456
- id: string;
457
- createdAt: string;
458
367
  username: string;
459
368
  title: string;
460
- isActive: boolean;
461
- isRecommended: boolean;
369
+ isJoined: boolean;
462
370
  description?: string | undefined;
463
- updatedAt?: string | undefined;
464
- category?: string | undefined;
465
- memberCount?: string | undefined;
466
- lastScrapedAt?: string | undefined;
371
+ memberCount?: number | undefined;
467
372
  }, {
468
- id: string;
469
- createdAt: string;
470
373
  username: string;
471
374
  title: string;
472
- isActive: boolean;
473
- isRecommended: boolean;
375
+ isJoined: boolean;
474
376
  description?: string | undefined;
475
- updatedAt?: string | undefined;
476
- category?: string | undefined;
477
- memberCount?: string | undefined;
478
- lastScrapedAt?: string | undefined;
479
- }>, "many">>;
377
+ memberCount?: number | undefined;
378
+ }>, "many">;
379
+ missedJobsCount: z.ZodNumber;
480
380
  }, "strip", z.ZodTypeAny, {
481
- categories: {
482
- name: string;
483
- count: number;
484
- }[];
485
- channelsByCategory: Record<string, {
486
- id: string;
487
- createdAt: string;
381
+ channels: {
488
382
  username: string;
489
383
  title: string;
490
- isActive: boolean;
491
- isRecommended: boolean;
384
+ isJoined: boolean;
492
385
  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;
386
+ memberCount?: number | undefined;
502
387
  }[];
503
- channelsByCategory: Record<string, {
504
- id: string;
505
- createdAt: string;
388
+ missedJobsCount: number;
389
+ }, {
390
+ channels: {
506
391
  username: string;
507
392
  title: string;
508
- isActive: boolean;
509
- isRecommended: boolean;
393
+ isJoined: boolean;
510
394
  description?: string | undefined;
511
- updatedAt?: string | undefined;
512
- category?: string | undefined;
513
- memberCount?: string | undefined;
514
- lastScrapedAt?: string | undefined;
515
- }[]>;
395
+ memberCount?: number | undefined;
396
+ }[];
397
+ missedJobsCount: number;
516
398
  }>;
517
399
  }, "strip", z.ZodTypeAny, {
518
400
  message: string;
519
401
  success: true;
520
402
  data: {
521
- categories: {
522
- name: string;
523
- count: number;
524
- }[];
525
- channelsByCategory: Record<string, {
526
- id: string;
527
- createdAt: string;
403
+ channels: {
528
404
  username: string;
529
405
  title: string;
530
- isActive: boolean;
531
- isRecommended: boolean;
406
+ isJoined: boolean;
532
407
  description?: string | undefined;
533
- updatedAt?: string | undefined;
534
- category?: string | undefined;
535
- memberCount?: string | undefined;
536
- lastScrapedAt?: string | undefined;
537
- }[]>;
408
+ memberCount?: number | undefined;
409
+ }[];
410
+ missedJobsCount: number;
538
411
  };
539
412
  }, {
540
413
  message: string;
541
414
  success: true;
542
415
  data: {
543
- categories: {
544
- name: string;
545
- count: number;
546
- }[];
547
- channelsByCategory: Record<string, {
548
- id: string;
549
- createdAt: string;
416
+ channels: {
550
417
  username: string;
551
418
  title: string;
552
- isActive: boolean;
553
- isRecommended: boolean;
419
+ isJoined: boolean;
554
420
  description?: string | undefined;
555
- updatedAt?: string | undefined;
556
- category?: string | undefined;
557
- memberCount?: string | undefined;
558
- lastScrapedAt?: string | undefined;
559
- }[]>;
421
+ memberCount?: number | undefined;
422
+ }[];
423
+ missedJobsCount: number;
560
424
  };
561
425
  }>;
562
426
  401: z.ZodObject<{
@@ -603,73 +467,43 @@ export declare const channelsContract: {
603
467
  success: z.ZodLiteral<true>;
604
468
  message: z.ZodString;
605
469
  data: z.ZodArray<z.ZodObject<{
606
- id: z.ZodString;
607
470
  username: z.ZodString;
608
471
  title: z.ZodString;
609
472
  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>;
473
+ memberCount: z.ZodOptional<z.ZodNumber>;
474
+ isJoined: z.ZodBoolean;
617
475
  }, "strip", z.ZodTypeAny, {
618
- id: string;
619
- createdAt: string;
620
476
  username: string;
621
477
  title: string;
622
- isActive: boolean;
623
- isRecommended: boolean;
478
+ isJoined: boolean;
624
479
  description?: string | undefined;
625
- updatedAt?: string | undefined;
626
- category?: string | undefined;
627
- memberCount?: string | undefined;
628
- lastScrapedAt?: string | undefined;
480
+ memberCount?: number | undefined;
629
481
  }, {
630
- id: string;
631
- createdAt: string;
632
482
  username: string;
633
483
  title: string;
634
- isActive: boolean;
635
- isRecommended: boolean;
484
+ isJoined: boolean;
636
485
  description?: string | undefined;
637
- updatedAt?: string | undefined;
638
- category?: string | undefined;
639
- memberCount?: string | undefined;
640
- lastScrapedAt?: string | undefined;
486
+ memberCount?: number | undefined;
641
487
  }>, "many">;
642
488
  }, "strip", z.ZodTypeAny, {
643
489
  message: string;
644
490
  success: true;
645
491
  data: {
646
- id: string;
647
- createdAt: string;
648
492
  username: string;
649
493
  title: string;
650
- isActive: boolean;
651
- isRecommended: boolean;
494
+ isJoined: boolean;
652
495
  description?: string | undefined;
653
- updatedAt?: string | undefined;
654
- category?: string | undefined;
655
- memberCount?: string | undefined;
656
- lastScrapedAt?: string | undefined;
496
+ memberCount?: number | undefined;
657
497
  }[];
658
498
  }, {
659
499
  message: string;
660
500
  success: true;
661
501
  data: {
662
- id: string;
663
- createdAt: string;
664
502
  username: string;
665
503
  title: string;
666
- isActive: boolean;
667
- isRecommended: boolean;
504
+ isJoined: boolean;
668
505
  description?: string | undefined;
669
- updatedAt?: string | undefined;
670
- category?: string | undefined;
671
- memberCount?: string | undefined;
672
- lastScrapedAt?: string | undefined;
506
+ memberCount?: number | undefined;
673
507
  }[];
674
508
  }>;
675
509
  400: z.ZodObject<{
@@ -704,11 +538,11 @@ export declare const channelsContract: {
704
538
  summary: "Subscribe to channels (replaces existing)";
705
539
  method: "POST";
706
540
  body: z.ZodObject<{
707
- channelUsernames: z.ZodArray<z.ZodString, "many">;
541
+ channels: z.ZodArray<z.ZodString, "many">;
708
542
  }, "strip", z.ZodTypeAny, {
709
- channelUsernames: string[];
543
+ channels: string[];
710
544
  }, {
711
- channelUsernames: string[];
545
+ channels: string[];
712
546
  }>;
713
547
  path: "/api/channels/subscribe";
714
548
  responses: {
@@ -716,28 +550,28 @@ export declare const channelsContract: {
716
550
  success: z.ZodLiteral<true>;
717
551
  message: z.ZodString;
718
552
  data: z.ZodObject<{
719
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
553
+ success: z.ZodBoolean;
720
554
  message: z.ZodString;
721
555
  }, "strip", z.ZodTypeAny, {
722
556
  message: string;
723
- subscribedChannels: string[];
557
+ success: boolean;
724
558
  }, {
725
559
  message: string;
726
- subscribedChannels: string[];
560
+ success: boolean;
727
561
  }>;
728
562
  }, "strip", z.ZodTypeAny, {
729
563
  message: string;
730
564
  success: true;
731
565
  data: {
732
566
  message: string;
733
- subscribedChannels: string[];
567
+ success: boolean;
734
568
  };
735
569
  }, {
736
570
  message: string;
737
571
  success: true;
738
572
  data: {
739
573
  message: string;
740
- subscribedChannels: string[];
574
+ success: boolean;
741
575
  };
742
576
  }>;
743
577
  400: z.ZodObject<{
@@ -785,11 +619,11 @@ export declare const channelsContract: {
785
619
  summary: "Add channels to subscription";
786
620
  method: "POST";
787
621
  body: z.ZodObject<{
788
- channelUsernames: z.ZodArray<z.ZodString, "many">;
622
+ channels: z.ZodArray<z.ZodString, "many">;
789
623
  }, "strip", z.ZodTypeAny, {
790
- channelUsernames: string[];
624
+ channels: string[];
791
625
  }, {
792
- channelUsernames: string[];
626
+ channels: string[];
793
627
  }>;
794
628
  path: "/api/channels/add";
795
629
  responses: {
@@ -797,28 +631,33 @@ export declare const channelsContract: {
797
631
  success: z.ZodLiteral<true>;
798
632
  message: z.ZodString;
799
633
  data: z.ZodObject<{
800
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
801
- message: z.ZodString;
634
+ success: z.ZodBoolean;
635
+ totalChannels: z.ZodNumber;
636
+ swapsRemaining: z.ZodOptional<z.ZodNumber>;
802
637
  }, "strip", z.ZodTypeAny, {
803
- message: string;
804
- subscribedChannels: string[];
638
+ success: boolean;
639
+ totalChannels: number;
640
+ swapsRemaining?: number | undefined;
805
641
  }, {
806
- message: string;
807
- subscribedChannels: string[];
642
+ success: boolean;
643
+ totalChannels: number;
644
+ swapsRemaining?: number | undefined;
808
645
  }>;
809
646
  }, "strip", z.ZodTypeAny, {
810
647
  message: string;
811
648
  success: true;
812
649
  data: {
813
- message: string;
814
- subscribedChannels: string[];
650
+ success: boolean;
651
+ totalChannels: number;
652
+ swapsRemaining?: number | undefined;
815
653
  };
816
654
  }, {
817
655
  message: string;
818
656
  success: true;
819
657
  data: {
820
- message: string;
821
- subscribedChannels: string[];
658
+ success: boolean;
659
+ totalChannels: number;
660
+ swapsRemaining?: number | undefined;
822
661
  };
823
662
  }>;
824
663
  400: z.ZodObject<{
@@ -866,11 +705,11 @@ export declare const channelsContract: {
866
705
  summary: "Unsubscribe from channel";
867
706
  method: "POST";
868
707
  body: z.ZodObject<{
869
- channelUsername: z.ZodString;
708
+ channel: z.ZodString;
870
709
  }, "strip", z.ZodTypeAny, {
871
- channelUsername: string;
710
+ channel: string;
872
711
  }, {
873
- channelUsername: string;
712
+ channel: string;
874
713
  }>;
875
714
  path: "/api/channels/unsubscribe";
876
715
  responses: {
@@ -878,28 +717,33 @@ export declare const channelsContract: {
878
717
  success: z.ZodLiteral<true>;
879
718
  message: z.ZodString;
880
719
  data: z.ZodObject<{
881
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
882
- message: z.ZodString;
720
+ success: z.ZodBoolean;
721
+ totalChannels: z.ZodNumber;
722
+ swapsRemaining: z.ZodOptional<z.ZodNumber>;
883
723
  }, "strip", z.ZodTypeAny, {
884
- message: string;
885
- subscribedChannels: string[];
724
+ success: boolean;
725
+ totalChannels: number;
726
+ swapsRemaining?: number | undefined;
886
727
  }, {
887
- message: string;
888
- subscribedChannels: string[];
728
+ success: boolean;
729
+ totalChannels: number;
730
+ swapsRemaining?: number | undefined;
889
731
  }>;
890
732
  }, "strip", z.ZodTypeAny, {
891
733
  message: string;
892
734
  success: true;
893
735
  data: {
894
- message: string;
895
- subscribedChannels: string[];
736
+ success: boolean;
737
+ totalChannels: number;
738
+ swapsRemaining?: number | undefined;
896
739
  };
897
740
  }, {
898
741
  message: string;
899
742
  success: true;
900
743
  data: {
901
- message: string;
902
- subscribedChannels: string[];
744
+ success: boolean;
745
+ totalChannels: number;
746
+ swapsRemaining?: number | undefined;
903
747
  };
904
748
  }>;
905
749
  400: z.ZodObject<{