@secrecy/trpc-api-types 1.2.0 → 1.3.0-integration-prisma-selectors.2

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 +956 -122
  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';
1
2
  import type * as _trpc_server from '@trpc/server';
2
3
  import type * as superjson from 'superjson';
3
4
  import type * as zod from 'zod';
4
5
  import type * as _trpc_server_dist_error_formatter from '@trpc/server/dist/error/formatter';
5
6
  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;
382
- cloud: boolean;
383
- enableAll: boolean;
384
- disableAllUntil: Date | null;
381
+ mail?: boolean | undefined;
382
+ cloud?: boolean | undefined;
383
+ enableAll?: boolean | undefined;
384
+ disableAllUntil?: Date | null | undefined;
385
385
  };
386
386
  _input_out: {
387
- mail: boolean;
388
- cloud: boolean;
389
- enableAll: boolean;
390
- disableAllUntil: Date | null;
387
+ mail?: boolean | undefined;
388
+ cloud?: boolean | undefined;
389
+ enableAll?: boolean | undefined;
390
+ disableAllUntil?: Date | null | undefined;
391
391
  };
392
392
  _output_in: {
393
393
  mail: boolean;
@@ -1403,9 +1403,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1403
1403
  deletedAt: Date | null;
1404
1404
  parentId: string | null;
1405
1405
  isFavorite: boolean;
1406
- createdByUserId: string;
1407
- createdByAppId: string;
1408
- currentFileId: string | null;
1406
+ createdBy: {
1407
+ appId: string;
1408
+ userId: string;
1409
+ };
1409
1410
  };
1410
1411
  _output_out: {
1411
1412
  type: "FILE" | "FOLDER";
@@ -1416,9 +1417,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1416
1417
  deletedAt: Date | null;
1417
1418
  parentId: string | null;
1418
1419
  isFavorite: boolean;
1419
- createdByUserId: string;
1420
- createdByAppId: string;
1421
- currentFileId: string | null;
1420
+ createdBy: {
1421
+ appId: string;
1422
+ userId: string;
1423
+ };
1422
1424
  };
1423
1425
  }, unknown>;
1424
1426
  deleteFile: _trpc_server.BuildProcedure<"mutation", {
@@ -1497,10 +1499,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1497
1499
  storageType: "scaleway" | "mongo";
1498
1500
  sizeBefore: bigint;
1499
1501
  md5Encrypted: string;
1500
- userAppUserId: string;
1501
- userAppAppId: string;
1502
- validatedAt: Date | null;
1503
- } | null;
1502
+ accesses: {
1503
+ key: string;
1504
+ sharedBy: {
1505
+ keyPair: {
1506
+ pub: string;
1507
+ } | null;
1508
+ };
1509
+ }[];
1510
+ };
1504
1511
  _output_out: {
1505
1512
  id: string;
1506
1513
  createdAt: Date;
@@ -1510,10 +1517,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1510
1517
  storageType: "scaleway" | "mongo";
1511
1518
  sizeBefore: bigint;
1512
1519
  md5Encrypted: string;
1513
- userAppUserId: string;
1514
- userAppAppId: string;
1515
- validatedAt: Date | null;
1516
- } | null;
1520
+ accesses: {
1521
+ key: string;
1522
+ sharedBy: {
1523
+ keyPair: {
1524
+ pub: string;
1525
+ } | null;
1526
+ };
1527
+ }[];
1528
+ };
1517
1529
  }, unknown>;
