@secrecy/trpc-api-types 1.3.0-integration-prisma-selectors.5 → 1.3.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 (2) hide show
  1. package/dist/index.d.ts +323 -1053
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
2
1
  import type * as _trpc_server from '@trpc/server';
3
2
  import type * as superjson from 'superjson';
4
3
  import type * as zod from 'zod';
5
4
  import type * as _trpc_server_dist_error_formatter from '@trpc/server/dist/error/formatter';
6
5
  import type * as _trpc_server_dist_rpc from '@trpc/server/dist/rpc';
6
+ import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
7
7
 
8
8
  declare enum MongoDbEnv {
9
9
  prod = "prod",
@@ -378,16 +378,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
378
378
  _meta: object;
379
379
  _ctx_out: {};
380
380
  _input_in: {
381
- mail?: boolean | undefined;
382
- cloud?: boolean | undefined;
383
- enableAll?: boolean | undefined;
384
- disableAllUntil?: Date | null | undefined;
381
+ mail: boolean;
382
+ cloud: boolean;
383
+ enableAll: boolean;
384
+ disableAllUntil: Date | null;
385
385
  };
386
386
  _input_out: {
387
- mail?: boolean | undefined;
388
- cloud?: boolean | undefined;
389
- enableAll?: boolean | undefined;
390
- disableAllUntil?: Date | null | undefined;
387
+ mail: boolean;
388
+ cloud: boolean;
389
+ enableAll: boolean;
390
+ disableAllUntil: Date | null;
391
391
  };
392
392
  _output_in: {
393
393
  mail: boolean;
@@ -491,6 +491,60 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
491
491
  };
492
492
  transformer: typeof superjson.default;
493
493
  }>, {
494
+ byId: _trpc_server.BuildProcedure<"query", {
495
+ _config: _trpc_server.RootConfig<{
496
+ ctx: {};
497
+ meta: object;
498
+ errorShape: {
499
+ message: string;
500
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
501
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
502
+ } | {
503
+ data: {
504
+ zodError: zod.typeToFlattenedError<any, string> | null;
505
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
506
+ httpStatus: number;
507
+ path?: string | undefined;
508
+ stack?: string | undefined;
509
+ };
510
+ message: string;
511
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
512
+ };
513
+ transformer: typeof superjson.default;
514
+ }>;
515
+ _meta: object;
516
+ _ctx_out: {};
517
+ _input_in: {
518
+ id: string;
519
+ };
520
+ _input_out: {
521
+ id: string;
522
+ };
523
+ _output_in: {
524
+ id: string;
525
+ createdAt: Date;
526
+ lastLogin: Date;
527
+ deletedAt: Date | null;
528
+ infosId: string;
529
+ developerId: string | null;
530
+ role: "user" | "admin";
531
+ godFatherId: string | null;
532
+ lang: "fr" | "en";
533
+ autoDisconnectDelay: number | null;
534
+ };
535
+ _output_out: {
536
+ id: string;
537
+ createdAt: Date;
538
+ lastLogin: Date;
539
+ deletedAt: Date | null;
540
+ infosId: string;
541
+ developerId: string | null;
542
+ role: "user" | "admin";
543
+ godFatherId: string | null;
544
+ lang: "fr" | "en";
545
+ autoDisconnectDelay: number | null;
546
+ };
547
+ }, unknown>;
494
548
  deleteById: _trpc_server.BuildProcedure<"mutation", {
495
549
  _config: _trpc_server.RootConfig<{
496
550
  ctx: {};
@@ -527,6 +581,60 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
527
581
  isDeleted: boolean;
528
582
  };
529
583
  }, unknown>;
584
+ searchMany: _trpc_server.BuildProcedure<"query", {
585
+ _config: _trpc_server.RootConfig<{
586
+ ctx: {};
587
+ meta: object;
588
+ errorShape: {
589
+ message: string;
590
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
591
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
592
+ } | {
593
+ data: {
594
+ zodError: zod.typeToFlattenedError<any, string> | null;
595
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
596
+ httpStatus: number;
597
+ path?: string | undefined;
598
+ stack?: string | undefined;
599
+ };
600
+ message: string;
601
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
602
+ };
603
+ transformer: typeof superjson.default;
604
+ }>;
605
+ _meta: object;
606
+ _ctx_out: {};
607
+ _input_in: {
608
+ search: string;
609
+ };
610
+ _input_out: {
611
+ search: string;
612
+ };
613
+ _output_in: {
614
+ id: string;
615
+ createdAt: Date;
616
+ lastLogin: Date;
617
+ deletedAt: Date | null;
618
+ infosId: string;
619
+ developerId: string | null;
620
+ role: "user" | "admin";
621
+ godFatherId: string | null;
622
+ lang: "fr" | "en";
623
+ autoDisconnectDelay: number | null;
624
+ }[];
625
+ _output_out: {
626
+ id: string;
627
+ createdAt: Date;
628
+ lastLogin: Date;
629
+ deletedAt: Date | null;
630
+ infosId: string;
631
+ developerId: string | null;
632
+ role: "user" | "admin";
633
+ godFatherId: string | null;
634
+ lang: "fr" | "en";
635
+ autoDisconnectDelay: number | null;
636
+ }[];
637
+ }, unknown>;
530
638
  updatePlan: _trpc_server.BuildProcedure<"mutation", {
531
639
  _config: _trpc_server.RootConfig<{
532
640
  ctx: {};
@@ -563,24 +671,26 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
563
671
  _output_in: {
564
672
  id: string;
565
673
  createdAt: Date;
566
- updatedAt: Date;
567
- lastLogin: Date | null;
674
+ lastLogin: Date;
568
675
  deletedAt: Date | null;
569
- applications: {
570
- id: string;
571
- publicKey: string;
572
- }[];
676
+ infosId: string;
677
+ developerId: string | null;
678
+ role: "user" | "admin";
679
+ godFatherId: string | null;
680
+ lang: "fr" | "en";
681
+ autoDisconnectDelay: number | null;
573
682
  };
574
683
  _output_out: {
575
684
  id: string;
576
685
  createdAt: Date;
577
- updatedAt: Date;
578
- lastLogin: Date | null;
686
+ lastLogin: Date;
579
687
  deletedAt: Date | null;
580
- applications: {
581
- id: string;
582
- publicKey: string;
583
- }[];
688
+ infosId: string;
689
+ developerId: string | null;
690
+ role: "user" | "admin";
691
+ godFatherId: string | null;
692
+ lang: "fr" | "en";
693
+ autoDisconnectDelay: number | null;
584
694
  };
585
695
  }, unknown>;
586
696
  }>;
@@ -1293,10 +1403,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1293
1403
  deletedAt: Date | null;
1294
1404
  parentId: string | null;
1295
1405
  isFavorite: boolean;
1296
- createdBy: {
1297
- appId: string;
1298
- userId: string;
1299
- };
1406
+ createdByUserId: string;
1407
+ createdByAppId: string;
1408
+ currentFileId: string | null;
1300
1409
  };
