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.
- package/dist/contracts/channels.contract.d.ts +214 -370
- package/dist/contracts/channels.contract.d.ts.map +1 -1
- package/dist/contracts/channels.contract.js +30 -13
- package/dist/contracts/stats.contract.d.ts +4 -4
- package/dist/index.d.ts +218 -374
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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>;
|
|
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
|
-
|
|
461
|
-
isRecommended: boolean;
|
|
369
|
+
isJoined: boolean;
|
|
462
370
|
description?: string | undefined;
|
|
463
|
-
|
|
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
|
-
|
|
473
|
-
isRecommended: boolean;
|
|
375
|
+
isJoined: boolean;
|
|
474
376
|
description?: string | undefined;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
lastScrapedAt?: string | undefined;
|
|
479
|
-
}>, "many">>;
|
|
377
|
+
memberCount?: number | undefined;
|
|
378
|
+
}>, "many">;
|
|
379
|
+
missedJobsCount: z.ZodNumber;
|
|
480
380
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
|
|
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
|
-
|
|
491
|
-
isRecommended: boolean;
|
|
384
|
+
isJoined: boolean;
|
|
492
385
|
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;
|
|
386
|
+
memberCount?: number | undefined;
|
|
502
387
|
}[];
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
388
|
+
missedJobsCount: number;
|
|
389
|
+
}, {
|
|
390
|
+
channels: {
|
|
506
391
|
username: string;
|
|
507
392
|
title: string;
|
|
508
|
-
|
|
509
|
-
isRecommended: boolean;
|
|
393
|
+
isJoined: boolean;
|
|
510
394
|
description?: string | undefined;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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
|
-
|
|
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
|
-
|
|
531
|
-
isRecommended: boolean;
|
|
406
|
+
isJoined: boolean;
|
|
532
407
|
description?: string | undefined;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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
|
-
|
|
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
|
-
|
|
553
|
-
isRecommended: boolean;
|
|
419
|
+
isJoined: boolean;
|
|
554
420
|
description?: string | undefined;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
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
|
-
|
|
611
|
-
|
|
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
|
-
|
|
623
|
-
isRecommended: boolean;
|
|
478
|
+
isJoined: boolean;
|
|
624
479
|
description?: string | undefined;
|
|
625
|
-
|
|
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
|
-
|
|
635
|
-
isRecommended: boolean;
|
|
484
|
+
isJoined: boolean;
|
|
636
485
|
description?: string | undefined;
|
|
637
|
-
|
|
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
|
-
|
|
651
|
-
isRecommended: boolean;
|
|
494
|
+
isJoined: boolean;
|
|
652
495
|
description?: string | undefined;
|
|
653
|
-
|
|
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
|
-
|
|
667
|
-
isRecommended: boolean;
|
|
504
|
+
isJoined: boolean;
|
|
668
505
|
description?: string | undefined;
|
|
669
|
-
|
|
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
|
-
|
|
541
|
+
channels: z.ZodArray<z.ZodString, "many">;
|
|
708
542
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
-
|
|
543
|
+
channels: string[];
|
|
710
544
|
}, {
|
|
711
|
-
|
|
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
|
-
|
|
553
|
+
success: z.ZodBoolean;
|
|
720
554
|
message: z.ZodString;
|
|
721
555
|
}, "strip", z.ZodTypeAny, {
|
|
722
556
|
message: string;
|
|
723
|
-
|
|
557
|
+
success: boolean;
|
|
724
558
|
}, {
|
|
725
559
|
message: string;
|
|
726
|
-
|
|
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
|
-
|
|
567
|
+
success: boolean;
|
|
734
568
|
};
|
|
735
569
|
}, {
|
|
736
570
|
message: string;
|
|
737
571
|
success: true;
|
|
738
572
|
data: {
|
|
739
573
|
message: string;
|
|
740
|
-
|
|
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
|
-
|
|
622
|
+
channels: z.ZodArray<z.ZodString, "many">;
|
|
789
623
|
}, "strip", z.ZodTypeAny, {
|
|
790
|
-
|
|
624
|
+
channels: string[];
|
|
791
625
|
}, {
|
|
792
|
-
|
|
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
|
-
|
|
801
|
-
|
|
634
|
+
success: z.ZodBoolean;
|
|
635
|
+
totalChannels: z.ZodNumber;
|
|
636
|
+
swapsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
802
637
|
}, "strip", z.ZodTypeAny, {
|
|
803
|
-
|
|
804
|
-
|
|
638
|
+
success: boolean;
|
|
639
|
+
totalChannels: number;
|
|
640
|
+
swapsRemaining?: number | undefined;
|
|
805
641
|
}, {
|
|
806
|
-
|
|
807
|
-
|
|
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
|
-
|
|
814
|
-
|
|
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
|
-
|
|
821
|
-
|
|
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
|
-
|
|
708
|
+
channel: z.ZodString;
|
|
870
709
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
-
|
|
710
|
+
channel: string;
|
|
872
711
|
}, {
|
|
873
|
-
|
|
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
|
-
|
|
882
|
-
|
|
720
|
+
success: z.ZodBoolean;
|
|
721
|
+
totalChannels: z.ZodNumber;
|
|
722
|
+
swapsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
883
723
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
|
|
885
|
-
|
|
724
|
+
success: boolean;
|
|
725
|
+
totalChannels: number;
|
|
726
|
+
swapsRemaining?: number | undefined;
|
|
886
727
|
}, {
|
|
887
|
-
|
|
888
|
-
|
|
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
|
-
|
|
895
|
-
|
|
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
|
-
|
|
902
|
-
|
|
744
|
+
success: boolean;
|
|
745
|
+
totalChannels: number;
|
|
746
|
+
swapsRemaining?: number | undefined;
|
|
903
747
|
};
|
|
904
748
|
}>;
|
|
905
749
|
400: z.ZodObject<{
|