telegram-jobs-contract 1.0.12 → 1.0.14
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/dist/contracts/channels.contract.d.ts +191 -307
- package/dist/contracts/channels.contract.d.ts.map +1 -1
- package/dist/contracts/channels.contract.js +26 -10
- package/dist/contracts/stats.contract.d.ts +4 -4
- package/dist/index.d.ts +976 -1071
- package/dist/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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>;
|
|
@@ -422,6 +354,16 @@ export declare const channelsContract: {
|
|
|
422
354
|
};
|
|
423
355
|
};
|
|
424
356
|
exploreChannels: {
|
|
357
|
+
query: z.ZodObject<{
|
|
358
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
359
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
categories?: string[] | undefined;
|
|
362
|
+
searchQuery?: string | undefined;
|
|
363
|
+
}, {
|
|
364
|
+
categories?: string[] | undefined;
|
|
365
|
+
searchQuery?: string | undefined;
|
|
366
|
+
}>;
|
|
425
367
|
summary: "Get explore channels modal data";
|
|
426
368
|
method: "GET";
|
|
427
369
|
path: "/api/channels/explore";
|
|
@@ -430,133 +372,70 @@ export declare const channelsContract: {
|
|
|
430
372
|
success: z.ZodLiteral<true>;
|
|
431
373
|
message: z.ZodString;
|
|
432
374
|
data: z.ZodObject<{
|
|
433
|
-
|
|
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;
|
|
375
|
+
channels: z.ZodArray<z.ZodObject<{
|
|
445
376
|
username: z.ZodString;
|
|
446
377
|
title: z.ZodString;
|
|
447
378
|
description: z.ZodOptional<z.ZodString>;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
isActive: z.ZodBoolean;
|
|
451
|
-
isRecommended: z.ZodBoolean;
|
|
452
|
-
lastScrapedAt: z.ZodOptional<z.ZodString>;
|
|
453
|
-
createdAt: z.ZodString;
|
|
454
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
379
|
+
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
isJoined: z.ZodBoolean;
|
|
455
381
|
}, "strip", z.ZodTypeAny, {
|
|
456
|
-
id: string;
|
|
457
|
-
createdAt: string;
|
|
458
382
|
username: string;
|
|
459
383
|
title: string;
|
|
460
|
-
|
|
461
|
-
isRecommended: boolean;
|
|
384
|
+
isJoined: boolean;
|
|
462
385
|
description?: string | undefined;
|
|
463
|
-
|
|
464
|
-
category?: string | undefined;
|
|
465
|
-
memberCount?: string | undefined;
|
|
466
|
-
lastScrapedAt?: string | undefined;
|
|
386
|
+
memberCount?: number | undefined;
|
|
467
387
|
}, {
|
|
468
|
-
id: string;
|
|
469
|
-
createdAt: string;
|
|
470
388
|
username: string;
|
|
471
389
|
title: string;
|
|
472
|
-
|
|
473
|
-
isRecommended: boolean;
|
|
390
|
+
isJoined: boolean;
|
|
474
391
|
description?: string | undefined;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
lastScrapedAt?: string | undefined;
|
|
479
|
-
}>, "many">>;
|
|
392
|
+
memberCount?: number | undefined;
|
|
393
|
+
}>, "many">;
|
|
394
|
+
missedJobsCount: z.ZodNumber;
|
|
480
395
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
|
|
482
|
-
name: string;
|
|
483
|
-
count: number;
|
|
484
|
-
}[];
|
|
485
|
-
channelsByCategory: Record<string, {
|
|
486
|
-
id: string;
|
|
487
|
-
createdAt: string;
|
|
396
|
+
channels: {
|
|
488
397
|
username: string;
|
|
489
398
|
title: string;
|
|
490
|
-
|
|
491
|
-
isRecommended: boolean;
|
|
399
|
+
isJoined: boolean;
|
|
492
400
|
description?: string | undefined;
|
|
493
|
-
|
|
494
|
-
category?: string | undefined;
|
|
495
|
-
memberCount?: string | undefined;
|
|
496
|
-
lastScrapedAt?: string | undefined;
|
|
497
|
-
}[]>;
|
|
498
|
-
}, {
|
|
499
|
-
categories: {
|
|
500
|
-
name: string;
|
|
501
|
-
count: number;
|
|
401
|
+
memberCount?: number | undefined;
|
|
502
402
|
}[];
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
403
|
+
missedJobsCount: number;
|
|
404
|
+
}, {
|
|
405
|
+
channels: {
|
|
506
406
|
username: string;
|
|
507
407
|
title: string;
|
|
508
|
-
|
|
509
|
-
isRecommended: boolean;
|
|
408
|
+
isJoined: boolean;
|
|
510
409
|
description?: string | undefined;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
lastScrapedAt?: string | undefined;
|
|
515
|
-
}[]>;
|
|
410
|
+
memberCount?: number | undefined;
|
|
411
|
+
}[];
|
|
412
|
+
missedJobsCount: number;
|
|
516
413
|
}>;
|
|
517
414
|
}, "strip", z.ZodTypeAny, {
|
|
518
415
|
message: string;
|
|
519
416
|
success: true;
|
|
520
417
|
data: {
|
|
521
|
-
|
|
522
|
-
name: string;
|
|
523
|
-
count: number;
|
|
524
|
-
}[];
|
|
525
|
-
channelsByCategory: Record<string, {
|
|
526
|
-
id: string;
|
|
527
|
-
createdAt: string;
|
|
418
|
+
channels: {
|
|
528
419
|
username: string;
|
|
529
420
|
title: string;
|
|
530
|
-
|
|
531
|
-
isRecommended: boolean;
|
|
421
|
+
isJoined: boolean;
|
|
532
422
|
description?: string | undefined;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
lastScrapedAt?: string | undefined;
|
|
537
|
-
}[]>;
|
|
423
|
+
memberCount?: number | undefined;
|
|
424
|
+
}[];
|
|
425
|
+
missedJobsCount: number;
|
|
538
426
|
};
|
|
539
427
|
}, {
|
|
540
428
|
message: string;
|
|
541
429
|
success: true;
|
|
542
430
|
data: {
|
|
543
|
-
|
|
544
|
-
name: string;
|
|
545
|
-
count: number;
|
|
546
|
-
}[];
|
|
547
|
-
channelsByCategory: Record<string, {
|
|
548
|
-
id: string;
|
|
549
|
-
createdAt: string;
|
|
431
|
+
channels: {
|
|
550
432
|
username: string;
|
|
551
433
|
title: string;
|
|
552
|
-
|
|
553
|
-
isRecommended: boolean;
|
|
434
|
+
isJoined: boolean;
|
|
554
435
|
description?: string | undefined;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
lastScrapedAt?: string | undefined;
|
|
559
|
-
}[]>;
|
|
436
|
+
memberCount?: number | undefined;
|
|
437
|
+
}[];
|
|
438
|
+
missedJobsCount: number;
|
|
560
439
|
};
|
|
561
440
|
}>;
|
|
562
441
|
401: z.ZodObject<{
|
|
@@ -704,11 +583,11 @@ export declare const channelsContract: {
|
|
|
704
583
|
summary: "Subscribe to channels (replaces existing)";
|
|
705
584
|
method: "POST";
|
|
706
585
|
body: z.ZodObject<{
|
|
707
|
-
|
|
586
|
+
channels: z.ZodArray<z.ZodString, "many">;
|
|
708
587
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
-
|
|
588
|
+
channels: string[];
|
|
710
589
|
}, {
|
|
711
|
-
|
|
590
|
+
channels: string[];
|
|
712
591
|
}>;
|
|
713
592
|
path: "/api/channels/subscribe";
|
|
714
593
|
responses: {
|
|
@@ -716,28 +595,28 @@ export declare const channelsContract: {
|
|
|
716
595
|
success: z.ZodLiteral<true>;
|
|
717
596
|
message: z.ZodString;
|
|
718
597
|
data: z.ZodObject<{
|
|
719
|
-
|
|
598
|
+
success: z.ZodBoolean;
|
|
720
599
|
message: z.ZodString;
|
|
721
600
|
}, "strip", z.ZodTypeAny, {
|
|
722
601
|
message: string;
|
|
723
|
-
|
|
602
|
+
success: boolean;
|
|
724
603
|
}, {
|
|
725
604
|
message: string;
|
|
726
|
-
|
|
605
|
+
success: boolean;
|
|
727
606
|
}>;
|
|
728
607
|
}, "strip", z.ZodTypeAny, {
|
|
729
608
|
message: string;
|
|
730
609
|
success: true;
|
|
731
610
|
data: {
|
|
732
611
|
message: string;
|
|
733
|
-
|
|
612
|
+
success: boolean;
|
|
734
613
|
};
|
|
735
614
|
}, {
|
|
736
615
|
message: string;
|
|
737
616
|
success: true;
|
|
738
617
|
data: {
|
|
739
618
|
message: string;
|
|
740
|
-
|
|
619
|
+
success: boolean;
|
|
741
620
|
};
|
|
742
621
|
}>;
|
|
743
622
|
400: z.ZodObject<{
|
|
@@ -785,11 +664,11 @@ export declare const channelsContract: {
|
|
|
785
664
|
summary: "Add channels to subscription";
|
|
786
665
|
method: "POST";
|
|
787
666
|
body: z.ZodObject<{
|
|
788
|
-
|
|
667
|
+
channels: z.ZodArray<z.ZodString, "many">;
|
|
789
668
|
}, "strip", z.ZodTypeAny, {
|
|
790
|
-
|
|
669
|
+
channels: string[];
|
|
791
670
|
}, {
|
|
792
|
-
|
|
671
|
+
channels: string[];
|
|
793
672
|
}>;
|
|
794
673
|
path: "/api/channels/add";
|
|
795
674
|
responses: {
|
|
@@ -797,28 +676,28 @@ export declare const channelsContract: {
|
|
|
797
676
|
success: z.ZodLiteral<true>;
|
|
798
677
|
message: z.ZodString;
|
|
799
678
|
data: z.ZodObject<{
|
|
800
|
-
|
|
679
|
+
success: z.ZodBoolean;
|
|
801
680
|
message: z.ZodString;
|
|
802
681
|
}, "strip", z.ZodTypeAny, {
|
|
803
682
|
message: string;
|
|
804
|
-
|
|
683
|
+
success: boolean;
|
|
805
684
|
}, {
|
|
806
685
|
message: string;
|
|
807
|
-
|
|
686
|
+
success: boolean;
|
|
808
687
|
}>;
|
|
809
688
|
}, "strip", z.ZodTypeAny, {
|
|
810
689
|
message: string;
|
|
811
690
|
success: true;
|
|
812
691
|
data: {
|
|
813
692
|
message: string;
|
|
814
|
-
|
|
693
|
+
success: boolean;
|
|
815
694
|
};
|
|
816
695
|
}, {
|
|
817
696
|
message: string;
|
|
818
697
|
success: true;
|
|
819
698
|
data: {
|
|
820
699
|
message: string;
|
|
821
|
-
|
|
700
|
+
success: boolean;
|
|
822
701
|
};
|
|
823
702
|
}>;
|
|
824
703
|
400: z.ZodObject<{
|
|
@@ -866,11 +745,11 @@ export declare const channelsContract: {
|
|
|
866
745
|
summary: "Unsubscribe from channel";
|
|
867
746
|
method: "POST";
|
|
868
747
|
body: z.ZodObject<{
|
|
869
|
-
|
|
748
|
+
channel: z.ZodString;
|
|
870
749
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
-
|
|
750
|
+
channel: string;
|
|
872
751
|
}, {
|
|
873
|
-
|
|
752
|
+
channel: string;
|
|
874
753
|
}>;
|
|
875
754
|
path: "/api/channels/unsubscribe";
|
|
876
755
|
responses: {
|
|
@@ -878,28 +757,33 @@ export declare const channelsContract: {
|
|
|
878
757
|
success: z.ZodLiteral<true>;
|
|
879
758
|
message: z.ZodString;
|
|
880
759
|
data: z.ZodObject<{
|
|
881
|
-
|
|
882
|
-
|
|
760
|
+
success: z.ZodBoolean;
|
|
761
|
+
totalChannels: z.ZodNumber;
|
|
762
|
+
swapsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
883
763
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
|
|
885
|
-
|
|
764
|
+
success: boolean;
|
|
765
|
+
totalChannels: number;
|
|
766
|
+
swapsRemaining?: number | undefined;
|
|
886
767
|
}, {
|
|
887
|
-
|
|
888
|
-
|
|
768
|
+
success: boolean;
|
|
769
|
+
totalChannels: number;
|
|
770
|
+
swapsRemaining?: number | undefined;
|
|
889
771
|
}>;
|
|
890
772
|
}, "strip", z.ZodTypeAny, {
|
|
891
773
|
message: string;
|
|
892
774
|
success: true;
|
|
893
775
|
data: {
|
|
894
|
-
|
|
895
|
-
|
|
776
|
+
success: boolean;
|
|
777
|
+
totalChannels: number;
|
|
778
|
+
swapsRemaining?: number | undefined;
|
|
896
779
|
};
|
|
897
780
|
}, {
|
|
898
781
|
message: string;
|
|
899
782
|
success: true;
|
|
900
783
|
data: {
|
|
901
|
-
|
|
902
|
-
|
|
784
|
+
success: boolean;
|
|
785
|
+
totalChannels: number;
|
|
786
|
+
swapsRemaining?: number | undefined;
|
|
903
787
|
};
|
|
904
788
|
}>;
|
|
905
789
|
400: z.ZodObject<{
|