@framebreak/types 0.1.13 → 0.1.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 +988 -107
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import * as zod from 'zod';
|
|
|
4
4
|
import * as _orpc_contract from '@orpc/contract';
|
|
5
5
|
import { LoggerContext } from '@orpc/experimental-pino';
|
|
6
6
|
|
|
7
|
+
type InsiderApplicationStatus = "pending" | "approved" | "rejected";
|
|
8
|
+
|
|
7
9
|
interface CommentAuthor {
|
|
8
10
|
id: string;
|
|
9
11
|
name: string;
|
|
@@ -109,6 +111,7 @@ declare const v1Router: {
|
|
|
109
111
|
token: string;
|
|
110
112
|
ipAddress?: string | null | undefined | undefined;
|
|
111
113
|
userAgent?: string | null | undefined | undefined;
|
|
114
|
+
impersonatedBy?: string | null | undefined;
|
|
112
115
|
};
|
|
113
116
|
user: {
|
|
114
117
|
id: string;
|
|
@@ -123,6 +126,10 @@ declare const v1Router: {
|
|
|
123
126
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
124
127
|
linkedinId?: string | null | undefined;
|
|
125
128
|
linkedinName?: string | null | undefined;
|
|
129
|
+
banned: boolean | null | undefined;
|
|
130
|
+
role?: string | null | undefined;
|
|
131
|
+
banReason?: string | null | undefined;
|
|
132
|
+
banExpires?: Date | null | undefined;
|
|
126
133
|
username?: string | null | undefined;
|
|
127
134
|
displayUsername?: string | null | undefined;
|
|
128
135
|
};
|
|
@@ -173,6 +180,7 @@ declare const v1Router: {
|
|
|
173
180
|
token: string;
|
|
174
181
|
ipAddress?: string | null | undefined | undefined;
|
|
175
182
|
userAgent?: string | null | undefined | undefined;
|
|
183
|
+
impersonatedBy?: string | null | undefined;
|
|
176
184
|
};
|
|
177
185
|
user: {
|
|
178
186
|
id: string;
|
|
@@ -187,6 +195,10 @@ declare const v1Router: {
|
|
|
187
195
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
188
196
|
linkedinId?: string | null | undefined;
|
|
189
197
|
linkedinName?: string | null | undefined;
|
|
198
|
+
banned: boolean | null | undefined;
|
|
199
|
+
role?: string | null | undefined;
|
|
200
|
+
banReason?: string | null | undefined;
|
|
201
|
+
banExpires?: Date | null | undefined;
|
|
190
202
|
username?: string | null | undefined;
|
|
191
203
|
displayUsername?: string | null | undefined;
|
|
192
204
|
};
|
|
@@ -237,6 +249,7 @@ declare const v1Router: {
|
|
|
237
249
|
token: string;
|
|
238
250
|
ipAddress?: string | null | undefined | undefined;
|
|
239
251
|
userAgent?: string | null | undefined | undefined;
|
|
252
|
+
impersonatedBy?: string | null | undefined;
|
|
240
253
|
};
|
|
241
254
|
user: {
|
|
242
255
|
id: string;
|
|
@@ -251,6 +264,10 @@ declare const v1Router: {
|
|
|
251
264
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
252
265
|
linkedinId?: string | null | undefined;
|
|
253
266
|
linkedinName?: string | null | undefined;
|
|
267
|
+
banned: boolean | null | undefined;
|
|
268
|
+
role?: string | null | undefined;
|
|
269
|
+
banReason?: string | null | undefined;
|
|
270
|
+
banExpires?: Date | null | undefined;
|
|
254
271
|
username?: string | null | undefined;
|
|
255
272
|
displayUsername?: string | null | undefined;
|
|
256
273
|
};
|
|
@@ -299,6 +316,7 @@ declare const v1Router: {
|
|
|
299
316
|
token: string;
|
|
300
317
|
ipAddress?: string | null | undefined | undefined;
|
|
301
318
|
userAgent?: string | null | undefined | undefined;
|
|
319
|
+
impersonatedBy?: string | null | undefined;
|
|
302
320
|
};
|
|
303
321
|
user: {
|
|
304
322
|
id: string;
|
|
@@ -313,6 +331,10 @@ declare const v1Router: {
|
|
|
313
331
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
314
332
|
linkedinId?: string | null | undefined;
|
|
315
333
|
linkedinName?: string | null | undefined;
|
|
334
|
+
banned: boolean | null | undefined;
|
|
335
|
+
role?: string | null | undefined;
|
|
336
|
+
banReason?: string | null | undefined;
|
|
337
|
+
banExpires?: Date | null | undefined;
|
|
316
338
|
username?: string | null | undefined;
|
|
317
339
|
displayUsername?: string | null | undefined;
|
|
318
340
|
};
|
|
@@ -369,6 +391,7 @@ declare const v1Router: {
|
|
|
369
391
|
token: string;
|
|
370
392
|
ipAddress?: string | null | undefined | undefined;
|
|
371
393
|
userAgent?: string | null | undefined | undefined;
|
|
394
|
+
impersonatedBy?: string | null | undefined;
|
|
372
395
|
};
|
|
373
396
|
user: {
|
|
374
397
|
id: string;
|
|
@@ -383,6 +406,10 @@ declare const v1Router: {
|
|
|
383
406
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
384
407
|
linkedinId?: string | null | undefined;
|
|
385
408
|
linkedinName?: string | null | undefined;
|
|
409
|
+
banned: boolean | null | undefined;
|
|
410
|
+
role?: string | null | undefined;
|
|
411
|
+
banReason?: string | null | undefined;
|
|
412
|
+
banExpires?: Date | null | undefined;
|
|
386
413
|
username?: string | null | undefined;
|
|
387
414
|
displayUsername?: string | null | undefined;
|
|
388
415
|
};
|
|
@@ -431,6 +458,7 @@ declare const v1Router: {
|
|
|
431
458
|
token: string;
|
|
432
459
|
ipAddress?: string | null | undefined | undefined;
|
|
433
460
|
userAgent?: string | null | undefined | undefined;
|
|
461
|
+
impersonatedBy?: string | null | undefined;
|
|
434
462
|
};
|
|
435
463
|
user: {
|
|
436
464
|
id: string;
|
|
@@ -445,6 +473,10 @@ declare const v1Router: {
|
|
|
445
473
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
446
474
|
linkedinId?: string | null | undefined;
|
|
447
475
|
linkedinName?: string | null | undefined;
|
|
476
|
+
banned: boolean | null | undefined;
|
|
477
|
+
role?: string | null | undefined;
|
|
478
|
+
banReason?: string | null | undefined;
|
|
479
|
+
banExpires?: Date | null | undefined;
|
|
448
480
|
username?: string | null | undefined;
|
|
449
481
|
displayUsername?: string | null | undefined;
|
|
450
482
|
};
|
|
@@ -494,6 +526,7 @@ declare const v1Router: {
|
|
|
494
526
|
token: string;
|
|
495
527
|
ipAddress?: string | null | undefined | undefined;
|
|
496
528
|
userAgent?: string | null | undefined | undefined;
|
|
529
|
+
impersonatedBy?: string | null | undefined;
|
|
497
530
|
};
|
|
498
531
|
user: {
|
|
499
532
|
id: string;
|
|
@@ -508,6 +541,10 @@ declare const v1Router: {
|
|
|
508
541
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
509
542
|
linkedinId?: string | null | undefined;
|
|
510
543
|
linkedinName?: string | null | undefined;
|
|
544
|
+
banned: boolean | null | undefined;
|
|
545
|
+
role?: string | null | undefined;
|
|
546
|
+
banReason?: string | null | undefined;
|
|
547
|
+
banExpires?: Date | null | undefined;
|
|
511
548
|
username?: string | null | undefined;
|
|
512
549
|
displayUsername?: string | null | undefined;
|
|
513
550
|
};
|
|
@@ -562,6 +599,7 @@ declare const v1Router: {
|
|
|
562
599
|
token: string;
|
|
563
600
|
ipAddress?: string | null | undefined | undefined;
|
|
564
601
|
userAgent?: string | null | undefined | undefined;
|
|
602
|
+
impersonatedBy?: string | null | undefined;
|
|
565
603
|
};
|
|
566
604
|
user: {
|
|
567
605
|
id: string;
|
|
@@ -576,6 +614,10 @@ declare const v1Router: {
|
|
|
576
614
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
577
615
|
linkedinId?: string | null | undefined;
|
|
578
616
|
linkedinName?: string | null | undefined;
|
|
617
|
+
banned: boolean | null | undefined;
|
|
618
|
+
role?: string | null | undefined;
|
|
619
|
+
banReason?: string | null | undefined;
|
|
620
|
+
banExpires?: Date | null | undefined;
|
|
579
621
|
username?: string | null | undefined;
|
|
580
622
|
displayUsername?: string | null | undefined;
|
|
581
623
|
};
|
|
@@ -626,6 +668,7 @@ declare const v1Router: {
|
|
|
626
668
|
token: string;
|
|
627
669
|
ipAddress?: string | null | undefined | undefined;
|
|
628
670
|
userAgent?: string | null | undefined | undefined;
|
|
671
|
+
impersonatedBy?: string | null | undefined;
|
|
629
672
|
};
|
|
630
673
|
user: {
|
|
631
674
|
id: string;
|
|
@@ -640,6 +683,10 @@ declare const v1Router: {
|
|
|
640
683
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
641
684
|
linkedinId?: string | null | undefined;
|
|
642
685
|
linkedinName?: string | null | undefined;
|
|
686
|
+
banned: boolean | null | undefined;
|
|
687
|
+
role?: string | null | undefined;
|
|
688
|
+
banReason?: string | null | undefined;
|
|
689
|
+
banExpires?: Date | null | undefined;
|
|
643
690
|
username?: string | null | undefined;
|
|
644
691
|
displayUsername?: string | null | undefined;
|
|
645
692
|
};
|
|
@@ -690,6 +737,7 @@ declare const v1Router: {
|
|
|
690
737
|
token: string;
|
|
691
738
|
ipAddress?: string | null | undefined | undefined;
|
|
692
739
|
userAgent?: string | null | undefined | undefined;
|
|
740
|
+
impersonatedBy?: string | null | undefined;
|
|
693
741
|
};
|
|
694
742
|
user: {
|
|
695
743
|
id: string;
|
|
@@ -704,6 +752,10 @@ declare const v1Router: {
|
|
|
704
752
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
705
753
|
linkedinId?: string | null | undefined;
|
|
706
754
|
linkedinName?: string | null | undefined;
|
|
755
|
+
banned: boolean | null | undefined;
|
|
756
|
+
role?: string | null | undefined;
|
|
757
|
+
banReason?: string | null | undefined;
|
|
758
|
+
banExpires?: Date | null | undefined;
|
|
707
759
|
username?: string | null | undefined;
|
|
708
760
|
displayUsername?: string | null | undefined;
|
|
709
761
|
};
|
|
@@ -752,6 +804,7 @@ declare const v1Router: {
|
|
|
752
804
|
token: string;
|
|
753
805
|
ipAddress?: string | null | undefined | undefined;
|
|
754
806
|
userAgent?: string | null | undefined | undefined;
|
|
807
|
+
impersonatedBy?: string | null | undefined;
|
|
755
808
|
};
|
|
756
809
|
user: {
|
|
757
810
|
id: string;
|
|
@@ -766,6 +819,10 @@ declare const v1Router: {
|
|
|
766
819
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
767
820
|
linkedinId?: string | null | undefined;
|
|
768
821
|
linkedinName?: string | null | undefined;
|
|
822
|
+
banned: boolean | null | undefined;
|
|
823
|
+
role?: string | null | undefined;
|
|
824
|
+
banReason?: string | null | undefined;
|
|
825
|
+
banExpires?: Date | null | undefined;
|
|
769
826
|
username?: string | null | undefined;
|
|
770
827
|
displayUsername?: string | null | undefined;
|
|
771
828
|
};
|
|
@@ -817,6 +874,7 @@ declare const v1Router: {
|
|
|
817
874
|
token: string;
|
|
818
875
|
ipAddress?: string | null | undefined | undefined;
|
|
819
876
|
userAgent?: string | null | undefined | undefined;
|
|
877
|
+
impersonatedBy?: string | null | undefined;
|
|
820
878
|
};
|
|
821
879
|
user: {
|
|
822
880
|
id: string;
|
|
@@ -831,6 +889,10 @@ declare const v1Router: {
|
|
|
831
889
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
832
890
|
linkedinId?: string | null | undefined;
|
|
833
891
|
linkedinName?: string | null | undefined;
|
|
892
|
+
banned: boolean | null | undefined;
|
|
893
|
+
role?: string | null | undefined;
|
|
894
|
+
banReason?: string | null | undefined;
|
|
895
|
+
banExpires?: Date | null | undefined;
|
|
834
896
|
username?: string | null | undefined;
|
|
835
897
|
displayUsername?: string | null | undefined;
|
|
836
898
|
};
|
|
@@ -881,6 +943,7 @@ declare const v1Router: {
|
|
|
881
943
|
token: string;
|
|
882
944
|
ipAddress?: string | null | undefined | undefined;
|
|
883
945
|
userAgent?: string | null | undefined | undefined;
|
|
946
|
+
impersonatedBy?: string | null | undefined;
|
|
884
947
|
};
|
|
885
948
|
user: {
|
|
886
949
|
id: string;
|
|
@@ -895,6 +958,10 @@ declare const v1Router: {
|
|
|
895
958
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
896
959
|
linkedinId?: string | null | undefined;
|
|
897
960
|
linkedinName?: string | null | undefined;
|
|
961
|
+
banned: boolean | null | undefined;
|
|
962
|
+
role?: string | null | undefined;
|
|
963
|
+
banReason?: string | null | undefined;
|
|
964
|
+
banExpires?: Date | null | undefined;
|
|
898
965
|
username?: string | null | undefined;
|
|
899
966
|
displayUsername?: string | null | undefined;
|
|
900
967
|
};
|
|
@@ -1128,6 +1195,7 @@ declare const v1Router: {
|
|
|
1128
1195
|
token: string;
|
|
1129
1196
|
ipAddress?: string | null | undefined | undefined;
|
|
1130
1197
|
userAgent?: string | null | undefined | undefined;
|
|
1198
|
+
impersonatedBy?: string | null | undefined;
|
|
1131
1199
|
};
|
|
1132
1200
|
user: {
|
|
1133
1201
|
id: string;
|
|
@@ -1142,6 +1210,10 @@ declare const v1Router: {
|
|
|
1142
1210
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1143
1211
|
linkedinId?: string | null | undefined;
|
|
1144
1212
|
linkedinName?: string | null | undefined;
|
|
1213
|
+
banned: boolean | null | undefined;
|
|
1214
|
+
role?: string | null | undefined;
|
|
1215
|
+
banReason?: string | null | undefined;
|
|
1216
|
+
banExpires?: Date | null | undefined;
|
|
1145
1217
|
username?: string | null | undefined;
|
|
1146
1218
|
displayUsername?: string | null | undefined;
|
|
1147
1219
|
};
|
|
@@ -1192,6 +1264,7 @@ declare const v1Router: {
|
|
|
1192
1264
|
token: string;
|
|
1193
1265
|
ipAddress?: string | null | undefined | undefined;
|
|
1194
1266
|
userAgent?: string | null | undefined | undefined;
|
|
1267
|
+
impersonatedBy?: string | null | undefined;
|
|
1195
1268
|
};
|
|
1196
1269
|
user: {
|
|
1197
1270
|
id: string;
|
|
@@ -1206,6 +1279,10 @@ declare const v1Router: {
|
|
|
1206
1279
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1207
1280
|
linkedinId?: string | null | undefined;
|
|
1208
1281
|
linkedinName?: string | null | undefined;
|
|
1282
|
+
banned: boolean | null | undefined;
|
|
1283
|
+
role?: string | null | undefined;
|
|
1284
|
+
banReason?: string | null | undefined;
|
|
1285
|
+
banExpires?: Date | null | undefined;
|
|
1209
1286
|
username?: string | null | undefined;
|
|
1210
1287
|
displayUsername?: string | null | undefined;
|
|
1211
1288
|
};
|
|
@@ -1260,6 +1337,7 @@ declare const v1Router: {
|
|
|
1260
1337
|
token: string;
|
|
1261
1338
|
ipAddress?: string | null | undefined | undefined;
|
|
1262
1339
|
userAgent?: string | null | undefined | undefined;
|
|
1340
|
+
impersonatedBy?: string | null | undefined;
|
|
1263
1341
|
};
|
|
1264
1342
|
user: {
|
|
1265
1343
|
id: string;
|
|
@@ -1274,6 +1352,10 @@ declare const v1Router: {
|
|
|
1274
1352
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1275
1353
|
linkedinId?: string | null | undefined;
|
|
1276
1354
|
linkedinName?: string | null | undefined;
|
|
1355
|
+
banned: boolean | null | undefined;
|
|
1356
|
+
role?: string | null | undefined;
|
|
1357
|
+
banReason?: string | null | undefined;
|
|
1358
|
+
banExpires?: Date | null | undefined;
|
|
1277
1359
|
username?: string | null | undefined;
|
|
1278
1360
|
displayUsername?: string | null | undefined;
|
|
1279
1361
|
};
|
|
@@ -1322,6 +1404,7 @@ declare const v1Router: {
|
|
|
1322
1404
|
token: string;
|
|
1323
1405
|
ipAddress?: string | null | undefined | undefined;
|
|
1324
1406
|
userAgent?: string | null | undefined | undefined;
|
|
1407
|
+
impersonatedBy?: string | null | undefined;
|
|
1325
1408
|
};
|
|
1326
1409
|
user: {
|
|
1327
1410
|
id: string;
|
|
@@ -1336,6 +1419,10 @@ declare const v1Router: {
|
|
|
1336
1419
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1337
1420
|
linkedinId?: string | null | undefined;
|
|
1338
1421
|
linkedinName?: string | null | undefined;
|
|
1422
|
+
banned: boolean | null | undefined;
|
|
1423
|
+
role?: string | null | undefined;
|
|
1424
|
+
banReason?: string | null | undefined;
|
|
1425
|
+
banExpires?: Date | null | undefined;
|
|
1339
1426
|
username?: string | null | undefined;
|
|
1340
1427
|
displayUsername?: string | null | undefined;
|
|
1341
1428
|
};
|
|
@@ -1384,6 +1471,7 @@ declare const v1Router: {
|
|
|
1384
1471
|
token: string;
|
|
1385
1472
|
ipAddress?: string | null | undefined | undefined;
|
|
1386
1473
|
userAgent?: string | null | undefined | undefined;
|
|
1474
|
+
impersonatedBy?: string | null | undefined;
|
|
1387
1475
|
};
|
|
1388
1476
|
user: {
|
|
1389
1477
|
id: string;
|
|
@@ -1398,6 +1486,10 @@ declare const v1Router: {
|
|
|
1398
1486
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1399
1487
|
linkedinId?: string | null | undefined;
|
|
1400
1488
|
linkedinName?: string | null | undefined;
|
|
1489
|
+
banned: boolean | null | undefined;
|
|
1490
|
+
role?: string | null | undefined;
|
|
1491
|
+
banReason?: string | null | undefined;
|
|
1492
|
+
banExpires?: Date | null | undefined;
|
|
1401
1493
|
username?: string | null | undefined;
|
|
1402
1494
|
displayUsername?: string | null | undefined;
|
|
1403
1495
|
};
|
|
@@ -1445,6 +1537,7 @@ declare const v1Router: {
|
|
|
1445
1537
|
token: string;
|
|
1446
1538
|
ipAddress?: string | null | undefined | undefined;
|
|
1447
1539
|
userAgent?: string | null | undefined | undefined;
|
|
1540
|
+
impersonatedBy?: string | null | undefined;
|
|
1448
1541
|
};
|
|
1449
1542
|
user: {
|
|
1450
1543
|
id: string;
|
|
@@ -1459,6 +1552,10 @@ declare const v1Router: {
|
|
|
1459
1552
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1460
1553
|
linkedinId?: string | null | undefined;
|
|
1461
1554
|
linkedinName?: string | null | undefined;
|
|
1555
|
+
banned: boolean | null | undefined;
|
|
1556
|
+
role?: string | null | undefined;
|
|
1557
|
+
banReason?: string | null | undefined;
|
|
1558
|
+
banExpires?: Date | null | undefined;
|
|
1462
1559
|
username?: string | null | undefined;
|
|
1463
1560
|
displayUsername?: string | null | undefined;
|
|
1464
1561
|
};
|
|
@@ -1509,6 +1606,7 @@ declare const v1Router: {
|
|
|
1509
1606
|
token: string;
|
|
1510
1607
|
ipAddress?: string | null | undefined | undefined;
|
|
1511
1608
|
userAgent?: string | null | undefined | undefined;
|
|
1609
|
+
impersonatedBy?: string | null | undefined;
|
|
1512
1610
|
};
|
|
1513
1611
|
user: {
|
|
1514
1612
|
id: string;
|
|
@@ -1523,6 +1621,10 @@ declare const v1Router: {
|
|
|
1523
1621
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1524
1622
|
linkedinId?: string | null | undefined;
|
|
1525
1623
|
linkedinName?: string | null | undefined;
|
|
1624
|
+
banned: boolean | null | undefined;
|
|
1625
|
+
role?: string | null | undefined;
|
|
1626
|
+
banReason?: string | null | undefined;
|
|
1627
|
+
banExpires?: Date | null | undefined;
|
|
1526
1628
|
username?: string | null | undefined;
|
|
1527
1629
|
displayUsername?: string | null | undefined;
|
|
1528
1630
|
};
|
|
@@ -1574,6 +1676,7 @@ declare const v1Router: {
|
|
|
1574
1676
|
token: string;
|
|
1575
1677
|
ipAddress?: string | null | undefined | undefined;
|
|
1576
1678
|
userAgent?: string | null | undefined | undefined;
|
|
1679
|
+
impersonatedBy?: string | null | undefined;
|
|
1577
1680
|
};
|
|
1578
1681
|
user: {
|
|
1579
1682
|
id: string;
|
|
@@ -1588,6 +1691,10 @@ declare const v1Router: {
|
|
|
1588
1691
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
1589
1692
|
linkedinId?: string | null | undefined;
|
|
1590
1693
|
linkedinName?: string | null | undefined;
|
|
1694
|
+
banned: boolean | null | undefined;
|
|
1695
|
+
role?: string | null | undefined;
|
|
1696
|
+
banReason?: string | null | undefined;
|
|
1697
|
+
banExpires?: Date | null | undefined;
|
|
1591
1698
|
username?: string | null | undefined;
|
|
1592
1699
|
displayUsername?: string | null | undefined;
|
|
1593
1700
|
};
|
|
@@ -1631,6 +1738,182 @@ declare const v1Router: {
|
|
|
1631
1738
|
};
|
|
1632
1739
|
};
|
|
1633
1740
|
};
|
|
1741
|
+
/**
|
|
1742
|
+
* Insider application endpoints.
|
|
1743
|
+
* For users to apply for insider access.
|
|
1744
|
+
*/
|
|
1745
|
+
insiderApplication: {
|
|
1746
|
+
submit: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1747
|
+
session: {
|
|
1748
|
+
id: string;
|
|
1749
|
+
createdAt: Date;
|
|
1750
|
+
updatedAt: Date;
|
|
1751
|
+
userId: string;
|
|
1752
|
+
expiresAt: Date;
|
|
1753
|
+
token: string;
|
|
1754
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1755
|
+
userAgent?: string | null | undefined | undefined;
|
|
1756
|
+
impersonatedBy?: string | null | undefined;
|
|
1757
|
+
};
|
|
1758
|
+
user: {
|
|
1759
|
+
id: string;
|
|
1760
|
+
createdAt: Date;
|
|
1761
|
+
updatedAt: Date;
|
|
1762
|
+
email: string;
|
|
1763
|
+
emailVerified: boolean;
|
|
1764
|
+
name: string;
|
|
1765
|
+
image?: string | null | undefined | undefined;
|
|
1766
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1767
|
+
linkedinVerified: boolean | null | undefined;
|
|
1768
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1769
|
+
linkedinId?: string | null | undefined;
|
|
1770
|
+
linkedinName?: string | null | undefined;
|
|
1771
|
+
banned: boolean | null | undefined;
|
|
1772
|
+
role?: string | null | undefined;
|
|
1773
|
+
banReason?: string | null | undefined;
|
|
1774
|
+
banExpires?: Date | null | undefined;
|
|
1775
|
+
username?: string | null | undefined;
|
|
1776
|
+
displayUsername?: string | null | undefined;
|
|
1777
|
+
};
|
|
1778
|
+
}>, zod.ZodObject<{
|
|
1779
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
1780
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1781
|
+
data: {
|
|
1782
|
+
id: string;
|
|
1783
|
+
status: InsiderApplicationStatus | null;
|
|
1784
|
+
reason: string | null;
|
|
1785
|
+
createdAt: Date;
|
|
1786
|
+
};
|
|
1787
|
+
}, {
|
|
1788
|
+
data: {
|
|
1789
|
+
id: string;
|
|
1790
|
+
status: InsiderApplicationStatus | null;
|
|
1791
|
+
reason: string | null;
|
|
1792
|
+
createdAt: Date;
|
|
1793
|
+
};
|
|
1794
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1795
|
+
readonly UNAUTHORIZED: {
|
|
1796
|
+
readonly message: "You must be logged in to access this resource";
|
|
1797
|
+
};
|
|
1798
|
+
readonly FORBIDDEN: {
|
|
1799
|
+
readonly message: "You do not have permission to access this resource";
|
|
1800
|
+
};
|
|
1801
|
+
readonly NOT_FOUND: {
|
|
1802
|
+
readonly message: "The requested resource was not found";
|
|
1803
|
+
};
|
|
1804
|
+
readonly BAD_REQUEST: {
|
|
1805
|
+
readonly message: "Invalid request";
|
|
1806
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1807
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1808
|
+
code: zod.ZodString;
|
|
1809
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1810
|
+
message: zod.ZodString;
|
|
1811
|
+
}, better_auth.$loose>>;
|
|
1812
|
+
}, better_auth.$strip>>;
|
|
1813
|
+
};
|
|
1814
|
+
readonly CONFLICT: {
|
|
1815
|
+
readonly message: "The request conflicts with existing data";
|
|
1816
|
+
};
|
|
1817
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1818
|
+
readonly message: "An internal server error occurred";
|
|
1819
|
+
};
|
|
1820
|
+
}>, Record<never, never>>;
|
|
1821
|
+
status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1822
|
+
session: {
|
|
1823
|
+
id: string;
|
|
1824
|
+
createdAt: Date;
|
|
1825
|
+
updatedAt: Date;
|
|
1826
|
+
userId: string;
|
|
1827
|
+
expiresAt: Date;
|
|
1828
|
+
token: string;
|
|
1829
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1830
|
+
userAgent?: string | null | undefined | undefined;
|
|
1831
|
+
impersonatedBy?: string | null | undefined;
|
|
1832
|
+
};
|
|
1833
|
+
user: {
|
|
1834
|
+
id: string;
|
|
1835
|
+
createdAt: Date;
|
|
1836
|
+
updatedAt: Date;
|
|
1837
|
+
email: string;
|
|
1838
|
+
emailVerified: boolean;
|
|
1839
|
+
name: string;
|
|
1840
|
+
image?: string | null | undefined | undefined;
|
|
1841
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1842
|
+
linkedinVerified: boolean | null | undefined;
|
|
1843
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1844
|
+
linkedinId?: string | null | undefined;
|
|
1845
|
+
linkedinName?: string | null | undefined;
|
|
1846
|
+
banned: boolean | null | undefined;
|
|
1847
|
+
role?: string | null | undefined;
|
|
1848
|
+
banReason?: string | null | undefined;
|
|
1849
|
+
banExpires?: Date | null | undefined;
|
|
1850
|
+
username?: string | null | undefined;
|
|
1851
|
+
displayUsername?: string | null | undefined;
|
|
1852
|
+
};
|
|
1853
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
1854
|
+
data: {
|
|
1855
|
+
isInsider: boolean;
|
|
1856
|
+
role: string;
|
|
1857
|
+
application: null;
|
|
1858
|
+
};
|
|
1859
|
+
} | {
|
|
1860
|
+
data: {
|
|
1861
|
+
isInsider: boolean;
|
|
1862
|
+
role: string;
|
|
1863
|
+
application: {
|
|
1864
|
+
id: string;
|
|
1865
|
+
status: InsiderApplicationStatus | null;
|
|
1866
|
+
reason: string | null;
|
|
1867
|
+
createdAt: Date;
|
|
1868
|
+
reviewedAt: Date | null;
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
}, {
|
|
1872
|
+
data: {
|
|
1873
|
+
isInsider: boolean;
|
|
1874
|
+
role: string;
|
|
1875
|
+
application: null;
|
|
1876
|
+
};
|
|
1877
|
+
} | {
|
|
1878
|
+
data: {
|
|
1879
|
+
isInsider: boolean;
|
|
1880
|
+
role: string;
|
|
1881
|
+
application: {
|
|
1882
|
+
id: string;
|
|
1883
|
+
status: InsiderApplicationStatus | null;
|
|
1884
|
+
reason: string | null;
|
|
1885
|
+
createdAt: Date;
|
|
1886
|
+
reviewedAt: Date | null;
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1890
|
+
readonly UNAUTHORIZED: {
|
|
1891
|
+
readonly message: "You must be logged in to access this resource";
|
|
1892
|
+
};
|
|
1893
|
+
readonly FORBIDDEN: {
|
|
1894
|
+
readonly message: "You do not have permission to access this resource";
|
|
1895
|
+
};
|
|
1896
|
+
readonly NOT_FOUND: {
|
|
1897
|
+
readonly message: "The requested resource was not found";
|
|
1898
|
+
};
|
|
1899
|
+
readonly BAD_REQUEST: {
|
|
1900
|
+
readonly message: "Invalid request";
|
|
1901
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1902
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1903
|
+
code: zod.ZodString;
|
|
1904
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1905
|
+
message: zod.ZodString;
|
|
1906
|
+
}, better_auth.$loose>>;
|
|
1907
|
+
}, better_auth.$strip>>;
|
|
1908
|
+
};
|
|
1909
|
+
readonly CONFLICT: {
|
|
1910
|
+
readonly message: "The request conflicts with existing data";
|
|
1911
|
+
};
|
|
1912
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1913
|
+
readonly message: "An internal server error occurred";
|
|
1914
|
+
};
|
|
1915
|
+
}>, Record<never, never>>;
|
|
1916
|
+
};
|
|
1634
1917
|
/**
|
|
1635
1918
|
* Internal endpoints - require API key authentication.
|
|
1636
1919
|
* Used for service-to-service communication (e.g., Brain -> Feed, CoS -> Feed).
|
|
@@ -2032,124 +2315,51 @@ declare const v1Router: {
|
|
|
2032
2315
|
};
|
|
2033
2316
|
}>, Record<never, never>>;
|
|
2034
2317
|
};
|
|
2035
|
-
|
|
2036
|
-
/**
|
|
2037
|
-
* Community endpoints - user-generated content.
|
|
2038
|
-
*/
|
|
2039
|
-
community: {
|
|
2040
|
-
posts: {
|
|
2318
|
+
insiderApplications: {
|
|
2041
2319
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2042
|
-
|
|
2043
|
-
id: string;
|
|
2044
|
-
createdAt: Date;
|
|
2045
|
-
updatedAt: Date;
|
|
2046
|
-
userId: string;
|
|
2047
|
-
expiresAt: Date;
|
|
2048
|
-
token: string;
|
|
2049
|
-
ipAddress?: string | null | undefined | undefined;
|
|
2050
|
-
userAgent?: string | null | undefined | undefined;
|
|
2051
|
-
};
|
|
2052
|
-
user: {
|
|
2053
|
-
id: string;
|
|
2054
|
-
createdAt: Date;
|
|
2055
|
-
updatedAt: Date;
|
|
2056
|
-
email: string;
|
|
2057
|
-
emailVerified: boolean;
|
|
2058
|
-
name: string;
|
|
2059
|
-
image?: string | null | undefined | undefined;
|
|
2060
|
-
onboardingCompleted: boolean | null | undefined;
|
|
2061
|
-
linkedinVerified: boolean | null | undefined;
|
|
2062
|
-
linkedinVerifiedAt?: Date | null | undefined;
|
|
2063
|
-
linkedinId?: string | null | undefined;
|
|
2064
|
-
linkedinName?: string | null | undefined;
|
|
2065
|
-
username?: string | null | undefined;
|
|
2066
|
-
displayUsername?: string | null | undefined;
|
|
2067
|
-
};
|
|
2320
|
+
isInternalRequest: true;
|
|
2068
2321
|
}>, zod.ZodObject<{
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
oldest: "oldest";
|
|
2322
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
2323
|
+
pending: "pending";
|
|
2324
|
+
approved: "approved";
|
|
2325
|
+
rejected: "rejected";
|
|
2074
2326
|
}>>;
|
|
2327
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
2328
|
+
since: zod.ZodOptional<zod.ZodString>;
|
|
2075
2329
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2076
2330
|
data: {
|
|
2077
2331
|
id: string;
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
image: string | null;
|
|
2085
|
-
favicon: string | null;
|
|
2086
|
-
siteName: string | null;
|
|
2087
|
-
} | null;
|
|
2088
|
-
author: {
|
|
2332
|
+
userId: string;
|
|
2333
|
+
reason: string | null;
|
|
2334
|
+
status: InsiderApplicationStatus | null;
|
|
2335
|
+
createdAt: Date;
|
|
2336
|
+
reviewedAt: Date | null;
|
|
2337
|
+
user: {
|
|
2089
2338
|
id: string;
|
|
2090
2339
|
name: string;
|
|
2340
|
+
email: string;
|
|
2091
2341
|
username: string | null;
|
|
2092
|
-
displayUsername: string | null;
|
|
2093
2342
|
image: string | null;
|
|
2094
2343
|
linkedinVerified: boolean | null;
|
|
2095
2344
|
};
|
|
2096
|
-
createdAt: Date;
|
|
2097
|
-
updatedAt: Date;
|
|
2098
|
-
engagement: {
|
|
2099
|
-
likesCount: number;
|
|
2100
|
-
commentsCount: number;
|
|
2101
|
-
isLiked: boolean;
|
|
2102
|
-
reactions: {
|
|
2103
|
-
type: string;
|
|
2104
|
-
count: number;
|
|
2105
|
-
isReacted: boolean;
|
|
2106
|
-
}[];
|
|
2107
|
-
};
|
|
2108
|
-
replyAvatars: string[];
|
|
2109
2345
|
}[];
|
|
2110
|
-
pagination: {
|
|
2111
|
-
nextCursor: string | null;
|
|
2112
|
-
hasMore: boolean;
|
|
2113
|
-
};
|
|
2114
2346
|
}, {
|
|
2115
2347
|
data: {
|
|
2116
2348
|
id: string;
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
image: string | null;
|
|
2124
|
-
favicon: string | null;
|
|
2125
|
-
siteName: string | null;
|
|
2126
|
-
} | null;
|
|
2127
|
-
author: {
|
|
2349
|
+
userId: string;
|
|
2350
|
+
reason: string | null;
|
|
2351
|
+
status: InsiderApplicationStatus | null;
|
|
2352
|
+
createdAt: Date;
|
|
2353
|
+
reviewedAt: Date | null;
|
|
2354
|
+
user: {
|
|
2128
2355
|
id: string;
|
|
2129
2356
|
name: string;
|
|
2357
|
+
email: string;
|
|
2130
2358
|
username: string | null;
|
|
2131
|
-
displayUsername: string | null;
|
|
2132
2359
|
image: string | null;
|
|
2133
2360
|
linkedinVerified: boolean | null;
|
|
2134
2361
|
};
|
|
2135
|
-
createdAt: Date;
|
|
2136
|
-
updatedAt: Date;
|
|
2137
|
-
engagement: {
|
|
2138
|
-
likesCount: number;
|
|
2139
|
-
commentsCount: number;
|
|
2140
|
-
isLiked: boolean;
|
|
2141
|
-
reactions: {
|
|
2142
|
-
type: string;
|
|
2143
|
-
count: number;
|
|
2144
|
-
isReacted: boolean;
|
|
2145
|
-
}[];
|
|
2146
|
-
};
|
|
2147
|
-
replyAvatars: string[];
|
|
2148
2362
|
}[];
|
|
2149
|
-
pagination: {
|
|
2150
|
-
nextCursor: string | null;
|
|
2151
|
-
hasMore: boolean;
|
|
2152
|
-
};
|
|
2153
2363
|
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2154
2364
|
readonly UNAUTHORIZED: {
|
|
2155
2365
|
readonly message: "You must be logged in to access this resource";
|
|
@@ -2177,18 +2387,300 @@ declare const v1Router: {
|
|
|
2177
2387
|
readonly message: "An internal server error occurred";
|
|
2178
2388
|
};
|
|
2179
2389
|
}>, Record<never, never>>;
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2390
|
+
count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2391
|
+
isInternalRequest: true;
|
|
2392
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
2393
|
+
data: {
|
|
2394
|
+
total: number;
|
|
2395
|
+
pending: number;
|
|
2396
|
+
approved: number;
|
|
2397
|
+
rejected: number;
|
|
2398
|
+
};
|
|
2399
|
+
}, {
|
|
2400
|
+
data: {
|
|
2401
|
+
total: number;
|
|
2402
|
+
pending: number;
|
|
2403
|
+
approved: number;
|
|
2404
|
+
rejected: number;
|
|
2405
|
+
};
|
|
2406
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2407
|
+
readonly UNAUTHORIZED: {
|
|
2408
|
+
readonly message: "You must be logged in to access this resource";
|
|
2409
|
+
};
|
|
2410
|
+
readonly FORBIDDEN: {
|
|
2411
|
+
readonly message: "You do not have permission to access this resource";
|
|
2412
|
+
};
|
|
2413
|
+
readonly NOT_FOUND: {
|
|
2414
|
+
readonly message: "The requested resource was not found";
|
|
2415
|
+
};
|
|
2416
|
+
readonly BAD_REQUEST: {
|
|
2417
|
+
readonly message: "Invalid request";
|
|
2418
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2419
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2420
|
+
code: zod.ZodString;
|
|
2421
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2422
|
+
message: zod.ZodString;
|
|
2423
|
+
}, better_auth.$loose>>;
|
|
2424
|
+
}, better_auth.$strip>>;
|
|
2425
|
+
};
|
|
2426
|
+
readonly CONFLICT: {
|
|
2427
|
+
readonly message: "The request conflicts with existing data";
|
|
2428
|
+
};
|
|
2429
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2430
|
+
readonly message: "An internal server error occurred";
|
|
2431
|
+
};
|
|
2432
|
+
}>, Record<never, never>>;
|
|
2433
|
+
approve: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2434
|
+
isInternalRequest: true;
|
|
2435
|
+
}>, zod.ZodObject<{
|
|
2436
|
+
applicationId: zod.ZodString;
|
|
2437
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2438
|
+
data: {
|
|
2439
|
+
success: boolean;
|
|
2440
|
+
applicationId: string;
|
|
2441
|
+
userId: string;
|
|
2442
|
+
email: string;
|
|
2443
|
+
};
|
|
2444
|
+
}, {
|
|
2445
|
+
data: {
|
|
2446
|
+
success: boolean;
|
|
2447
|
+
applicationId: string;
|
|
2448
|
+
userId: string;
|
|
2449
|
+
email: string;
|
|
2450
|
+
};
|
|
2451
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2452
|
+
readonly UNAUTHORIZED: {
|
|
2453
|
+
readonly message: "You must be logged in to access this resource";
|
|
2454
|
+
};
|
|
2455
|
+
readonly FORBIDDEN: {
|
|
2456
|
+
readonly message: "You do not have permission to access this resource";
|
|
2457
|
+
};
|
|
2458
|
+
readonly NOT_FOUND: {
|
|
2459
|
+
readonly message: "The requested resource was not found";
|
|
2460
|
+
};
|
|
2461
|
+
readonly BAD_REQUEST: {
|
|
2462
|
+
readonly message: "Invalid request";
|
|
2463
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2464
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2465
|
+
code: zod.ZodString;
|
|
2466
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2467
|
+
message: zod.ZodString;
|
|
2468
|
+
}, better_auth.$loose>>;
|
|
2469
|
+
}, better_auth.$strip>>;
|
|
2470
|
+
};
|
|
2471
|
+
readonly CONFLICT: {
|
|
2472
|
+
readonly message: "The request conflicts with existing data";
|
|
2473
|
+
};
|
|
2474
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2475
|
+
readonly message: "An internal server error occurred";
|
|
2476
|
+
};
|
|
2477
|
+
}>, Record<never, never>>;
|
|
2478
|
+
reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2479
|
+
isInternalRequest: true;
|
|
2480
|
+
}>, zod.ZodObject<{
|
|
2481
|
+
applicationId: zod.ZodString;
|
|
2482
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2483
|
+
data: {
|
|
2484
|
+
success: boolean;
|
|
2485
|
+
applicationId: string;
|
|
2486
|
+
};
|
|
2487
|
+
}, {
|
|
2488
|
+
data: {
|
|
2489
|
+
success: boolean;
|
|
2490
|
+
applicationId: string;
|
|
2491
|
+
};
|
|
2492
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2493
|
+
readonly UNAUTHORIZED: {
|
|
2494
|
+
readonly message: "You must be logged in to access this resource";
|
|
2495
|
+
};
|
|
2496
|
+
readonly FORBIDDEN: {
|
|
2497
|
+
readonly message: "You do not have permission to access this resource";
|
|
2498
|
+
};
|
|
2499
|
+
readonly NOT_FOUND: {
|
|
2500
|
+
readonly message: "The requested resource was not found";
|
|
2501
|
+
};
|
|
2502
|
+
readonly BAD_REQUEST: {
|
|
2503
|
+
readonly message: "Invalid request";
|
|
2504
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2505
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2506
|
+
code: zod.ZodString;
|
|
2507
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2508
|
+
message: zod.ZodString;
|
|
2509
|
+
}, better_auth.$loose>>;
|
|
2510
|
+
}, better_auth.$strip>>;
|
|
2511
|
+
};
|
|
2512
|
+
readonly CONFLICT: {
|
|
2513
|
+
readonly message: "The request conflicts with existing data";
|
|
2514
|
+
};
|
|
2515
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2516
|
+
readonly message: "An internal server error occurred";
|
|
2517
|
+
};
|
|
2518
|
+
}>, Record<never, never>>;
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
/**
|
|
2522
|
+
* Community endpoints - user-generated content.
|
|
2523
|
+
* Requires insider role (community:view permission).
|
|
2524
|
+
*/
|
|
2525
|
+
community: {
|
|
2526
|
+
posts: {
|
|
2527
|
+
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2528
|
+
session: {
|
|
2529
|
+
id: string;
|
|
2530
|
+
createdAt: Date;
|
|
2531
|
+
updatedAt: Date;
|
|
2532
|
+
userId: string;
|
|
2533
|
+
expiresAt: Date;
|
|
2534
|
+
token: string;
|
|
2535
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2536
|
+
userAgent?: string | null | undefined | undefined;
|
|
2537
|
+
impersonatedBy?: string | null | undefined;
|
|
2538
|
+
};
|
|
2539
|
+
user: {
|
|
2540
|
+
id: string;
|
|
2541
|
+
createdAt: Date;
|
|
2542
|
+
updatedAt: Date;
|
|
2543
|
+
email: string;
|
|
2544
|
+
emailVerified: boolean;
|
|
2545
|
+
name: string;
|
|
2546
|
+
image?: string | null | undefined | undefined;
|
|
2547
|
+
onboardingCompleted: boolean | null | undefined;
|
|
2548
|
+
linkedinVerified: boolean | null | undefined;
|
|
2549
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
2550
|
+
linkedinId?: string | null | undefined;
|
|
2551
|
+
linkedinName?: string | null | undefined;
|
|
2552
|
+
banned: boolean | null | undefined;
|
|
2553
|
+
role?: string | null | undefined;
|
|
2554
|
+
banReason?: string | null | undefined;
|
|
2555
|
+
banExpires?: Date | null | undefined;
|
|
2556
|
+
username?: string | null | undefined;
|
|
2557
|
+
displayUsername?: string | null | undefined;
|
|
2558
|
+
};
|
|
2559
|
+
}>, zod.ZodObject<{
|
|
2560
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
2561
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
2562
|
+
sort: zod.ZodDefault<zod.ZodEnum<{
|
|
2563
|
+
newest: "newest";
|
|
2564
|
+
oldest: "oldest";
|
|
2565
|
+
}>>;
|
|
2566
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2567
|
+
data: {
|
|
2568
|
+
id: string;
|
|
2569
|
+
content: string;
|
|
2570
|
+
images: string[];
|
|
2571
|
+
link: {
|
|
2572
|
+
url: string;
|
|
2573
|
+
title: string | null;
|
|
2574
|
+
description: string | null;
|
|
2575
|
+
image: string | null;
|
|
2576
|
+
favicon: string | null;
|
|
2577
|
+
siteName: string | null;
|
|
2578
|
+
} | null;
|
|
2579
|
+
author: {
|
|
2580
|
+
id: string;
|
|
2581
|
+
name: string;
|
|
2582
|
+
username: string | null;
|
|
2583
|
+
displayUsername: string | null;
|
|
2584
|
+
image: string | null;
|
|
2585
|
+
linkedinVerified: boolean | null;
|
|
2586
|
+
};
|
|
2587
|
+
createdAt: Date;
|
|
2588
|
+
updatedAt: Date;
|
|
2589
|
+
engagement: {
|
|
2590
|
+
likesCount: number;
|
|
2591
|
+
commentsCount: number;
|
|
2592
|
+
isLiked: boolean;
|
|
2593
|
+
reactions: {
|
|
2594
|
+
type: string;
|
|
2595
|
+
count: number;
|
|
2596
|
+
isReacted: boolean;
|
|
2597
|
+
}[];
|
|
2598
|
+
};
|
|
2599
|
+
replyAvatars: string[];
|
|
2600
|
+
}[];
|
|
2601
|
+
pagination: {
|
|
2602
|
+
nextCursor: string | null;
|
|
2603
|
+
hasMore: boolean;
|
|
2604
|
+
};
|
|
2605
|
+
}, {
|
|
2606
|
+
data: {
|
|
2607
|
+
id: string;
|
|
2608
|
+
content: string;
|
|
2609
|
+
images: string[];
|
|
2610
|
+
link: {
|
|
2611
|
+
url: string;
|
|
2612
|
+
title: string | null;
|
|
2613
|
+
description: string | null;
|
|
2614
|
+
image: string | null;
|
|
2615
|
+
favicon: string | null;
|
|
2616
|
+
siteName: string | null;
|
|
2617
|
+
} | null;
|
|
2618
|
+
author: {
|
|
2619
|
+
id: string;
|
|
2620
|
+
name: string;
|
|
2621
|
+
username: string | null;
|
|
2622
|
+
displayUsername: string | null;
|
|
2623
|
+
image: string | null;
|
|
2624
|
+
linkedinVerified: boolean | null;
|
|
2625
|
+
};
|
|
2626
|
+
createdAt: Date;
|
|
2627
|
+
updatedAt: Date;
|
|
2628
|
+
engagement: {
|
|
2629
|
+
likesCount: number;
|
|
2630
|
+
commentsCount: number;
|
|
2631
|
+
isLiked: boolean;
|
|
2632
|
+
reactions: {
|
|
2633
|
+
type: string;
|
|
2634
|
+
count: number;
|
|
2635
|
+
isReacted: boolean;
|
|
2636
|
+
}[];
|
|
2637
|
+
};
|
|
2638
|
+
replyAvatars: string[];
|
|
2639
|
+
}[];
|
|
2640
|
+
pagination: {
|
|
2641
|
+
nextCursor: string | null;
|
|
2642
|
+
hasMore: boolean;
|
|
2643
|
+
};
|
|
2644
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2645
|
+
readonly UNAUTHORIZED: {
|
|
2646
|
+
readonly message: "You must be logged in to access this resource";
|
|
2647
|
+
};
|
|
2648
|
+
readonly FORBIDDEN: {
|
|
2649
|
+
readonly message: "You do not have permission to access this resource";
|
|
2650
|
+
};
|
|
2651
|
+
readonly NOT_FOUND: {
|
|
2652
|
+
readonly message: "The requested resource was not found";
|
|
2653
|
+
};
|
|
2654
|
+
readonly BAD_REQUEST: {
|
|
2655
|
+
readonly message: "Invalid request";
|
|
2656
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2657
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2658
|
+
code: zod.ZodString;
|
|
2659
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2660
|
+
message: zod.ZodString;
|
|
2661
|
+
}, better_auth.$loose>>;
|
|
2662
|
+
}, better_auth.$strip>>;
|
|
2663
|
+
};
|
|
2664
|
+
readonly CONFLICT: {
|
|
2665
|
+
readonly message: "The request conflicts with existing data";
|
|
2666
|
+
};
|
|
2667
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2668
|
+
readonly message: "An internal server error occurred";
|
|
2669
|
+
};
|
|
2670
|
+
}>, Record<never, never>>;
|
|
2671
|
+
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2672
|
+
session: {
|
|
2673
|
+
id: string;
|
|
2674
|
+
createdAt: Date;
|
|
2675
|
+
updatedAt: Date;
|
|
2676
|
+
userId: string;
|
|
2677
|
+
expiresAt: Date;
|
|
2678
|
+
token: string;
|
|
2679
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2680
|
+
userAgent?: string | null | undefined | undefined;
|
|
2681
|
+
impersonatedBy?: string | null | undefined;
|
|
2682
|
+
};
|
|
2683
|
+
user: {
|
|
2192
2684
|
id: string;
|
|
2193
2685
|
createdAt: Date;
|
|
2194
2686
|
updatedAt: Date;
|
|
@@ -2201,6 +2693,10 @@ declare const v1Router: {
|
|
|
2201
2693
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2202
2694
|
linkedinId?: string | null | undefined;
|
|
2203
2695
|
linkedinName?: string | null | undefined;
|
|
2696
|
+
banned: boolean | null | undefined;
|
|
2697
|
+
role?: string | null | undefined;
|
|
2698
|
+
banReason?: string | null | undefined;
|
|
2699
|
+
banExpires?: Date | null | undefined;
|
|
2204
2700
|
username?: string | null | undefined;
|
|
2205
2701
|
displayUsername?: string | null | undefined;
|
|
2206
2702
|
};
|
|
@@ -2311,6 +2807,7 @@ declare const v1Router: {
|
|
|
2311
2807
|
token: string;
|
|
2312
2808
|
ipAddress?: string | null | undefined | undefined;
|
|
2313
2809
|
userAgent?: string | null | undefined | undefined;
|
|
2810
|
+
impersonatedBy?: string | null | undefined;
|
|
2314
2811
|
};
|
|
2315
2812
|
user: {
|
|
2316
2813
|
id: string;
|
|
@@ -2325,6 +2822,10 @@ declare const v1Router: {
|
|
|
2325
2822
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2326
2823
|
linkedinId?: string | null | undefined;
|
|
2327
2824
|
linkedinName?: string | null | undefined;
|
|
2825
|
+
banned: boolean | null | undefined;
|
|
2826
|
+
role?: string | null | undefined;
|
|
2827
|
+
banReason?: string | null | undefined;
|
|
2828
|
+
banExpires?: Date | null | undefined;
|
|
2328
2829
|
username?: string | null | undefined;
|
|
2329
2830
|
displayUsername?: string | null | undefined;
|
|
2330
2831
|
};
|
|
@@ -2431,6 +2932,7 @@ declare const v1Router: {
|
|
|
2431
2932
|
token: string;
|
|
2432
2933
|
ipAddress?: string | null | undefined | undefined;
|
|
2433
2934
|
userAgent?: string | null | undefined | undefined;
|
|
2935
|
+
impersonatedBy?: string | null | undefined;
|
|
2434
2936
|
};
|
|
2435
2937
|
user: {
|
|
2436
2938
|
id: string;
|
|
@@ -2445,6 +2947,10 @@ declare const v1Router: {
|
|
|
2445
2947
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2446
2948
|
linkedinId?: string | null | undefined;
|
|
2447
2949
|
linkedinName?: string | null | undefined;
|
|
2950
|
+
banned: boolean | null | undefined;
|
|
2951
|
+
role?: string | null | undefined;
|
|
2952
|
+
banReason?: string | null | undefined;
|
|
2953
|
+
banExpires?: Date | null | undefined;
|
|
2448
2954
|
username?: string | null | undefined;
|
|
2449
2955
|
displayUsername?: string | null | undefined;
|
|
2450
2956
|
};
|
|
@@ -2524,6 +3030,7 @@ declare const v1Router: {
|
|
|
2524
3030
|
token: string;
|
|
2525
3031
|
ipAddress?: string | null | undefined | undefined;
|
|
2526
3032
|
userAgent?: string | null | undefined | undefined;
|
|
3033
|
+
impersonatedBy?: string | null | undefined;
|
|
2527
3034
|
};
|
|
2528
3035
|
user: {
|
|
2529
3036
|
id: string;
|
|
@@ -2538,6 +3045,10 @@ declare const v1Router: {
|
|
|
2538
3045
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2539
3046
|
linkedinId?: string | null | undefined;
|
|
2540
3047
|
linkedinName?: string | null | undefined;
|
|
3048
|
+
banned: boolean | null | undefined;
|
|
3049
|
+
role?: string | null | undefined;
|
|
3050
|
+
banReason?: string | null | undefined;
|
|
3051
|
+
banExpires?: Date | null | undefined;
|
|
2541
3052
|
username?: string | null | undefined;
|
|
2542
3053
|
displayUsername?: string | null | undefined;
|
|
2543
3054
|
};
|
|
@@ -2588,6 +3099,7 @@ declare const v1Router: {
|
|
|
2588
3099
|
token: string;
|
|
2589
3100
|
ipAddress?: string | null | undefined | undefined;
|
|
2590
3101
|
userAgent?: string | null | undefined | undefined;
|
|
3102
|
+
impersonatedBy?: string | null | undefined;
|
|
2591
3103
|
};
|
|
2592
3104
|
user: {
|
|
2593
3105
|
id: string;
|
|
@@ -2602,6 +3114,10 @@ declare const v1Router: {
|
|
|
2602
3114
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2603
3115
|
linkedinId?: string | null | undefined;
|
|
2604
3116
|
linkedinName?: string | null | undefined;
|
|
3117
|
+
banned: boolean | null | undefined;
|
|
3118
|
+
role?: string | null | undefined;
|
|
3119
|
+
banReason?: string | null | undefined;
|
|
3120
|
+
banExpires?: Date | null | undefined;
|
|
2605
3121
|
username?: string | null | undefined;
|
|
2606
3122
|
displayUsername?: string | null | undefined;
|
|
2607
3123
|
};
|
|
@@ -2658,6 +3174,7 @@ declare const v1Router: {
|
|
|
2658
3174
|
token: string;
|
|
2659
3175
|
ipAddress?: string | null | undefined | undefined;
|
|
2660
3176
|
userAgent?: string | null | undefined | undefined;
|
|
3177
|
+
impersonatedBy?: string | null | undefined;
|
|
2661
3178
|
};
|
|
2662
3179
|
user: {
|
|
2663
3180
|
id: string;
|
|
@@ -2672,6 +3189,10 @@ declare const v1Router: {
|
|
|
2672
3189
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2673
3190
|
linkedinId?: string | null | undefined;
|
|
2674
3191
|
linkedinName?: string | null | undefined;
|
|
3192
|
+
banned: boolean | null | undefined;
|
|
3193
|
+
role?: string | null | undefined;
|
|
3194
|
+
banReason?: string | null | undefined;
|
|
3195
|
+
banExpires?: Date | null | undefined;
|
|
2675
3196
|
username?: string | null | undefined;
|
|
2676
3197
|
displayUsername?: string | null | undefined;
|
|
2677
3198
|
};
|
|
@@ -2731,6 +3252,7 @@ declare const v1Router: {
|
|
|
2731
3252
|
token: string;
|
|
2732
3253
|
ipAddress?: string | null | undefined | undefined;
|
|
2733
3254
|
userAgent?: string | null | undefined | undefined;
|
|
3255
|
+
impersonatedBy?: string | null | undefined;
|
|
2734
3256
|
};
|
|
2735
3257
|
user: {
|
|
2736
3258
|
id: string;
|
|
@@ -2745,6 +3267,10 @@ declare const v1Router: {
|
|
|
2745
3267
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2746
3268
|
linkedinId?: string | null | undefined;
|
|
2747
3269
|
linkedinName?: string | null | undefined;
|
|
3270
|
+
banned: boolean | null | undefined;
|
|
3271
|
+
role?: string | null | undefined;
|
|
3272
|
+
banReason?: string | null | undefined;
|
|
3273
|
+
banExpires?: Date | null | undefined;
|
|
2748
3274
|
username?: string | null | undefined;
|
|
2749
3275
|
displayUsername?: string | null | undefined;
|
|
2750
3276
|
};
|
|
@@ -2795,6 +3321,7 @@ declare const v1Router: {
|
|
|
2795
3321
|
token: string;
|
|
2796
3322
|
ipAddress?: string | null | undefined | undefined;
|
|
2797
3323
|
userAgent?: string | null | undefined | undefined;
|
|
3324
|
+
impersonatedBy?: string | null | undefined;
|
|
2798
3325
|
};
|
|
2799
3326
|
user: {
|
|
2800
3327
|
id: string;
|
|
@@ -2809,6 +3336,10 @@ declare const v1Router: {
|
|
|
2809
3336
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2810
3337
|
linkedinId?: string | null | undefined;
|
|
2811
3338
|
linkedinName?: string | null | undefined;
|
|
3339
|
+
banned: boolean | null | undefined;
|
|
3340
|
+
role?: string | null | undefined;
|
|
3341
|
+
banReason?: string | null | undefined;
|
|
3342
|
+
banExpires?: Date | null | undefined;
|
|
2812
3343
|
username?: string | null | undefined;
|
|
2813
3344
|
displayUsername?: string | null | undefined;
|
|
2814
3345
|
};
|
|
@@ -2863,6 +3394,7 @@ declare const v1Router: {
|
|
|
2863
3394
|
token: string;
|
|
2864
3395
|
ipAddress?: string | null | undefined | undefined;
|
|
2865
3396
|
userAgent?: string | null | undefined | undefined;
|
|
3397
|
+
impersonatedBy?: string | null | undefined;
|
|
2866
3398
|
};
|
|
2867
3399
|
user: {
|
|
2868
3400
|
id: string;
|
|
@@ -2877,6 +3409,10 @@ declare const v1Router: {
|
|
|
2877
3409
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2878
3410
|
linkedinId?: string | null | undefined;
|
|
2879
3411
|
linkedinName?: string | null | undefined;
|
|
3412
|
+
banned: boolean | null | undefined;
|
|
3413
|
+
role?: string | null | undefined;
|
|
3414
|
+
banReason?: string | null | undefined;
|
|
3415
|
+
banExpires?: Date | null | undefined;
|
|
2880
3416
|
username?: string | null | undefined;
|
|
2881
3417
|
displayUsername?: string | null | undefined;
|
|
2882
3418
|
};
|
|
@@ -2930,6 +3466,7 @@ declare const v1Router: {
|
|
|
2930
3466
|
token: string;
|
|
2931
3467
|
ipAddress?: string | null | undefined | undefined;
|
|
2932
3468
|
userAgent?: string | null | undefined | undefined;
|
|
3469
|
+
impersonatedBy?: string | null | undefined;
|
|
2933
3470
|
};
|
|
2934
3471
|
user: {
|
|
2935
3472
|
id: string;
|
|
@@ -2944,17 +3481,35 @@ declare const v1Router: {
|
|
|
2944
3481
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
2945
3482
|
linkedinId?: string | null | undefined;
|
|
2946
3483
|
linkedinName?: string | null | undefined;
|
|
3484
|
+
banned: boolean | null | undefined;
|
|
3485
|
+
role?: string | null | undefined;
|
|
3486
|
+
banReason?: string | null | undefined;
|
|
3487
|
+
banExpires?: Date | null | undefined;
|
|
2947
3488
|
username?: string | null | undefined;
|
|
2948
3489
|
displayUsername?: string | null | undefined;
|
|
2949
3490
|
};
|
|
2950
3491
|
}>, zod.ZodObject<{
|
|
2951
3492
|
communityPostId: zod.ZodString;
|
|
3493
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3494
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
3495
|
+
sort: zod.ZodDefault<zod.ZodEnum<{
|
|
3496
|
+
newest: "newest";
|
|
3497
|
+
oldest: "oldest";
|
|
3498
|
+
}>>;
|
|
2952
3499
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2953
3500
|
data: CommunityComment[];
|
|
2954
3501
|
count: number;
|
|
3502
|
+
pagination: {
|
|
3503
|
+
hasMore: boolean;
|
|
3504
|
+
nextCursor: string | undefined;
|
|
3505
|
+
};
|
|
2955
3506
|
}, {
|
|
2956
3507
|
data: CommunityComment[];
|
|
2957
3508
|
count: number;
|
|
3509
|
+
pagination: {
|
|
3510
|
+
hasMore: boolean;
|
|
3511
|
+
nextCursor: string | undefined;
|
|
3512
|
+
};
|
|
2958
3513
|
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2959
3514
|
readonly UNAUTHORIZED: {
|
|
2960
3515
|
readonly message: "You must be logged in to access this resource";
|
|
@@ -2992,6 +3547,7 @@ declare const v1Router: {
|
|
|
2992
3547
|
token: string;
|
|
2993
3548
|
ipAddress?: string | null | undefined | undefined;
|
|
2994
3549
|
userAgent?: string | null | undefined | undefined;
|
|
3550
|
+
impersonatedBy?: string | null | undefined;
|
|
2995
3551
|
};
|
|
2996
3552
|
user: {
|
|
2997
3553
|
id: string;
|
|
@@ -3006,6 +3562,10 @@ declare const v1Router: {
|
|
|
3006
3562
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3007
3563
|
linkedinId?: string | null | undefined;
|
|
3008
3564
|
linkedinName?: string | null | undefined;
|
|
3565
|
+
banned: boolean | null | undefined;
|
|
3566
|
+
role?: string | null | undefined;
|
|
3567
|
+
banReason?: string | null | undefined;
|
|
3568
|
+
banExpires?: Date | null | undefined;
|
|
3009
3569
|
username?: string | null | undefined;
|
|
3010
3570
|
displayUsername?: string | null | undefined;
|
|
3011
3571
|
};
|
|
@@ -3056,6 +3616,7 @@ declare const v1Router: {
|
|
|
3056
3616
|
token: string;
|
|
3057
3617
|
ipAddress?: string | null | undefined | undefined;
|
|
3058
3618
|
userAgent?: string | null | undefined | undefined;
|
|
3619
|
+
impersonatedBy?: string | null | undefined;
|
|
3059
3620
|
};
|
|
3060
3621
|
user: {
|
|
3061
3622
|
id: string;
|
|
@@ -3070,6 +3631,10 @@ declare const v1Router: {
|
|
|
3070
3631
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3071
3632
|
linkedinId?: string | null | undefined;
|
|
3072
3633
|
linkedinName?: string | null | undefined;
|
|
3634
|
+
banned: boolean | null | undefined;
|
|
3635
|
+
role?: string | null | undefined;
|
|
3636
|
+
banReason?: string | null | undefined;
|
|
3637
|
+
banExpires?: Date | null | undefined;
|
|
3073
3638
|
username?: string | null | undefined;
|
|
3074
3639
|
displayUsername?: string | null | undefined;
|
|
3075
3640
|
};
|
|
@@ -3117,6 +3682,7 @@ declare const v1Router: {
|
|
|
3117
3682
|
token: string;
|
|
3118
3683
|
ipAddress?: string | null | undefined | undefined;
|
|
3119
3684
|
userAgent?: string | null | undefined | undefined;
|
|
3685
|
+
impersonatedBy?: string | null | undefined;
|
|
3120
3686
|
};
|
|
3121
3687
|
user: {
|
|
3122
3688
|
id: string;
|
|
@@ -3131,6 +3697,10 @@ declare const v1Router: {
|
|
|
3131
3697
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3132
3698
|
linkedinId?: string | null | undefined;
|
|
3133
3699
|
linkedinName?: string | null | undefined;
|
|
3700
|
+
banned: boolean | null | undefined;
|
|
3701
|
+
role?: string | null | undefined;
|
|
3702
|
+
banReason?: string | null | undefined;
|
|
3703
|
+
banExpires?: Date | null | undefined;
|
|
3134
3704
|
username?: string | null | undefined;
|
|
3135
3705
|
displayUsername?: string | null | undefined;
|
|
3136
3706
|
};
|
|
@@ -3181,6 +3751,7 @@ declare const v1Router: {
|
|
|
3181
3751
|
token: string;
|
|
3182
3752
|
ipAddress?: string | null | undefined | undefined;
|
|
3183
3753
|
userAgent?: string | null | undefined | undefined;
|
|
3754
|
+
impersonatedBy?: string | null | undefined;
|
|
3184
3755
|
};
|
|
3185
3756
|
user: {
|
|
3186
3757
|
id: string;
|
|
@@ -3195,6 +3766,10 @@ declare const v1Router: {
|
|
|
3195
3766
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3196
3767
|
linkedinId?: string | null | undefined;
|
|
3197
3768
|
linkedinName?: string | null | undefined;
|
|
3769
|
+
banned: boolean | null | undefined;
|
|
3770
|
+
role?: string | null | undefined;
|
|
3771
|
+
banReason?: string | null | undefined;
|
|
3772
|
+
banExpires?: Date | null | undefined;
|
|
3198
3773
|
username?: string | null | undefined;
|
|
3199
3774
|
displayUsername?: string | null | undefined;
|
|
3200
3775
|
};
|
|
@@ -3246,6 +3821,7 @@ declare const v1Router: {
|
|
|
3246
3821
|
token: string;
|
|
3247
3822
|
ipAddress?: string | null | undefined | undefined;
|
|
3248
3823
|
userAgent?: string | null | undefined | undefined;
|
|
3824
|
+
impersonatedBy?: string | null | undefined;
|
|
3249
3825
|
};
|
|
3250
3826
|
user: {
|
|
3251
3827
|
id: string;
|
|
@@ -3260,6 +3836,10 @@ declare const v1Router: {
|
|
|
3260
3836
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3261
3837
|
linkedinId?: string | null | undefined;
|
|
3262
3838
|
linkedinName?: string | null | undefined;
|
|
3839
|
+
banned: boolean | null | undefined;
|
|
3840
|
+
role?: string | null | undefined;
|
|
3841
|
+
banReason?: string | null | undefined;
|
|
3842
|
+
banExpires?: Date | null | undefined;
|
|
3263
3843
|
username?: string | null | undefined;
|
|
3264
3844
|
displayUsername?: string | null | undefined;
|
|
3265
3845
|
};
|
|
@@ -3312,6 +3892,7 @@ declare const v1Router: {
|
|
|
3312
3892
|
token: string;
|
|
3313
3893
|
ipAddress?: string | null | undefined | undefined;
|
|
3314
3894
|
userAgent?: string | null | undefined | undefined;
|
|
3895
|
+
impersonatedBy?: string | null | undefined;
|
|
3315
3896
|
};
|
|
3316
3897
|
user: {
|
|
3317
3898
|
id: string;
|
|
@@ -3326,6 +3907,10 @@ declare const v1Router: {
|
|
|
3326
3907
|
linkedinVerifiedAt?: Date | null | undefined;
|
|
3327
3908
|
linkedinId?: string | null | undefined;
|
|
3328
3909
|
linkedinName?: string | null | undefined;
|
|
3910
|
+
banned: boolean | null | undefined;
|
|
3911
|
+
role?: string | null | undefined;
|
|
3912
|
+
banReason?: string | null | undefined;
|
|
3913
|
+
banExpires?: Date | null | undefined;
|
|
3329
3914
|
username?: string | null | undefined;
|
|
3330
3915
|
displayUsername?: string | null | undefined;
|
|
3331
3916
|
};
|
|
@@ -3371,6 +3956,302 @@ declare const v1Router: {
|
|
|
3371
3956
|
};
|
|
3372
3957
|
};
|
|
3373
3958
|
};
|
|
3959
|
+
/**
|
|
3960
|
+
* Notes endpoints - short-form content from contributors.
|
|
3961
|
+
* List/view requires insider role (notes:view permission).
|
|
3962
|
+
* Create/delete requires contributor role (notes:create permission).
|
|
3963
|
+
*/
|
|
3964
|
+
notes: {
|
|
3965
|
+
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3966
|
+
session: {
|
|
3967
|
+
id: string;
|
|
3968
|
+
createdAt: Date;
|
|
3969
|
+
updatedAt: Date;
|
|
3970
|
+
userId: string;
|
|
3971
|
+
expiresAt: Date;
|
|
3972
|
+
token: string;
|
|
3973
|
+
ipAddress?: string | null | undefined | undefined;
|
|
3974
|
+
userAgent?: string | null | undefined | undefined;
|
|
3975
|
+
impersonatedBy?: string | null | undefined;
|
|
3976
|
+
};
|
|
3977
|
+
user: {
|
|
3978
|
+
id: string;
|
|
3979
|
+
createdAt: Date;
|
|
3980
|
+
updatedAt: Date;
|
|
3981
|
+
email: string;
|
|
3982
|
+
emailVerified: boolean;
|
|
3983
|
+
name: string;
|
|
3984
|
+
image?: string | null | undefined | undefined;
|
|
3985
|
+
onboardingCompleted: boolean | null | undefined;
|
|
3986
|
+
linkedinVerified: boolean | null | undefined;
|
|
3987
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
3988
|
+
linkedinId?: string | null | undefined;
|
|
3989
|
+
linkedinName?: string | null | undefined;
|
|
3990
|
+
banned: boolean | null | undefined;
|
|
3991
|
+
role?: string | null | undefined;
|
|
3992
|
+
banReason?: string | null | undefined;
|
|
3993
|
+
banExpires?: Date | null | undefined;
|
|
3994
|
+
username?: string | null | undefined;
|
|
3995
|
+
displayUsername?: string | null | undefined;
|
|
3996
|
+
};
|
|
3997
|
+
}>, zod.ZodObject<{
|
|
3998
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3999
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
4000
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
4001
|
+
data: {
|
|
4002
|
+
id: string;
|
|
4003
|
+
content: string;
|
|
4004
|
+
link: {
|
|
4005
|
+
url: string;
|
|
4006
|
+
title: string | null;
|
|
4007
|
+
description: string | null;
|
|
4008
|
+
image: string | null;
|
|
4009
|
+
} | null;
|
|
4010
|
+
createdAt: Date;
|
|
4011
|
+
updatedAt: Date;
|
|
4012
|
+
author: {
|
|
4013
|
+
id: string;
|
|
4014
|
+
name: string;
|
|
4015
|
+
username: string | null;
|
|
4016
|
+
displayUsername: string | null;
|
|
4017
|
+
image: string | null;
|
|
4018
|
+
linkedinVerified: boolean | null;
|
|
4019
|
+
};
|
|
4020
|
+
isOwner: boolean;
|
|
4021
|
+
}[];
|
|
4022
|
+
pagination: {
|
|
4023
|
+
nextCursor: string | null;
|
|
4024
|
+
hasMore: boolean;
|
|
4025
|
+
};
|
|
4026
|
+
}, {
|
|
4027
|
+
data: {
|
|
4028
|
+
id: string;
|
|
4029
|
+
content: string;
|
|
4030
|
+
link: {
|
|
4031
|
+
url: string;
|
|
4032
|
+
title: string | null;
|
|
4033
|
+
description: string | null;
|
|
4034
|
+
image: string | null;
|
|
4035
|
+
} | null;
|
|
4036
|
+
createdAt: Date;
|
|
4037
|
+
updatedAt: Date;
|
|
4038
|
+
author: {
|
|
4039
|
+
id: string;
|
|
4040
|
+
name: string;
|
|
4041
|
+
username: string | null;
|
|
4042
|
+
displayUsername: string | null;
|
|
4043
|
+
image: string | null;
|
|
4044
|
+
linkedinVerified: boolean | null;
|
|
4045
|
+
};
|
|
4046
|
+
isOwner: boolean;
|
|
4047
|
+
}[];
|
|
4048
|
+
pagination: {
|
|
4049
|
+
nextCursor: string | null;
|
|
4050
|
+
hasMore: boolean;
|
|
4051
|
+
};
|
|
4052
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
4053
|
+
readonly UNAUTHORIZED: {
|
|
4054
|
+
readonly message: "You must be logged in to access this resource";
|
|
4055
|
+
};
|
|
4056
|
+
readonly FORBIDDEN: {
|
|
4057
|
+
readonly message: "You do not have permission to access this resource";
|
|
4058
|
+
};
|
|
4059
|
+
readonly NOT_FOUND: {
|
|
4060
|
+
readonly message: "The requested resource was not found";
|
|
4061
|
+
};
|
|
4062
|
+
readonly BAD_REQUEST: {
|
|
4063
|
+
readonly message: "Invalid request";
|
|
4064
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
4065
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
4066
|
+
code: zod.ZodString;
|
|
4067
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
4068
|
+
message: zod.ZodString;
|
|
4069
|
+
}, better_auth.$loose>>;
|
|
4070
|
+
}, better_auth.$strip>>;
|
|
4071
|
+
};
|
|
4072
|
+
readonly CONFLICT: {
|
|
4073
|
+
readonly message: "The request conflicts with existing data";
|
|
4074
|
+
};
|
|
4075
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
4076
|
+
readonly message: "An internal server error occurred";
|
|
4077
|
+
};
|
|
4078
|
+
}>, Record<never, never>>;
|
|
4079
|
+
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
4080
|
+
session: {
|
|
4081
|
+
id: string;
|
|
4082
|
+
createdAt: Date;
|
|
4083
|
+
updatedAt: Date;
|
|
4084
|
+
userId: string;
|
|
4085
|
+
expiresAt: Date;
|
|
4086
|
+
token: string;
|
|
4087
|
+
ipAddress?: string | null | undefined | undefined;
|
|
4088
|
+
userAgent?: string | null | undefined | undefined;
|
|
4089
|
+
impersonatedBy?: string | null | undefined;
|
|
4090
|
+
};
|
|
4091
|
+
user: {
|
|
4092
|
+
id: string;
|
|
4093
|
+
createdAt: Date;
|
|
4094
|
+
updatedAt: Date;
|
|
4095
|
+
email: string;
|
|
4096
|
+
emailVerified: boolean;
|
|
4097
|
+
name: string;
|
|
4098
|
+
image?: string | null | undefined | undefined;
|
|
4099
|
+
onboardingCompleted: boolean | null | undefined;
|
|
4100
|
+
linkedinVerified: boolean | null | undefined;
|
|
4101
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
4102
|
+
linkedinId?: string | null | undefined;
|
|
4103
|
+
linkedinName?: string | null | undefined;
|
|
4104
|
+
banned: boolean | null | undefined;
|
|
4105
|
+
role?: string | null | undefined;
|
|
4106
|
+
banReason?: string | null | undefined;
|
|
4107
|
+
banExpires?: Date | null | undefined;
|
|
4108
|
+
username?: string | null | undefined;
|
|
4109
|
+
displayUsername?: string | null | undefined;
|
|
4110
|
+
};
|
|
4111
|
+
}>, zod.ZodObject<{
|
|
4112
|
+
content: zod.ZodString;
|
|
4113
|
+
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
4114
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
4115
|
+
data: {
|
|
4116
|
+
id: string;
|
|
4117
|
+
content: string;
|
|
4118
|
+
link: {
|
|
4119
|
+
url: string;
|
|
4120
|
+
title: string | null;
|
|
4121
|
+
description: string | null;
|
|
4122
|
+
image: string | null;
|
|
4123
|
+
} | null;
|
|
4124
|
+
createdAt: Date;
|
|
4125
|
+
updatedAt: Date;
|
|
4126
|
+
author: {
|
|
4127
|
+
id: string;
|
|
4128
|
+
name: string;
|
|
4129
|
+
username: string | null;
|
|
4130
|
+
displayUsername: string | null;
|
|
4131
|
+
image: string | null;
|
|
4132
|
+
linkedinVerified: boolean | null;
|
|
4133
|
+
};
|
|
4134
|
+
isOwner: boolean;
|
|
4135
|
+
};
|
|
4136
|
+
}, {
|
|
4137
|
+
data: {
|
|
4138
|
+
id: string;
|
|
4139
|
+
content: string;
|
|
4140
|
+
link: {
|
|
4141
|
+
url: string;
|
|
4142
|
+
title: string | null;
|
|
4143
|
+
description: string | null;
|
|
4144
|
+
image: string | null;
|
|
4145
|
+
} | null;
|
|
4146
|
+
createdAt: Date;
|
|
4147
|
+
updatedAt: Date;
|
|
4148
|
+
author: {
|
|
4149
|
+
id: string;
|
|
4150
|
+
name: string;
|
|
4151
|
+
username: string | null;
|
|
4152
|
+
displayUsername: string | null;
|
|
4153
|
+
image: string | null;
|
|
4154
|
+
linkedinVerified: boolean | null;
|
|
4155
|
+
};
|
|
4156
|
+
isOwner: boolean;
|
|
4157
|
+
};
|
|
4158
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
4159
|
+
readonly UNAUTHORIZED: {
|
|
4160
|
+
readonly message: "You must be logged in to access this resource";
|
|
4161
|
+
};
|
|
4162
|
+
readonly FORBIDDEN: {
|
|
4163
|
+
readonly message: "You do not have permission to access this resource";
|
|
4164
|
+
};
|
|
4165
|
+
readonly NOT_FOUND: {
|
|
4166
|
+
readonly message: "The requested resource was not found";
|
|
4167
|
+
};
|
|
4168
|
+
readonly BAD_REQUEST: {
|
|
4169
|
+
readonly message: "Invalid request";
|
|
4170
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
4171
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
4172
|
+
code: zod.ZodString;
|
|
4173
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
4174
|
+
message: zod.ZodString;
|
|
4175
|
+
}, better_auth.$loose>>;
|
|
4176
|
+
}, better_auth.$strip>>;
|
|
4177
|
+
};
|
|
4178
|
+
readonly CONFLICT: {
|
|
4179
|
+
readonly message: "The request conflicts with existing data";
|
|
4180
|
+
};
|
|
4181
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
4182
|
+
readonly message: "An internal server error occurred";
|
|
4183
|
+
};
|
|
4184
|
+
}>, Record<never, never>>;
|
|
4185
|
+
delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
4186
|
+
session: {
|
|
4187
|
+
id: string;
|
|
4188
|
+
createdAt: Date;
|
|
4189
|
+
updatedAt: Date;
|
|
4190
|
+
userId: string;
|
|
4191
|
+
expiresAt: Date;
|
|
4192
|
+
token: string;
|
|
4193
|
+
ipAddress?: string | null | undefined | undefined;
|
|
4194
|
+
userAgent?: string | null | undefined | undefined;
|
|
4195
|
+
impersonatedBy?: string | null | undefined;
|
|
4196
|
+
};
|
|
4197
|
+
user: {
|
|
4198
|
+
id: string;
|
|
4199
|
+
createdAt: Date;
|
|
4200
|
+
updatedAt: Date;
|
|
4201
|
+
email: string;
|
|
4202
|
+
emailVerified: boolean;
|
|
4203
|
+
name: string;
|
|
4204
|
+
image?: string | null | undefined | undefined;
|
|
4205
|
+
onboardingCompleted: boolean | null | undefined;
|
|
4206
|
+
linkedinVerified: boolean | null | undefined;
|
|
4207
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
4208
|
+
linkedinId?: string | null | undefined;
|
|
4209
|
+
linkedinName?: string | null | undefined;
|
|
4210
|
+
banned: boolean | null | undefined;
|
|
4211
|
+
role?: string | null | undefined;
|
|
4212
|
+
banReason?: string | null | undefined;
|
|
4213
|
+
banExpires?: Date | null | undefined;
|
|
4214
|
+
username?: string | null | undefined;
|
|
4215
|
+
displayUsername?: string | null | undefined;
|
|
4216
|
+
};
|
|
4217
|
+
}>, zod.ZodObject<{
|
|
4218
|
+
id: zod.ZodString;
|
|
4219
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
4220
|
+
data: {
|
|
4221
|
+
success: boolean;
|
|
4222
|
+
};
|
|
4223
|
+
}, {
|
|
4224
|
+
data: {
|
|
4225
|
+
success: boolean;
|
|
4226
|
+
};
|
|
4227
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
4228
|
+
readonly UNAUTHORIZED: {
|
|
4229
|
+
readonly message: "You must be logged in to access this resource";
|
|
4230
|
+
};
|
|
4231
|
+
readonly FORBIDDEN: {
|
|
4232
|
+
readonly message: "You do not have permission to access this resource";
|
|
4233
|
+
};
|
|
4234
|
+
readonly NOT_FOUND: {
|
|
4235
|
+
readonly message: "The requested resource was not found";
|
|
4236
|
+
};
|
|
4237
|
+
readonly BAD_REQUEST: {
|
|
4238
|
+
readonly message: "Invalid request";
|
|
4239
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
4240
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
4241
|
+
code: zod.ZodString;
|
|
4242
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
4243
|
+
message: zod.ZodString;
|
|
4244
|
+
}, better_auth.$loose>>;
|
|
4245
|
+
}, better_auth.$strip>>;
|
|
4246
|
+
};
|
|
4247
|
+
readonly CONFLICT: {
|
|
4248
|
+
readonly message: "The request conflicts with existing data";
|
|
4249
|
+
};
|
|
4250
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
4251
|
+
readonly message: "An internal server error occurred";
|
|
4252
|
+
};
|
|
4253
|
+
}>, Record<never, never>>;
|
|
4254
|
+
};
|
|
3374
4255
|
};
|
|
3375
4256
|
type V1Router = typeof v1Router;
|
|
3376
4257
|
|