@studious-lms/server 1.8.0 → 1.11.0

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 (82) hide show
  1. package/dist/middleware/security.d.ts.map +1 -1
  2. package/dist/middleware/security.js +3 -3
  3. package/dist/middleware/security.js.map +1 -1
  4. package/dist/models/agenda.d.ts +2 -2
  5. package/dist/models/announcement.d.ts +2 -2
  6. package/dist/models/assignment.d.ts +33 -33
  7. package/dist/models/class.d.ts +2 -2
  8. package/dist/models/cloudStorage.d.ts +14 -1
  9. package/dist/models/cloudStorage.d.ts.map +1 -1
  10. package/dist/models/cloudStorage.js +123 -3
  11. package/dist/models/cloudStorage.js.map +1 -1
  12. package/dist/models/event.d.ts +3 -3
  13. package/dist/models/file.d.ts +27 -26
  14. package/dist/models/file.d.ts.map +1 -1
  15. package/dist/models/file.js +4 -39
  16. package/dist/models/file.js.map +1 -1
  17. package/dist/models/labChat.d.ts +6 -6
  18. package/dist/models/section.d.ts +1 -1
  19. package/dist/routers/_app.d.ts +444 -100
  20. package/dist/routers/_app.d.ts.map +1 -1
  21. package/dist/routers/_app.js +4 -2
  22. package/dist/routers/_app.js.map +1 -1
  23. package/dist/routers/agenda.d.ts +2 -2
  24. package/dist/routers/assignment.d.ts +31 -31
  25. package/dist/routers/class.d.ts +5 -5
  26. package/dist/routers/event.d.ts +2 -2
  27. package/dist/routers/file.d.ts +2 -2
  28. package/dist/routers/folder.d.ts +24 -0
  29. package/dist/routers/folder.d.ts.map +1 -1
  30. package/dist/routers/folder.js +27 -5
  31. package/dist/routers/folder.js.map +1 -1
  32. package/dist/routers/labChat.d.ts +2 -2
  33. package/dist/routers/newtonChat.d.ts +1 -1
  34. package/dist/routers/permissions.d.ts +120 -0
  35. package/dist/routers/permissions.d.ts.map +1 -0
  36. package/dist/routers/permissions.js +50 -0
  37. package/dist/routers/permissions.js.map +1 -0
  38. package/dist/routers/studentProgress.d.ts +45 -0
  39. package/dist/routers/studentProgress.d.ts.map +1 -1
  40. package/dist/routers/studentProgress.js +12 -3
  41. package/dist/routers/studentProgress.js.map +1 -1
  42. package/dist/routers/tag.d.ts +5 -5
  43. package/dist/services/agenda.d.ts +2 -2
  44. package/dist/services/assignment.d.ts +31 -31
  45. package/dist/services/class.d.ts +5 -5
  46. package/dist/services/class.js +3 -3
  47. package/dist/services/class.js.map +1 -1
  48. package/dist/services/event.d.ts +2 -2
  49. package/dist/services/file.d.ts +22 -5
  50. package/dist/services/file.d.ts.map +1 -1
  51. package/dist/services/file.js +81 -45
  52. package/dist/services/file.js.map +1 -1
  53. package/dist/services/folder.d.ts +97 -2
  54. package/dist/services/folder.d.ts.map +1 -1
  55. package/dist/services/folder.js +158 -87
  56. package/dist/services/folder.js.map +1 -1
  57. package/dist/services/labChat.d.ts +2 -2
  58. package/dist/services/permissions.d.ts +188 -0
  59. package/dist/services/permissions.d.ts.map +1 -0
  60. package/dist/services/permissions.js +661 -0
  61. package/dist/services/permissions.js.map +1 -0
  62. package/dist/services/studentProgress.d.ts +94 -0
  63. package/dist/services/studentProgress.d.ts.map +1 -1
  64. package/dist/services/studentProgress.js +94 -3
  65. package/dist/services/studentProgress.js.map +1 -1
  66. package/package.json +1 -1
  67. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +93 -0
  68. package/prisma/schema.prisma +74 -0
  69. package/src/middleware/security.ts +1 -1
  70. package/src/models/cloudStorage.ts +134 -1
  71. package/src/models/file.ts +2 -37
  72. package/src/routers/_app.ts +2 -0
  73. package/src/routers/folder.ts +32 -2
  74. package/src/routers/permissions.ts +71 -0
  75. package/src/routers/studentProgress.ts +21 -0
  76. package/src/services/class.ts +1 -1
  77. package/src/services/file.ts +76 -47
  78. package/src/services/folder.ts +180 -91
  79. package/src/services/permissions.ts +778 -0
  80. package/src/services/studentProgress.ts +197 -11
  81. package/tests/unit/services/permissions.test.ts +463 -0
  82. package/tests/unit/services/studentProgress.test.ts +168 -2
@@ -682,8 +682,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
682
682
  type: import(".prisma/client").$Enums.AssignmentType;
683
683
  id: string;
684
684
  createdAt: Date | null;
685
- modifiedAt: Date | null;
686
685
  classId: string;
686
+ modifiedAt: Date | null;
687
687
  title: string;
688
688
  instructions: string;
689
689
  dueDate: Date;
@@ -725,8 +725,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
725
725
  type: import(".prisma/client").$Enums.AssignmentType;
726
726
  id: string;
727
727
  createdAt: Date | null;
728
- modifiedAt: Date | null;
729
728
  classId: string;
729
+ modifiedAt: Date | null;
730
730
  title: string;
731
731
  instructions: string;
732
732
  dueDate: Date;
@@ -768,8 +768,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
768
768
  type: import(".prisma/client").$Enums.AssignmentType;
769
769
  id: string;
770
770
  createdAt: Date | null;
771
- modifiedAt: Date | null;
772
771
  classId: string;
772
+ modifiedAt: Date | null;
773
773
  title: string;
774
774
  instructions: string;
775
775
  dueDate: Date;
@@ -802,8 +802,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
802
802
  type: import(".prisma/client").$Enums.AssignmentType;
803
803
  id: string;
804
804
  createdAt: Date | null;
805
- modifiedAt: Date | null;
806
805
  classId: string;
806
+ modifiedAt: Date | null;
807
807
  title: string;
808
808
  instructions: string;
809
809
  dueDate: Date;
@@ -840,8 +840,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
840
840
  type: import(".prisma/client").$Enums.AssignmentType;
841
841
  id: string;
842
842
  createdAt: Date | null;
843
- modifiedAt: Date | null;
844
843
  classId: string;
844
+ modifiedAt: Date | null;
845
845
  title: string;
846
846
  instructions: string;
847
847
  dueDate: Date;
@@ -1454,8 +1454,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1454
1454
  type: import(".prisma/client").$Enums.AssignmentType;
1455
1455
  id: string;
1456
1456
  createdAt: Date | null;
1457
- modifiedAt: Date | null;
1458
1457
  classId: string;
1458
+ modifiedAt: Date | null;
1459
1459
  title: string;
1460
1460
  instructions: string;
1461
1461
  dueDate: Date;
@@ -1498,8 +1498,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1498
1498
  type: import(".prisma/client").$Enums.AssignmentType;
1499
1499
  id: string;
1500
1500
  createdAt: Date | null;
1501
- modifiedAt: Date | null;
1502
1501
  classId: string;
1502
+ modifiedAt: Date | null;
1503
1503
  title: string;
1504
1504
  instructions: string;
1505
1505
  dueDate: Date;
@@ -1593,8 +1593,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1593
1593
  type: import(".prisma/client").$Enums.AssignmentType;
1594
1594
  id: string;
1595
1595
  createdAt: Date | null;
1596
- modifiedAt: Date | null;
1597
1596
  classId: string;
1597
+ modifiedAt: Date | null;
1598
1598
  title: string;