1301
1410
  _output_out: {
1302
1411
  type: "FILE" | "FOLDER";
@@ -1307,10 +1416,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1307
1416
  deletedAt: Date | null;
1308
1417
  parentId: string | null;
1309
1418
  isFavorite: boolean;
1310
- createdBy: {
1311
- appId: string;
1312
- userId: string;
1313
- };
1419
+ createdByUserId: string;
1420
+ createdByAppId: string;
1421
+ currentFileId: string | null;
1314
1422
  };
1315
1423
  }, unknown>;
1316
1424
  deleteFile: _trpc_server.BuildProcedure<"mutation", {
@@ -1389,15 +1497,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1389
1497
  storageType: "scaleway" | "mongo";
1390
1498
  sizeBefore: bigint;
1391
1499
  md5Encrypted: string;
1392
- accesses: {
1393
- key: string;
1394
- sharedBy: {
1395
- keyPair: {
1396
- pub: string;
1397
- } | null;
1398
- };
1399
- }[];
1400
- };
1500
+ userAppUserId: string;
1501
+ userAppAppId: string;
1502
+ validatedAt: Date | null;
1503
+ } | null;
1401
1504
  _output_out: {
1402
1505
  id: string;
1403
1506
  createdAt: Date;
@@ -1407,15 +1510,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1407
1510
  storageType: "scaleway" | "mongo";
1408
1511
  sizeBefore: bigint;
1409
1512
  md5Encrypted: string;
1410
- accesses: {
1411
- key: string;
1412
- sharedBy: {
1413
- keyPair: {
1414
- pub: string;
1415
- } | null;
1416
- };
1417
- }[];
1418
- };
1513
+ userAppUserId: string;
1514
+ userAppAppId: string;
1515
+ validatedAt: Date | null;
1516
+ } | null;
1419
1517
  }, unknown>;
1420
1518
  fileContentById: _trpc_server.BuildProcedure<"query", {
1421
1519
  _config: _trpc_server.RootConfig<{
@@ -1697,76 +1795,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1697
1795
  name: string;
1698
1796
  updatedAt: Date;
1699
1797
  deletedAt: Date | null;
1700
- current: {
1701
- id: string;
1702
- createdAt: Date;
1703
- deletedAt: Date | null;
1704
- size: bigint;
1705
- md5: string;
1706
- storageType: "scaleway" | "mongo";
1707
- sizeBefore: bigint;
1708
- md5Encrypted: string;
1709
- accesses: {
1710
- key: string;
1711
- sharedBy: {
1712
- keyPair: {
1713
- pub: string;
1714
- } | null;
1715
- };
1716
- }[];
1717
- } | null;
1718
- history: {
1719
- id: string;
1720
- createdAt: Date;
1721
- deletedAt: Date | null;
1722
- size: bigint;
1723
- md5: string;
1724
- storageType: "scaleway" | "mongo";
1725
- sizeBefore: bigint;
1726
- md5Encrypted: string;
1727
- accesses: {
1728
- key: string;
1729
- sharedBy: {
1730
- keyPair: {
1731
- pub: string;
1732
- } | null;
1733
- };
1734
- }[];
1735
- }[];
1736
- parent: {
1737
- type: "FILE" | "FOLDER";
1738
- id: string;
1739
- createdAt: Date;
1740
- name: string;
1741
- updatedAt: Date;
1742
- deletedAt: Date | null;
1743
- parentId: string | null;
1744
- isFavorite: boolean;
1745
- createdBy: {
1746
- appId: string;
1747
- userId: string;
1748
- };
1749
- } | null;
1750
1798
  parentId: string | null;
1751
1799
  isFavorite: boolean;
1752
- createdBy: {
1753
- appId: string;
1754
- userId: string;
1755
- };
1756
- children: {
1757
- type: "FILE" | "FOLDER";
1758
- id: string;
1759
- createdAt: Date;
1760
- name: string;
1761
- updatedAt: Date;
1762
- deletedAt: Date | null;
1763
- parentId: string | null;
1764
- isFavorite: boolean;
1765
- createdBy: {
1766
- appId: string;
1767
- userId: string;
1768
- };
1769
- }[];
1800
+ createdByUserId: string;
1801
+ createdByAppId: string;
1802
+ currentFileId: string | null;
1770
1803
  };
1771
1804
  _output_out: {
1772
1805
  type: "FILE" | "FOLDER";
@@ -1775,76 +1808,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1775
1808
  name: string;
1776
1809
  updatedAt: Date;
1777
1810
  deletedAt: Date | null;
1778
- current: {
1779
- id: string;
1780
- createdAt: Date;
1781
- deletedAt: Date | null;
1782
- size: bigint;
1783
- md5: string;
1784
- storageType: "scaleway" | "mongo";
1785
- sizeBefore: bigint;
1786
- md5Encrypted: string;
1787
- accesses: {
1788
- key: string;
1789
- sharedBy: {
1790
- keyPair: {
1791
- pub: string;
1792
- } | null;
1793
- };
1794
- }[];
1795
- } | null;
1796
- history: {
1797
- id: string;
1798
- createdAt: Date;
1799
- deletedAt: Date | null;
1800
- size: bigint;
1801
- md5: string;
1802
- storageType: "scaleway" | "mongo";
1803
- sizeBefore: bigint;
1804
- md5Encrypted: string;
1805
- accesses: {
1806
- key: string;
1807
- sharedBy: {
1808
- keyPair: {
1809
- pub: string;
1810
- } | null;
1811
- };
1812
- }[];
1813
- }[];
1814
- parent: {
1815
- type: "FILE" | "FOLDER";
1816
- id: string;
1817
- createdAt: Date;
1818
- name: string;
1819
- updatedAt: Date;
1820
- deletedAt: Date | null;
1821
- parentId: string | null;
1822
- isFavorite: boolean;
1823
- createdBy: {
1824
- appId: string;
1825
- userId: string;
1826
- };
1827
- } | null;
1828
1811
  parentId: string | null;
1829
1812
  isFavorite: boolean;
1830
- createdBy: {
1831
- appId: string;
1832
- userId: string;
1833
- };
1834
- children: {
1835
- type: "FILE" | "FOLDER";
1836
- id: string;
1837
- createdAt: Date;
1838
- name: string;
1839
- updatedAt: Date;
1840
- deletedAt: Date | null;
1841
- parentId: string | null;
1842
- isFavorite: boolean;
1843
- createdBy: {
1844
- appId: string;
1845
- userId: string;
1846
- };
1847
- }[];
1813
+ createdByUserId: string;
1814
+ createdByAppId: string;
1815
+ currentFileId: string | null;
1848
1816
  };
1849
1817
  }, unknown>;
1850
1818
  shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
@@ -2111,76 +2079,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2111
2079
  name: string;
2112
2080
  updatedAt: Date;
2113
2081
  deletedAt: Date | null;