1518
1530
  fileContentById: _trpc_server.BuildProcedure<"query", {
1519
1531
  _config: _trpc_server.RootConfig<{
@@ -1795,11 +1807,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1795
1807
  name: string;
1796
1808
  updatedAt: Date;
1797
1809
  deletedAt: Date | null;
1810
+ current: {
1811
+ id: string;
1812
+ createdAt: Date;
1813
+ deletedAt: Date | null;
1814
+ size: bigint;
1815
+ md5: string;
1816
+ storageType: "scaleway" | "mongo";
1817
+ sizeBefore: bigint;
1818
+ md5Encrypted: string;
1819
+ accesses: {
1820
+ key: string;
1821
+ sharedBy: {
1822
+ keyPair: {
1823
+ pub: string;
1824
+ } | null;
1825
+ };
1826
+ }[];
1827
+ } | null;
1828
+ history: {
1829
+ id: string;
1830
+ createdAt: Date;
1831
+ deletedAt: Date | null;
1832
+ size: bigint;
1833
+ md5: string;
1834
+ storageType: "scaleway" | "mongo";
1835
+ sizeBefore: bigint;
1836
+ md5Encrypted: string;
1837
+ accesses: {
1838
+ key: string;
1839
+ sharedBy: {
1840
+ keyPair: {
1841
+ pub: string;
1842
+ } | null;
1843
+ };
1844
+ }[];
1845
+ }[];
1846
+ parent: {
1847
+ type: "FILE" | "FOLDER";
1848
+ id: string;
1849
+ createdAt: Date;
1850
+ name: string;
1851
+ updatedAt: Date;
1852
+ deletedAt: Date | null;
1853
+ parentId: string | null;
1854
+ isFavorite: boolean;
1855
+ createdBy: {
1856
+ appId: string;
1857
+ userId: string;
1858
+ };
1859
+ } | null;
1798
1860
  parentId: string | null;
1799
1861
  isFavorite: boolean;
1800
- createdByUserId: string;
1801
- createdByAppId: string;
1802
- currentFileId: string | null;
1862
+ createdBy: {
1863
+ appId: string;
1864
+ userId: string;
1865
+ };
1866
+ children: {
1867
+ type: "FILE" | "FOLDER";
1868
+ id: string;
1869
+ createdAt: Date;
1870
+ name: string;
1871
+ updatedAt: Date;
1872
+ deletedAt: Date | null;
1873
+ parentId: string | null;
1874
+ isFavorite: boolean;
1875
+ createdBy: {
1876
+ appId: string;
1877
+ userId: string;
1878
+ };
1879
+ }[];
1803
1880
  };
1804
1881
  _output_out: {
1805
1882
  type: "FILE" | "FOLDER";
@@ -1808,11 +1885,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1808
1885
  name: string;
1809
1886
  updatedAt: Date;
1810
1887
  deletedAt: Date | null;
1888
+ current: {
1889
+ id: string;
1890
+ createdAt: Date;
1891
+ deletedAt: Date | null;
1892
+ size: bigint;
1893
+ md5: string;
1894
+ storageType: "scaleway" | "mongo";
1895
+ sizeBefore: bigint;
1896
+ md5Encrypted: string;
1897
+ accesses: {
1898
+ key: string;
1899
+ sharedBy: {
1900
+ keyPair: {
1901
+ pub: string;
1902
+ } | null;
1903
+ };
1904
+ }[];
1905
+ } | null;
1906
+ history: {
1907
+ id: string;
1908
+ createdAt: Date;
1909
+ deletedAt: Date | null;
1910
+ size: bigint;
1911
+ md5: string;
1912
+ storageType: "scaleway" | "mongo";
1913
+ sizeBefore: bigint;
1914
+ md5Encrypted: string;
1915
+ accesses: {
1916
+ key: string;
1917
+ sharedBy: {
1918
+ keyPair: {
1919
+ pub: string;
1920
+ } | null;
1921
+ };
1922
+ }[];
1923
+ }[];
1924
+ parent: {
1925
+ type: "FILE" | "FOLDER";
1926
+ id: string;
1927
+ createdAt: Date;
1928
+ name: string;
1929
+ updatedAt: Date;
1930
+ deletedAt: Date | null;
1931
+ parentId: string | null;
1932
+ isFavorite: boolean;
1933
+ createdBy: {
1934
+ appId: string;
1935
+ userId: string;
1936
+ };
1937
+ } | null;
1811
1938
  parentId: string | null;
1812
1939
  isFavorite: boolean;
1813
- createdByUserId: string;
1814
- createdByAppId: string;
1815
- currentFileId: string | null;
1940
+ createdBy: {
1941
+ appId: string;
1942
+ userId: string;
1943
+ };
1944
+ children: {
1945
+ type: "FILE" | "FOLDER";
1946
+ id: string;
1947
+ createdAt: Date;
1948
+ name: string;
1949
+ updatedAt: Date;
1950
+ deletedAt: Date | null;
1951
+ parentId: string | null;
1952
+ isFavorite: boolean;
1953
+ createdBy: {
1954
+ appId: string;
1955
+ userId: string;
1956
+ };
1957
+ }[];
1816
1958
  };
1817
1959
  }, unknown>;
1818
1960
  shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
@@ -2079,11 +2221,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2079
2221
  name: string;
2080
2222
  updatedAt: Date;
2081
2223
  deletedAt: Date | null;
2224
+ current: {
2225
+ id: string;
2226
+ createdAt: Date;
2227
+ deletedAt: Date | null;
2228
+ size: bigint;
2229
+ md5: string;
2230
+ storageType: "scaleway" | "mongo";
2231
+ sizeBefore: bigint;
2232
+ md5Encrypted: string;
2233
+ accesses: {
2234
+ key: string;
2235
+ sharedBy: {
2236
+ keyPair: {
2237
+ pub: string;
2238
+ } | null;
2239
+ };
2240
+ }[];
2241
+ } | null;
2242
+ history: {
2243
+ id: string;
2244
+ createdAt: Date;
2245
+ deletedAt: Date | null;
2246
+ size: bigint;
2247
+ md5: string;
2248
+ storageType: "scaleway" | "mongo";
2249
+ sizeBefore: bigint;
2250
+ md5Encrypted: string;
2251
+ accesses: {
2252
+ key: string;
2253
+ sharedBy: {
2254
+ keyPair: {
2255
+ pub: string;
2256
+ } | null;
2257
+ };
2258
+ }[];
2259
+ }[];
2260
+ parent: {
2261
+ type: "FILE" | "FOLDER";
2262
+ id: string;
2263
+ createdAt: Date;
2264
+ name: string;
2265
+ updatedAt: Date;
2266
+ deletedAt: Date | null;
2267
+ parentId: string | null;
2268
+ isFavorite: boolean;
2269
+ createdBy: {
2270
+ appId: string;
2271
+ userId: string;
2272
+ };
2273
+ } | null;
2082
2274
  parentId: string | null;
2083
2275
  isFavorite: boolean;
2084
- createdByUserId: string;
2085
- createdByAppId: string;
2086
- currentFileId: string | null;
2276
+ createdBy: {
2277
+ appId: string;
2278
+ userId: string;
2279
+ };
2280
+ children: {
2281
+ type: "FILE" | "FOLDER";
2282
+ id: string;
2283
+ createdAt: Date;
2284
+ name: string;
2285
+ updatedAt: Date;
2286
+ deletedAt: Date | null;
2287
+ parentId: string | null;
2288
+ isFavorite: boolean;
2289
+ createdBy: {
2290
+ appId: string;
2291
+ userId: string;
2292
+ };
2293
+ }[];
2087
2294
  };