1599
1599
  instructions: string;
1600
1600
  dueDate: Date;
@@ -1702,6 +1702,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1702
1702
  name: string;
1703
1703
  id: string;
1704
1704
  userId: string | null;
1705
+ folderId: string | null;
1705
1706
  size: number | null;
1706
1707
  uploadedAt: Date | null;
1707
1708
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -1718,7 +1719,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1718
1719
  submissionId: string | null;
1719
1720
  annotationId: string | null;
1720
1721
  classDraftId: string | null;
1721
- folderId: string | null;
1722
1722
  conversationId: string | null;
1723
1723
  messageId: string | null;
1724
1724
  announcementId: string | null;
@@ -1800,8 +1800,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1800
1800
  type: import(".prisma/client").$Enums.AssignmentType;
1801
1801
  id: string;
1802
1802
  createdAt: Date | null;
1803
- modifiedAt: Date | null;
1804
1803
  classId: string;
1804
+ modifiedAt: Date | null;
1805
1805
  title: string;
1806
1806
  instructions: string;
1807
1807
  dueDate: Date;
@@ -1859,8 +1859,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1859
1859
  type: import(".prisma/client").$Enums.AssignmentType;
1860
1860
  id: string;
1861
1861
  createdAt: Date | null;
1862
- modifiedAt: Date | null;
1863
1862
  classId: string;
1863
+ modifiedAt: Date | null;
1864
1864
  title: string;
1865
1865
  instructions: string;
1866
1866
  dueDate: Date;
@@ -1887,6 +1887,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1887
1887
  name: string;
1888
1888
  id: string;
1889
1889
  userId: string | null;
1890
+ folderId: string | null;
1890
1891
  size: number | null;
1891
1892
  uploadedAt: Date | null;
1892
1893
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -1903,7 +1904,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1903
1904
  submissionId: string | null;
1904
1905
  annotationId: string | null;
1905
1906
  classDraftId: string | null;
1906
- folderId: string | null;
1907
1907
  conversationId: string | null;
1908
1908
  messageId: string | null;
1909
1909
  announcementId: string | null;
@@ -1915,6 +1915,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1915
1915
  name: string;
1916
1916
  id: string;
1917
1917
  userId: string | null;
1918
+ folderId: string | null;
1918
1919
  size: number | null;
1919
1920
  uploadedAt: Date | null;
1920
1921
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -1931,7 +1932,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1931
1932
  submissionId: string | null;
1932
1933
  annotationId: string | null;
1933
1934
  classDraftId: string | null;
1934
- folderId: string | null;
1935
1935
  conversationId: string | null;
1936
1936
  messageId: string | null;
1937
1937
  announcementId: string | null;
@@ -1994,8 +1994,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1994
1994
  type: import(".prisma/client").$Enums.AssignmentType;
1995
1995
  id: string;
1996
1996
  createdAt: Date | null;
1997
- modifiedAt: Date | null;
1998
1997
  classId: string;
1998
+ modifiedAt: Date | null;
1999
1999
  title: string;
2000
2000
  instructions: string;
2001
2001
  dueDate: Date;
@@ -2022,6 +2022,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2022
2022
  name: string;
2023
2023
  id: string;
2024
2024
  userId: string | null;
2025
+ folderId: string | null;
2025
2026
  size: number | null;
2026
2027
  uploadedAt: Date | null;
2027
2028
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2038,7 +2039,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2038
2039
  submissionId: string | null;
2039
2040
  annotationId: string | null;
2040
2041
  classDraftId: string | null;
2041
- folderId: string | null;
2042
2042
  conversationId: string | null;
2043
2043
  messageId: string | null;
2044
2044
  announcementId: string | null;
@@ -2050,6 +2050,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2050
2050
  name: string;
2051
2051
  id: string;
2052
2052
  userId: string | null;
2053
+ folderId: string | null;
2053
2054
  size: number | null;
2054
2055
  uploadedAt: Date | null;
2055
2056
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2066,7 +2067,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2066
2067
  submissionId: string | null;
2067
2068
  annotationId: string | null;
2068
2069
  classDraftId: string | null;
2069
- folderId: string | null;
2070
2070
  conversationId: string | null;
2071
2071
  messageId: string | null;
2072
2072
  announcementId: string | null;
@@ -2146,8 +2146,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2146
2146
  type: import(".prisma/client").$Enums.AssignmentType;
2147
2147
  id: string;
2148
2148
  createdAt: Date | null;
2149
- modifiedAt: Date | null;
2150
2149
  classId: string;
2150
+ modifiedAt: Date | null;
2151
2151
  title: string;
2152
2152
  instructions: string;
2153
2153
  dueDate: Date;
@@ -2174,6 +2174,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2174
2174
  name: string;
2175
2175
  id: string;
2176
2176
  userId: string | null;
2177
+ folderId: string | null;
2177
2178
  size: number | null;
2178
2179
  uploadedAt: Date | null;
2179
2180
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2190,7 +2191,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2190
2191
  submissionId: string | null;
2191
2192
  annotationId: string | null;
2192
2193
  classDraftId: string | null;
2193
- folderId: string | null;
2194
2194
  conversationId: string | null;
2195
2195
  messageId: string | null;
2196
2196
  announcementId: string | null;
@@ -2250,8 +2250,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2250
2250
  type: import(".prisma/client").$Enums.AssignmentType;
2251
2251
  id: string;
2252
2252
  createdAt: Date | null;
2253
- modifiedAt: Date | null;
2254
2253
  classId: string;
2254
+ modifiedAt: Date | null;
2255
2255
  title: string;
2256
2256
  instructions: string;
2257
2257
  dueDate: Date;
@@ -2279,6 +2279,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2279
2279
  name: string;
2280
2280
  id: string;
2281
2281
  userId: string | null;
2282
+ folderId: string | null;
2282
2283
  size: number | null;
2283
2284
  uploadedAt: Date | null;
2284
2285
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2295,7 +2296,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2295
2296
  submissionId: string | null;
2296
2297
  annotationId: string | null;
2297
2298
  classDraftId: string | null;
2298
- folderId: string | null;
2299
2299
  conversationId: string | null;
2300
2300
  messageId: string | null;
2301
2301
  announcementId: string | null;
@@ -2307,6 +2307,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2307
2307
  name: string;
2308
2308
  id: string;
2309
2309
  userId: string | null;
2310
+ folderId: string | null;
2310
2311
  size: number | null;
2311
2312
  uploadedAt: Date | null;
2312
2313
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2323,7 +2324,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2323
2324
  submissionId: string | null;
2324
2325
  annotationId: string | null;
2325
2326
  classDraftId: string | null;
2326
- folderId: string | null;
2327
2327
  conversationId: string | null;
2328
2328
  messageId: string | null;
2329
2329
  announcementId: string | null;
@@ -2625,8 +2625,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2625
2625
  type: import(".prisma/client").$Enums.AssignmentType;
2626
2626
  id: string;
2627
2627
  createdAt: Date | null;
2628
- modifiedAt: Date | null;
2629
2628
  classId: string;
2629
+ modifiedAt: Date | null;
2630
2630
  title: string;
2631
2631
  instructions: string;
2632
2632
  dueDate: Date;
@@ -2654,6 +2654,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2654
2654
  name: string;
2655
2655
  id: string;
2656
2656
  userId: string | null;
2657
+ folderId: string | null;
2657
2658
  size: number | null;
2658
2659
  uploadedAt: Date | null;
2659
2660
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2670,7 +2671,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2670
2671
  submissionId: string | null;
2671
2672
  annotationId: string | null;
2672
2673
  classDraftId: string | null;
2673
- folderId: string | null;
2674
2674
  conversationId: string | null;
2675
2675
  messageId: string | null;
2676
2676
  announcementId: string | null;