2114
- current: {
2115
- id: string;
2116
- createdAt: Date;
2117
- deletedAt: Date | null;
2118
- size: bigint;
2119
- md5: string;
2120
- storageType: "scaleway" | "mongo";
2121
- sizeBefore: bigint;
2122
- md5Encrypted: string;
2123
- accesses: {
2124
- key: string;
2125
- sharedBy: {
2126
- keyPair: {
2127
- pub: string;
2128
- } | null;
2129
- };
2130
- }[];
2131
- } | null;
2132
- history: {
2133
- id: string;
2134
- createdAt: Date;
2135
- deletedAt: Date | null;
2136
- size: bigint;
2137
- md5: string;
2138
- storageType: "scaleway" | "mongo";
2139
- sizeBefore: bigint;
2140
- md5Encrypted: string;
2141
- accesses: {
2142
- key: string;
2143
- sharedBy: {
2144
- keyPair: {
2145
- pub: string;
2146
- } | null;
2147
- };
2148
- }[];
2149
- }[];
2150
- parent: {
2151
- type: "FILE" | "FOLDER";
2152
- id: string;
2153
- createdAt: Date;
2154
- name: string;
2155
- updatedAt: Date;
2156
- deletedAt: Date | null;
2157
- parentId: string | null;
2158
- isFavorite: boolean;
2159
- createdBy: {
2160
- appId: string;
2161
- userId: string;
2162
- };
2163
- } | null;
2164
2082
  parentId: string | null;
2165
2083
  isFavorite: boolean;
2166
- createdBy: {
2167
- appId: string;
2168
- userId: string;
2169
- };
2170
- children: {
2171
- type: "FILE" | "FOLDER";
2172
- id: string;
2173
- createdAt: Date;
2174
- name: string;
2175
- updatedAt: Date;
2176
- deletedAt: Date | null;
2177
- parentId: string | null;
2178
- isFavorite: boolean;
2179
- createdBy: {
2180
- appId: string;
2181
- userId: string;
2182
- };
2183
- }[];
2084
+ createdByUserId: string;
2085
+ createdByAppId: string;
2086
+ currentFileId: string | null;
2184
2087
  };
2185
2088
  _output_out: {
2186
2089
  type: "FILE" | "FOLDER";
@@ -2189,76 +2092,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2189
2092
  name: string;
2190
2093
  updatedAt: Date;
2191
2094
  deletedAt: Date | null;
2192
- current: {
2193
- id: string;
2194
- createdAt: Date;
2195
- deletedAt: Date | null;
2196
- size: bigint;
2197
- md5: string;
2198
- storageType: "scaleway" | "mongo";
2199
- sizeBefore: bigint;
2200
- md5Encrypted: string;
2201
- accesses: {
2202
- key: string;
2203
- sharedBy: {
2204
- keyPair: {
2205
- pub: string;
2206
- } | null;
2207
- };
2208
- }[];
2209
- } | null;
2210
- history: {
2211
- id: string;
2212
- createdAt: Date;
2213
- deletedAt: Date | null;
2214
- size: bigint;
2215
- md5: string;
2216
- storageType: "scaleway" | "mongo";
2217
- sizeBefore: bigint;
2218
- md5Encrypted: string;
2219
- accesses: {
2220
- key: string;
2221
- sharedBy: {
2222
- keyPair: {
2223
- pub: string;
2224
- } | null;
2225
- };
2226
- }[];
2227
- }[];
2228
- parent: {
2229
- type: "FILE" | "FOLDER";
2230
- id: string;
2231
- createdAt: Date;
2232
- name: string;
2233
- updatedAt: Date;
2234
- deletedAt: Date | null;
2235
- parentId: string | null;
2236
- isFavorite: boolean;
2237
- createdBy: {
2238
- appId: string;
2239
- userId: string;
2240
- };
2241
- } | null;
2242
2095
  parentId: string | null;
2243
2096
  isFavorite: boolean;
2244
- createdBy: {
2245
- appId: string;
2246
- userId: string;
2247
- };
2248
- children: {
2249
- type: "FILE" | "FOLDER";
2250
- id: string;
2251
- createdAt: Date;
2252
- name: string;
2253
- updatedAt: Date;
2254
- deletedAt: Date | null;
2255
- parentId: string | null;
2256
- isFavorite: boolean;
2257
- createdBy: {
2258
- appId: string;
2259
- userId: string;
2260
- };
2261
- }[];
2097
+ createdByUserId: string;
2098
+ createdByAppId: string;
2099
+ currentFileId: string | null;
2262
2100
  };
2263
2101
  }, unknown>;
2264
2102
  deleteNodeCloudTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -2505,116 +2343,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2505
2343
  _meta: object;
2506
2344
  _ctx_out: {};
