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/index.d.ts CHANGED
@@ -958,109 +958,75 @@ export declare const apiContract: {
958
958
  200: z.ZodObject<{
959
959
  success: z.ZodLiteral<true>;
960
960
  message: z.ZodString;
961
- data: z.ZodObject<{
962
- channels: z.ZodArray<z.ZodObject<{
963
- id: z.ZodString;
964
- username: z.ZodString;
965
- title: z.ZodString;
966
- description: z.ZodOptional<z.ZodString>;
967
- category: z.ZodOptional<z.ZodString>;
968
- memberCount: z.ZodOptional<z.ZodString>;
969
- isActive: z.ZodBoolean;
970
- isRecommended: z.ZodBoolean;
971
- lastScrapedAt: z.ZodOptional<z.ZodString>;
972
- createdAt: z.ZodString;
973
- updatedAt: z.ZodOptional<z.ZodString>;
974
- }, "strip", z.ZodTypeAny, {
975
- id: string;
976
- createdAt: string;
977
- username: string;
978
- title: string;
979
- isActive: boolean;
980
- isRecommended: boolean;
981
- description?: string | undefined;
982
- updatedAt?: string | undefined;
983
- category?: string | undefined;
984
- memberCount?: string | undefined;
985
- lastScrapedAt?: string | undefined;
986
- }, {
987
- id: string;
988
- createdAt: string;
989
- username: string;
990
- title: string;
991
- isActive: boolean;
992
- isRecommended: boolean;
993
- description?: string | undefined;
994
- updatedAt?: string | undefined;
995
- category?: string | undefined;
996
- memberCount?: string | undefined;
997
- lastScrapedAt?: string | undefined;
998
- }>, "many">;
961
+ data: z.ZodArray<z.ZodObject<{
962
+ id: z.ZodString;
963
+ username: z.ZodString;
964
+ title: z.ZodString;
965
+ description: z.ZodOptional<z.ZodString>;
966
+ category: z.ZodOptional<z.ZodString>;
967
+ memberCount: z.ZodOptional<z.ZodString>;
968
+ isActive: z.ZodBoolean;
969
+ isRecommended: z.ZodBoolean;
970
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
971
+ createdAt: z.ZodString;
972
+ updatedAt: z.ZodOptional<z.ZodString>;
999
973
  }, "strip", z.ZodTypeAny, {
1000
- channels: {
1001
- id: string;
1002
- createdAt: string;
1003
- username: string;
1004
- title: string;
1005
- isActive: boolean;
1006
- isRecommended: boolean;
1007
- description?: string | undefined;
1008
- updatedAt?: string | undefined;
1009
- category?: string | undefined;
1010
- memberCount?: string | undefined;
1011
- lastScrapedAt?: string | undefined;
1012
- }[];
974
+ id: string;
975
+ createdAt: string;
976
+ username: string;
977
+ title: string;
978
+ isActive: boolean;
979
+ isRecommended: boolean;
980
+ description?: string | undefined;
981
+ updatedAt?: string | undefined;
982
+ category?: string | undefined;
983
+ memberCount?: string | undefined;
984
+ lastScrapedAt?: string | undefined;
1013
985
  }, {
1014
- channels: {
1015
- id: string;
1016
- createdAt: string;
1017
- username: string;
1018
- title: string;
1019
- isActive: boolean;
1020
- isRecommended: boolean;
1021
- description?: string | undefined;
1022
- updatedAt?: string | undefined;
1023
- category?: string | undefined;
1024
- memberCount?: string | undefined;
1025
- lastScrapedAt?: string | undefined;
1026
- }[];
1027
- }>;
986
+ id: string;
987
+ createdAt: string;
988
+ username: string;
989
+ title: string;
990
+ isActive: boolean;
991
+ isRecommended: boolean;
992
+ description?: string | undefined;
993
+ updatedAt?: string | undefined;
994
+ category?: string | undefined;
995
+ memberCount?: string | undefined;
996
+ lastScrapedAt?: string | undefined;
997
+ }>, "many">;
1028
998
  }, "strip", z.ZodTypeAny, {
1029
999
  message: string;
1030
1000
  success: true;
1031
1001
  data: {
1032
- channels: {
1033
- id: string;
1034
- createdAt: string;
1035
- username: string;
1036
- title: string;
1037
- isActive: boolean;
1038
- isRecommended: boolean;
1039
- description?: string | undefined;
1040
- updatedAt?: string | undefined;
1041
- category?: string | undefined;
1042
- memberCount?: string | undefined;
1043
- lastScrapedAt?: string | undefined;
1044
- }[];
1045
- };
1002
+ id: string;
1003
+ createdAt: string;
1004
+ username: string;
1005
+ title: string;
1006
+ isActive: boolean;
1007
+ isRecommended: boolean;
1008
+ description?: string | undefined;
1009
+ updatedAt?: string | undefined;
1010
+ category?: string | undefined;
1011
+ memberCount?: string | undefined;
1012
+ lastScrapedAt?: string | undefined;
1013
+ }[];
1046
1014
  }, {
1047
1015
  message: string;
1048
1016
  success: true;
1049
1017
  data: {
1050
- channels: {
1051
- id: string;
1052
- createdAt: string;
1053
- username: string;
1054
- title: string;
1055
- isActive: boolean;
1056
- isRecommended: boolean;
1057
- description?: string | undefined;
1058
- updatedAt?: string | undefined;
1059
- category?: string | undefined;
1060
- memberCount?: string | undefined;
1061
- lastScrapedAt?: string | undefined;
1062
- }[];
1063
- };
1018
+ id: string;
1019
+ createdAt: string;
1020
+ username: string;
1021
+ title: string;
1022
+ isActive: boolean;
1023
+ isRecommended: boolean;
1024
+ description?: string | undefined;
1025
+ updatedAt?: string | undefined;
1026
+ category?: string | undefined;
1027
+ memberCount?: string | undefined;
1028
+ lastScrapedAt?: string | undefined;
1029
+ }[];
1064
1030
  }>;