@@ -2682,6 +2682,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2682
2682
  name: string;
2683
2683
  id: string;
2684
2684
  userId: string | null;
2685
+ folderId: string | null;
2685
2686
  size: number | null;
2686
2687
  uploadedAt: Date | null;
2687
2688
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2698,7 +2699,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2698
2699
  submissionId: string | null;
2699
2700
  annotationId: string | null;
2700
2701
  classDraftId: string | null;
2701
- folderId: string | null;
2702
2702
  conversationId: string | null;
2703
2703
  messageId: string | null;
2704
2704
  announcementId: string | null;
@@ -2711,6 +2711,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2711
2711
  name: string;
2712
2712
  id: string;
2713
2713
  userId: string | null;
2714
+ folderId: string | null;
2714
2715
  size: number | null;
2715
2716
  uploadedAt: Date | null;
2716
2717
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2727,7 +2728,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2727
2728
  submissionId: string | null;
2728
2729
  annotationId: string | null;
2729
2730
  classDraftId: string | null;
2730
- folderId: string | null;
2731
2731
  conversationId: string | null;
2732
2732
  messageId: string | null;
2733
2733
  announcementId: string | null;
@@ -2739,6 +2739,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2739
2739
  name: string;
2740
2740
  id: string;
2741
2741
  userId: string | null;
2742
+ folderId: string | null;
2742
2743
  size: number | null;
2743
2744
  uploadedAt: Date | null;
2744
2745
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2755,7 +2756,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2755
2756
  submissionId: string | null;
2756
2757
  annotationId: string | null;
2757
2758
  classDraftId: string | null;
2758
- folderId: string | null;
2759
2759
  conversationId: string | null;
2760
2760
  messageId: string | null;
2761
2761
  announcementId: string | null;
@@ -2822,8 +2822,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2822
2822
  type: import(".prisma/client").$Enums.AssignmentType;
2823
2823
  id: string;
2824
2824
  createdAt: Date | null;
2825
- modifiedAt: Date | null;
2826
2825
  classId: string;
2826
+ modifiedAt: Date | null;
2827
2827
  title: string;
2828
2828
  instructions: string;
2829
2829
  dueDate: Date;
@@ -2879,8 +2879,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2879
2879
  type: import(".prisma/client").$Enums.AssignmentType;
2880
2880
  id: string;
2881
2881
  createdAt: Date | null;
2882
- modifiedAt: Date | null;
2883
2882
  classId: string;
2883
+ modifiedAt: Date | null;
2884
2884
  title: string;
2885
2885
  instructions: string;
2886
2886
  dueDate: Date;
@@ -2975,6 +2975,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2975
2975
  name: string;
2976
2976
  id: string;
2977
2977
  userId: string | null;
2978
+ folderId: string | null;
2978
2979
  size: number | null;
2979
2980
  uploadedAt: Date | null;
2980
2981
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -2991,7 +2992,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2991
2992
  submissionId: string | null;
2992
2993
  annotationId: string | null;
2993
2994
  classDraftId: string | null;
2994
- folderId: string | null;
2995
2995
  conversationId: string | null;
2996
2996
  messageId: string | null;
2997
2997
  announcementId: string | null;
@@ -3012,8 +3012,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3012
3012
  type: import(".prisma/client").$Enums.AssignmentType;
3013
3013
  id: string;
3014
3014
  createdAt: Date | null;
3015
- modifiedAt: Date | null;
3016
3015
  classId: string;
3016
+ modifiedAt: Date | null;
3017
3017
  title: string;
3018
3018
  instructions: string;
3019
3019
  dueDate: Date;
@@ -3071,6 +3071,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3071
3071
  name: string;
3072
3072
  id: string;
3073
3073
  userId: string | null;
3074
+ folderId: string | null;
3074
3075
  size: number | null;
3075
3076
  uploadedAt: Date | null;
3076
3077
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -3087,7 +3088,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3087
3088
  submissionId: string | null;
3088
3089
  annotationId: string | null;
3089
3090
  classDraftId: string | null;
3090
- folderId: string | null;
3091
3091
  conversationId: string | null;
3092
3092
  messageId: string | null;
3093
3093
  announcementId: string | null;
@@ -3108,8 +3108,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3108
3108
  type: import(".prisma/client").$Enums.AssignmentType;
3109
3109
  id: string;
3110
3110
  createdAt: Date | null;
3111
- modifiedAt: Date | null;
3112
3111
  classId: string;
3112
+ modifiedAt: Date | null;
3113
3113
  title: string;
3114
3114
  instructions: string;
3115
3115
  dueDate: Date;
@@ -3168,6 +3168,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3168
3168
  name: string;
3169
3169
  id: string;
3170
3170
  userId: string | null;
3171
+ folderId: string | null;
3171
3172
  size: number | null;
3172
3173
  uploadedAt: Date | null;
3173
3174
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -3184,7 +3185,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3184
3185
  submissionId: string | null;
3185
3186
  annotationId: string | null;
3186
3187
  classDraftId: string | null;
3187
- folderId: string | null;
3188
3188
  conversationId: string | null;
3189
3189
  messageId: string | null;
3190
3190
  announcementId: string | null;
@@ -3205,8 +3205,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3205
3205
  type: import(".prisma/client").$Enums.AssignmentType;
3206
3206
  id: string;
3207
3207
  createdAt: Date | null;
3208
- modifiedAt: Date | null;
3209
3208
  classId: string;
3209
+ modifiedAt: Date | null;
3210
3210
  title: string;
3211
3211
  instructions: string;
3212
3212
  dueDate: Date;
@@ -3264,6 +3264,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3264
3264
  name: string;
3265
3265
  id: string;
3266
3266
  userId: string | null;
3267
+ folderId: string | null;
3267
3268
  size: number | null;
3268
3269
  uploadedAt: Date | null;
3269
3270
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -3280,7 +3281,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3280
3281
  submissionId: string | null;
3281
3282
  annotationId: string | null;
3282
3283
  classDraftId: string | null;
3283
- folderId: string | null;
3284
3284
  conversationId: string | null;
3285
3285
  messageId: string | null;
3286
3286
  announcementId: string | null;
@@ -3301,8 +3301,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3301
3301
  type: import(".prisma/client").$Enums.AssignmentType;
3302
3302
  id: string;
3303
3303
  createdAt: Date | null;
3304
- modifiedAt: Date | null;
3305
3304
  classId: string;
3305
+ modifiedAt: Date | null;
3306
3306
  title: string;
3307
3307
  instructions: string;
3308
3308
  dueDate: Date;
@@ -3923,8 +3923,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3923
3923
  type: import(".prisma/client").$Enums.AssignmentType;
3924
3924
  id: string;
3925
3925
  createdAt: Date | null;
3926
- modifiedAt: Date | null;
3927
3926
  classId: string;
3927
+ modifiedAt: Date | null;
3928
3928
  title: string;
3929
3929
  instructions: string;
3930
3930
  dueDate: Date;
@@ -3972,8 +3972,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3972
3972
  type: import(".prisma/client").$Enums.AssignmentType;
3973
3973
  id: string;
3974
3974
  createdAt: Date | null;
3975
- modifiedAt: Date | null;
3976
3975
  classId: string;
3976
+ modifiedAt: Date | null;
3977
3977
  title: string;
3978
3978
  instructions: string;
3979
3979
  dueDate: Date;
@@ -4188,8 +4188,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4188
4188
  type: import(".prisma/client").$Enums.AssignmentType;
4189
4189
  id: string;
4190
4190
  createdAt: Date | null;
4191
- modifiedAt: Date | null;
4192
4191
  classId: string;
4192
+ modifiedAt: Date | null;
4193
4193
  title: string;
4194
4194
  instructions: string;
4195
4195
  dueDate: Date;