2507
2345
  _input_in: {
2508
- type: "FILE" | "FOLDER";
2509
- createdAt: Date;
2510
- name: string;
2511
- updatedAt: Date;
2512
- deletedAt: Date | null;
2513
- parentId: string | null;
2514
- isFavorite: boolean;
2515
- createdBy: {
2516
- appId: string;
2517
- userId: string;
2518
- };
2519
- deleted?: boolean | undefined;
2520
- id?: string | undefined;
2521
- };
2522
- _input_out: {
2523
- type: "FILE" | "FOLDER";
2524
- createdAt: Date;
2525
- name: string;
2526
- updatedAt: Date;
2527
- deletedAt: Date | null;
2528
- parentId: string | null;
2529
- isFavorite: boolean;
2530
- createdBy: {
2531
- appId: string;
2532
- userId: string;
2533
- };
2534
- deleted?: boolean | undefined;
2535
- id?: string | undefined;
2536
- };
2537
- _output_in: {
2538
- type: "FILE" | "FOLDER";
2539
- id: string;
2540
- createdAt: Date;
2541
- name: string;
2542
- updatedAt: Date;
2543
- deletedAt: Date | null;
2544
- parentId: string | null;
2545
- isFavorite: boolean;
2546
- createdBy: {
2547
- appId: string;
2548
- userId: string;
2549
- };
2550
- };
2551
- _output_out: {
2552
- type: "FILE" | "FOLDER";
2553
2346
  id: string;
2554
- createdAt: Date;
2555
- name: string;
2556
- updatedAt: Date;
2557
- deletedAt: Date | null;
2558
- parentId: string | null;
2559
- isFavorite: boolean;
2560
- createdBy: {
2561
- appId: string;
2562
- userId: string;
2563
- };
2564
- };
2565
- }, unknown>;
2566
- nodeFullById: _trpc_server.BuildProcedure<"query", {
2567
- _config: _trpc_server.RootConfig<{
2568
- ctx: {};
2569
- meta: object;
2570
- errorShape: {
2571
- message: string;
2572
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2573
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2574
- } | {
2575
- data: {
2576
- zodError: zod.typeToFlattenedError<any, string> | null;
2577
- code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
2578
- httpStatus: number;
2579
- path?: string | undefined;
2580
- stack?: string | undefined;
2581
- };
2582
- message: string;
2583
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2584
- };
2585
- transformer: typeof superjson.default;
2586
- }>;
2587
- _meta: object;
2588
- _ctx_out: {};
2589
- _input_in: {
2590
- type: "FILE" | "FOLDER";
2591
- createdAt: Date;
2592
- name: string;
2593
- updatedAt: Date;
2594
- deletedAt: Date | null;
2595
- parentId: string | null;
2596
- isFavorite: boolean;
2597
- createdBy: {
2598
- appId: string;
2599
- userId: string;
2600
- };
2601
2347
  deleted?: boolean | undefined;
2602
- id?: string | undefined;
2603
2348
  };
2604
2349
  _input_out: {
2605
- type: "FILE" | "FOLDER";
2606
- createdAt: Date;
2607
- name: string;
2608
- updatedAt: Date;
2609
- deletedAt: Date | null;
2610
- parentId: string | null;
2611
- isFavorite: boolean;
2612
- createdBy: {
2613
- appId: string;
2614
- userId: string;
2615
- };
2350
+ id: string;
2616
2351
  deleted?: boolean | undefined;
2617
- id?: string | undefined;
2618
2352
  };
2619
2353
  _output_in: {
2620
2354
  type: "FILE" | "FOLDER";
@@ -2623,77 +2357,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2623
2357
  name: string;
2624
2358
  updatedAt: Date;
2625
2359
  deletedAt: Date | null;
2626
- current: {
2627
- id: string;
2628
- createdAt: Date;
2629
- deletedAt: Date | null;
2630
- size: bigint;
2631
- md5: string;
2632
- storageType: "scaleway" | "mongo";
2633
- sizeBefore: bigint;
2634
- md5Encrypted: string;
2635
- accesses: {
2636
- key: string;
2637
- sharedBy: {
2638
- keyPair: {
2639
- pub: string;
2640
- } | null;
2641
- };
2642
- }[];
2643
- } | null;
2644
- history: {
2645
- id: string;
2646
- createdAt: Date;
2647
- deletedAt: Date | null;
2648
- size: bigint;
2649
- md5: string;
2650
- storageType: "scaleway" | "mongo";
2651
- sizeBefore: bigint;
2652
- md5Encrypted: string;
2653
- accesses: {
2654
- key: string;
2655
- sharedBy: {
2656
- keyPair: {
2657
- pub: string;
2658
- } | null;
2659
- };
2660
- }[];
2661
- }[];
2662
- parent: {
2663
- type: "FILE" | "FOLDER";
2664
- id: string;
2665
- createdAt: Date;
2666
- name: string;
2667
- updatedAt: Date;
2668
- deletedAt: Date | null;
2669
- parentId: string | null;
2670
- isFavorite: boolean;
2671
- createdBy: {
2672
- appId: string;
2673
- userId: string;
2674
- };
2675
- } | null;
2676
2360
  parentId: string | null;
2677
2361
  isFavorite: boolean;
2678
- createdBy: {
2679
- appId: string;
2680
- userId: string;
2681
- };
2682
- children: {
2683
- type: "FILE" | "FOLDER";
2684
- id: string;
2685
- createdAt: Date;
2686
- name: string;
2687
- updatedAt: Date;
2688
- deletedAt: Date | null;
2689
- parentId: string | null;
2690
- isFavorite: boolean;
2691
- createdBy: {
2692
- appId: string;
2693
- userId: string;
2694
- };
2695
- }[];
2696
- };
2362
+ createdByUserId: string;
2363
+ createdByAppId: string;
2364
+ currentFileId: string | null;
2365
+ } | null;
2697
2366
  _output_out: {
2698
2367
  type: "FILE" | "FOLDER";
2699
2368
  id: string;
@@ -2701,77 +2370,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2701
2370
  name: string;
2702
2371
  updatedAt: Date;
2703
2372
  deletedAt: Date | null;
2704
- current: {
2705
- id: string;
2706
- createdAt: Date;
2707
- deletedAt: Date | null;
2708
- size: bigint;
2709
- md5: string;
2710
- storageType: "scaleway" | "mongo";
2711
- sizeBefore: bigint;
2712
- md5Encrypted: string;
2713
- accesses: {
2714
- key: string;
2715
- sharedBy: {
2716
- keyPair: {
2717
- pub: string;
2718
- } | null;
2719
- };
2720
- }[];
2721
- } | null;
2722
- history: {
2723
- id: string;
2724
- createdAt: Date;
2725
- deletedAt: Date | null;
2726
- size: bigint;
2727
- md5: string;
2728
- storageType: "scaleway" | "mongo";
2729
- sizeBefore: bigint;
2730
- md5Encrypted: string;
2731
- accesses: {
2732
- key: string;
2733
- sharedBy: {
2734
- keyPair: {
2735
- pub: string;
2736
- } | null;
2737
- };
2738
- }[];
2739
- }[];
2740
- parent: {
2741
- type: "FILE" | "FOLDER";
2742
- id: string;
2743
- createdAt: Date;
2744
- name: string;
2745
- updatedAt: Date;
2746
- deletedAt: Date | null;
2747
- parentId: string | null;
2748
- isFavorite: boolean;
2749
- createdBy: {
2750
- appId: string;
2751
- userId: string;
2752
- };
2753
- } | null;
2754
2373
  parentId: string | null;
2755
2374
  isFavorite: boolean;
2756
- createdBy: {
2757
- appId: string;
2758
- userId: string;
2759
- };
2760
- children: {
2761
- type: "FILE" | "FOLDER";
2762
- id: string;
2763
- createdAt: Date;
2764
- name: string;
2765
- updatedAt: Date;
2766
- deletedAt: Date | null;
2767
- parentId: string | null;
2768
- isFavorite: boolean;
2769
- createdBy: {
2770
- appId: string;
2771
- userId: string;
2772
- };
2773
- }[];
2774
- };
2375
+ createdByUserId: string;
2376
+ createdByAppId: string;
2377
+ currentFileId: string | null;
2378
+ } | null;
2775
2379
  }, unknown>;
2776
2380
  nodesDeleted: _trpc_server.BuildProcedure<"query", {
2777
2381
  _config: _trpc_server.RootConfig<{
@@ -2807,10 +2411,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2807
2411
  deletedAt: Date | null;
2808
2412
  parentId: string | null;
2809
2413
  isFavorite: boolean;
2810
- createdBy: {
2811
- appId: string;
2812
- userId: string;
2813
- };
2414
+ createdByUserId: string;
2415
+ createdByAppId: string;
2416
+ currentFileId: string | null;
2814
2417
  }[];
2815
2418
  _output_out: {
2816
2419
  type: "FILE" | "FOLDER";
@@ -2821,10 +2424,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2821
2424
  deletedAt: Date | null;
2822
2425
  parentId: string | null;
2823
2426
  isFavorite: boolean;
2824
- createdBy: {
2825
- appId: string;
2826
- userId: string;
2827
- };
2427
+ createdByUserId: string;
2428
+ createdByAppId: string;
2429
+ currentFileId: string | null;
2828
2430
  }[];
2829
2431
  }, unknown>;
2830
2432
  nodesSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2865,10 +2467,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2865
2467
  deletedAt: Date | null;
2866
2468
  parentId: string | null;
2867
2469
  isFavorite: boolean;
2868
- createdBy: {
2869
- appId: string;
2870
- userId: string;
2871
- };
2470
+ createdByUserId: string;
2471
+ createdByAppId: string;
2472
+ currentFileId: string | null;
2872
2473
  } | null)[];