1065
1031
  401: z.ZodObject<{
1066
1032
  success: z.ZodLiteral<false>;
@@ -1098,109 +1064,75 @@ export declare const apiContract: {
1098
1064
  200: z.ZodObject<{
1099
1065
  success: z.ZodLiteral<true>;
1100
1066
  message: z.ZodString;
1101
- data: z.ZodObject<{
1102
- channels: z.ZodArray<z.ZodObject<{
1103
- id: z.ZodString;
1104
- username: z.ZodString;
1105
- title: z.ZodString;
1106
- description: z.ZodOptional<z.ZodString>;
1107
- category: z.ZodOptional<z.ZodString>;
1108
- memberCount: z.ZodOptional<z.ZodString>;
1109
- isActive: z.ZodBoolean;
1110
- isRecommended: z.ZodBoolean;
1111
- lastScrapedAt: z.ZodOptional<z.ZodString>;
1112
- createdAt: z.ZodString;
1113
- updatedAt: z.ZodOptional<z.ZodString>;
1114
- }, "strip", z.ZodTypeAny, {
1115
- id: string;
1116
- createdAt: string;
1117
- username: string;
1118
- title: string;
1119
- isActive: boolean;
1120
- isRecommended: boolean;
1121
- description?: string | undefined;
1122
- updatedAt?: string | undefined;
1123
- category?: string | undefined;
1124
- memberCount?: string | undefined;
1125
- lastScrapedAt?: string | undefined;
1126
- }, {
1127
- id: string;
1128
- createdAt: string;
1129
- username: string;
1130
- title: string;
1131
- isActive: boolean;
1132
- isRecommended: boolean;
1133
- description?: string | undefined;
1134
- updatedAt?: string | undefined;
1135
- category?: string | undefined;
1136
- memberCount?: string | undefined;
1137
- lastScrapedAt?: string | undefined;
1138
- }>, "many">;
1067
+ data: z.ZodArray<z.ZodObject<{
1068
+ id: z.ZodString;
1069
+ username: z.ZodString;
1070
+ title: z.ZodString;
1071
+ description: z.ZodOptional<z.ZodString>;
1072
+ category: z.ZodOptional<z.ZodString>;
1073
+ memberCount: z.ZodOptional<z.ZodString>;
1074
+ isActive: z.ZodBoolean;
1075
+ isRecommended: z.ZodBoolean;
1076
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
1077
+ createdAt: z.ZodString;
1078
+ updatedAt: z.ZodOptional<z.ZodString>;
1139
1079
  }, "strip", z.ZodTypeAny, {
1140
- channels: {
1141
- id: string;
1142
- createdAt: string;
1143
- username: string;
1144
- title: string;
1145
- isActive: boolean;
1146
- isRecommended: boolean;
1147
- description?: string | undefined;
1148
- updatedAt?: string | undefined;
1149
- category?: string | undefined;
1150
- memberCount?: string | undefined;
1151
- lastScrapedAt?: string | undefined;
1152
- }[];
1080
+ id: string;
1081
+ createdAt: string;
1082
+ username: string;
1083
+ title: string;
1084
+ isActive: boolean;
1085
+ isRecommended: boolean;
1086
+ description?: string | undefined;
1087
+ updatedAt?: string | undefined;
1088
+ category?: string | undefined;
1089
+ memberCount?: string | undefined;
1090
+ lastScrapedAt?: string | undefined;
1153
1091
  }, {
1154
- channels: {
1155
- id: string;
1156
- createdAt: string;
1157
- username: string;
1158
- title: string;
1159
- isActive: boolean;
1160
- isRecommended: boolean;
1161
- description?: string | undefined;
1162
- updatedAt?: string | undefined;
1163
- category?: string | undefined;
1164
- memberCount?: string | undefined;
1165
- lastScrapedAt?: string | undefined;
1166
- }[];
1167
- }>;
1092
+ id: string;
1093
+ createdAt: string;
1094
+ username: string;
1095
+ title: string;
1096
+ isActive: boolean;
1097
+ isRecommended: boolean;
1098
+ description?: string | undefined;
1099
+ updatedAt?: string | undefined;
1100
+ category?: string | undefined;
1101
+ memberCount?: string | undefined;
1102
+ lastScrapedAt?: string | undefined;
1103
+ }>, "many">;
1168
1104
  }, "strip", z.ZodTypeAny, {
1169
1105
  message: string;
1170
1106
  success: true;
1171
1107
  data: {
1172
- channels: {
1173
- id: string;
1174
- createdAt: string;
1175
- username: string;
1176
- title: string;
1177
- isActive: boolean;
1178
- isRecommended: boolean;
1179
- description?: string | undefined;
1180
- updatedAt?: string | undefined;
1181
- category?: string | undefined;
1182
- memberCount?: string | undefined;
1183
- lastScrapedAt?: string | undefined;
1184
- }[];
1185
- };
1108
+ id: string;
1109
+ createdAt: string;
1110
+ username: string;
1111
+ title: string;
1112
+ isActive: boolean;
1113
+ isRecommended: boolean;
1114
+ description?: string | undefined;
1115
+ updatedAt?: string | undefined;
1116
+ category?: string | undefined;
1117
+ memberCount?: string | undefined;
1118
+ lastScrapedAt?: string | undefined;
1119
+ }[];
1186
1120
  }, {
1187
1121
  message: string;
1188
1122
  success: true;
1189
1123
  data: {
1190
- channels: {
1191
- id: string;
1192
- createdAt: string;
1193
- username: string;
1194
- title: string;
1195
- isActive: boolean;
1196
- isRecommended: boolean;
1197
- description?: string | undefined;
1198
- updatedAt?: string | undefined;
1199
- category?: string | undefined;
1200
- memberCount?: string | undefined;
1201
- lastScrapedAt?: string | undefined;
1202
- }[];
1203
- };
1124
+ id: string;
1125
+ createdAt: string;
1126
+ username: string;
1127
+ title: string;
1128
+ isActive: boolean;
1129
+ isRecommended: boolean;
1130
+ description?: string | undefined;
1131
+ updatedAt?: string | undefined;
1132
+ category?: string | undefined;
1133
+ memberCount?: string | undefined;
1134
+ lastScrapedAt?: string | undefined;
1135
+ }[];
1204
1136
  }>;
