@framebreak/types 0.1.14 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +977 -103
  2. 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,187 @@ 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
+ linkedinUrl: zod.ZodOptional<zod.ZodString>;
1781
+ }, better_auth.$strip>, _orpc_contract.Schema<{
1782
+ data: {
1783
+ id: string;
1784
+ status: InsiderApplicationStatus | null;
1785
+ reason: string | null;
1786
+ linkedinUrl: string | null;
1787
+ createdAt: Date;
1788
+ };
1789
+ }, {
1790
+ data: {
1791
+ id: string;
1792
+ status: InsiderApplicationStatus | null;
1793
+ reason: string | null;
1794
+ linkedinUrl: string | null;
1795
+ createdAt: Date;
1796
+ };
1797
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1798
+ readonly UNAUTHORIZED: {
1799
+ readonly message: "You must be logged in to access this resource";
1800
+ };
1801
+ readonly FORBIDDEN: {
1802
+ readonly message: "You do not have permission to access this resource";
1803
+ };
1804
+ readonly NOT_FOUND: {
1805
+ readonly message: "The requested resource was not found";
1806
+ };
1807
+ readonly BAD_REQUEST: {
1808
+ readonly message: "Invalid request";
1809
+ readonly data: zod.ZodOptional<zod.ZodObject<{
1810
+ issues: zod.ZodArray<zod.ZodObject<{
1811
+ code: zod.ZodString;
1812
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1813
+ message: zod.ZodString;
1814
+ }, better_auth.$loose>>;
1815
+ }, better_auth.$strip>>;
1816
+ };
1817
+ readonly CONFLICT: {
1818
+ readonly message: "The request conflicts with existing data";
1819
+ };
1820
+ readonly INTERNAL_SERVER_ERROR: {
1821
+ readonly message: "An internal server error occurred";
1822
+ };
1823
+ }>, Record<never, never>>;
1824
+ status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
1825
+ session: {
1826
+ id: string;
1827
+ createdAt: Date;
1828
+ updatedAt: Date;
1829
+ userId: string;
1830
+ expiresAt: Date;
1831
+ token: string;
1832
+ ipAddress?: string | null | undefined | undefined;
1833
+ userAgent?: string | null | undefined | undefined;
1834
+ impersonatedBy?: string | null | undefined;
1835
+ };
1836
+ user: {
1837
+ id: string;
1838
+ createdAt: Date;
1839
+ updatedAt: Date;
1840
+ email: string;
1841
+ emailVerified: boolean;
1842
+ name: string;
1843
+ image?: string | null | undefined | undefined;
1844
+ onboardingCompleted: boolean | null | undefined;
1845
+ linkedinVerified: boolean | null | undefined;
1846
+ linkedinVerifiedAt?: Date | null | undefined;
1847
+ linkedinId?: string | null | undefined;
1848
+ linkedinName?: string | null | undefined;
1849
+ banned: boolean | null | undefined;
1850
+ role?: string | null | undefined;
1851
+ banReason?: string | null | undefined;
1852
+ banExpires?: Date | null | undefined;
1853
+ username?: string | null | undefined;
1854
+ displayUsername?: string | null | undefined;
1855
+ };
1856
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1857
+ data: {
1858
+ isInsider: boolean;
1859
+ role: string;
1860
+ application: null;
1861
+ };
1862
+ } | {
1863
+ data: {
1864
+ isInsider: boolean;
1865
+ role: string;
1866
+ application: {
1867
+ id: string;
1868
+ status: InsiderApplicationStatus | null;
1869
+ reason: string | null;
1870
+ linkedinUrl: string | null;
1871
+ createdAt: Date;
1872
+ reviewedAt: Date | null;
1873
+ };
1874
+ };
1875
+ }, {
1876
+ data: {
1877
+ isInsider: boolean;
1878
+ role: string;
1879
+ application: null;
1880
+ };
1881
+ } | {
1882
+ data: {
1883
+ isInsider: boolean;
1884
+ role: string;
1885
+ application: {
1886
+ id: string;
1887
+ status: InsiderApplicationStatus | null;
1888
+ reason: string | null;
1889
+ linkedinUrl: string | null;
1890
+ createdAt: Date;
1891
+ reviewedAt: Date | null;
1892
+ };
1893
+ };
1894
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1895
+ readonly UNAUTHORIZED: {
1896
+ readonly message: "You must be logged in to access this resource";
1897
+ };
1898
+ readonly FORBIDDEN: {
1899
+ readonly message: "You do not have permission to access this resource";
1900
+ };
1901
+ readonly NOT_FOUND: {
1902
+ readonly message: "The requested resource was not found";
1903
+ };
1904
+ readonly BAD_REQUEST: {
1905
+ readonly message: "Invalid request";
1906
+ readonly data: zod.ZodOptional<zod.ZodObject<{
1907
+ issues: zod.ZodArray<zod.ZodObject<{
1908
+ code: zod.ZodString;
1909
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1910
+ message: zod.ZodString;
1911
+ }, better_auth.$loose>>;
1912
+ }, better_auth.$strip>>;
1913
+ };
1914
+ readonly CONFLICT: {
1915
+ readonly message: "The request conflicts with existing data";
1916
+ };
1917
+ readonly INTERNAL_SERVER_ERROR: {
1918
+ readonly message: "An internal server error occurred";
1919
+ };
1920
+ }>, Record<never, never>>;
1921
+ };
1634
1922
  /**
1635
1923
  * Internal endpoints - require API key authentication.
1636
1924
  * Used for service-to-service communication (e.g., Brain -> Feed, CoS -> Feed).
@@ -2032,124 +2320,53 @@ declare const v1Router: {
2032
2320
  };
2033
2321
  }>, Record<never, never>>;
2034
2322
  };
2035
- };
2036
- /**
2037
- * Community endpoints - user-generated content.
2038
- */
2039
- community: {
2040
- posts: {
2323
+ insiderApplications: {
2041
2324
  list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2042
- session: {
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
- };
2325
+ isInternalRequest: true;
2068
2326
  }>, zod.ZodObject<{
2069
- cursor: zod.ZodOptional<zod.ZodString>;
2070
- limit: zod.ZodDefault<zod.ZodNumber>;
2071
- sort: zod.ZodDefault<zod.ZodEnum<{
2072
- newest: "newest";
2073
- oldest: "oldest";
2327
+ status: zod.ZodOptional<zod.ZodEnum<{
2328
+ pending: "pending";
2329
+ approved: "approved";
2330
+ rejected: "rejected";
2074
2331
  }>>;
2332
+ limit: zod.ZodDefault<zod.ZodNumber>;
2333
+ since: zod.ZodOptional<zod.ZodString>;
2075
2334
  }, better_auth.$strip>, _orpc_contract.Schema<{
2076
2335
  data: {
2077
2336
  id: string;
2078
- content: string;
2079
- images: string[];
2080
- link: {
2081
- url: string;
2082
- title: string | null;
2083
- description: string | null;
2084
- image: string | null;
2085
- favicon: string | null;
2086
- siteName: string | null;
2087
- } | null;
2088
- author: {
2337
+ userId: string;
2338
+ reason: string | null;
2339
+ linkedinUrl: string | null;
2340
+ status: InsiderApplicationStatus | null;
2341
+ createdAt: Date;
2342
+ reviewedAt: Date | null;
2343
+ user: {
2089
2344
  id: string;
2090
2345
  name: string;
2346
+ email: string;
2091
2347
  username: string | null;
2092
- displayUsername: string | null;
2093
2348
  image: string | null;
2094
2349
  linkedinVerified: boolean | null;
2095
2350
  };
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
2351
  }[];
2110
- pagination: {
2111
- nextCursor: string | null;
2112
- hasMore: boolean;
2113
- };
2114
2352
  }, {
2115
2353
  data: {
2116
2354
  id: string;
2117
- content: string;
2118
- images: string[];
2119
- link: {
2120
- url: string;
2121
- title: string | null;
2122
- description: string | null;
2123
- image: string | null;
2124
- favicon: string | null;
2125
- siteName: string | null;
2126
- } | null;
2127
- author: {
2355
+ userId: string;
2356
+ reason: string | null;
2357
+ linkedinUrl: string | null;
2358
+ status: InsiderApplicationStatus | null;
2359
+ createdAt: Date;
2360
+ reviewedAt: Date | null;
2361
+ user: {
2128
2362
  id: string;
2129
2363
  name: string;
2364
+ email: string;
2130
2365
  username: string | null;
2131
- displayUsername: string | null;
2132
2366
  image: string | null;
2133
2367
  linkedinVerified: boolean | null;
2134
2368
  };
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
2369
  }[];
2149
- pagination: {
2150
- nextCursor: string | null;
2151
- hasMore: boolean;
2152
- };
2153
2370
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2154
2371
  readonly UNAUTHORIZED: {
2155
2372
  readonly message: "You must be logged in to access this resource";
@@ -2177,16 +2394,298 @@ declare const v1Router: {
2177
2394
  readonly message: "An internal server error occurred";
2178
2395
  };
2179
2396
  }>, Record<never, never>>;
2180
- get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2181
- session: {
2182
- id: string;
2183
- createdAt: Date;
2184
- updatedAt: Date;
2185
- userId: string;
2186
- expiresAt: Date;
2187
- token: string;
2397
+ count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2398
+ isInternalRequest: true;
2399
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
2400
+ data: {
2401
+ total: number;
2402
+ pending: number;
2403
+ approved: number;
2404
+ rejected: number;
2405
+ };
2406
+ }, {
2407
+ data: {
2408
+ total: number;
2409
+ pending: number;
2410
+ approved: number;
2411
+ rejected: number;
2412
+ };
2413
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2414
+ readonly UNAUTHORIZED: {
2415
+ readonly message: "You must be logged in to access this resource";
2416
+ };
2417
+ readonly FORBIDDEN: {
2418
+ readonly message: "You do not have permission to access this resource";
2419
+ };
2420
+ readonly NOT_FOUND: {
2421
+ readonly message: "The requested resource was not found";
2422
+ };
2423
+ readonly BAD_REQUEST: {
2424
+ readonly message: "Invalid request";
2425
+ readonly data: zod.ZodOptional<zod.ZodObject<{
2426
+ issues: zod.ZodArray<zod.ZodObject<{
2427
+ code: zod.ZodString;
2428
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2429
+ message: zod.ZodString;
2430
+ }, better_auth.$loose>>;
2431
+ }, better_auth.$strip>>;
2432
+ };
2433
+ readonly CONFLICT: {
2434
+ readonly message: "The request conflicts with existing data";
2435
+ };
2436
+ readonly INTERNAL_SERVER_ERROR: {
2437
+ readonly message: "An internal server error occurred";
2438
+ };
2439
+ }>, Record<never, never>>;
2440
+ approve: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2441
+ isInternalRequest: true;
2442
+ }>, zod.ZodObject<{
2443
+ applicationId: zod.ZodString;
2444
+ }, better_auth.$strip>, _orpc_contract.Schema<{
2445
+ data: {
2446
+ success: boolean;
2447
+ applicationId: string;
2448
+ userId: string;
2449
+ email: string;
2450
+ };
2451
+ }, {
2452
+ data: {
2453
+ success: boolean;
2454
+ applicationId: string;
2455
+ userId: string;
2456
+ email: string;
2457
+ };
2458
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2459
+ readonly UNAUTHORIZED: {
2460
+ readonly message: "You must be logged in to access this resource";
2461
+ };
2462
+ readonly FORBIDDEN: {
2463
+ readonly message: "You do not have permission to access this resource";
2464
+ };
2465
+ readonly NOT_FOUND: {
2466
+ readonly message: "The requested resource was not found";
2467
+ };
2468
+ readonly BAD_REQUEST: {
2469
+ readonly message: "Invalid request";
2470
+ readonly data: zod.ZodOptional<zod.ZodObject<{
2471
+ issues: zod.ZodArray<zod.ZodObject<{
2472
+ code: zod.ZodString;
2473
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2474
+ message: zod.ZodString;
2475
+ }, better_auth.$loose>>;
2476
+ }, better_auth.$strip>>;
2477
+ };
2478
+ readonly CONFLICT: {
2479
+ readonly message: "The request conflicts with existing data";
2480
+ };
2481
+ readonly INTERNAL_SERVER_ERROR: {
2482
+ readonly message: "An internal server error occurred";
2483
+ };
2484
+ }>, Record<never, never>>;
2485
+ reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2486
+ isInternalRequest: true;
2487
+ }>, zod.ZodObject<{
2488
+ applicationId: zod.ZodString;
2489
+ }, better_auth.$strip>, _orpc_contract.Schema<{
2490
+ data: {
2491
+ success: boolean;
2492
+ applicationId: string;
2493
+ };
2494
+ }, {
2495
+ data: {
2496
+ success: boolean;
2497
+ applicationId: string;
2498
+ };
2499
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2500
+ readonly UNAUTHORIZED: {
2501
+ readonly message: "You must be logged in to access this resource";
2502
+ };
2503
+ readonly FORBIDDEN: {
2504
+ readonly message: "You do not have permission to access this resource";
2505
+ };
2506
+ readonly NOT_FOUND: {
2507
+ readonly message: "The requested resource was not found";
2508
+ };
2509
+ readonly BAD_REQUEST: {
2510
+ readonly message: "Invalid request";
2511
+ readonly data: zod.ZodOptional<zod.ZodObject<{
2512
+ issues: zod.ZodArray<zod.ZodObject<{
2513
+ code: zod.ZodString;
2514
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2515
+ message: zod.ZodString;
2516
+ }, better_auth.$loose>>;
2517
+ }, better_auth.$strip>>;
2518
+ };
2519
+ readonly CONFLICT: {
2520
+ readonly message: "The request conflicts with existing data";
2521
+ };
2522
+ readonly INTERNAL_SERVER_ERROR: {
2523
+ readonly message: "An internal server error occurred";
2524
+ };
2525
+ }>, Record<never, never>>;
2526
+ };
2527
+ };
2528
+ /**
2529
+ * Community endpoints - user-generated content.
2530
+ * Requires insider role (community:view permission).
2531
+ */
2532
+ community: {
2533
+ posts: {
2534
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2535
+ session: {
2536
+ id: string;
2537
+ createdAt: Date;
2538
+ updatedAt: Date;
2539
+ userId: string;
2540
+ expiresAt: Date;
2541
+ token: string;
2542
+ ipAddress?: string | null | undefined | undefined;
2543
+ userAgent?: string | null | undefined | undefined;
2544
+ impersonatedBy?: string | null | undefined;
2545
+ };
2546
+ user: {
2547
+ id: string;
2548
+ createdAt: Date;
2549
+ updatedAt: Date;
2550
+ email: string;
2551
+ emailVerified: boolean;
2552
+ name: string;
2553
+ image?: string | null | undefined | undefined;
2554
+ onboardingCompleted: boolean | null | undefined;
2555
+ linkedinVerified: boolean | null | undefined;
2556
+ linkedinVerifiedAt?: Date | null | undefined;
2557
+ linkedinId?: string | null | undefined;
2558
+ linkedinName?: string | null | undefined;
2559
+ banned: boolean | null | undefined;
2560
+ role?: string | null | undefined;
2561
+ banReason?: string | null | undefined;
2562
+ banExpires?: Date | null | undefined;
2563
+ username?: string | null | undefined;
2564
+ displayUsername?: string | null | undefined;
2565
+ };
2566
+ }>, zod.ZodObject<{
2567
+ cursor: zod.ZodOptional<zod.ZodString>;
2568
+ limit: zod.ZodDefault<zod.ZodNumber>;
2569
+ sort: zod.ZodDefault<zod.ZodEnum<{
2570
+ newest: "newest";
2571
+ oldest: "oldest";
2572
+ }>>;
2573
+ }, better_auth.$strip>, _orpc_contract.Schema<{
2574
+ data: {
2575
+ id: string;
2576
+ content: string;
2577
+ images: string[];
2578
+ link: {
2579
+ url: string;
2580
+ title: string | null;
2581
+ description: string | null;
2582
+ image: string | null;
2583
+ favicon: string | null;
2584
+ siteName: string | null;
2585
+ } | null;
2586
+ author: {
2587
+ id: string;
2588
+ name: string;
2589
+ username: string | null;
2590
+ displayUsername: string | null;
2591
+ image: string | null;
2592
+ linkedinVerified: boolean | null;
2593
+ };
2594
+ createdAt: Date;
2595
+ updatedAt: Date;
2596
+ engagement: {
2597
+ likesCount: number;
2598
+ commentsCount: number;
2599
+ isLiked: boolean;
2600
+ reactions: {
2601
+ type: string;
2602
+ count: number;
2603
+ isReacted: boolean;
2604
+ }[];
2605
+ };
2606
+ replyAvatars: string[];
2607
+ }[];
2608
+ pagination: {
2609
+ nextCursor: string | null;
2610
+ hasMore: boolean;
2611
+ };
2612
+ }, {
2613
+ data: {
2614
+ id: string;
2615
+ content: string;
2616
+ images: string[];
2617
+ link: {
2618
+ url: string;
2619
+ title: string | null;
2620
+ description: string | null;
2621
+ image: string | null;
2622
+ favicon: string | null;
2623
+ siteName: string | null;
2624
+ } | null;
2625
+ author: {
2626
+ id: string;
2627
+ name: string;
2628
+ username: string | null;
2629
+ displayUsername: string | null;
2630
+ image: string | null;
2631
+ linkedinVerified: boolean | null;
2632
+ };
2633
+ createdAt: Date;
2634
+ updatedAt: Date;
2635
+ engagement: {
2636
+ likesCount: number;
2637
+ commentsCount: number;
2638
+ isLiked: boolean;
2639
+ reactions: {
2640
+ type: string;
2641
+ count: number;
2642
+ isReacted: boolean;
2643
+ }[];
2644
+ };
2645
+ replyAvatars: string[];
2646
+ }[];
2647
+ pagination: {
2648
+ nextCursor: string | null;
2649
+ hasMore: boolean;
2650
+ };
2651
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2652
+ readonly UNAUTHORIZED: {
2653
+ readonly message: "You must be logged in to access this resource";
2654
+ };
2655
+ readonly FORBIDDEN: {
2656
+ readonly message: "You do not have permission to access this resource";
2657
+ };
2658
+ readonly NOT_FOUND: {
2659
+ readonly message: "The requested resource was not found";
2660
+ };
2661
+ readonly BAD_REQUEST: {
2662
+ readonly message: "Invalid request";
2663
+ readonly data: zod.ZodOptional<zod.ZodObject<{
2664
+ issues: zod.ZodArray<zod.ZodObject<{
2665
+ code: zod.ZodString;
2666
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2667
+ message: zod.ZodString;
2668
+ }, better_auth.$loose>>;
2669
+ }, better_auth.$strip>>;
2670
+ };
2671
+ readonly CONFLICT: {
2672
+ readonly message: "The request conflicts with existing data";
2673
+ };
2674
+ readonly INTERNAL_SERVER_ERROR: {
2675
+ readonly message: "An internal server error occurred";
2676
+ };
2677
+ }>, Record<never, never>>;
2678
+ get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
2679
+ session: {
2680
+ id: string;
2681
+ createdAt: Date;
2682
+ updatedAt: Date;
2683
+ userId: string;
2684
+ expiresAt: Date;
2685
+ token: string;
2188
2686
  ipAddress?: string | null | undefined | undefined;
2189
2687
  userAgent?: string | null | undefined | undefined;
2688
+ impersonatedBy?: string | null | undefined;
2190
2689
  };
2191
2690
  user: {
2192
2691
  id: string;
@@ -2201,6 +2700,10 @@ declare const v1Router: {
2201
2700
  linkedinVerifiedAt?: Date | null | undefined;
2202
2701
  linkedinId?: string | null | undefined;
2203
2702
  linkedinName?: string | null | undefined;
2703
+ banned: boolean | null | undefined;
2704
+ role?: string | null | undefined;
2705
+ banReason?: string | null | undefined;
2706
+ banExpires?: Date | null | undefined;
2204
2707
  username?: string | null | undefined;
2205
2708
  displayUsername?: string | null | undefined;
2206
2709
  };
@@ -2311,6 +2814,7 @@ declare const v1Router: {
2311
2814
  token: string;
2312
2815
  ipAddress?: string | null | undefined | undefined;
2313
2816
  userAgent?: string | null | undefined | undefined;
2817
+ impersonatedBy?: string | null | undefined;
2314
2818
  };
2315
2819
  user: {
2316
2820
  id: string;
@@ -2325,6 +2829,10 @@ declare const v1Router: {
2325
2829
  linkedinVerifiedAt?: Date | null | undefined;
2326
2830
  linkedinId?: string | null | undefined;
2327
2831
  linkedinName?: string | null | undefined;
2832
+ banned: boolean | null | undefined;
2833
+ role?: string | null | undefined;
2834
+ banReason?: string | null | undefined;
2835
+ banExpires?: Date | null | undefined;
2328
2836
  username?: string | null | undefined;
2329
2837
  displayUsername?: string | null | undefined;
2330
2838
  };
@@ -2431,6 +2939,7 @@ declare const v1Router: {
2431
2939
  token: string;
2432
2940
  ipAddress?: string | null | undefined | undefined;
2433
2941
  userAgent?: string | null | undefined | undefined;
2942
+ impersonatedBy?: string | null | undefined;
2434
2943
  };
2435
2944
  user: {
2436
2945
  id: string;
@@ -2445,6 +2954,10 @@ declare const v1Router: {
2445
2954
  linkedinVerifiedAt?: Date | null | undefined;
2446
2955
  linkedinId?: string | null | undefined;
2447
2956
  linkedinName?: string | null | undefined;
2957
+ banned: boolean | null | undefined;
2958
+ role?: string | null | undefined;
2959
+ banReason?: string | null | undefined;
2960
+ banExpires?: Date | null | undefined;
2448
2961
  username?: string | null | undefined;
2449
2962
  displayUsername?: string | null | undefined;
2450
2963
  };
@@ -2524,6 +3037,7 @@ declare const v1Router: {
2524
3037
  token: string;
2525
3038
  ipAddress?: string | null | undefined | undefined;
2526
3039
  userAgent?: string | null | undefined | undefined;
3040
+ impersonatedBy?: string | null | undefined;
2527
3041
  };
2528
3042
  user: {
2529
3043
  id: string;
@@ -2538,6 +3052,10 @@ declare const v1Router: {
2538
3052
  linkedinVerifiedAt?: Date | null | undefined;
2539
3053
  linkedinId?: string | null | undefined;
2540
3054
  linkedinName?: string | null | undefined;
3055
+ banned: boolean | null | undefined;
3056
+ role?: string | null | undefined;
3057
+ banReason?: string | null | undefined;
3058
+ banExpires?: Date | null | undefined;
2541
3059
  username?: string | null | undefined;
2542
3060
  displayUsername?: string | null | undefined;
2543
3061
  };
@@ -2588,6 +3106,7 @@ declare const v1Router: {
2588
3106
  token: string;
2589
3107
  ipAddress?: string | null | undefined | undefined;
2590
3108
  userAgent?: string | null | undefined | undefined;
3109
+ impersonatedBy?: string | null | undefined;
2591
3110
  };
2592
3111
  user: {
2593
3112
  id: string;
@@ -2602,6 +3121,10 @@ declare const v1Router: {
2602
3121
  linkedinVerifiedAt?: Date | null | undefined;
2603
3122
  linkedinId?: string | null | undefined;
2604
3123
  linkedinName?: string | null | undefined;
3124
+ banned: boolean | null | undefined;
3125
+ role?: string | null | undefined;
3126
+ banReason?: string | null | undefined;
3127
+ banExpires?: Date | null | undefined;
2605
3128
  username?: string | null | undefined;
2606
3129
  displayUsername?: string | null | undefined;
2607
3130
  };
@@ -2658,6 +3181,7 @@ declare const v1Router: {
2658
3181
  token: string;
2659
3182
  ipAddress?: string | null | undefined | undefined;
2660
3183
  userAgent?: string | null | undefined | undefined;
3184
+ impersonatedBy?: string | null | undefined;
2661
3185
  };
2662
3186
  user: {
2663
3187
  id: string;
@@ -2672,6 +3196,10 @@ declare const v1Router: {
2672
3196
  linkedinVerifiedAt?: Date | null | undefined;
2673
3197
  linkedinId?: string | null | undefined;
2674
3198
  linkedinName?: string | null | undefined;
3199
+ banned: boolean | null | undefined;
3200
+ role?: string | null | undefined;
3201
+ banReason?: string | null | undefined;
3202
+ banExpires?: Date | null | undefined;
2675
3203
  username?: string | null | undefined;
2676
3204
  displayUsername?: string | null | undefined;
2677
3205
  };
@@ -2731,6 +3259,7 @@ declare const v1Router: {
2731
3259
  token: string;
2732
3260
  ipAddress?: string | null | undefined | undefined;
2733
3261
  userAgent?: string | null | undefined | undefined;
3262
+ impersonatedBy?: string | null | undefined;
2734
3263
  };
2735
3264
  user: {
2736
3265
  id: string;
@@ -2745,6 +3274,10 @@ declare const v1Router: {
2745
3274
  linkedinVerifiedAt?: Date | null | undefined;
2746
3275
  linkedinId?: string | null | undefined;
2747
3276
  linkedinName?: string | null | undefined;
3277
+ banned: boolean | null | undefined;
3278
+ role?: string | null | undefined;
3279
+ banReason?: string | null | undefined;
3280
+ banExpires?: Date | null | undefined;
2748
3281
  username?: string | null | undefined;
2749
3282
  displayUsername?: string | null | undefined;
2750
3283
  };
@@ -2795,6 +3328,7 @@ declare const v1Router: {
2795
3328
  token: string;
2796
3329
  ipAddress?: string | null | undefined | undefined;
2797
3330
  userAgent?: string | null | undefined | undefined;
3331
+ impersonatedBy?: string | null | undefined;
2798
3332
  };
2799
3333
  user: {
2800
3334
  id: string;
@@ -2809,6 +3343,10 @@ declare const v1Router: {
2809
3343
  linkedinVerifiedAt?: Date | null | undefined;
2810
3344
  linkedinId?: string | null | undefined;
2811
3345
  linkedinName?: string | null | undefined;
3346
+ banned: boolean | null | undefined;
3347
+ role?: string | null | undefined;
3348
+ banReason?: string | null | undefined;
3349
+ banExpires?: Date | null | undefined;
2812
3350
  username?: string | null | undefined;
2813
3351
  displayUsername?: string | null | undefined;
2814
3352
  };
@@ -2863,6 +3401,7 @@ declare const v1Router: {
2863
3401
  token: string;
2864
3402
  ipAddress?: string | null | undefined | undefined;
2865
3403
  userAgent?: string | null | undefined | undefined;
3404
+ impersonatedBy?: string | null | undefined;
2866
3405
  };
2867
3406
  user: {
2868
3407
  id: string;
@@ -2877,6 +3416,10 @@ declare const v1Router: {
2877
3416
  linkedinVerifiedAt?: Date | null | undefined;
2878
3417
  linkedinId?: string | null | undefined;
2879
3418
  linkedinName?: string | null | undefined;
3419
+ banned: boolean | null | undefined;
3420
+ role?: string | null | undefined;
3421
+ banReason?: string | null | undefined;
3422
+ banExpires?: Date | null | undefined;
2880
3423
  username?: string | null | undefined;
2881
3424
  displayUsername?: string | null | undefined;
2882
3425
  };
@@ -2930,6 +3473,7 @@ declare const v1Router: {
2930
3473
  token: string;
2931
3474
  ipAddress?: string | null | undefined | undefined;
2932
3475
  userAgent?: string | null | undefined | undefined;
3476
+ impersonatedBy?: string | null | undefined;
2933
3477
  };
2934
3478
  user: {
2935
3479
  id: string;
@@ -2944,6 +3488,10 @@ declare const v1Router: {
2944
3488
  linkedinVerifiedAt?: Date | null | undefined;
2945
3489
  linkedinId?: string | null | undefined;
2946
3490
  linkedinName?: string | null | undefined;
3491
+ banned: boolean | null | undefined;
3492
+ role?: string | null | undefined;
3493
+ banReason?: string | null | undefined;
3494
+ banExpires?: Date | null | undefined;
2947
3495
  username?: string | null | undefined;
2948
3496
  displayUsername?: string | null | undefined;
2949
3497
  };
@@ -3006,6 +3554,7 @@ declare const v1Router: {
3006
3554
  token: string;
3007
3555
  ipAddress?: string | null | undefined | undefined;
3008
3556
  userAgent?: string | null | undefined | undefined;
3557
+ impersonatedBy?: string | null | undefined;
3009
3558
  };
3010
3559
  user: {
3011
3560
  id: string;
@@ -3020,6 +3569,10 @@ declare const v1Router: {
3020
3569
  linkedinVerifiedAt?: Date | null | undefined;
3021
3570
  linkedinId?: string | null | undefined;
3022
3571
  linkedinName?: string | null | undefined;
3572
+ banned: boolean | null | undefined;
3573
+ role?: string | null | undefined;
3574
+ banReason?: string | null | undefined;
3575
+ banExpires?: Date | null | undefined;
3023
3576
  username?: string | null | undefined;
3024
3577
  displayUsername?: string | null | undefined;
3025
3578
  };
@@ -3070,6 +3623,7 @@ declare const v1Router: {
3070
3623
  token: string;
3071
3624
  ipAddress?: string | null | undefined | undefined;
3072
3625
  userAgent?: string | null | undefined | undefined;
3626
+ impersonatedBy?: string | null | undefined;
3073
3627
  };
3074
3628
  user: {
3075
3629
  id: string;
@@ -3084,6 +3638,10 @@ declare const v1Router: {
3084
3638
  linkedinVerifiedAt?: Date | null | undefined;
3085
3639
  linkedinId?: string | null | undefined;
3086
3640
  linkedinName?: string | null | undefined;
3641
+ banned: boolean | null | undefined;
3642
+ role?: string | null | undefined;
3643
+ banReason?: string | null | undefined;
3644
+ banExpires?: Date | null | undefined;
3087
3645
  username?: string | null | undefined;
3088
3646
  displayUsername?: string | null | undefined;
3089
3647
  };
@@ -3131,6 +3689,7 @@ declare const v1Router: {
3131
3689
  token: string;
3132
3690
  ipAddress?: string | null | undefined | undefined;
3133
3691
  userAgent?: string | null | undefined | undefined;
3692
+ impersonatedBy?: string | null | undefined;
3134
3693
  };
3135
3694
  user: {
3136
3695
  id: string;
@@ -3145,6 +3704,10 @@ declare const v1Router: {
3145
3704
  linkedinVerifiedAt?: Date | null | undefined;
3146
3705
  linkedinId?: string | null | undefined;
3147
3706
  linkedinName?: string | null | undefined;
3707
+ banned: boolean | null | undefined;
3708
+ role?: string | null | undefined;
3709
+ banReason?: string | null | undefined;
3710
+ banExpires?: Date | null | undefined;
3148
3711
  username?: string | null | undefined;
3149
3712
  displayUsername?: string | null | undefined;
3150
3713
  };
@@ -3195,6 +3758,7 @@ declare const v1Router: {
3195
3758
  token: string;
3196
3759
  ipAddress?: string | null | undefined | undefined;
3197
3760
  userAgent?: string | null | undefined | undefined;
3761
+ impersonatedBy?: string | null | undefined;
3198
3762
  };
3199
3763
  user: {
3200
3764
  id: string;
@@ -3209,6 +3773,10 @@ declare const v1Router: {
3209
3773
  linkedinVerifiedAt?: Date | null | undefined;
3210
3774
  linkedinId?: string | null | undefined;
3211
3775
  linkedinName?: string | null | undefined;
3776
+ banned: boolean | null | undefined;
3777
+ role?: string | null | undefined;
3778
+ banReason?: string | null | undefined;
3779
+ banExpires?: Date | null | undefined;
3212
3780
  username?: string | null | undefined;
3213
3781
  displayUsername?: string | null | undefined;
3214
3782
  };
@@ -3260,6 +3828,7 @@ declare const v1Router: {
3260
3828
  token: string;
3261
3829
  ipAddress?: string | null | undefined | undefined;
3262
3830
  userAgent?: string | null | undefined | undefined;
3831
+ impersonatedBy?: string | null | undefined;
3263
3832
  };
3264
3833
  user: {
3265
3834
  id: string;
@@ -3274,6 +3843,10 @@ declare const v1Router: {
3274
3843
  linkedinVerifiedAt?: Date | null | undefined;
3275
3844
  linkedinId?: string | null | undefined;
3276
3845
  linkedinName?: string | null | undefined;
3846
+ banned: boolean | null | undefined;
3847
+ role?: string | null | undefined;
3848
+ banReason?: string | null | undefined;
3849
+ banExpires?: Date | null | undefined;
3277
3850
  username?: string | null | undefined;
3278
3851
  displayUsername?: string | null | undefined;
3279
3852
  };
@@ -3326,6 +3899,7 @@ declare const v1Router: {
3326
3899
  token: string;
3327
3900
  ipAddress?: string | null | undefined | undefined;
3328
3901
  userAgent?: string | null | undefined | undefined;
3902
+ impersonatedBy?: string | null | undefined;
3329
3903
  };
3330
3904
  user: {
3331
3905
  id: string;
@@ -3340,6 +3914,10 @@ declare const v1Router: {
3340
3914
  linkedinVerifiedAt?: Date | null | undefined;
3341
3915
  linkedinId?: string | null | undefined;
3342
3916
  linkedinName?: string | null | undefined;
3917
+ banned: boolean | null | undefined;
3918
+ role?: string | null | undefined;
3919
+ banReason?: string | null | undefined;
3920
+ banExpires?: Date | null | undefined;
3343
3921
  username?: string | null | undefined;
3344
3922
  displayUsername?: string | null | undefined;
3345
3923
  };
@@ -3385,6 +3963,302 @@ declare const v1Router: {
3385
3963
  };
3386
3964
  };
3387
3965
  };
3966
+ /**
3967
+ * Notes endpoints - short-form content from contributors.
3968
+ * List/view requires insider role (notes:view permission).
3969
+ * Create/delete requires contributor role (notes:create permission).
3970
+ */
3971
+ notes: {
3972
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
3973
+ session: {
3974
+ id: string;
3975
+ createdAt: Date;
3976
+ updatedAt: Date;
3977
+ userId: string;
3978
+ expiresAt: Date;
3979
+ token: string;
3980
+ ipAddress?: string | null | undefined | undefined;
3981
+ userAgent?: string | null | undefined | undefined;
3982
+ impersonatedBy?: string | null | undefined;
3983
+ };
3984
+ user: {
3985
+ id: string;
3986
+ createdAt: Date;
3987
+ updatedAt: Date;
3988
+ email: string;
3989
+ emailVerified: boolean;
3990
+ name: string;
3991
+ image?: string | null | undefined | undefined;
3992
+ onboardingCompleted: boolean | null | undefined;
3993
+ linkedinVerified: boolean | null | undefined;
3994
+ linkedinVerifiedAt?: Date | null | undefined;
3995
+ linkedinId?: string | null | undefined;
3996
+ linkedinName?: string | null | undefined;
3997
+ banned: boolean | null | undefined;
3998
+ role?: string | null | undefined;
3999
+ banReason?: string | null | undefined;
4000
+ banExpires?: Date | null | undefined;
4001
+ username?: string | null | undefined;
4002
+ displayUsername?: string | null | undefined;
4003
+ };
4004
+ }>, zod.ZodObject<{
4005
+ cursor: zod.ZodOptional<zod.ZodString>;
4006
+ limit: zod.ZodDefault<zod.ZodNumber>;
4007
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4008
+ data: {
4009
+ id: string;
4010
+ content: string;
4011
+ link: {
4012
+ url: string;
4013
+ title: string | null;
4014
+ description: string | null;
4015
+ image: string | null;
4016
+ } | null;
4017
+ createdAt: Date;
4018
+ updatedAt: Date;
4019
+ author: {
4020
+ id: string;
4021
+ name: string;
4022
+ username: string | null;
4023
+ displayUsername: string | null;
4024
+ image: string | null;
4025
+ linkedinVerified: boolean | null;
4026
+ };
4027
+ isOwner: boolean;
4028
+ }[];
4029
+ pagination: {
4030
+ nextCursor: string | null;
4031
+ hasMore: boolean;
4032
+ };
4033
+ }, {
4034
+ data: {
4035
+ id: string;
4036
+ content: string;
4037
+ link: {
4038
+ url: string;
4039
+ title: string | null;
4040
+ description: string | null;
4041
+ image: string | null;
4042
+ } | null;
4043
+ createdAt: Date;
4044
+ updatedAt: Date;
4045
+ author: {
4046
+ id: string;
4047
+ name: string;
4048
+ username: string | null;
4049
+ displayUsername: string | null;
4050
+ image: string | null;
4051
+ linkedinVerified: boolean | null;
4052
+ };
4053
+ isOwner: boolean;
4054
+ }[];
4055
+ pagination: {
4056
+ nextCursor: string | null;
4057
+ hasMore: boolean;
4058
+ };
4059
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4060
+ readonly UNAUTHORIZED: {
4061
+ readonly message: "You must be logged in to access this resource";
4062
+ };
4063
+ readonly FORBIDDEN: {
4064
+ readonly message: "You do not have permission to access this resource";
4065
+ };
4066
+ readonly NOT_FOUND: {
4067
+ readonly message: "The requested resource was not found";
4068
+ };
4069
+ readonly BAD_REQUEST: {
4070
+ readonly message: "Invalid request";
4071
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4072
+ issues: zod.ZodArray<zod.ZodObject<{
4073
+ code: zod.ZodString;
4074
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4075
+ message: zod.ZodString;
4076
+ }, better_auth.$loose>>;
4077
+ }, better_auth.$strip>>;
4078
+ };
4079
+ readonly CONFLICT: {
4080
+ readonly message: "The request conflicts with existing data";
4081
+ };
4082
+ readonly INTERNAL_SERVER_ERROR: {
4083
+ readonly message: "An internal server error occurred";
4084
+ };
4085
+ }>, Record<never, never>>;
4086
+ create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4087
+ session: {
4088
+ id: string;
4089
+ createdAt: Date;
4090
+ updatedAt: Date;
4091
+ userId: string;
4092
+ expiresAt: Date;
4093
+ token: string;
4094
+ ipAddress?: string | null | undefined | undefined;
4095
+ userAgent?: string | null | undefined | undefined;
4096
+ impersonatedBy?: string | null | undefined;
4097
+ };
4098
+ user: {
4099
+ id: string;
4100
+ createdAt: Date;
4101
+ updatedAt: Date;
4102
+ email: string;
4103
+ emailVerified: boolean;
4104
+ name: string;
4105
+ image?: string | null | undefined | undefined;
4106
+ onboardingCompleted: boolean | null | undefined;
4107
+ linkedinVerified: boolean | null | undefined;
4108
+ linkedinVerifiedAt?: Date | null | undefined;
4109
+ linkedinId?: string | null | undefined;
4110
+ linkedinName?: string | null | undefined;
4111
+ banned: boolean | null | undefined;
4112
+ role?: string | null | undefined;
4113
+ banReason?: string | null | undefined;
4114
+ banExpires?: Date | null | undefined;
4115
+ username?: string | null | undefined;
4116
+ displayUsername?: string | null | undefined;
4117
+ };
4118
+ }>, zod.ZodObject<{
4119
+ content: zod.ZodString;
4120
+ linkUrl: zod.ZodOptional<zod.ZodString>;
4121
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4122
+ data: {
4123
+ id: string;
4124
+ content: string;
4125
+ link: {
4126
+ url: string;
4127
+ title: string | null;
4128
+ description: string | null;
4129
+ image: string | null;
4130
+ } | null;
4131
+ createdAt: Date;
4132
+ updatedAt: Date;
4133
+ author: {
4134
+ id: string;
4135
+ name: string;
4136
+ username: string | null;
4137
+ displayUsername: string | null;
4138
+ image: string | null;
4139
+ linkedinVerified: boolean | null;
4140
+ };
4141
+ isOwner: boolean;
4142
+ };
4143
+ }, {
4144
+ data: {
4145
+ id: string;
4146
+ content: string;
4147
+ link: {
4148
+ url: string;
4149
+ title: string | null;
4150
+ description: string | null;
4151
+ image: string | null;
4152
+ } | null;
4153
+ createdAt: Date;
4154
+ updatedAt: Date;
4155
+ author: {
4156
+ id: string;
4157
+ name: string;
4158
+ username: string | null;
4159
+ displayUsername: string | null;
4160
+ image: string | null;
4161
+ linkedinVerified: boolean | null;
4162
+ };
4163
+ isOwner: boolean;
4164
+ };
4165
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4166
+ readonly UNAUTHORIZED: {
4167
+ readonly message: "You must be logged in to access this resource";
4168
+ };
4169
+ readonly FORBIDDEN: {
4170
+ readonly message: "You do not have permission to access this resource";
4171
+ };
4172
+ readonly NOT_FOUND: {
4173
+ readonly message: "The requested resource was not found";
4174
+ };
4175
+ readonly BAD_REQUEST: {
4176
+ readonly message: "Invalid request";
4177
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4178
+ issues: zod.ZodArray<zod.ZodObject<{
4179
+ code: zod.ZodString;
4180
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4181
+ message: zod.ZodString;
4182
+ }, better_auth.$loose>>;
4183
+ }, better_auth.$strip>>;
4184
+ };
4185
+ readonly CONFLICT: {
4186
+ readonly message: "The request conflicts with existing data";
4187
+ };
4188
+ readonly INTERNAL_SERVER_ERROR: {
4189
+ readonly message: "An internal server error occurred";
4190
+ };
4191
+ }>, Record<never, never>>;
4192
+ delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4193
+ session: {
4194
+ id: string;
4195
+ createdAt: Date;
4196
+ updatedAt: Date;
4197
+ userId: string;
4198
+ expiresAt: Date;
4199
+ token: string;
4200
+ ipAddress?: string | null | undefined | undefined;
4201
+ userAgent?: string | null | undefined | undefined;
4202
+ impersonatedBy?: string | null | undefined;
4203
+ };
4204
+ user: {
4205
+ id: string;
4206
+ createdAt: Date;
4207
+ updatedAt: Date;
4208
+ email: string;
4209
+ emailVerified: boolean;
4210
+ name: string;
4211
+ image?: string | null | undefined | undefined;
4212
+ onboardingCompleted: boolean | null | undefined;
4213
+ linkedinVerified: boolean | null | undefined;
4214
+ linkedinVerifiedAt?: Date | null | undefined;
4215
+ linkedinId?: string | null | undefined;
4216
+ linkedinName?: string | null | undefined;
4217
+ banned: boolean | null | undefined;
4218
+ role?: string | null | undefined;
4219
+ banReason?: string | null | undefined;
4220
+ banExpires?: Date | null | undefined;
4221
+ username?: string | null | undefined;
4222
+ displayUsername?: string | null | undefined;
4223
+ };
4224
+ }>, zod.ZodObject<{
4225
+ id: zod.ZodString;
4226
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4227
+ data: {
4228
+ success: boolean;
4229
+ };
4230
+ }, {
4231
+ data: {
4232
+ success: boolean;
4233
+ };
4234
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4235
+ readonly UNAUTHORIZED: {
4236
+ readonly message: "You must be logged in to access this resource";
4237
+ };
4238
+ readonly FORBIDDEN: {
4239
+ readonly message: "You do not have permission to access this resource";
4240
+ };
4241
+ readonly NOT_FOUND: {
4242
+ readonly message: "The requested resource was not found";
4243
+ };
4244
+ readonly BAD_REQUEST: {
4245
+ readonly message: "Invalid request";
4246
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4247
+ issues: zod.ZodArray<zod.ZodObject<{
4248
+ code: zod.ZodString;
4249
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4250
+ message: zod.ZodString;
4251
+ }, better_auth.$loose>>;
4252
+ }, better_auth.$strip>>;
4253
+ };
4254
+ readonly CONFLICT: {
4255
+ readonly message: "The request conflicts with existing data";
4256
+ };
4257
+ readonly INTERNAL_SERVER_ERROR: {
4258
+ readonly message: "An internal server error occurred";
4259
+ };
4260
+ }>, Record<never, never>>;
4261
+ };
3388
4262
  };
3389
4263
  type V1Router = typeof v1Router;
3390
4264