2088
2295
  _output_out: {
2089
2296
  type: "FILE" | "FOLDER";
@@ -2092,11 +2299,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2092
2299
  name: string;
2093
2300
  updatedAt: Date;
2094
2301
  deletedAt: Date | null;
2302
+ current: {
2303
+ id: string;
2304
+ createdAt: Date;
2305
+ deletedAt: Date | null;
2306
+ size: bigint;
2307
+ md5: string;
2308
+ storageType: "scaleway" | "mongo";
2309
+ sizeBefore: bigint;
2310
+ md5Encrypted: string;
2311
+ accesses: {
2312
+ key: string;
2313
+ sharedBy: {
2314
+ keyPair: {
2315
+ pub: string;
2316
+ } | null;
2317
+ };
2318
+ }[];
2319
+ } | null;
2320
+ history: {
2321
+ id: string;
2322
+ createdAt: Date;
2323
+ deletedAt: Date | null;
2324
+ size: bigint;
2325
+ md5: string;
2326
+ storageType: "scaleway" | "mongo";
2327
+ sizeBefore: bigint;
2328
+ md5Encrypted: string;
2329
+ accesses: {
2330
+ key: string;
2331
+ sharedBy: {
2332
+ keyPair: {
2333
+ pub: string;
2334
+ } | null;
2335
+ };
2336
+ }[];
2337
+ }[];
2338
+ parent: {
2339
+ type: "FILE" | "FOLDER";
2340
+ id: string;
2341
+ createdAt: Date;
2342
+ name: string;
2343
+ updatedAt: Date;
2344
+ deletedAt: Date | null;
2345
+ parentId: string | null;
2346
+ isFavorite: boolean;
2347
+ createdBy: {
2348
+ appId: string;
2349
+ userId: string;
2350
+ };
2351
+ } | null;
2095
2352
  parentId: string | null;
2096
2353
  isFavorite: boolean;
2097
- createdByUserId: string;
2098
- createdByAppId: string;
2099
- currentFileId: string | null;
2354
+ createdBy: {
2355
+ appId: string;
2356
+ userId: string;
2357
+ };
2358
+ children: {
2359
+ type: "FILE" | "FOLDER";
2360
+ id: string;
2361
+ createdAt: Date;
2362
+ name: string;
2363
+ updatedAt: Date;
2364
+ deletedAt: Date | null;
2365
+ parentId: string | null;
2366
+ isFavorite: boolean;
2367
+ createdBy: {
2368
+ appId: string;
2369
+ userId: string;
2370
+ };
2371
+ }[];
2100
2372
  };
2101
2373
  }, unknown>;
2102
2374
  deleteNodeCloudTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -2343,12 +2615,116 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2343
2615
  _meta: object;
2344
2616
  _ctx_out: {};
2345
2617
  _input_in: {
2346
- id: string;
2618
+ type: "FILE" | "FOLDER";
2619
+ createdAt: Date;
2620
+ name: string;
2621
+ updatedAt: Date;
2622
+ deletedAt: Date | null;
2623
+ parentId: string | null;
2624
+ isFavorite: boolean;
2625
+ createdBy: {
2626
+ appId: string;
2627
+ userId: string;
2628
+ };
2347
2629
  deleted?: boolean | undefined;
2630
+ id?: string | undefined;
2348
2631
  };