2873
2474
  _output_out: ({
2874
2475
  type: "FILE" | "FOLDER";
@@ -2879,10 +2480,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2879
2480
  deletedAt: Date | null;
2880
2481
  parentId: string | null;
2881
2482
  isFavorite: boolean;
2882
- createdBy: {
2883
- appId: string;
2884
- userId: string;
2885
- };
2483
+ createdByUserId: string;
2484
+ createdByAppId: string;
2485
+ currentFileId: string | null;
2886
2486
  } | null)[];
2887
2487
  }, unknown>;
2888
2488
  nodesShared: _trpc_server.BuildProcedure<"query", {
@@ -2919,10 +2519,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2919
2519
  deletedAt: Date | null;
2920
2520
  parentId: string | null;
2921
2521
  isFavorite: boolean;
2922
- createdBy: {
2923
- appId: string;
2924
- userId: string;
2925
- };
2522
+ createdByUserId: string;
2523
+ createdByAppId: string;
2524
+ currentFileId: string | null;
2926
2525
  } | null)[];
2927
2526
  _output_out: ({
2928
2527
  type: "FILE" | "FOLDER";
@@ -2933,10 +2532,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2933
2532
  deletedAt: Date | null;
2934
2533
  parentId: string | null;
2935
2534
  isFavorite: boolean;
2936
- createdBy: {
2937
- appId: string;
2938
- userId: string;
2939
- };
2535
+ createdByUserId: string;
2536
+ createdByAppId: string;
2537
+ currentFileId: string | null;
2940
2538
  } | null)[];
2941
2539
  }, unknown>;
2942
2540
  recoverNode: _trpc_server.BuildProcedure<"mutation", {
@@ -3101,84 +2699,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3101
2699
  name: string | null;
3102
2700
  deletedAt: Date | null;
3103
2701
  isFavorite: boolean | null;
3104
- };
3105
- _output_in: {
3106
- type: "FILE" | "FOLDER";
3107
- id: string;
3108
- createdAt: Date;
3109
- name: string;
3110
- updatedAt: Date;
3111
- deletedAt: Date | null;
3112
- current: {
3113
- id: string;
3114
- createdAt: Date;
3115
- deletedAt: Date | null;
3116
- size: bigint;
3117
- md5: string;
3118
- storageType: "scaleway" | "mongo";
3119
- sizeBefore: bigint;
3120
- md5Encrypted: string;
3121
- accesses: {
3122
- key: string;
3123
- sharedBy: {
3124
- keyPair: {
3125
- pub: string;
3126
- } | null;
3127
- };
3128
- }[];
3129
- } | null;
3130
- history: {
3131
- id: string;
3132
- createdAt: Date;
3133
- deletedAt: Date | null;
3134
- size: bigint;
3135
- md5: string;
3136
- storageType: "scaleway" | "mongo";
3137
- sizeBefore: bigint;
3138
- md5Encrypted: string;
3139
- accesses: {
3140
- key: string;
3141
- sharedBy: {
3142
- keyPair: {
3143
- pub: string;
3144
- } | null;
3145
- };
3146
- }[];
3147
- }[];
3148
- parent: {
3149
- type: "FILE" | "FOLDER";
3150
- id: string;
3151
- createdAt: Date;
3152
- name: string;
3153
- updatedAt: Date;
3154
- deletedAt: Date | null;
3155
- parentId: string | null;
3156
- isFavorite: boolean;
3157
- createdBy: {
3158
- appId: string;
3159
- userId: string;
3160
- };
3161
- } | null;
2702
+ };
2703
+ _output_in: {
2704
+ type: "FILE" | "FOLDER";
2705
+ id: string;
2706
+ createdAt: Date;
2707
+ name: string;
2708
+ updatedAt: Date;
2709
+ deletedAt: Date | null;
3162
2710
  parentId: string | null;
3163
2711
  isFavorite: boolean;
3164
- createdBy: {
3165
- appId: string;
3166
- userId: string;
3167
- };
3168
- children: {
3169
- type: "FILE" | "FOLDER";
3170
- id: string;
3171
- createdAt: Date;
3172
- name: string;
3173
- updatedAt: Date;
3174
- deletedAt: Date | null;
3175
- parentId: string | null;
3176
- isFavorite: boolean;
3177
- createdBy: {
3178
- appId: string;
3179
- userId: string;
3180
- };
3181
- }[];
2712
+ createdByUserId: string;
2713
+ createdByAppId: string;
2714
+ currentFileId: string | null;
3182
2715
  };
3183
2716
  _output_out: {
3184
2717
  type: "FILE" | "FOLDER";
@@ -3187,76 +2720,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3187
2720
  name: string;
3188
2721
  updatedAt: Date;
3189
2722
  deletedAt: Date | null;
3190
- current: {
3191
- id: string;
3192
- createdAt: Date;
3193
- deletedAt: Date | null;
3194
- size: bigint;
3195
- md5: string;
3196
- storageType: "scaleway" | "mongo";
3197
- sizeBefore: bigint;
3198
- md5Encrypted: string;
3199
- accesses: {
3200
- key: string;
3201
- sharedBy: {
3202
- keyPair: {
3203
- pub: string;
3204
- } | null;
3205
- };
3206
- }[];
3207
- } | null;
3208
- history: {
3209
- id: string;
3210
- createdAt: Date;
3211
- deletedAt: Date | null;
3212
- size: bigint;
3213
- md5: string;
3214
- storageType: "scaleway" | "mongo";
3215
- sizeBefore: bigint;
3216
- md5Encrypted: string;
3217
- accesses: {
3218
- key: string;
3219
- sharedBy: {
3220
- keyPair: {
3221
- pub: string;
3222
- } | null;
3223
- };
3224
- }[];
3225
- }[];
3226
- parent: {
3227
- type: "FILE" | "FOLDER";
3228
- id: string;
3229
- createdAt: Date;
3230
- name: string;
3231
- updatedAt: Date;
3232
- deletedAt: Date | null;
3233
- parentId: string | null;
3234
- isFavorite: boolean;
3235
- createdBy: {
3236
- appId: string;
3237
- userId: string;
3238
- };
3239
- } | null;
3240
2723
  parentId: string | null;
3241
2724
  isFavorite: boolean;
3242
- createdBy: {
3243
- appId: string;
3244
- userId: string;
3245
- };
3246
- children: {
3247
- type: "FILE" | "FOLDER";
3248
- id: string;
3249
- createdAt: Date;
3250
- name: string;
3251
- updatedAt: Date;
3252
- deletedAt: Date | null;
3253
- parentId: string | null;
3254
- isFavorite: boolean;
3255
- createdBy: {
3256
- appId: string;
3257
- userId: string;
3258
- };
3259
- }[];
2725
+ createdByUserId: string;
2726
+ createdByAppId: string;
2727
+ currentFileId: string | null;
3260
2728
  };
3261
2729
  }, unknown>;
3262
2730
  }>;
@@ -3305,23 +2773,23 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3305
2773
  _ctx_out: {};
3306
2774
  _input_in: {
3307
2775
  address: string;
3308
- encryptedKeystore: string;
2776
+ privateKeyEncrypted: string;
3309
2777
  };
3310
2778
  _input_out: {
3311
2779
  address: string;
3312
- encryptedKeystore: string;
2780
+ privateKeyEncrypted: string;
3313
2781
  };