@@ -4236,8 +4236,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4236
4236
  type: import(".prisma/client").$Enums.AssignmentType;
4237
4237
  id: string;
4238
4238
  createdAt: Date | null;
4239
- modifiedAt: Date | null;
4240
4239
  classId: string;
4240
+ modifiedAt: Date | null;
4241
4241
  title: string;
4242
4242
  instructions: string;
4243
4243
  dueDate: Date;
@@ -4316,6 +4316,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4316
4316
  name: string;
4317
4317
  id: string;
4318
4318
  userId: string | null;
4319
+ folderId: string | null;
4319
4320
  size: number | null;
4320
4321
  uploadedAt: Date | null;
4321
4322
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -4332,7 +4333,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4332
4333
  submissionId: string | null;
4333
4334
  annotationId: string | null;
4334
4335
  classDraftId: string | null;
4335
- folderId: string | null;
4336
4336
  conversationId: string | null;
4337
4337
  messageId: string | null;
4338
4338
  announcementId: string | null;
@@ -4356,6 +4356,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4356
4356
  name: string;
4357
4357
  id: string;
4358
4358
  userId: string | null;
4359
+ folderId: string | null;
4359
4360
  size: number | null;
4360
4361
  uploadedAt: Date | null;
4361
4362
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -4372,7 +4373,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4372
4373
  submissionId: string | null;
4373
4374
  annotationId: string | null;
4374
4375
  classDraftId: string | null;
4375
- folderId: string | null;
4376
4376
  conversationId: string | null;
4377
4377
  messageId: string | null;
4378
4378
  announcementId: string | null;
@@ -4420,6 +4420,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4420
4420
  } | {
4421
4421
  userId: string;
4422
4422
  kind: "PERSONAL";
4423
+ } | {
4424
+ kind: "SHARED_WITH_ME";
4423
4425
  };
4424
4426
  };
4425
4427
  output: {
@@ -4465,6 +4467,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4465
4467
  }[];
4466
4468
  canWrite: boolean;
4467
4469
  scope: import("../models/cloudStorage.js").CloudScope;
4470
+ displayRoot: {
4471
+ kind: "SHARED_WITH_ME";
4472
+ name: string;
4473
+ } | null;
4474
+ };
4475
+ meta: object;
4476
+ }>;
4477
+ listSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
4478
+ input: void;
4479
+ output: {
4480
+ folders: {
4481
+ id: string;
4482
+ name: string;
4483
+ color: string | null;
4484
+ }[];
4485
+ files: never[];
4468
4486
  };
4469
4487
  meta: object;
4470
4488
  }>;
@@ -4489,6 +4507,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4489
4507
  color: string | null;
4490
4508
  section: string;
4491
4509
  }[];
4510
+ sharedWithMe: {
4511
+ kind: "SHARED_WITH_ME";
4512
+ folderCount: number;
4513
+ fileCount: number;
4514
+ };
4492
4515
  };
4493
4516
  meta: object;
4494
4517
  }>;
@@ -5313,8 +5336,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5313
5336
  id: string;
5314
5337
  createdAt: Date;
5315
5338
  updatedAt: Date;
5316
- conversationId: string;
5317
5339
  classId: string;
5340
+ conversationId: string;
5318
5341
  title: string;
5319
5342
  createdById: string;
5320
5343
  };
@@ -5372,8 +5395,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5372
5395
  id: string;
5373
5396
  createdAt: Date;
5374
5397
  updatedAt: Date;
5375
- conversationId: string;
5376
5398
  classId: string;
5399
+ conversationId: string;
5377
5400
  title: string;
5378
5401
  createdById: string;
5379
5402
  };
@@ -5497,8 +5520,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5497
5520
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5498
5521
  getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
5499
5522
  input: {
5500
- assignmentId: string;
5501
5523
  classId: string;
5524
+ assignmentId: string;
5502
5525
  };
5503
5526
  output: {
5504
5527
  conversationId: string;
@@ -6358,6 +6381,51 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6358
6381
  };
6359
6382
  meta: object;
6360
6383
  }>;