1205
1137
  401: z.ZodObject<{
1206
1138
  success: z.ZodLiteral<false>;
@@ -1331,30 +1263,15 @@ export declare const apiContract: {
1331
1263
  200: z.ZodObject<{
1332
1264
  success: z.ZodLiteral<true>;
1333
1265
  message: z.ZodString;
1334
- data: z.ZodArray<z.ZodObject<{
1335
- name: z.ZodString;
1336
- count: z.ZodNumber;
1337
- }, "strip", z.ZodTypeAny, {
1338
- name: string;
1339
- count: number;
1340
- }, {
1341
- name: string;
1342
- count: number;
1343
- }>, "many">;
1266
+ data: z.ZodArray<z.ZodString, "many">;
1344
1267
  }, "strip", z.ZodTypeAny, {
1345
1268
  message: string;
1346
1269
  success: true;
1347
- data: {
1348
- name: string;
1349
- count: number;
1350
- }[];
1270
+ data: string[];
1351
1271
  }, {
1352
1272
  message: string;
1353
1273
  success: true;
1354
- data: {
1355
- name: string;
1356
- count: number;
1357
- }[];
1274
+ data: string[];
1358
1275
  }>;
1359
1276
  500: z.ZodObject<{
1360
1277
  success: z.ZodLiteral<false>;
@@ -1372,6 +1289,16 @@ export declare const apiContract: {
1372
1289
  };
1373
1290
  };
1374
1291
  exploreChannels: {
1292
+ query: z.ZodObject<{
1293
+ searchQuery: z.ZodOptional<z.ZodString>;
1294
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ categories?: string[] | undefined;
1297
+ searchQuery?: string | undefined;
1298
+ }, {
1299
+ categories?: string[] | undefined;
1300
+ searchQuery?: string | undefined;
1301
+ }>;
1375
1302
  summary: "Get explore channels modal data";
1376
1303
  method: "GET";
1377
1304
  path: "/api/channels/explore";
@@ -1380,133 +1307,70 @@ export declare const apiContract: {
1380
1307
  success: z.ZodLiteral<true>;
1381
1308
  message: z.ZodString;
1382
1309
  data: z.ZodObject<{
1383
- categories: z.ZodArray<z.ZodObject<{
1384
- name: z.ZodString;
1385
- count: z.ZodNumber;
1386
- }, "strip", z.ZodTypeAny, {
1387
- name: string;
1388
- count: number;
1389
- }, {
1390
- name: string;
1391
- count: number;
1392
- }>, "many">;
1393
- channelsByCategory: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1394
- id: z.ZodString;
1310
+ channels: z.ZodArray<z.ZodObject<{
1395
1311
  username: z.ZodString;
1396
1312
  title: z.ZodString;
1397
1313
  description: z.ZodOptional<z.ZodString>;
1398
- category: z.ZodOptional<z.ZodString>;
1399
- memberCount: z.ZodOptional<z.ZodString>;
1400
- isActive: z.ZodBoolean;
1401
- isRecommended: z.ZodBoolean;
1402
- lastScrapedAt: z.ZodOptional<z.ZodString>;
1403
- createdAt: z.ZodString;
1404
- updatedAt: z.ZodOptional<z.ZodString>;
1314
+ memberCount: z.ZodOptional<z.ZodNumber>;
1315
+ isJoined: z.ZodBoolean;
1405
1316
  }, "strip", z.ZodTypeAny, {
1406
- id: string;
1407
- createdAt: string;
1408
1317
  username: string;
1409
1318
  title: string;
1410
- isActive: boolean;
1411
- isRecommended: boolean;
1319
+ isJoined: boolean;
1412
1320
  description?: string | undefined;
1413
- updatedAt?: string | undefined;
1414
- category?: string | undefined;
1415
- memberCount?: string | undefined;
1416
- lastScrapedAt?: string | undefined;
1321
+ memberCount?: number | undefined;
1417
1322
  }, {
1418
- id: string;
1419
- createdAt: string;
1420
1323
  username: string;
1421
1324
  title: string;
1422
- isActive: boolean;
1423
- isRecommended: boolean;
1325
+ isJoined: boolean;
1424
1326
  description?: string | undefined;
1425
- updatedAt?: string | undefined;
1426
- category?: string | undefined;
1427
- memberCount?: string | undefined;
1428
- lastScrapedAt?: string | undefined;
1429
- }>, "many">>;
1327
+ memberCount?: number | undefined;
1328
+ }>, "many">;
1329
+ missedJobsCount: z.ZodNumber;
1430
1330
  }, "strip", z.ZodTypeAny, {
1431
- categories: {
1432
- name: string;
1433
- count: number;
1434
- }[];
1435
- channelsByCategory: Record<string, {
1436
- id: string;
1437
- createdAt: string;
1331
+ channels: {
1438
1332
  username: string;
1439
1333
  title: string;
1440
- isActive: boolean;
1441
- isRecommended: boolean;
1334
+ isJoined: boolean;
1442
1335
  description?: string | undefined;
1443
- updatedAt?: string | undefined;
1444
- category?: string | undefined;
1445
- memberCount?: string | undefined;
1446
- lastScrapedAt?: string | undefined;
1447
- }[]>;
1448
- }, {
1449
- categories: {
1450
- name: string;
1451
- count: number;
1336
+ memberCount?: number | undefined;
1452
1337
  }[];
1453
- channelsByCategory: Record<string, {
1454
- id: string;
1455
- createdAt: string;
1338
+ missedJobsCount: number;
1339
+ }, {
1340
+ channels: {
1456
1341
  username: string;
1457
1342
  title: string;
1458
- isActive: boolean;
1459
- isRecommended: boolean;
1343
+ isJoined: boolean;
1460
1344
  description?: string | undefined;
1461
- updatedAt?: string | undefined;
1462
- category?: string | undefined;
1463
- memberCount?: string | undefined;
1464
- lastScrapedAt?: string | undefined;
1465
- }[]>;
1345
+ memberCount?: number | undefined;
1346
+ }[];
1347
+ missedJobsCount: number;
1466
1348
  }>;
1467
1349
  }, "strip", z.ZodTypeAny, {
1468
1350
  message: string;
1469
1351
  success: true;
1470
1352
  data: {
1471
- categories: {
1472
- name: string;
1473
- count: number;
1474
- }[];
1475
- channelsByCategory: Record<string, {
1476
- id: string;
1477
- createdAt: string;
1353
+ channels: {
1478
1354
  username: string;
1479
1355
  title: string;
1480
- isActive: boolean;
1481
- isRecommended: boolean;
1356
+ isJoined: boolean;
1482
1357
  description?: string | undefined;
1483
- updatedAt?: string | undefined;
1484
- category?: string | undefined;
1485
- memberCount?: string | undefined;
1486
- lastScrapedAt?: string | undefined;
1487
- }[]>;
1358
+ memberCount?: number | undefined;
1359
+ }[];
1360
+ missedJobsCount: number;
1488
1361
  };
1489
1362
  }, {
1490
1363
  message: string;
1491
1364
  success: true;
1492
1365
  data: {
1493
- categories: {
1494
- name: string;
1495
- count: number;
1496
- }[];
1497
- channelsByCategory: Record<string, {
1498
- id: string;
1499
- createdAt: string;
1366
+ channels: {
1500
1367
  username: string;
1501
1368
  title: string;
1502
- isActive: boolean;
1503
- isRecommended: boolean;
1369
+ isJoined: boolean;
1504
1370
  description?: string | undefined;
1505
- updatedAt?: string | undefined;
1506
- category?: string | undefined;
1507
- memberCount?: string | undefined;
1508
- lastScrapedAt?: string | undefined;
1509
- }[]>;
1371
+ memberCount?: number | undefined;
1372
+ }[];
1373
+ missedJobsCount: number;
1510
1374
  };
1511
1375
  }>;
1512
1376
  401: z.ZodObject<{
@@ -1553,73 +1417,43 @@ export declare const apiContract: {
1553
1417
  success: z.ZodLiteral<true>;
1554
1418
  message: z.ZodString;
1555
1419
  data: z.ZodArray<z.ZodObject<{
1556
- id: z.ZodString;
1557
1420
  username: z.ZodString;
1558
1421
  title: z.ZodString;
1559
1422
  description: z.ZodOptional<z.ZodString>;
1560
- category: z.ZodOptional<z.ZodString>;
1561
- memberCount: z.ZodOptional<z.ZodString>;
1562
- isActive: z.ZodBoolean;
1563
- isRecommended: z.ZodBoolean;
1564
- lastScrapedAt: z.ZodOptional<z.ZodString>;
1565
- createdAt: z.ZodString;
1566
- updatedAt: z.ZodOptional<z.ZodString>;
1423
+ memberCount: z.ZodOptional<z.ZodNumber>;
1424
+ isJoined: z.ZodBoolean;
1567
1425
  }, "strip", z.ZodTypeAny, {
1568
- id: string;
1569
- createdAt: string;
1570
1426
  username: string;
1571
1427
  title: string;
1572
- isActive: boolean;
1573
- isRecommended: boolean;
1428
+ isJoined: boolean;
1574
1429
  description?: string | undefined;
1575
- updatedAt?: string | undefined;
1576
- category?: string | undefined;
1577
- memberCount?: string | undefined;
1578
- lastScrapedAt?: string | undefined;
1430
+ memberCount?: number | undefined;
1579
1431
  }, {
1580
- id: string;
1581
- createdAt: string;
1582
1432
  username: string;
1583
1433
  title: string;
1584
- isActive: boolean;
1585
- isRecommended: boolean;
1434
+ isJoined: boolean;
1586
1435
  description?: string | undefined;
1587
- updatedAt?: string | undefined;
1588
- category?: string | undefined;
1589
- memberCount?: string | undefined;
1590
- lastScrapedAt?: string | undefined;
1436
+ memberCount?: number | undefined;
1591
1437
  }>, "many">;
1592
1438
  }, "strip", z.ZodTypeAny, {
1593
1439
  message: string;
1594
1440
  success: true;
1595
1441
  data: {
1596
- id: string;
1597
- createdAt: string;
1598
1442
  username: string;
1599
1443
  title: string;
1600
- isActive: boolean;
1601
- isRecommended: boolean;
1444
+ isJoined: boolean;
1602
1445
  description?: string | undefined;
1603
- updatedAt?: string | undefined;
1604
- category?: string | undefined;
1605
- memberCount?: string | undefined;
1606
- lastScrapedAt?: string | undefined;
1446
+ memberCount?: number | undefined;
1607
1447
  }[];
1608
1448
  }, {
1609
1449
  message: string;
1610
1450
  success: true;
1611
1451
  data: {
1612
- id: string;
1613
- createdAt: string;
1614
1452
  username: string;
1615
1453
  title: string;
1616
- isActive: boolean;
1617
- isRecommended: boolean;
1454
+ isJoined: boolean;
1618
1455
  description?: string | undefined;
1619
- updatedAt?: string | undefined;
1620
- category?: string | undefined;
1621
- memberCount?: string | undefined;
1622
- lastScrapedAt?: string | undefined;
1456
+ memberCount?: number | undefined;
1623
1457
  }[];
1624
1458
  }>;
1625
1459
  400: z.ZodObject<{
@@ -1654,11 +1488,11 @@ export declare const apiContract: {
1654
1488
  summary: "Subscribe to channels (replaces existing)";
1655
1489
  method: "POST";
1656
1490
  body: z.ZodObject<{
1657
- channelUsernames: z.ZodArray<z.ZodString, "many">;
1491
+ channels: z.ZodArray<z.ZodString, "many">;
1658
1492
  }, "strip", z.ZodTypeAny, {
1659
- channelUsernames: string[];
1493
+ channels: string[];
1660
1494
  }, {
1661
- channelUsernames: string[];
1495
+ channels: string[];
1662
1496
  }>;
1663
1497
  path: "/api/channels/subscribe";
1664
1498
  responses: {
@@ -1666,28 +1500,28 @@ export declare const apiContract: {
1666
1500
  success: z.ZodLiteral<true>;
1667
1501
  message: z.ZodString;
1668
1502
  data: z.ZodObject<{
1669
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
1503
+ success: z.ZodBoolean;
1670
1504
  message: z.ZodString;
1671
1505
  }, "strip", z.ZodTypeAny, {
1672
1506
  message: string;
1673
- subscribedChannels: string[];
1507
+ success: boolean;
1674
1508
  }, {
1675
1509
  message: string;
1676
- subscribedChannels: string[];
1510
+ success: boolean;
1677
1511
  }>;
1678
1512
  }, "strip", z.ZodTypeAny, {
1679
1513
  message: string;
1680
1514
  success: true;
1681
1515
  data: {
1682
1516
  message: string;
1683
- subscribedChannels: string[];
1517
+ success: boolean;
1684
1518
  };
1685
1519
  }, {
1686
1520
  message: string;
1687
1521
  success: true;
1688
1522
  data: {
1689
1523
  message: string;
1690
- subscribedChannels: string[];
1524
+ success: boolean;
1691
1525
  };
1692
1526
  }>;
1693
1527
  400: z.ZodObject<{
@@ -1735,11 +1569,11 @@ export declare const apiContract: {
1735
1569
  summary: "Add channels to subscription";
1736
1570
  method: "POST";
1737
1571
  body: z.ZodObject<{
1738
- channelUsernames: z.ZodArray<z.ZodString, "many">;
1572
+ channels: z.ZodArray<z.ZodString, "many">;
1739
1573
  }, "strip", z.ZodTypeAny, {
1740
- channelUsernames: string[];
1574
+ channels: string[];
1741
1575
  }, {
1742
- channelUsernames: string[];
1576
+ channels: string[];
1743
1577
  }>;
1744
1578
  path: "/api/channels/add";
1745
1579
  responses: {
@@ -1747,28 +1581,33 @@ export declare const apiContract: {
1747
1581
  success: z.ZodLiteral<true>;
1748
1582
  message: z.ZodString;
1749
1583
  data: z.ZodObject<{
1750
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
1751
- message: z.ZodString;
1584
+ success: z.ZodBoolean;
1585
+ totalChannels: z.ZodNumber;
1586
+ swapsRemaining: z.ZodOptional<z.ZodNumber>;
1752
1587
  }, "strip", z.ZodTypeAny, {
1753
- message: string;
1754
- subscribedChannels: string[];
1588
+ success: boolean;
1589
+ totalChannels: number;
1590
+ swapsRemaining?: number | undefined;
1755
1591
  }, {
1756
- message: string;
1757
- subscribedChannels: string[];
1592
+ success: boolean;
1593
+ totalChannels: number;
1594
+ swapsRemaining?: number | undefined;
1758
1595
  }>;
1759
1596
  }, "strip", z.ZodTypeAny, {
1760
1597
  message: string;
1761
1598
  success: true;
1762
1599
  data: {
1763
- message: string;
1764
- subscribedChannels: string[];
1600
+ success: boolean;
1601
+ totalChannels: number;
1602
+ swapsRemaining?: number | undefined;
1765
1603
  };
1766
1604
  }, {
1767
1605
  message: string;
1768
1606
  success: true;
1769
1607
  data: {
1770
- message: string;
1771
- subscribedChannels: string[];
1608
+ success: boolean;
1609
+ totalChannels: number;
1610
+ swapsRemaining?: number | undefined;
1772
1611
  };
1773
1612
  }>;
1774
1613
  400: z.ZodObject<{
@@ -1816,11 +1655,11 @@ export declare const apiContract: {
1816
1655
  summary: "Unsubscribe from channel";
1817
1656
  method: "POST";
1818
1657
  body: z.ZodObject<{
1819
- channelUsername: z.ZodString;
1658
+ channel: z.ZodString;
1820
1659
  }, "strip", z.ZodTypeAny, {
1821
- channelUsername: string;
1660
+ channel: string;
1822
1661
  }, {
1823
- channelUsername: string;
1662
+ channel: string;
1824
1663
  }>;
1825
1664
  path: "/api/channels/unsubscribe";
1826
1665
  responses: {
@@ -1828,28 +1667,33 @@ export declare const apiContract: {
1828
1667
  success: z.ZodLiteral<true>;
1829
1668
  message: z.ZodString;
1830
1669
  data: z.ZodObject<{
1831
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
1832
- message: z.ZodString;
1670
+ success: z.ZodBoolean;
1671
+ totalChannels: z.ZodNumber;
1672
+ swapsRemaining: z.ZodOptional<z.ZodNumber>;
1833
1673
  }, "strip", z.ZodTypeAny, {
1834
- message: string;
1835
- subscribedChannels: string[];
1674
+ success: boolean;
1675
+ totalChannels: number;
1676
+ swapsRemaining?: number | undefined;
1836
1677
  }, {
1837
- message: string;
1838
- subscribedChannels: string[];
1678
+ success: boolean;
1679
+ totalChannels: number;
1680
+ swapsRemaining?: number | undefined;
1839
1681
  }>;
1840
1682
  }, "strip", z.ZodTypeAny, {
1841
1683
  message: string;
1842
1684
  success: true;
1843
1685
  data: {
1844
- message: string;
1845
- subscribedChannels: string[];
1686
+ success: boolean;
1687
+ totalChannels: number;
1688
+ swapsRemaining?: number | undefined;
1846
1689
  };
1847
1690
  }, {
1848
1691
  message: string;
1849
1692
  success: true;
1850
1693
  data: {
1851
- message: string;
1852
- subscribedChannels: string[];
1694
+ success: boolean;
1695
+ totalChannels: number;
1696
+ swapsRemaining?: number | undefined;
1853
1697
  };
1854
1698
  }>;
1855
1699
  400: z.ZodObject<{
@@ -3223,14 +3067,14 @@ export declare const apiContract: {
3223
3067
  activeUsers: z.ZodNumber;
3224
3068
  jobsLast24h: z.ZodNumber;
3225
3069
  }, "strip", z.ZodTypeAny, {
3226
- totalJobs: number;
3227
3070
  totalChannels: number;
3071
+ totalJobs: number;
3228
3072
  totalUsers: number;
3229
3073
  activeUsers: number;
3230
3074
  jobsLast24h: number;
3231
3075
  }, {
3232
- totalJobs: number;
3233
3076
  totalChannels: number;
3077
+ totalJobs: number;
3234
3078
  totalUsers: number;
3235
3079
  activeUsers: number;
3236
3080
  jobsLast24h: number;
@@ -3239,8 +3083,8 @@ export declare const apiContract: {
3239
3083
  message: string;
3240
3084
  success: true;
3241
3085
  data: {
3242
- totalJobs: number;
3243
3086
  totalChannels: number;
3087
+ totalJobs: number;
3244
3088
  totalUsers: number;
3245
3089
  activeUsers: number;
3246
3090
  jobsLast24h: number;
@@ -3249,8 +3093,8 @@ export declare const apiContract: {
3249
3093
  message: string;
3250
3094
  success: true;
3251
3095
  data: {
3252
- totalJobs: number;
3253
3096
  totalChannels: number;
3097
+ totalJobs: number;
3254
3098
  totalUsers: number;
3255
3099
  activeUsers: number;
3256
3100
  jobsLast24h: number;