2349
2632
  _input_out: {
2633
+ type: "FILE" | "FOLDER";
2634
+ createdAt: Date;
2635
+ name: string;
2636
+ updatedAt: Date;
2637
+ deletedAt: Date | null;
2638
+ parentId: string | null;
2639
+ isFavorite: boolean;
2640
+ createdBy: {
2641
+ appId: string;
2642
+ userId: string;
2643
+ };
2644
+ deleted?: boolean | undefined;
2645
+ id?: string | undefined;
2646
+ };
2647
+ _output_in: {
2648
+ type: "FILE" | "FOLDER";
2649
+ id: string;
2650
+ createdAt: Date;
2651
+ name: string;
2652
+ updatedAt: Date;
2653
+ deletedAt: Date | null;
2654
+ parentId: string | null;
2655
+ isFavorite: boolean;
2656
+ createdBy: {
2657
+ appId: string;
2658
+ userId: string;
2659
+ };
2660
+ };
2661
+ _output_out: {
2662
+ type: "FILE" | "FOLDER";
2350
2663
  id: string;
2664
+ createdAt: Date;
2665
+ name: string;
2666
+ updatedAt: Date;
2667
+ deletedAt: Date | null;
2668
+ parentId: string | null;
2669
+ isFavorite: boolean;
2670
+ createdBy: {
2671
+ appId: string;
2672
+ userId: string;
2673
+ };
2674
+ };
2675
+ }, unknown>;
2676
+ nodeFullById: _trpc_server.BuildProcedure<"query", {
2677
+ _config: _trpc_server.RootConfig<{
2678
+ ctx: {};
2679
+ meta: object;
2680
+ errorShape: {
2681
+ message: string;
2682
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2683
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2684
+ } | {
2685
+ data: {
2686
+ zodError: zod.typeToFlattenedError<any, string> | null;
2687
+ 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";
2688
+ httpStatus: number;
2689
+ path?: string | undefined;
2690
+ stack?: string | undefined;
2691
+ };
2692
+ message: string;
2693
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2694
+ };
2695
+ transformer: typeof superjson.default;
2696
+ }>;
2697
+ _meta: object;
2698
+ _ctx_out: {};
2699
+ _input_in: {
2700
+ type: "FILE" | "FOLDER";
2701
+ createdAt: Date;
2702
+ name: string;
2703
+ updatedAt: Date;
2704
+ deletedAt: Date | null;
2705
+ parentId: string | null;
2706
+ isFavorite: boolean;
2707
+ createdBy: {
2708
+ appId: string;
2709
+ userId: string;
2710
+ };
2351
2711
  deleted?: boolean | undefined;
2712
+ id?: string | undefined;
2713
+ };
2714
+ _input_out: {
2715
+ type: "FILE" | "FOLDER";
2716
+ createdAt: Date;
2717
+ name: string;
2718
+ updatedAt: Date;
2719
+ deletedAt: Date | null;
2720
+ parentId: string | null;
2721
+ isFavorite: boolean;
2722
+ createdBy: {
2723
+ appId: string;
2724
+ userId: string;
2725
+ };
2726
+ deleted?: boolean | undefined;
2727
+ id?: string | undefined;
2352
2728
  };
2353
2729
  _output_in: {
2354
2730
  type: "FILE" | "FOLDER";
@@ -2357,12 +2733,77 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2357
2733
  name: string;
2358
2734
  updatedAt: Date;
2359
2735
  deletedAt: Date | null;
2736
+ current: {
2737
+ id: string;
2738
+ createdAt: Date;
2739
+ deletedAt: Date | null;
2740
+ size: bigint;
2741
+ md5: string;
2742
+ storageType: "scaleway" | "mongo";
2743
+ sizeBefore: bigint;
2744
+ md5Encrypted: string;
2745
+ accesses: {
2746
+ key: string;
2747
+ sharedBy: {
2748
+ keyPair: {
2749
+ pub: string;
2750
+ } | null;
2751
+ };
2752
+ }[];
2753
+ } | null;
2754
+ history: {
2755
+ id: string;
2756
+ createdAt: Date;
2757
+ deletedAt: Date | null;
2758
+ size: bigint;
2759
+ md5: string;
2760
+ storageType: "scaleway" | "mongo";
2761
+ sizeBefore: bigint;
2762
+ md5Encrypted: string;
2763
+ accesses: {
2764
+ key: string;
2765
+ sharedBy: {
2766
+ keyPair: {
2767
+ pub: string;
2768
+ } | null;
2769
+ };
2770
+ }[];
2771
+ }[];
2772
+ parent: {
2773
+ type: "FILE" | "FOLDER";
2774
+ id: string;
2775
+ createdAt: Date;
2776
+ name: string;
2777
+ updatedAt: Date;
2778
+ deletedAt: Date | null;
2779
+ parentId: string | null;
2780
+ isFavorite: boolean;
2781
+ createdBy: {
2782
+ appId: string;
2783
+ userId: string;
2784
+ };
2785
+ } | null;
2360
2786
  parentId: string | null;
2361
2787
  isFavorite: boolean;
2362
- createdByUserId: string;
2363
- createdByAppId: string;
2364
- currentFileId: string | null;
2365
- } | null;
2788
+ createdBy: {
2789
+ appId: string;
2790
+ userId: string;
2791
+ };
2792
+ children: {
2793
+ type: "FILE" | "FOLDER";
2794
+ id: string;
2795
+ createdAt: Date;
2796
+ name: string;
2797
+ updatedAt: Date;
2798
+ deletedAt: Date | null;
2799
+ parentId: string | null;
2800
+ isFavorite: boolean;
2801
+ createdBy: {
2802
+ appId: string;
2803
+ userId: string;
2804
+ };
2805
+ }[];
2806
+ };
2366
2807
  _output_out: {
2367
2808
  type: "FILE" | "FOLDER";
2368
2809
  id: string;
@@ -2370,12 +2811,77 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2370
2811
  name: string;
2371
2812
  updatedAt: Date;
2372
2813
  deletedAt: Date | null;
2814
+ current: {
2815
+ id: string;
2816
+ createdAt: Date;
2817
+ deletedAt: Date | null;
2818
+ size: bigint;
2819
+ md5: string;
2820
+ storageType: "scaleway" | "mongo";
2821
+ sizeBefore: bigint;
2822
+ md5Encrypted: string;
2823
+ accesses: {
2824
+ key: string;
2825
+ sharedBy: {
2826
+ keyPair: {
2827
+ pub: string;
2828
+ } | null;
2829
+ };
2830
+ }[];
2831
+ } | null;
2832
+ history: {
2833
+ id: string;
2834
+ createdAt: Date;
2835
+ deletedAt: Date | null;
2836
+ size: bigint;
2837
+ md5: string;
2838
+ storageType: "scaleway" | "mongo";
2839
+ sizeBefore: bigint;
2840
+ md5Encrypted: string;
2841
+ accesses: {
2842
+ key: string;
2843
+ sharedBy: {
2844
+ keyPair: {
2845
+ pub: string;
2846
+ } | null;
2847
+ };
2848
+ }[];
2849
+ }[];
2850
+ parent: {
2851
+ type: "FILE" | "FOLDER";
2852
+ id: string;
2853
+ createdAt: Date;
2854
+ name: string;
2855
+ updatedAt: Date;
2856
+ deletedAt: Date | null;
2857
+ parentId: string | null;
2858
+ isFavorite: boolean;
2859
+ createdBy: {
2860
+ appId: string;
2861
+ userId: string;
2862
+ };
2863
+ } | null;
2373
2864
  parentId: string | null;
2374
2865
  isFavorite: boolean;
2375
- createdByUserId: string;
2376
- createdByAppId: string;
2377
- currentFileId: string | null;
2378
- } | null;
2866
+ createdBy: {
2867
+ appId: string;
2868
+ userId: string;
2869
+ };
2870
+ children: {
2871
+ type: "FILE" | "FOLDER";
2872
+ id: string;
2873
+ createdAt: Date;
2874
+ name: string;
2875
+ updatedAt: Date;
2876
+ deletedAt: Date | null;
2877
+ parentId: string | null;
2878
+ isFavorite: boolean;
2879
+ createdBy: {
2880
+ appId: string;
2881
+ userId: string;
2882
+ };
2883
+ }[];
2884
+ };
2379
2885
  }, unknown>;
2380
2886
  nodesDeleted: _trpc_server.BuildProcedure<"query", {
2381
2887
  _config: _trpc_server.RootConfig<{
@@ -2411,9 +2917,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2411
2917
  deletedAt: Date | null;
2412
2918
  parentId: string | null;
2413
2919
  isFavorite: boolean;
2414
- createdByUserId: string;
2415
- createdByAppId: string;
2416
- currentFileId: string | null;
2920
+ createdBy: {
2921
+ appId: string;
2922
+ userId: string;
2923
+ };
2417
2924
  }[];
2418
2925
  _output_out: {
2419
2926
  type: "FILE" | "FOLDER";
@@ -2424,9 +2931,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2424
2931
  deletedAt: Date | null;
2425
2932
  parentId: string | null;
2426
2933
  isFavorite: boolean;
2427
- createdByUserId: string;
2428
- createdByAppId: string;
2429
- currentFileId: string | null;
2934
+ createdBy: {
2935
+ appId: string;
2936
+ userId: string;
2937
+ };
2430
2938
  }[];
2431
2939
  }, unknown>;