6384
+ getInsights: import("@trpc/server").TRPCQueryProcedure<{
6385
+ input: {
6386
+ [x: string]: unknown;
6387
+ classId: string;
6388
+ studentId: string;
6389
+ };
6390
+ output: {
6391
+ summary: string;
6392
+ strengths: {
6393
+ label: string;
6394
+ evidence: string;
6395
+ }[];
6396
+ growth: {
6397
+ label: string;
6398
+ evidence: string;
6399
+ }[];
6400
+ talkingPoints: string[];
6401
+ };
6402
+ meta: object;
6403
+ }>;
6404
+ getForecast: import("@trpc/server").TRPCQueryProcedure<{
6405
+ input: {
6406
+ [x: string]: unknown;
6407
+ classId: string;
6408
+ studentId: string;
6409
+ };
6410
+ output: {
6411
+ reason: string;
6412
+ forecastLow: number;
6413
+ forecastHigh: number;
6414
+ risk: "on_track" | "watch" | "at_risk";
6415
+ };
6416
+ meta: object;
6417
+ }>;
6418
+ getStudentFocus: import("@trpc/server").TRPCQueryProcedure<{
6419
+ input: {
6420
+ [x: string]: unknown;
6421
+ classId: string;
6422
+ studentId: string;
6423
+ };
6424
+ output: {
6425
+ focusItems: string[];
6426
+ };
6427
+ meta: object;
6428
+ }>;
6361
6429
  getClassRecommendations: import("@trpc/server").TRPCQueryProcedure<{
6362
6430
  input: {
6363
6431
  [x: string]: unknown;
@@ -7390,9 +7458,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7390
7458
  }>;
7391
7459
  attach: import("@trpc/server").TRPCMutationProcedure<{
7392
7460
  input: {
7393
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
7394
- targetId: string;
7395
7461
  tagId: string;
7462
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
7463
+ targetId: string;
7396
7464
  };
7397
7465
  output: {
7398
7466
  id: string;
@@ -7401,9 +7469,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7401
7469
  }>;
7402
7470
  detach: import("@trpc/server").TRPCMutationProcedure<{
7403
7471
  input: {
7404
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
7405
- targetId: string;
7406
7472
  tagId: string;
7473
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
7474
+ targetId: string;
7407
7475
  };
7408
7476
  output: {
7409
7477
  id: string;
@@ -7412,7 +7480,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7412
7480
  }>;
7413
7481
  getAttached: import("@trpc/server").TRPCQueryProcedure<{
7414
7482
  input: {
7415
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
7483
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
7416
7484
  targetId: string;
7417
7485
  };
7418
7486
  output: {
@@ -7427,6 +7495,110 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7427
7495
  meta: object;
7428
7496
  }>;
7429
7497
  }>>;
7498
+ permissions: import("@trpc/server").TRPCBuiltRouter<{
7499
+ ctx: import("../trpc.js").Context;
7500
+ meta: object;
7501
+ errorShape: {
7502
+ data: {
7503
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
7504
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
7505
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
7506
+ httpStatus: number;
7507
+ path?: string;
7508
+ stack?: string;
7509
+ };
7510
+ message: string;
7511
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
7512
+ };
7513
+ transformer: false;
7514
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7515
+ list: import("@trpc/server").TRPCQueryProcedure<{
7516
+ input: {
7517
+ folderId: string;
7518
+ };
7519
+ output: ({
7520
+ school: {
7521
+ name: string;
7522
+ id: string;
7523
+ } | null;
7524
+ user: {
7525
+ id: string;
7526
+ username: string;
7527
+ email: string;
7528
+ } | null;
7529
+ class: {
7530
+ name: string;
7531
+ id: string;
7532
+ section: string;
7533
+ } | null;
7534
+ department: {
7535
+ name: string;
7536
+ id: string;
7537
+ color: string | null;
7538
+ } | null;
7539
+ tag: {
7540
+ name: string;
7541
+ id: string;
7542
+ color: string;
7543
+ } | null;
7544
+ } & {
7545
+ level: import(".prisma/client").$Enums.PermissionLevel;
7546
+ id: string;
7547
+ createdAt: Date;
7548
+ schoolId: string | null;
7549
+ userId: string | null;
7550
+ departmentId: string | null;
7551
+ folderId: string;
7552
+ principalType: import(".prisma/client").$Enums.PermissionPrincipalType;
7553
+ tagId: string | null;
7554
+ classId: string | null;
7555
+ grantedById: string;
7556
+ })[];
7557
+ meta: object;
7558
+ }>;
7559
+ grant: import("@trpc/server").TRPCMutationProcedure<{
7560
+ input: {
7561
+ level: "READ" | "WRITE";
7562
+ folderId: string;
7563
+ principal: import("../services/permissions.js").PermissionPrincipalInput;
7564
+ };
7565
+ output: {
7566
+ level: import(".prisma/client").$Enums.PermissionLevel;
7567
+ id: string;
7568
+ createdAt: Date;
7569
+ schoolId: string | null;
7570
+ userId: string | null;
7571
+ departmentId: string | null;
7572
+ folderId: string;
7573
+ principalType: import(".prisma/client").$Enums.PermissionPrincipalType;
7574
+ tagId: string | null;
7575
+ classId: string | null;
7576
+ grantedById: string;
7577
+ };
7578
+ meta: object;
7579
+ }>;
7580
+ revoke: import("@trpc/server").TRPCMutationProcedure<{
7581
+ input: {
7582
+ permissionId: string;
7583
+ };
7584
+ output: {
7585
+ success: boolean;
7586
+ };
7587
+ meta: object;
7588
+ }>;
7589
+ listSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
7590
+ input: void;
7591
+ output: {
7592
+ folders: {
7593
+ id: string;
7594
+ name: string;
7595
+ color: string | null;
7596
+ }[];
7597
+ files: never[];
7598
+ };
7599
+ meta: object;
7600
+ }>;
7601
+ }>>;
7430
7602
  }>>;
7431
7603
  export type AppRouter = typeof appRouter;
7432
7604
  export type RouterInputs = inferRouterInputs<AppRouter>;
@@ -8114,8 +8286,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8114
8286
  type: import(".prisma/client").$Enums.AssignmentType;
8115
8287
  id: string;
8116
8288
  createdAt: Date | null;
8117
- modifiedAt: Date | null;
8118
8289
  classId: string;
8290
+ modifiedAt: Date | null;
8119
8291
  title: string;
8120
8292
  instructions: string;
8121
8293
  dueDate: Date;
@@ -8157,8 +8329,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8157
8329
  type: import(".prisma/client").$Enums.AssignmentType;
8158
8330
  id: string;
8159
8331
  createdAt: Date | null;
8160
- modifiedAt: Date | null;
8161
8332
  classId: string;
8333
+ modifiedAt: Date | null;
8162
8334
  title: string;
8163
8335
  instructions: string;
8164
8336
  dueDate: Date;
@@ -8200,8 +8372,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8200
8372
  type: import(".prisma/client").$Enums.AssignmentType;
8201
8373
  id: string;
8202
8374
  createdAt: Date | null;
8203
- modifiedAt: Date | null;
8204
8375
  classId: string;
8376
+ modifiedAt: Date | null;
8205
8377
  title: string;
8206
8378
  instructions: string;
8207
8379
  dueDate: Date;
@@ -8234,8 +8406,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8234
8406
  type: import(".prisma/client").$Enums.AssignmentType;
8235
8407
  id: string;
8236
8408
  createdAt: Date | null;
8237
- modifiedAt: Date | null;
8238
8409
  classId: string;
8410
+ modifiedAt: Date | null;
8239
8411
  title: string;
8240
8412
  instructions: string;
8241
8413
  dueDate: Date;
@@ -8272,8 +8444,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8272
8444
  type: import(".prisma/client").$Enums.AssignmentType;
8273
8445
  id: string;
8274
8446
  createdAt: Date | null;
8275
- modifiedAt: Date | null;
8276
8447
  classId: string;
8448
+ modifiedAt: Date | null;
8277
8449
  title: string;
8278
8450
  instructions: string;
8279
8451
  dueDate: Date;
@@ -8886,8 +9058,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8886
9058
  type: import(".prisma/client").$Enums.AssignmentType;
8887
9059
  id: string;
8888
9060
  createdAt: Date | null;
8889
- modifiedAt: Date | null;
8890
9061
  classId: string;
9062
+ modifiedAt: Date | null;
8891
9063
  title: string;
8892
9064
  instructions: string;
8893
9065
  dueDate: Date;
@@ -8930,8 +9102,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8930
9102
  type: import(".prisma/client").$Enums.AssignmentType;
8931
9103
  id: string;
8932
9104
  createdAt: Date | null;
8933
- modifiedAt: Date | null;
8934
9105
  classId: string;
9106
+ modifiedAt: Date | null;
8935
9107
  title: string;
8936
9108
  instructions: string;
8937
9109
  dueDate: Date;
@@ -9025,8 +9197,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9025
9197
  type: import(".prisma/client").$Enums.AssignmentType;
9026
9198
  id: string;
9027
9199
  createdAt: Date | null;
9028
- modifiedAt: Date | null;
9029
9200
  classId: string;
9201
+ modifiedAt: Date | null;
9030
9202
  title: string;
9031
9203
  instructions: string;
9032
9204
  dueDate: Date;
@@ -9134,6 +9306,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9134
9306
  name: string;
9135
9307
  id: string;
9136
9308
  userId: string | null;
9309
+ folderId: string | null;
9137
9310
  size: number | null;
9138
9311
  uploadedAt: Date | null;
9139
9312
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9150,7 +9323,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9150
9323
  submissionId: string | null;
9151
9324
  annotationId: string | null;
9152
9325
  classDraftId: string | null;
9153
- folderId: string | null;
9154
9326
  conversationId: string | null;
9155
9327
  messageId: string | null;
9156
9328
  announcementId: string | null;
@@ -9232,8 +9404,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9232
9404
  type: import(".prisma/client").$Enums.AssignmentType;
9233
9405
  id: string;
9234
9406
  createdAt: Date | null;
9235
- modifiedAt: Date | null;
9236
9407
  classId: string;
9408
+ modifiedAt: Date | null;
9237
9409
  title: string;
9238
9410
  instructions: string;
9239
9411
  dueDate: Date;
@@ -9291,8 +9463,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9291
9463
  type: import(".prisma/client").$Enums.AssignmentType;
9292
9464
  id: string;
9293
9465
  createdAt: Date | null;
9294
- modifiedAt: Date | null;
9295
9466
  classId: string;
9467
+ modifiedAt: Date | null;
9296
9468
  title: string;
9297
9469
  instructions: string;
9298
9470
  dueDate: Date;
@@ -9319,6 +9491,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9319
9491
  name: string;
9320
9492
  id: string;
9321
9493
  userId: string | null;
9494
+ folderId: string | null;
9322
9495
  size: number | null;
9323
9496
  uploadedAt: Date | null;
9324
9497
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9335,7 +9508,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9335
9508
  submissionId: string | null;
9336
9509
  annotationId: string | null;
9337
9510
  classDraftId: string | null;
9338
- folderId: string | null;
9339
9511
  conversationId: string | null;
9340
9512
  messageId: string | null;
9341
9513
  announcementId: string | null;
@@ -9347,6 +9519,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9347
9519
  name: string;
9348
9520
  id: string;
9349
9521
  userId: string | null;
9522
+ folderId: string | null;
9350
9523
  size: number | null;
9351
9524
  uploadedAt: Date | null;
9352
9525
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9363,7 +9536,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9363
9536
  submissionId: string | null;
9364
9537
  annotationId: string | null;
9365
9538
  classDraftId: string | null;
9366
- folderId: string | null;
9367
9539
  conversationId: string | null;
9368
9540
  messageId: string | null;
9369
9541
  announcementId: string | null;
@@ -9426,8 +9598,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9426
9598
  type: import(".prisma/client").$Enums.AssignmentType;
9427
9599
  id: string;
9428
9600
  createdAt: Date | null;
9429
- modifiedAt: Date | null;
9430
9601
  classId: string;
9602
+ modifiedAt: Date | null;
9431
9603
  title: string;
9432
9604
  instructions: string;
9433
9605
  dueDate: Date;
@@ -9454,6 +9626,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9454
9626
  name: string;
9455
9627
  id: string;
9456
9628
  userId: string | null;
9629
+ folderId: string | null;
9457
9630
  size: number | null;
9458
9631
  uploadedAt: Date | null;
9459
9632
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9470,7 +9643,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9470
9643
  submissionId: string | null;
9471
9644
  annotationId: string | null;
9472
9645
  classDraftId: string | null;
9473
- folderId: string | null;
9474
9646
  conversationId: string | null;
9475
9647
  messageId: string | null;
9476
9648
  announcementId: string | null;
@@ -9482,6 +9654,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9482
9654
  name: string;
9483
9655
  id: string;
9484
9656
  userId: string | null;
9657
+ folderId: string | null;
9485
9658
  size: number | null;
9486
9659
  uploadedAt: Date | null;
9487
9660
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9498,7 +9671,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9498
9671
  submissionId: string | null;
9499
9672
  annotationId: string | null;
9500
9673
  classDraftId: string | null;
9501
- folderId: string | null;
9502
9674
  conversationId: string | null;
9503
9675
  messageId: string | null;
9504
9676
  announcementId: string | null;
@@ -9578,8 +9750,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9578
9750
  type: import(".prisma/client").$Enums.AssignmentType;
9579
9751
  id: string;
9580
9752
  createdAt: Date | null;
9581
- modifiedAt: Date | null;
9582
9753
  classId: string;
9754
+ modifiedAt: Date | null;
9583
9755
  title: string;
9584
9756
  instructions: string;
9585
9757
  dueDate: Date;
@@ -9606,6 +9778,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9606
9778
  name: string;
9607
9779
  id: string;
9608
9780
  userId: string | null;
9781
+ folderId: string | null;
9609
9782
  size: number | null;
9610
9783
  uploadedAt: Date | null;
9611
9784
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9622,7 +9795,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9622
9795
  submissionId: string | null;
9623
9796
  annotationId: string | null;
9624
9797
  classDraftId: string | null;
9625
- folderId: string | null;
9626
9798
  conversationId: string | null;
9627
9799
  messageId: string | null;
9628
9800
  announcementId: string | null;
@@ -9682,8 +9854,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9682
9854
  type: import(".prisma/client").$Enums.AssignmentType;
9683
9855
  id: string;
9684
9856
  createdAt: Date | null;
9685
- modifiedAt: Date | null;
9686
9857
  classId: string;
9858
+ modifiedAt: Date | null;
9687
9859
  title: string;
9688
9860
  instructions: string;
9689
9861
  dueDate: Date;
@@ -9711,6 +9883,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9711
9883
  name: string;
9712
9884
  id: string;
9713
9885
  userId: string | null;
9886
+ folderId: string | null;
9714
9887
  size: number | null;
9715
9888
  uploadedAt: Date | null;
9716
9889
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9727,7 +9900,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9727
9900
  submissionId: string | null;
9728
9901
  annotationId: string | null;
9729
9902
  classDraftId: string | null;
9730
- folderId: string | null;
9731
9903
  conversationId: string | null;
9732
9904
  messageId: string | null;
9733
9905
  announcementId: string | null;
@@ -9739,6 +9911,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9739
9911
  name: string;
9740
9912
  id: string;
9741
9913
  userId: string | null;
9914
+ folderId: string | null;
9742
9915
  size: number | null;
9743
9916
  uploadedAt: Date | null;
9744
9917
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -9755,7 +9928,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9755
9928
  submissionId: string | null;
9756
9929
  annotationId: string | null;
9757
9930
  classDraftId: string | null;
9758
- folderId: string | null;
9759
9931
  conversationId: string | null;
9760
9932
  messageId: string | null;
9761
9933
  announcementId: string | null;
@@ -10057,8 +10229,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10057
10229
  type: import(".prisma/client").$Enums.AssignmentType;
10058
10230
  id: string;
10059
10231
  createdAt: Date | null;
10060
- modifiedAt: Date | null;
10061
10232
  classId: string;
10233
+ modifiedAt: Date | null;
10062
10234
  title: string;
10063
10235
  instructions: string;
10064
10236
  dueDate: Date;
@@ -10086,6 +10258,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10086
10258
  name: string;
10087
10259
  id: string;
10088
10260
  userId: string | null;
10261
+ folderId: string | null;
10089
10262
  size: number | null;
10090
10263
  uploadedAt: Date | null;
10091
10264
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10102,7 +10275,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10102
10275
  submissionId: string | null;
10103
10276
  annotationId: string | null;
10104
10277
  classDraftId: string | null;
10105
- folderId: string | null;
10106
10278
  conversationId: string | null;
10107
10279
  messageId: string | null;
10108
10280
  announcementId: string | null;
@@ -10114,6 +10286,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10114
10286
  name: string;
10115
10287
  id: string;
10116
10288
  userId: string | null;
10289
+ folderId: string | null;
10117
10290
  size: number | null;
10118
10291
  uploadedAt: Date | null;
10119
10292
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10130,7 +10303,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10130
10303
  submissionId: string | null;
10131
10304
  annotationId: string | null;
10132
10305
  classDraftId: string | null;
10133
- folderId: string | null;
10134
10306
  conversationId: string | null;
10135
10307
  messageId: string | null;
10136
10308
  announcementId: string | null;
@@ -10143,6 +10315,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10143
10315
  name: string;
10144
10316
  id: string;
10145
10317
  userId: string | null;
10318
+ folderId: string | null;
10146
10319
  size: number | null;
10147
10320
  uploadedAt: Date | null;
10148
10321
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10159,7 +10332,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10159
10332
  submissionId: string | null;
10160
10333
  annotationId: string | null;
10161
10334
  classDraftId: string | null;
10162
- folderId: string | null;
10163
10335
  conversationId: string | null;
10164
10336
  messageId: string | null;
10165
10337
  announcementId: string | null;
@@ -10171,6 +10343,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10171
10343
  name: string;
10172
10344
  id: string;
10173
10345
  userId: string | null;
10346
+ folderId: string | null;
10174
10347
  size: number | null;
10175
10348
  uploadedAt: Date | null;
10176
10349
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10187,7 +10360,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10187
10360
  submissionId: string | null;
10188
10361
  annotationId: string | null;
10189
10362
  classDraftId: string | null;
10190
- folderId: string | null;
10191
10363
  conversationId: string | null;
10192
10364
  messageId: string | null;
10193
10365
  announcementId: string | null;
@@ -10254,8 +10426,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10254
10426
  type: import(".prisma/client").$Enums.AssignmentType;
10255
10427
  id: string;
10256
10428
  createdAt: Date | null;
10257
- modifiedAt: Date | null;
10258
10429
  classId: string;
10430
+ modifiedAt: Date | null;
10259
10431
  title: string;
10260
10432
  instructions: string;
10261
10433
  dueDate: Date;
@@ -10311,8 +10483,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10311
10483
  type: import(".prisma/client").$Enums.AssignmentType;
10312
10484
  id: string;
10313
10485
  createdAt: Date | null;
10314
- modifiedAt: Date | null;
10315
10486
  classId: string;
10487
+ modifiedAt: Date | null;
10316
10488
  title: string;
10317
10489
  instructions: string;
10318
10490
  dueDate: Date;
@@ -10407,6 +10579,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10407
10579
  name: string;
10408
10580
  id: string;
10409
10581
  userId: string | null;
10582
+ folderId: string | null;
10410
10583
  size: number | null;
10411
10584
  uploadedAt: Date | null;
10412
10585
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10423,7 +10596,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10423
10596
  submissionId: string | null;
10424
10597
  annotationId: string | null;
10425
10598
  classDraftId: string | null;
10426
- folderId: string | null;
10427
10599
  conversationId: string | null;
10428
10600
  messageId: string | null;
10429
10601
  announcementId: string | null;
@@ -10444,8 +10616,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10444
10616
  type: import(".prisma/client").$Enums.AssignmentType;
10445
10617
  id: string;
10446
10618
  createdAt: Date | null;
10447
- modifiedAt: Date | null;
10448
10619
  classId: string;
10620
+ modifiedAt: Date | null;
10449
10621
  title: string;
10450
10622
  instructions: string;
10451
10623
  dueDate: Date;
@@ -10503,6 +10675,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10503
10675
  name: string;
10504
10676
  id: string;
10505
10677
  userId: string | null;
10678
+ folderId: string | null;
10506
10679
  size: number | null;
10507
10680
  uploadedAt: Date | null;
10508
10681
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10519,7 +10692,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10519
10692
  submissionId: string | null;
10520
10693
  annotationId: string | null;
10521
10694
  classDraftId: string | null;
10522
- folderId: string | null;
10523
10695
  conversationId: string | null;
10524
10696
  messageId: string | null;
10525
10697
  announcementId: string | null;
@@ -10540,8 +10712,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10540
10712
  type: import(".prisma/client").$Enums.AssignmentType;
10541
10713
  id: string;
10542
10714
  createdAt: Date | null;
10543
- modifiedAt: Date | null;
10544
10715
  classId: string;
10716
+ modifiedAt: Date | null;
10545
10717
  title: string;
10546
10718
  instructions: string;
10547
10719
  dueDate: Date;
@@ -10600,6 +10772,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10600
10772
  name: string;
10601
10773
  id: string;
10602
10774
  userId: string | null;
10775
+ folderId: string | null;
10603
10776
  size: number | null;
10604
10777
  uploadedAt: Date | null;
10605
10778
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10616,7 +10789,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10616
10789
  submissionId: string | null;
10617
10790
  annotationId: string | null;
10618
10791
  classDraftId: string | null;
10619
- folderId: string | null;
10620
10792
  conversationId: string | null;
10621
10793
  messageId: string | null;
10622
10794
  announcementId: string | null;
@@ -10637,8 +10809,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10637
10809
  type: import(".prisma/client").$Enums.AssignmentType;
10638
10810
  id: string;
10639
10811
  createdAt: Date | null;
10640
- modifiedAt: Date | null;
10641
10812
  classId: string;
10813
+ modifiedAt: Date | null;
10642
10814
  title: string;
10643
10815
  instructions: string;
10644
10816
  dueDate: Date;
@@ -10696,6 +10868,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10696
10868
  name: string;
10697
10869
  id: string;
10698
10870
  userId: string | null;
10871
+ folderId: string | null;
10699
10872
  size: number | null;
10700
10873
  uploadedAt: Date | null;
10701
10874
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -10712,7 +10885,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10712
10885
  submissionId: string | null;
10713
10886
  annotationId: string | null;
10714
10887
  classDraftId: string | null;
10715
- folderId: string | null;
10716
10888
  conversationId: string | null;
10717
10889
  messageId: string | null;
10718
10890
  announcementId: string | null;
@@ -10733,8 +10905,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10733
10905
  type: import(".prisma/client").$Enums.AssignmentType;
10734
10906
  id: string;
10735
10907
  createdAt: Date | null;
10736
- modifiedAt: Date | null;
10737
10908
  classId: string;
10909
+ modifiedAt: Date | null;
10738
10910
  title: string;
10739
10911
  instructions: string;
10740
10912
  dueDate: Date;
@@ -11355,8 +11527,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11355
11527
  type: import(".prisma/client").$Enums.AssignmentType;
11356
11528
  id: string;
11357
11529
  createdAt: Date | null;
11358
- modifiedAt: Date | null;
11359
11530
  classId: string;
11531
+ modifiedAt: Date | null;
11360
11532
  title: string;
11361
11533
  instructions: string;
11362
11534
  dueDate: Date;
@@ -11404,8 +11576,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11404
11576
  type: import(".prisma/client").$Enums.AssignmentType;
11405
11577
  id: string;
11406
11578
  createdAt: Date | null;
11407
- modifiedAt: Date | null;
11408
11579
  classId: string;
11580
+ modifiedAt: Date | null;
11409
11581
  title: string;
11410
11582
  instructions: string;
11411
11583
  dueDate: Date;
@@ -11620,8 +11792,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11620
11792
  type: import(".prisma/client").$Enums.AssignmentType;
11621
11793
  id: string;
11622
11794
  createdAt: Date | null;
11623
- modifiedAt: Date | null;
11624
11795
  classId: string;
11796
+ modifiedAt: Date | null;
11625
11797
  title: string;
11626
11798
  instructions: string;
11627
11799
  dueDate: Date;
@@ -11668,8 +11840,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11668
11840
  type: import(".prisma/client").$Enums.AssignmentType;
11669
11841
  id: string;
11670
11842
  createdAt: Date | null;
11671
- modifiedAt: Date | null;
11672
11843
  classId: string;
11844
+ modifiedAt: Date | null;
11673
11845
  title: string;
11674
11846
  instructions: string;
11675
11847
  dueDate: Date;
@@ -11748,6 +11920,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11748
11920
  name: string;
11749
11921
  id: string;
11750
11922
  userId: string | null;
11923
+ folderId: string | null;
11751
11924
  size: number | null;
11752
11925
  uploadedAt: Date | null;
11753
11926
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -11764,7 +11937,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11764
11937
  submissionId: string | null;
11765
11938
  annotationId: string | null;
11766
11939
  classDraftId: string | null;
11767
- folderId: string | null;
11768
11940
  conversationId: string | null;
11769
11941
  messageId: string | null;
11770
11942
  announcementId: string | null;
@@ -11788,6 +11960,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11788
11960
  name: string;
11789
11961
  id: string;
11790
11962
  userId: string | null;
11963
+ folderId: string | null;
11791
11964
  size: number | null;
11792
11965
  uploadedAt: Date | null;
11793
11966
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
@@ -11804,7 +11977,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11804
11977
  submissionId: string | null;
11805
11978
  annotationId: string | null;
11806
11979
  classDraftId: string | null;
11807
- folderId: string | null;
11808
11980
  conversationId: string | null;
11809
11981
  messageId: string | null;
11810
11982
  announcementId: string | null;
@@ -11852,6 +12024,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11852
12024
  } | {
11853
12025
  userId: string;
11854
12026
  kind: "PERSONAL";
12027
+ } | {
12028
+ kind: "SHARED_WITH_ME";
11855
12029
  };