3314
2782
  _output_in: {
3315
2783
  userId: string;
3316
2784
  createdAt: Date;
3317
2785
  address: string;
3318
- encryptedKeystore: string;
2786
+ privateKeyEncrypted: string;
3319
2787
  };
3320
2788
  _output_out: {
3321
2789
  userId: string;
3322
2790
  createdAt: Date;
3323
2791
  address: string;
3324
- encryptedKeystore: string;
2792
+ privateKeyEncrypted: string;
3325
2793
  };
3326
2794
  }, unknown>;
3327
2795
  isTransactionDone: _trpc_server.BuildProcedure<"query", {
@@ -4084,75 +3552,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4084
3552
  };
4085
3553
  _output_in: {
4086
3554
  type: "received" | "sent";
4087
- mailIntegrity: {
4088
- id: string;
4089
- replyTo: {
4090
- id: string;
4091
- } | null;
4092
- hashKey: string;
4093
- hash: string;
4094
- temporaryRecipients: {
4095
- email: string | null;
4096
- }[];
4097
- } | null;
4098
- mailIntegrityDraft: {
4099
- id: string;
4100
- replyTo: {
4101
- id: string;
4102
- } | null;
4103
- hashKey: string;
4104
- hash: string;
4105
- temporaryRecipients: {
4106
- email: string | null;
4107
- }[];
4108
- } | null;
3555
+ appId: string;
4109
3556
  id: string;
4110
3557
  createdAt: Date;
4111
3558
  deletedAt: Date | null;
4112
3559
  subject: string;
4113
3560
  body: string;
3561
+ senderId: string;
3562
+ recipientId: string;
4114
3563
  openedAt: Date | null;
4115
- files: {
4116
- fileId: string;
4117
- filename: string;
4118
- fileKey: string;
4119
- }[];
3564
+ mailIntegrityId: string | null;
4120
3565
  };
4121
3566
  _output_out: {
4122
3567
  type: "received" | "sent";
4123
- mailIntegrity: {
4124
- id: string;
4125
- replyTo: {
4126
- id: string;
4127
- } | null;
4128
- hashKey: string;
4129
- hash: string;
4130
- temporaryRecipients: {
4131
- email: string | null;
4132
- }[];
4133
- } | null;
4134
- mailIntegrityDraft: {
4135
- id: string;
4136
- replyTo: {
4137
- id: string;
4138
- } | null;
4139
- hashKey: string;
4140
- hash: string;
4141
- temporaryRecipients: {
4142
- email: string | null;
4143
- }[];
4144
- } | null;
3568
+ appId: string;
4145
3569
  id: string;
4146
3570
  createdAt: Date;
4147
3571
  deletedAt: Date | null;
4148
3572
  subject: string;
4149
3573
  body: string;
3574
+ senderId: string;
3575
+ recipientId: string;
4150
3576
  openedAt: Date | null;
4151
- files: {
4152
- fileId: string;
4153
- filename: string;
4154
- fileKey: string;
4155
- }[];
3577
+ mailIntegrityId: string | null;
4156
3578
  };
4157
3579
  }, unknown>;
4158
3580
  createDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -4208,39 +3630,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4208
3630
  };
4209
3631
  _output_in: {
4210
3632
  type: "received" | "sent";
4211
- mailIntegrity: {
4212
- id: string;
4213
- replyTo: {
4214
- id: string;
4215
- } | null;
4216
- hashKey: string;
4217
- hash: string;
4218
- temporaryRecipients: {
4219
- email: string | null;
4220
- }[];
4221
- } | null;
4222
- mailIntegrityDraft: {
4223
- id: string;
4224
- replyTo: {
4225
- id: string;
4226
- } | null;
4227
- hashKey: string;
4228
- hash: string;
4229
- temporaryRecipients: {
4230
- email: string | null;
4231
- }[];
4232
- } | null;
3633
+ appId: string;
4233
3634
  id: string;
4234
3635
  createdAt: Date;
4235
3636
  deletedAt: Date | null;
4236
3637
  subject: string;
4237
3638
  body: string;
3639
+ senderId: string;
3640
+ recipientId: string;
4238
3641
  openedAt: Date | null;
4239
- files: {
4240
- fileId: string;
4241
- filename: string;
4242
- fileKey: string;
4243
- }[];
3642
+ mailIntegrityId: string | null;
4244
3643
  } & {
4245
3644
  mailIntegrityDraft: {
4246
3645
  id: string;
@@ -4248,39 +3647,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4248
3647
  };
4249
3648
  _output_out: {
4250
3649
  type: "received" | "sent";
4251
- mailIntegrity: {
4252
- id: string;
4253
- replyTo: {
4254
- id: string;
4255
- } | null;
4256
- hashKey: string;
4257
- hash: string;
4258
- temporaryRecipients: {
4259
- email: string | null;
4260
- }[];
4261
- } | null;
4262
- mailIntegrityDraft: {
4263
- id: string;
4264
- replyTo: {
4265
- id: string;
4266
- } | null;
4267
- hashKey: string;
4268
- hash: string;
4269
- temporaryRecipients: {
4270
- email: string | null;
4271
- }[];
4272
- } | null;
3650
+ appId: string;
4273
3651
  id: string;
4274
3652
  createdAt: Date;
4275
3653
  deletedAt: Date | null;
4276
3654
  subject: string;
4277
3655
  body: string;
3656
+ senderId: string;
3657
+ recipientId: string;
4278
3658
  openedAt: Date | null;
4279
- files: {
4280
- fileId: string;
4281
- filename: string;
4282
- fileKey: string;
4283
- }[];
3659
+ mailIntegrityId: string | null;
4284
3660
  } & {
4285
3661
  mailIntegrityDraft: {
4286
3662
  id: string;
@@ -4426,75 +3802,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4426
3802
  };
4427
3803
  _output_in: {
4428
3804
  type: "received" | "sent";
4429
- mailIntegrity: {
4430
- id: string;
4431
- replyTo: {
4432
- id: string;
4433
- } | null;
4434
- hashKey: string;
4435
- hash: string;
4436
- temporaryRecipients: {
4437
- email: string | null;
4438
- }[];
4439
- } | null;
4440
- mailIntegrityDraft: {
4441
- id: string;
4442
- replyTo: {
4443
- id: string;
4444
- } | null;
4445
- hashKey: string;
4446
- hash: string;
4447
- temporaryRecipients: {
4448
- email: string | null;
4449
- }[];
4450
- } | null;
3805
+ appId: string;
4451
3806
  id: string;
4452
3807
  createdAt: Date;
4453
3808
  deletedAt: Date | null;
4454
3809
  subject: string;
4455
3810
  body: string;
3811
+ senderId: string;
3812
+ recipientId: string;
4456
3813
  openedAt: Date | null;
4457
- files: {
4458
- fileId: string;
4459
- filename: string;
4460
- fileKey: string;
4461
- }[];
3814
+ mailIntegrityId: string | null;
4462
3815
  }[];
4463
3816
  _output_out: {
4464
3817
  type: "received" | "sent";
4465
- mailIntegrity: {
4466
- id: string;
4467
- replyTo: {
4468
- id: string;
4469
- } | null;
4470
- hashKey: string;
4471
- hash: string;
4472
- temporaryRecipients: {
4473
- email: string | null;
4474
- }[];
4475
- } | null;
4476
- mailIntegrityDraft: {
4477
- id: string;
4478
- replyTo: {
4479
- id: string;
4480
- } | null;
4481
- hashKey: string;
4482
- hash: string;
4483
- temporaryRecipients: {
4484
- email: string | null;
4485
- }[];
4486
- } | null;
3818
+ appId: string;
4487
3819
  id: string;
4488
3820
  createdAt: Date;
4489
3821
  deletedAt: Date | null;
4490
3822
  subject: string;
4491
3823
  body: string;
3824
+ senderId: string;
3825
+ recipientId: string;
4492
3826
  openedAt: Date | null;
4493
- files: {
4494
- fileId: string;
4495
- filename: string;
4496
- fileKey: string;
4497
- }[];
3827
+ mailIntegrityId: string | null;
4498
3828
  }[];
4499
3829
  }, unknown>;
4500
3830
  emptyTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -4559,10 +3889,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4559
3889
  id: string;
4560
3890
  };