2432
2940
  nodesSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2467,9 +2975,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2467
2975
  deletedAt: Date | null;
2468
2976
  parentId: string | null;
2469
2977
  isFavorite: boolean;
2470
- createdByUserId: string;
2471
- createdByAppId: string;
2472
- currentFileId: string | null;
2978
+ createdBy: {
2979
+ appId: string;
2980
+ userId: string;
2981
+ };
2473
2982
  } | null)[];
2474
2983
  _output_out: ({
2475
2984
  type: "FILE" | "FOLDER";
@@ -2480,9 +2989,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2480
2989
  deletedAt: Date | null;
2481
2990
  parentId: string | null;
2482
2991
  isFavorite: boolean;
2483
- createdByUserId: string;
2484
- createdByAppId: string;
2485
- currentFileId: string | null;
2992
+ createdBy: {
2993
+ appId: string;
2994
+ userId: string;
2995
+ };
2486
2996
  } | null)[];
2487
2997
  }, unknown>;
2488
2998
  nodesShared: _trpc_server.BuildProcedure<"query", {
@@ -2519,9 +3029,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2519
3029
  deletedAt: Date | null;
2520
3030
  parentId: string | null;
2521
3031
  isFavorite: boolean;
2522
- createdByUserId: string;
2523
- createdByAppId: string;
2524
- currentFileId: string | null;
3032
+ createdBy: {
3033
+ appId: string;
3034
+ userId: string;
3035
+ };
2525
3036
  } | null)[];
2526
3037
  _output_out: ({
2527
3038
  type: "FILE" | "FOLDER";
@@ -2532,9 +3043,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2532
3043
  deletedAt: Date | null;
2533
3044
  parentId: string | null;
2534
3045
  isFavorite: boolean;
2535
- createdByUserId: string;
2536
- createdByAppId: string;
2537
- currentFileId: string | null;
3046
+ createdBy: {
3047
+ appId: string;
3048
+ userId: string;
3049
+ };
2538
3050
  } | null)[];
2539
3051
  }, unknown>;
2540
3052
  recoverNode: _trpc_server.BuildProcedure<"mutation", {
@@ -2707,11 +3219,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2707
3219
  name: string;
2708
3220
  updatedAt: Date;
2709
3221
  deletedAt: Date | null;
3222
+ current: {
3223
+ id: string;
3224
+ createdAt: Date;
3225
+ deletedAt: Date | null;
3226
+ size: bigint;
3227
+ md5: string;
3228
+ storageType: "scaleway" | "mongo";
3229
+ sizeBefore: bigint;
3230
+ md5Encrypted: string;
3231
+ accesses: {
3232
+ key: string;
3233
+ sharedBy: {
3234
+ keyPair: {
3235
+ pub: string;
3236
+ } | null;
3237
+ };
3238
+ }[];
3239
+ } | null;
3240
+ history: {
3241
+ id: string;
3242
+ createdAt: Date;
3243
+ deletedAt: Date | null;
3244
+ size: bigint;
3245
+ md5: string;
3246
+ storageType: "scaleway" | "mongo";
3247
+ sizeBefore: bigint;
3248
+ md5Encrypted: string;
3249
+ accesses: {
3250
+ key: string;
3251
+ sharedBy: {
3252
+ keyPair: {
3253
+ pub: string;
3254
+ } | null;
3255
+ };
3256
+ }[];
3257
+ }[];
3258
+ parent: {
3259
+ type: "FILE" | "FOLDER";
3260
+ id: string;
3261
+ createdAt: Date;
3262
+ name: string;
3263
+ updatedAt: Date;
3264
+ deletedAt: Date | null;
3265
+ parentId: string | null;
3266
+ isFavorite: boolean;
3267
+ createdBy: {
3268
+ appId: string;
3269
+ userId: string;
3270
+ };
3271
+ } | null;
2710
3272
  parentId: string | null;
2711
3273
  isFavorite: boolean;
2712
- createdByUserId: string;
2713
- createdByAppId: string;
2714
- currentFileId: string | null;
3274
+ createdBy: {
3275
+ appId: string;
3276
+ userId: string;
3277
+ };
3278
+ children: {
3279
+ type: "FILE" | "FOLDER";
3280
+ id: string;
3281
+ createdAt: Date;
3282
+ name: string;
3283
+ updatedAt: Date;
3284
+ deletedAt: Date | null;
3285
+ parentId: string | null;
3286
+ isFavorite: boolean;
3287
+ createdBy: {
3288
+ appId: string;
3289
+ userId: string;
3290
+ };
3291
+ }[];
2715
3292
  };