11856
12030
  };
11857
12031
  output: {
@@ -11897,6 +12071,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11897
12071
  }[];
11898
12072
  canWrite: boolean;
11899
12073
  scope: import("../models/cloudStorage.js").CloudScope;
12074
+ displayRoot: {
12075
+ kind: "SHARED_WITH_ME";
12076
+ name: string;
12077
+ } | null;
12078
+ };
12079
+ meta: object;
12080
+ }>;
12081
+ listSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
12082
+ input: void;
12083
+ output: {
12084
+ folders: {
12085
+ id: string;
12086
+ name: string;
12087
+ color: string | null;
12088
+ }[];
12089
+ files: never[];
11900
12090
  };
11901
12091
  meta: object;
11902
12092
  }>;
@@ -11921,6 +12111,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11921
12111
  color: string | null;
11922
12112
  section: string;
11923
12113
  }[];
12114
+ sharedWithMe: {
12115
+ kind: "SHARED_WITH_ME";
12116
+ folderCount: number;
12117
+ fileCount: number;
12118
+ };
11924
12119
  };
11925
12120
  meta: object;
11926
12121
  }>;
@@ -12745,8 +12940,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12745
12940
  id: string;
12746
12941
  createdAt: Date;
12747
12942
  updatedAt: Date;
12748
- conversationId: string;
12749
12943
  classId: string;