4561
3891
  _output_in: {
4562
- isRead: boolean;
3892
+ isReaded: boolean;
4563
3893
  };
4564
3894
  _output_out: {
4565
- isRead: boolean;
3895
+ isReaded: boolean;
4566
3896
  };
4567
3897
  }, unknown>;
4568
3898
  recover: _trpc_server.BuildProcedure<"mutation", {
@@ -4670,8 +4000,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4670
4000
  recipients: ({
4671
4001
  subject: string;
4672
4002
  body: string;
4673
- } & {
4674
4003
  recipientId: string;
4004
+ } & {
4675
4005
  files: {
4676
4006
  id: string;
4677
4007
  filename: string;
@@ -4686,8 +4016,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4686
4016
  recipients: ({
4687
4017
  subject: string;
4688
4018
  body: string;
4689
- } & {
4690
4019
  recipientId: string;
4020
+ } & {
4691
4021
  files: {
4692
4022
  id: string;
4693
4023
  filename: string;
@@ -4697,10 +4027,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4697
4027
  temporaryRecipients: string[];
4698
4028
  };
4699
4029
  _output_in: {
4700
- isSent: boolean;
4030
+ isSended: boolean;
4701
4031
  };
4702
4032
  _output_out: {
4703
- isSent: boolean;
4033
+ isSended: boolean;
4704
4034
  };
4705
4035
  }, unknown>;
4706
4036
  sendOne: _trpc_server.BuildProcedure<"mutation", {
@@ -4731,8 +4061,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4731
4061
  recipient: {
4732
4062
  subject: string;
4733
4063
  body: string;
4734
- } & {
4735
4064
  recipientId: string;
4065
+ } & {
4736
4066
  files: {
4737
4067
  id: string;
4738
4068
  filename: string;
@@ -4745,8 +4075,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4745
4075
  recipient: {
4746
4076
  subject: string;
4747
4077
  body: string;
4748
- } & {
4749
4078
  recipientId: string;
4079
+ } & {
4750
4080
  files: {
4751
4081
  id: string;
4752
4082
  filename: string;
@@ -4819,10 +4149,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4819
4149
  id: string;
4820
4150
  };
4821
4151
  _output_in: {
4822
- isUnread: boolean;
4152
+ isUnreaded: boolean;
4823
4153
  };
4824
4154
  _output_out: {
4825
- isUnread: boolean;
4155
+ isUnreaded: boolean;
4826
4156
  };
4827
4157
  }, unknown>;
4828
4158
  updateDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -4878,75 +4208,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4878
4208
  };
4879
4209
  _output_in: {
4880
4210
  type: "received" | "sent";
4881
- mailIntegrity: {
4882
- id: string;
4883
- replyTo: {
4884
- id: string;
4885
- } | null;
4886
- hashKey: string;
4887
- hash: string;
4888
- temporaryRecipients: {
4889
- email: string | null;
4890
- }[];
4891
- } | null;
4892
- mailIntegrityDraft: {
4893
- id: string;
4894
- replyTo: {
4895
- id: string;
4896
- } | null;
4897
- hashKey: string;
4898
- hash: string;
4899
- temporaryRecipients: {
4900
- email: string | null;
4901
- }[];
4902
- } | null;
4211
+ appId: string;
4903
4212
  id: string;
4904
4213
  createdAt: Date;
4905
4214
  deletedAt: Date | null;
4906
4215
  subject: string;
4907
4216
  body: string;
4217
+ senderId: string;
4218
+ recipientId: string;
4908
4219
  openedAt: Date | null;
4909
- files: {
4910
- fileId: string;
4911
- filename: string;
4912
- fileKey: string;
4913
- }[];
4220
+ mailIntegrityId: string | null;
4914
4221
  };
4915
4222
  _output_out: {
4916
4223
  type: "received" | "sent";
4917
- mailIntegrity: {
4918
- id: string;
4919
- replyTo: {
4920
- id: string;
4921
- } | null;
4922
- hashKey: string;
4923
- hash: string;
4924
- temporaryRecipients: {
4925
- email: string | null;
4926
- }[];
4927
- } | null;
4928
- mailIntegrityDraft: {
4929
- id: string;
4930
- replyTo: {
4931
- id: string;
4932
- } | null;
4933
- hashKey: string;
4934
- hash: string;
4935
- temporaryRecipients: {
4936
- email: string | null;
4937
- }[];
4938
- } | null;
4224
+ appId: string;
4939
4225
  id: string;
4940
4226
  createdAt: Date;
4941
4227
  deletedAt: Date | null;
4942
4228
  subject: string;
4943
4229
  body: string;
4230
+ senderId: string;
4231
+ recipientId: string;
4944
4232
  openedAt: Date | null;
4945
- files: {
4946
- fileId: string;
4947
- filename: string;
4948
- fileKey: string;
4949
- }[];
4233
+ mailIntegrityId: string | null;
4950
4234
  };
4951
4235
  }, unknown>;
4952
4236
  }>;
@@ -5333,20 +4617,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5333
4617
  uaEncPriv: string;
5334
4618
  };
5335
4619
  _output_in: {
5336
- keyPair: {
5337
- uaPub: string;
5338
- uaEncPriv: string;
5339
- };
5340
4620
  jwt: string;
5341
4621
  uaSession: string;
4622
+ uaPub: string;
4623
+ uaEncPriv: string;
5342
4624
  };
5343
4625
  _output_out: {
5344
- keyPair: {
5345
- uaPub: string;
5346
- uaEncPriv: string;
5347
- };
5348
4626
  jwt: string;
5349
4627
  uaSession: string;
4628
+ uaPub: string;
4629
+ uaEncPriv: string;
5350
4630
  };
5351
4631
  }, unknown>;
5352
4632
  login: _trpc_server.BuildProcedure<"mutation", {
@@ -5389,18 +4669,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5389
4669
  _output_in: {
5390
4670
  jwt: string;
5391
4671
  uaSession: string;
5392
- keyPair?: {
5393
- uaPub: string;
5394
- uaEncPriv: string;
5395
- } | undefined;
4672
+ uaPub: string;
4673
+ uaEncPriv: string;
5396
4674
  };
5397
4675
  _output_out: {
5398
4676
  jwt: string;
5399
4677
  uaSession: string;
5400
- keyPair?: {
5401
- uaPub: string;
5402
- uaEncPriv: string;
5403
- } | undefined;
4678
+ uaPub: string;
4679
+ uaEncPriv: string;
5404
4680
  };
5405
4681
  }, unknown>;
5406
4682
  }>;
@@ -7242,7 +6518,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7242
6518
  };
7243
6519
  transformer: typeof superjson.default;
7244
6520
  }>, {
7245
- byId: _trpc_server.BuildProcedure<"query", {
6521
+ byEmail: _trpc_server.BuildProcedure<"query", {
7246
6522
  _config: _trpc_server.RootConfig<{
7247
6523
  ctx: {};
7248
6524
  meta: object;
@@ -7266,69 +6542,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7266
6542
  _meta: object;
7267
6543
  _ctx_out: {};
7268
6544
  _input_in: {
7269
- id: string;
6545
+ email: string;
7270
6546
  };
7271
6547
  _input_out: {
7272
- id: string;
6548
+ email: string;
7273
6549
  };
7274
6550
  _output_in: {
7275
6551
  id: string;
7276
- applications: {
7277
- id: string;
7278
- publicKey: string;
7279
- }[];
6552
+ createdAt: Date;
6553
+ lastLogin: Date;
6554
+ deletedAt: Date | null;
6555
+ infosId: string;
6556
+ developerId: string | null;
6557
+ role: "user" | "admin";
6558
+ godFatherId: string | null;
6559
+ lang: "fr" | "en";
6560
+ autoDisconnectDelay: number | null;
7280
6561
  };
7281
6562
  _output_out: {
7282
6563
  id: string;
7283
- applications: {
7284
- id: string;
7285
- publicKey: string;
7286
- }[];
7287
- };
7288
- }, unknown>;
7289
- searchMany: _trpc_server.BuildProcedure<"query", {
7290
- _config: _trpc_server.RootConfig<{
7291
- ctx: {};
7292
- meta: object;
7293
- errorShape: {
7294
- message: string;
7295
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7296
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
7297
- } | {
7298
- data: {
7299
- zodError: zod.typeToFlattenedError<any, string> | null;
7300
- code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
7301
- httpStatus: number;
7302
- path?: string | undefined;
7303
- stack?: string | undefined;
7304
- };
7305
- message: string;
7306
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7307
- };
7308
- transformer: typeof superjson.default;
7309
- }>;
7310
- _meta: object;
7311
- _ctx_out: {};
7312
- _input_in: {
7313
- search: string;
7314
- };
7315
- _input_out: {
7316
- search: string;
6564
+ createdAt: Date;
6565
+ lastLogin: Date;
6566
+ deletedAt: Date | null;
6567
+ infosId: string;
6568
+ developerId: string | null;
6569
+ role: "user" | "admin";
6570
+ godFatherId: string | null;
6571
+ lang: "fr" | "en";
6572
+ autoDisconnectDelay: number | null;
7317
6573
  };
7318
- _output_in: {
7319
- id: string;
7320
- applications: {
7321
- id: string;
7322
- publicKey: string;
7323
- }[];
7324
- }[];
7325
- _output_out: {
7326
- id: string;
7327
- applications: {
7328
- id: string;
7329
- publicKey: string;
7330
- }[];
7331
- }[];
7332
6574
  }, unknown>;
7333
6575
  deleteSelfData: _trpc_server.BuildProcedure<"mutation", {
7334
6576
  _config: _trpc_server.RootConfig<{
@@ -7422,13 +6664,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7422
6664
  _output_in: {
7423
6665
  id: string;
7424
6666
  createdAt: Date;
7425
- updatedAt: Date;
7426
- lastLogin: Date | null;
6667
+ lastLogin: Date;
7427
6668
  deletedAt: Date | null;
7428
- applications: {
7429
- id: string;
7430
- publicKey: string;
7431
- }[];
6669
+ infosId: string;
6670
+ developerId: string | null;
6671
+ role: "user" | "admin";
6672
+ godFatherId: string | null;
6673
+ lang: "fr" | "en";
6674
+ autoDisconnectDelay: number | null;
7432
6675
  } & {
7433
6676
  infos: {
7434
6677
  id: string;
@@ -7445,13 +6688,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7445
6688
  _output_out: {
7446
6689
  id: string;
7447
6690
  createdAt: Date;
7448
- updatedAt: Date;
7449
- lastLogin: Date | null;
6691
+ lastLogin: Date;
7450
6692
  deletedAt: Date | null;
7451
- applications: {
7452
- id: string;
7453
- publicKey: string;
7454
- }[];
6693
+ infosId: string;
6694
+ developerId: string | null;
6695
+ role: "user" | "admin";
6696
+ godFatherId: string | null;
6697
+ lang: "fr" | "en";
6698
+ autoDisconnectDelay: number | null;
7455
6699
  } & {
7456
6700
  infos: {
7457
6701
  id: string;
@@ -7538,24 +6782,50 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7538
6782
  _output_in: {
7539
6783
  id: string;
7540
6784
  createdAt: Date;
7541
- updatedAt: Date;
7542
- lastLogin: Date | null;
6785
+ lastLogin: Date;
7543
6786
  deletedAt: Date | null;
7544
- applications: {
6787
+ infosId: string;
6788
+ developerId: string | null;
6789
+ role: "user" | "admin";
6790
+ godFatherId: string | null;
6791
+ lang: "fr" | "en";
6792
+ autoDisconnectDelay: number | null;
6793
+ } & {
6794
+ infos: {
7545
6795
  id: string;
7546
- publicKey: string;
7547
- }[];
6796
+ updatedAt: Date;
6797
+ firstname: string;
6798
+ lastname: string;
6799
+ emails: string[];
6800
+ phones: string[];
6801
+ srpSalt: string;
6802
+ masterKeySalt: string;
6803
+ srpVerifier: string;
6804
+ };
7548
6805
  };
7549
6806
  _output_out: {
7550
6807
  id: string;
7551
6808
  createdAt: Date;
7552
- updatedAt: Date;
7553
- lastLogin: Date | null;
6809
+ lastLogin: Date;
7554
6810
  deletedAt: Date | null;
7555
- applications: {
6811
+ infosId: string;
6812
+ developerId: string | null;
6813
+ role: "user" | "admin";
6814
+ godFatherId: string | null;
6815
+ lang: "fr" | "en";
6816
+ autoDisconnectDelay: number | null;
6817
+ } & {
6818
+ infos: {
7556
6819
  id: string;
7557
- publicKey: string;
7558
- }[];
6820
+ updatedAt: Date;
6821
+ firstname: string;
6822
+ lastname: string;
6823
+ emails: string[];
6824
+ phones: string[];
6825
+ srpSalt: string;
6826
+ masterKeySalt: string;
6827
+ srpVerifier: string;
6828
+ };
7559
6829
  };
7560
6830
  }, unknown>;
7561
6831
  }>;