2716
3293
  _output_out: {
2717
3294
  type: "FILE" | "FOLDER";
@@ -2720,11 +3297,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2720
3297
  name: string;
2721
3298
  updatedAt: Date;
2722
3299
  deletedAt: Date | null;
3300
+ current: {
3301
+ id: string;
3302
+ createdAt: Date;
3303
+ deletedAt: Date | null;
3304
+ size: bigint;
3305
+ md5: string;
3306
+ storageType: "scaleway" | "mongo";
3307
+ sizeBefore: bigint;
3308
+ md5Encrypted: string;
3309
+ accesses: {
3310
+ key: string;
3311
+ sharedBy: {
3312
+ keyPair: {
3313
+ pub: string;
3314
+ } | null;
3315
+ };
3316
+ }[];
3317
+ } | null;
3318
+ history: {
3319
+ id: string;
3320
+ createdAt: Date;
3321
+ deletedAt: Date | null;
3322
+ size: bigint;
3323
+ md5: string;
3324
+ storageType: "scaleway" | "mongo";
3325
+ sizeBefore: bigint;
3326
+ md5Encrypted: string;
3327
+ accesses: {
3328
+ key: string;
3329
+ sharedBy: {
3330
+ keyPair: {
3331
+ pub: string;
3332
+ } | null;
3333
+ };
3334
+ }[];
3335
+ }[];
3336
+ parent: {
3337
+ type: "FILE" | "FOLDER";
3338
+ id: string;
3339
+ createdAt: Date;
3340
+ name: string;
3341
+ updatedAt: Date;
3342
+ deletedAt: Date | null;
3343
+ parentId: string | null;
3344
+ isFavorite: boolean;
3345
+ createdBy: {
3346
+ appId: string;
3347
+ userId: string;
3348
+ };
3349
+ } | null;
2723
3350
  parentId: string | null;
2724
3351
  isFavorite: boolean;
2725
- createdByUserId: string;
2726
- createdByAppId: string;
2727
- currentFileId: string | null;
3352
+ createdBy: {
3353
+ appId: string;
3354
+ userId: string;
3355
+ };
3356
+ children: {
3357
+ type: "FILE" | "FOLDER";
3358
+ id: string;
3359
+ createdAt: Date;
3360
+ name: string;
3361
+ updatedAt: Date;
3362
+ deletedAt: Date | null;
3363
+ parentId: string | null;
3364
+ isFavorite: boolean;
3365
+ createdBy: {
3366
+ appId: string;
3367
+ userId: string;
3368
+ };
3369
+ }[];
2728
3370
  };
2729
3371
  }, unknown>;
2730
3372
  }>;
@@ -2773,23 +3415,23 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2773
3415
  _ctx_out: {};
2774
3416
  _input_in: {
2775
3417
  address: string;
2776
- privateKeyEncrypted: string;
3418
+ encryptedKeystore: string;
2777
3419
  };
2778
3420
  _input_out: {
2779
3421
  address: string;
2780
- privateKeyEncrypted: string;
3422
+ encryptedKeystore: string;
2781
3423
  };
2782
3424
  _output_in: {
2783
3425
  userId: string;
2784
3426
  createdAt: Date;
2785
3427
  address: string;
2786
- privateKeyEncrypted: string;
3428
+ encryptedKeystore: string;
2787
3429
  };
2788
3430
  _output_out: {
2789
3431
  userId: string;
2790
3432
  createdAt: Date;
2791
3433
  address: string;
2792
- privateKeyEncrypted: string;
3434
+ encryptedKeystore: string;
2793
3435
  };
2794
3436
  }, unknown>;
2795
3437
  isTransactionDone: _trpc_server.BuildProcedure<"query", {
@@ -3552,29 +4194,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3552
4194
  };
3553
4195
  _output_in: {
3554
4196
  type: "received" | "sent";
3555
- appId: string;
4197
+ mailIntegrity: {
4198
+ id: string;
4199
+ replyTo: {
4200
+ id: string;
4201
+ } | null;
4202
+ hashKey: string;
4203
+ hash: string;
4204
+ temporaryRecipients: {
4205
+ email: string | null;
4206
+ }[];
4207
+ } | null;
4208
+ mailIntegrityDraft: {
4209
+ id: string;
4210
+ replyTo: {
4211
+ id: string;
4212
+ } | null;
4213
+ hashKey: string;
4214
+ hash: string;
4215
+ temporaryRecipients: {
4216
+ email: string | null;
4217
+ }[];
4218
+ } | null;
3556
4219
  id: string;
3557
4220
  createdAt: Date;
3558
4221
  deletedAt: Date | null;
3559
4222
  subject: string;
3560
4223
  body: string;
3561
- senderId: string;
3562
- recipientId: string;
3563
4224
  openedAt: Date | null;
3564
- mailIntegrityId: string | null;
4225
+ files: {
4226
+ fileId: string;
4227
+ filename: string;
4228
+ fileKey: string;
4229
+ }[];
3565
4230
  };
3566
4231
  _output_out: {
3567
4232
  type: "received" | "sent";
3568
- appId: string;
4233
+ mailIntegrity: {
4234
+ id: string;
4235
+ replyTo: {
4236
+ id: string;
4237
+ } | null;
4238
+ hashKey: string;
4239
+ hash: string;
4240
+ temporaryRecipients: {
4241
+ email: string | null;
4242
+ }[];
4243
+ } | null;
4244
+ mailIntegrityDraft: {
4245
+ id: string;
4246
+ replyTo: {
4247
+ id: string;
4248
+ } | null;
4249
+ hashKey: string;
4250
+ hash: string;
4251
+ temporaryRecipients: {
4252
+ email: string | null;
4253
+ }[];
4254
+ } | null;
3569
4255
  id: string;
3570
4256
  createdAt: Date;
3571
4257
  deletedAt: Date | null;
3572
4258
  subject: string;
3573
4259
  body: string;
3574
- senderId: string;
3575
- recipientId: string;
3576
4260
  openedAt: Date | null;
3577
- mailIntegrityId: string | null;
4261
+ files: {
4262
+ fileId: string;
4263
+ filename: string;
4264
+ fileKey: string;
4265
+ }[];
3578
4266
  };
3579
4267
  }, unknown>;
3580
4268
  createDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -3630,16 +4318,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3630
4318
  };