12944
+ conversationId: string;
12750
12945
  title: string;
12751
12946
  createdById: string;
12752
12947
  };
@@ -12804,8 +12999,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12804
12999
  id: string;
12805
13000
  createdAt: Date;
12806
13001
  updatedAt: Date;
12807
- conversationId: string;
12808
13002
  classId: string;
13003
+ conversationId: string;
12809
13004
  title: string;
12810
13005
  createdById: string;
12811
13006
  };
@@ -12929,8 +13124,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12929
13124
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
12930
13125
  getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
12931
13126
  input: {
12932
- assignmentId: string;
12933
13127
  classId: string;
13128
+ assignmentId: string;
12934
13129
  };
12935
13130
  output: {
12936
13131
  conversationId: string;
@@ -13790,6 +13985,51 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
13790
13985
  };
13791
13986
  meta: object;
13792
13987
  }>;
13988
+ getInsights: import("@trpc/server").TRPCQueryProcedure<{
13989
+ input: {
13990
+ [x: string]: unknown;
13991
+ classId: string;
13992
+ studentId: string;
13993
+ };
13994
+ output: {
13995
+ summary: string;
13996
+ strengths: {
13997
+ label: string;
13998
+ evidence: string;
13999
+ }[];
14000
+ growth: {
14001
+ label: string;
14002
+ evidence: string;
14003
+ }[];
14004
+ talkingPoints: string[];
14005
+ };
14006
+ meta: object;
14007
+ }>;
14008
+ getForecast: import("@trpc/server").TRPCQueryProcedure<{
14009
+ input: {
14010
+ [x: string]: unknown;
14011
+ classId: string;
14012
+ studentId: string;
14013
+ };
14014
+ output: {
14015
+ reason: string;
14016
+ forecastLow: number;
14017
+ forecastHigh: number;
14018
+ risk: "on_track" | "watch" | "at_risk";
14019
+ };
14020
+ meta: object;
14021
+ }>;
14022
+ getStudentFocus: import("@trpc/server").TRPCQueryProcedure<{
14023
+ input: {
14024
+ [x: string]: unknown;
14025
+ classId: string;
14026
+ studentId: string;
14027
+ };
14028
+ output: {
14029
+ focusItems: string[];
14030
+ };
14031
+ meta: object;
14032
+ }>;
13793
14033
  getClassRecommendations: import("@trpc/server").TRPCQueryProcedure<{
13794
14034
  input: {
13795
14035
  [x: string]: unknown;
@@ -14822,9 +15062,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
14822
15062
  }>;
14823
15063
  attach: import("@trpc/server").TRPCMutationProcedure<{
14824
15064
  input: {
14825
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
14826
- targetId: string;
14827
15065
  tagId: string;
15066
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
15067
+ targetId: string;
14828
15068
  };
14829
15069
  output: {
14830
15070
  id: string;
@@ -14833,9 +15073,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
14833
15073
  }>;
14834
15074
  detach: import("@trpc/server").TRPCMutationProcedure<{
14835
15075
  input: {
14836
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
14837
- targetId: string;
14838
15076
  tagId: string;
15077
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
15078
+ targetId: string;
14839
15079
  };
14840
15080
  output: {
14841
15081
  id: string;
@@ -14844,7 +15084,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
14844
15084
  }>;
14845
15085
  getAttached: import("@trpc/server").TRPCQueryProcedure<{
14846
15086
  input: {
14847
- target: "CLASS" | "USER" | "RUBRIC" | "BOUNDARY";
15087
+ target: "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
14848
15088
  targetId: string;
14849
15089
  };
14850
15090
  output: {
@@ -14859,5 +15099,109 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
14859
15099
  meta: object;
14860
15100
  }>;
14861
15101
  }>>;
15102
+ permissions: import("@trpc/server").TRPCBuiltRouter<{
15103
+ ctx: import("../trpc.js").Context;
15104
+ meta: object;
15105
+ errorShape: {
15106
+ data: {
15107
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
15108
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
15109
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
15110
+ httpStatus: number;
15111
+ path?: string;
15112
+ stack?: string;
15113
+ };
15114
+ message: string;
15115
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
15116
+ };
15117
+ transformer: false;
15118
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
15119
+ list: import("@trpc/server").TRPCQueryProcedure<{
15120
+ input: {
15121
+ folderId: string;
15122
+ };
15123
+ output: ({
15124
+ school: {
15125
+ name: string;
15126
+ id: string;
15127
+ } | null;
15128
+ user: {
15129
+ id: string;
15130
+ username: string;
15131
+ email: string;
15132
+ } | null;
15133
+ class: {
15134
+ name: string;
15135
+ id: string;
15136
+ section: string;
15137
+ } | null;
15138
+ department: {
15139
+ name: string;
15140
+ id: string;
15141
+ color: string | null;
15142
+ } | null;
15143
+ tag: {
15144
+ name: string;
15145
+ id: string;
15146
+ color: string;
15147
+ } | null;
15148
+ } & {
15149
+ level: import(".prisma/client").$Enums.PermissionLevel;
15150
+ id: string;
15151
+ createdAt: Date;
15152
+ schoolId: string | null;
15153
+ userId: string | null;
15154
+ departmentId: string | null;
15155
+ folderId: string;
15156
+ principalType: import(".prisma/client").$Enums.PermissionPrincipalType;
15157
+ tagId: string | null;
15158
+ classId: string | null;
15159
+ grantedById: string;
15160
+ })[];
15161
+ meta: object;
15162
+ }>;
15163
+ grant: import("@trpc/server").TRPCMutationProcedure<{
15164
+ input: {
15165
+ level: "READ" | "WRITE";
15166
+ folderId: string;
15167
+ principal: import("../services/permissions.js").PermissionPrincipalInput;
15168
+ };
15169
+ output: {
15170
+ level: import(".prisma/client").$Enums.PermissionLevel;
15171
+ id: string;
15172
+ createdAt: Date;
15173
+ schoolId: string | null;
15174
+ userId: string | null;
15175
+ departmentId: string | null;
15176
+ folderId: string;
15177
+ principalType: import(".prisma/client").$Enums.PermissionPrincipalType;
15178
+ tagId: string | null;
15179
+ classId: string | null;
15180
+ grantedById: string;
15181
+ };
15182
+ meta: object;
15183
+ }>;
15184
+ revoke: import("@trpc/server").TRPCMutationProcedure<{
15185
+ input: {
15186
+ permissionId: string;
15187
+ };
15188
+ output: {
15189
+ success: boolean;
15190
+ };
15191
+ meta: object;
15192
+ }>;
15193
+ listSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
15194
+ input: void;
15195
+ output: {
15196
+ folders: {
15197
+ id: string;
15198
+ name: string;
15199
+ color: string | null;
15200
+ }[];
15201
+ files: never[];
15202
+ };
15203
+ meta: object;
15204
+ }>;
15205
+ }>>;
14862
15206
  }>>;
14863
15207
  //# sourceMappingURL=_app.d.ts.map