3631
4319
  _output_in: {
3632
4320
  type: "received" | "sent";
3633
- appId: string;
4321
+ mailIntegrity: {
4322
+ id: string;
4323
+ replyTo: {
4324
+ id: string;
4325
+ } | null;
4326
+ hashKey: string;
4327
+ hash: string;
4328
+ temporaryRecipients: {
4329
+ email: string | null;
4330
+ }[];
4331
+ } | null;
4332
+ mailIntegrityDraft: {
4333
+ id: string;
4334
+ replyTo: {
4335
+ id: string;
4336
+ } | null;
4337
+ hashKey: string;
4338
+ hash: string;
4339
+ temporaryRecipients: {
4340
+ email: string | null;
4341
+ }[];
4342
+ } | null;
3634
4343
  id: string;
3635
4344
  createdAt: Date;
3636
4345
  deletedAt: Date | null;
3637
4346
  subject: string;
3638
4347
  body: string;
3639
- senderId: string;
3640
- recipientId: string;
3641
4348
  openedAt: Date | null;
3642
- mailIntegrityId: string | null;
4349
+ files: {
4350
+ fileId: string;
4351
+ filename: string;
4352
+ fileKey: string;
4353
+ }[];
3643
4354
  } & {
3644
4355
  mailIntegrityDraft: {
3645
4356
  id: string;
@@ -3647,16 +4358,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3647
4358
  };
3648
4359
  _output_out: {
3649
4360
  type: "received" | "sent";
3650
- appId: string;
4361
+ mailIntegrity: {
4362
+ id: string;
4363
+ replyTo: {
4364
+ id: string;
4365
+ } | null;
4366
+ hashKey: string;
4367
+ hash: string;
4368
+ temporaryRecipients: {
4369
+ email: string | null;
4370
+ }[];
4371
+ } | null;
4372
+ mailIntegrityDraft: {
4373
+ id: string;
4374
+ replyTo: {
4375
+ id: string;
4376
+ } | null;
4377
+ hashKey: string;
4378
+ hash: string;
4379
+ temporaryRecipients: {
4380
+ email: string | null;
4381
+ }[];
4382
+ } | null;
3651
4383
  id: string;
3652
4384
  createdAt: Date;
3653
4385
  deletedAt: Date | null;
3654
4386
  subject: string;
3655
4387
  body: string;
3656
- senderId: string;
3657
- recipientId: string;
3658
4388
  openedAt: Date | null;
3659
- mailIntegrityId: string | null;
4389
+ files: {
4390
+ fileId: string;
4391
+ filename: string;
4392
+ fileKey: string;
4393
+ }[];
3660
4394
  } & {
3661
4395
  mailIntegrityDraft: {
3662
4396
  id: string;
@@ -3802,29 +4536,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3802
4536
  };
3803
4537
  _output_in: {
3804
4538
  type: "received" | "sent";
3805
- appId: string;
4539
+ mailIntegrity: {
4540
+ id: string;
4541
+ replyTo: {
4542
+ id: string;
4543
+ } | null;
4544
+ hashKey: string;
4545
+ hash: string;
4546
+ temporaryRecipients: {
4547
+ email: string | null;
4548
+ }[];
4549
+ } | null;
4550
+ mailIntegrityDraft: {
4551
+ id: string;
4552
+ replyTo: {
4553
+ id: string;
4554
+ } | null;
4555
+ hashKey: string;
4556
+ hash: string;
4557
+ temporaryRecipients: {
4558
+ email: string | null;
4559
+ }[];
4560
+ } | null;
3806
4561
  id: string;
3807
4562
  createdAt: Date;
3808
4563
  deletedAt: Date | null;
3809
4564
  subject: string;
3810
4565
  body: string;
3811
- senderId: string;
3812
- recipientId: string;
3813
4566
  openedAt: Date | null;
3814
- mailIntegrityId: string | null;
4567
+ files: {
4568
+ fileId: string;
4569
+ filename: string;
4570
+ fileKey: string;
4571
+ }[];
3815
4572
  }[];
3816
4573
  _output_out: {
3817
4574
  type: "received" | "sent";
3818
- appId: string;
4575
+ mailIntegrity: {
4576
+ id: string;
4577
+ replyTo: {
4578
+ id: string;
4579
+ } | null;
4580
+ hashKey: string;
4581
+ hash: string;
4582
+ temporaryRecipients: {
4583
+ email: string | null;
4584
+ }[];
4585
+ } | null;
4586
+ mailIntegrityDraft: {
4587
+ id: string;
4588
+ replyTo: {
4589
+ id: string;
4590
+ } | null;
4591
+ hashKey: string;
4592
+ hash: string;
4593
+ temporaryRecipients: {
4594
+ email: string | null;
4595
+ }[];
4596
+ } | null;
3819
4597
  id: string;
3820
4598
  createdAt: Date;
3821
4599
  deletedAt: Date | null;
3822
4600
  subject: string;
3823
4601
  body: string;
3824
- senderId: string;
3825
- recipientId: string;
3826
4602
  openedAt: Date | null;
3827
- mailIntegrityId: string | null;
4603
+ files: {
4604
+ fileId: string;
4605
+ filename: string;
4606
+ fileKey: string;
4607
+ }[];
3828
4608
  }[];
3829
4609
  }, unknown>;
3830
4610
  emptyTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -3889,10 +4669,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3889
4669
  id: string;
3890
4670
  };
3891
4671
  _output_in: {
3892
- isReaded: boolean;
4672
+ isRead: boolean;
3893
4673
  };
3894
4674
  _output_out: {
3895
- isReaded: boolean;
4675
+ isRead: boolean;
3896
4676
  };
3897
4677
  }, unknown>;
3898
4678
  recover: _trpc_server.BuildProcedure<"mutation", {
@@ -4000,8 +4780,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4000
4780
  recipients: ({
4001
4781
  subject: string;
4002
4782
  body: string;
4003
- recipientId: string;
4004
4783
  } & {
4784
+ recipientId: string;
4005
4785
  files: {
4006
4786
  id: string;
4007
4787
  filename: string;
@@ -4016,8 +4796,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4016
4796
  recipients: ({
4017
4797
  subject: string;
4018
4798
  body: string;
4019
- recipientId: string;
4020
4799
  } & {
4800
+ recipientId: string;
4021
4801
  files: {
4022
4802
  id: string;
4023
4803
  filename: string;
@@ -4027,10 +4807,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4027
4807
  temporaryRecipients: string[];
4028
4808
  };
4029
4809
  _output_in: {
4030
- isSended: boolean;
4810
+ isSent: boolean;
4031
4811
  };
4032
4812
  _output_out: {
4033
- isSended: boolean;
4813
+ isSent: boolean;
4034
4814
  };
4035
4815
  }, unknown>;
4036
4816
  sendOne: _trpc_server.BuildProcedure<"mutation", {
@@ -4061,8 +4841,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4061
4841
  recipient: {
4062
4842
  subject: string;
4063
4843
  body: string;
4064
- recipientId: string;
4065
4844
  } & {
4845
+ recipientId: string;
4066
4846
  files: {
4067
4847
  id: string;
4068
4848
  filename: string;
@@ -4075,8 +4855,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4075
4855
  recipient: {
4076
4856
  subject: string;
4077
4857
  body: string;
4078
- recipientId: string;
4079
4858
  } & {
4859
+ recipientId: string;
4080
4860
  files: {
4081
4861
  id: string;
4082
4862
  filename: string;
@@ -4149,10 +4929,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4149
4929
  id: string;
4150
4930
  };
4151
4931
  _output_in: {
4152
- isUnreaded: boolean;
4932
+ isUnread: boolean;
4153
4933
  };
4154
4934
  _output_out: {
4155
- isUnreaded: boolean;
4935
+ isUnread: boolean;
4156
4936
  };
4157
4937
  }, unknown>;
4158
4938
  updateDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -4208,29 +4988,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4208
4988
  };
4209
4989
  _output_in: {
4210
4990
  type: "received" | "sent";
4211
- appId: string;
4991
+ mailIntegrity: {
4992
+ id: string;
4993
+ replyTo: {
4994
+ id: string;
4995
+ } | null;
4996
+ hashKey: string;
4997
+ hash: string;
4998
+ temporaryRecipients: {
4999
+ email: string | null;
5000
+ }[];
5001
+ } | null;
5002
+ mailIntegrityDraft: {
5003
+ id: string;
5004
+ replyTo: {
5005
+ id: string;
5006
+ } | null;
5007
+ hashKey: string;
5008
+ hash: string;
5009
+ temporaryRecipients: {
5010
+ email: string | null;
5011
+ }[];
5012
+ } | null;
4212
5013
  id: string;
4213
5014
  createdAt: Date;
4214
5015
  deletedAt: Date | null;
4215
5016
  subject: string;
4216
5017
  body: string;
4217
- senderId: string;
4218
- recipientId: string;
4219
5018
  openedAt: Date | null;
4220
- mailIntegrityId: string | null;
5019
+ files: {
5020
+ fileId: string;
5021
+ filename: string;
5022
+ fileKey: string;
5023
+ }[];
4221
5024
  };
4222
5025
  _output_out: {
4223
5026
  type: "received" | "sent";
4224
- appId: string;
5027
+ mailIntegrity: {
5028
+ id: string;
5029
+ replyTo: {
5030
+ id: string;
5031
+ } | null;
5032
+ hashKey: string;
5033
+ hash: string;
5034
+ temporaryRecipients: {
5035
+ email: string | null;
5036
+ }[];
5037
+ } | null;
5038
+ mailIntegrityDraft: {
5039
+ id: string;
5040
+ replyTo: {
5041
+ id: string;
5042
+ } | null;
5043
+ hashKey: string;
5044
+ hash: string;
5045
+ temporaryRecipients: {
5046
+ email: string | null;
5047
+ }[];
5048
+ } | null;
4225
5049
  id: string;
4226
5050
  createdAt: Date;
4227
5051
  deletedAt: Date | null;
4228
5052
  subject: string;
4229
5053
  body: string;
4230
- senderId: string;
4231
- recipientId: string;
4232
5054
  openedAt: Date | null;
4233
- mailIntegrityId: string | null;
5055
+ files: {
5056
+ fileId: string;
5057
+ filename: string;
5058
+ fileKey: string;
5059
+ }[];
4234
5060
  };
4235
5061
  }, unknown>;
4236
5062
  }>;
@@ -4617,16 +5443,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4617
5443
  uaEncPriv: string;
4618
5444
  };
4619
5445
  _output_in: {
5446
+ keyPair: {
5447
+ uaPub: string;
5448
+ uaEncPriv: string;
5449
+ };
4620
5450
  jwt: string;
4621
5451
  uaSession: string;
4622
- uaPub: string;
4623
- uaEncPriv: string;
4624
5452
  };
4625
5453
  _output_out: {
5454
+ keyPair: {
5455
+ uaPub: string;
5456
+ uaEncPriv: string;
5457
+ };
4626
5458
  jwt: string;
4627
5459
  uaSession: string;
4628
- uaPub: string;
4629
- uaEncPriv: string;
4630
5460
  };
4631
5461
  }, unknown>;
4632
5462
  login: _trpc_server.BuildProcedure<"mutation", {
@@ -4669,14 +5499,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4669
5499
  _output_in: {
4670
5500
  jwt: string;
4671
5501
  uaSession: string;
4672
- uaPub: string;
4673
- uaEncPriv: string;
5502
+ keyPair?: {
5503
+ uaPub: string;
5504
+ uaEncPriv: string;
5505
+ } | undefined;
4674
5506
  };
4675
5507
  _output_out: {
4676
5508
  jwt: string;
4677
5509
  uaSession: string;
4678
- uaPub: string;
4679
- uaEncPriv: string;
5510
+ keyPair?: {
5511
+ uaPub: string;
5512
+ uaEncPriv: string;
5513
+ } | undefined;
4680
5514
  };
4681
5515
  }, unknown>;
4682
5516
  }>;