@secrecy/trpc-api-types 1.33.0-feat-other-s3-providers.1 → 1.33.0-feat-mails-pagination.1

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.cts +297 -1193
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -2189,102 +2189,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2189
2189
  sizeEncrypted: bigint;
2190
2190
  };
2191
2191
  } & {
2192
- current: ({
2192
+ current: {
2193
2193
  id: string;
2194
2194
  createdAt: Date;
2195
+ storageType: "s3" | "cold" | "lite";
2195
2196
  size: bigint;
2196
2197
  md5: string;
2197
2198
  userAppUserId: string;
2198
2199
  userAppAppId: string;
2199
- storageId: string;
2200
2200
  sizeEncrypted: bigint | null;
2201
2201
  md5Encrypted: string | null;
2202
2202
  mime: string | null;
2203
2203
  ext: string | null;
2204
2204
  validatedAt: Date | null;
2205
2205
  restoreSince: Date | null;
2206
- } & {
2207
- storage: {
2208
- id: string;
2209
- protocol: "s3";
2210
- provider: "scaleway" | "secrecy" | "ovh";
2211
- s3StorageOptions: {
2212
- id: string;
2213
- mode: "standard" | "glacier";
2214
- region: string;
2215
- } & {
2216
- providerSettings: {
2217
- id: string;
2218
- features: ("versioning" | "edge")[];
2219
- modes: ("standard" | "glacier")[];
2220
- regions: string[];
2221
- };
2222
- };
2223
- } | {
2224
- id: string;
2225
- protocol: "mongo";
2226
- provider: "scaleway" | "secrecy" | "ovh";
2227
- mongoStorageOptions: {
2228
- id: string;
2229
- } & {
2230
- providerSettings: {
2231
- id: string;
2232
- };
2233
- };
2234
- };
2235
2206
  access: {
2236
2207
  key: string | null;
2237
2208
  sharedByPubKey: string;
2238
2209
  };
2239
- }) | null;
2240
- history: ({
2210
+ } | null;
2211
+ history: {
2241
2212
  id: string;
2242
2213
  createdAt: Date;
2214
+ storageType: "s3" | "cold" | "lite";
2243
2215
  size: bigint;
2244
2216
  md5: string;
2245
2217
  userAppUserId: string;
2246
2218
  userAppAppId: string;
2247
- storageId: string;
2248
2219
  sizeEncrypted: bigint | null;
2249
2220
  md5Encrypted: string | null;
2250
2221
  mime: string | null;
2251
2222
  ext: string | null;
2252
2223
  validatedAt: Date | null;
2253
2224
  restoreSince: Date | null;
2254
- } & {
2255
- storage: {
2256
- id: string;
2257
- protocol: "s3";
2258
- provider: "scaleway" | "secrecy" | "ovh";
2259
- s3StorageOptions: {
2260
- id: string;
2261
- mode: "standard" | "glacier";
2262
- region: string;
2263
- } & {
2264
- providerSettings: {
2265
- id: string;
2266
- features: ("versioning" | "edge")[];
2267
- modes: ("standard" | "glacier")[];
2268
- regions: string[];
2269
- };
2270
- };
2271
- } | {
2272
- id: string;
2273
- protocol: "mongo";
2274
- provider: "scaleway" | "secrecy" | "ovh";
2275
- mongoStorageOptions: {
2276
- id: string;
2277
- } & {
2278
- providerSettings: {
2279
- id: string;
2280
- };
2281
- };
2282
- };
2283
2225
  access: {
2284
2226
  key: string | null;
2285
2227
  sharedByPubKey: string;
2286
2228
  };
2287
- })[];
2229
+ }[];
2288
2230
  parent: ({
2289
2231
  name: string;
2290
2232
  id: string;
@@ -2398,102 +2340,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2398
2340
  sizeEncrypted: bigint;
2399
2341
  };
2400
2342
  } & {
2401
- current: ({
2343
+ current: {
2402
2344
  id: string;
2403
2345
  createdAt: Date;
2346
+ storageType: "s3" | "cold" | "lite";
2404
2347
  size: bigint;
2405
2348
  md5: string;
2406
2349
  userAppUserId: string;
2407
2350
  userAppAppId: string;
2408
- storageId: string;
2409
2351
  sizeEncrypted: bigint | null;
2410
2352
  md5Encrypted: string | null;
2411
2353
  mime: string | null;
2412
2354
  ext: string | null;
2413
2355
  validatedAt: Date | null;
2414
2356
  restoreSince: Date | null;
2415
- } & {
2416
- storage: {
2417
- id: string;
2418
- protocol: "s3";
2419
- provider: "scaleway" | "secrecy" | "ovh";
2420
- s3StorageOptions: {
2421
- id: string;
2422
- mode: "standard" | "glacier";
2423
- region: string;
2424
- } & {
2425
- providerSettings: {
2426
- id: string;
2427
- features: ("versioning" | "edge")[];
2428
- modes: ("standard" | "glacier")[];
2429
- regions: string[];
2430
- };
2431
- };
2432
- } | {
2433
- id: string;
2434
- protocol: "mongo";
2435
- provider: "scaleway" | "secrecy" | "ovh";
2436
- mongoStorageOptions: {
2437
- id: string;
2438
- } & {
2439
- providerSettings: {
2440
- id: string;
2441
- };
2442
- };
2443
- };
2444
2357
  access: {
2445
2358
  key: string | null;
2446
2359
  sharedByPubKey: string;
2447
2360
  };
2448
- }) | null;
2449
- history: ({
2361
+ } | null;
2362
+ history: {
2450
2363
  id: string;
2451
2364
  createdAt: Date;
2365
+ storageType: "s3" | "cold" | "lite";
2452
2366
  size: bigint;
2453
2367
  md5: string;
2454
2368
  userAppUserId: string;
2455
2369
  userAppAppId: string;
2456
- storageId: string;
2457
2370
  sizeEncrypted: bigint | null;
2458
2371
  md5Encrypted: string | null;
2459
2372
  mime: string | null;
2460
2373
  ext: string | null;
2461
2374
  validatedAt: Date | null;
2462
2375
  restoreSince: Date | null;
2463
- } & {
2464
- storage: {
2465
- id: string;
2466
- protocol: "s3";
2467
- provider: "scaleway" | "secrecy" | "ovh";
2468
- s3StorageOptions: {
2469
- id: string;
2470
- mode: "standard" | "glacier";
2471
- region: string;
2472
- } & {
2473
- providerSettings: {
2474
- id: string;
2475
- features: ("versioning" | "edge")[];
2476
- modes: ("standard" | "glacier")[];
2477
- regions: string[];
2478
- };
2479
- };
2480
- } | {
2481
- id: string;
2482
- protocol: "mongo";
2483
- provider: "scaleway" | "secrecy" | "ovh";
2484
- mongoStorageOptions: {
2485
- id: string;
2486
- } & {
2487
- providerSettings: {
2488
- id: string;
2489
- };
2490
- };
2491
- };
2492
2376
  access: {
2493
2377
  key: string | null;
2494
2378
  sharedByPubKey: string;
2495
2379
  };
2496
- })[];
2380
+ }[];
2497
2381
  parent: ({
2498
2382
  name: string;
2499
2383
  id: string;
@@ -2645,46 +2529,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2645
2529
  _output_in: {
2646
2530
  id: string;
2647
2531
  createdAt: Date;
2532
+ storageType: "s3" | "cold" | "lite";
2648
2533
  size: bigint;
2649
2534
  md5: string;
2650
2535
  userAppUserId: string;
2651
2536
  userAppAppId: string;
2652
- storageId: string;
2653
2537
  sizeEncrypted: bigint | null;
2654
2538
  md5Encrypted: string | null;
2655
2539
  mime: string | null;
2656
2540
  ext: string | null;
2657
2541
  validatedAt: Date | null;
2658
2542
  restoreSince: Date | null;
2659
- } & {
2660
- storage: {
2661
- id: string;
2662
- protocol: "s3";
2663
- provider: "scaleway" | "secrecy" | "ovh";
2664
- s3StorageOptions: {
2665
- id: string;
2666
- mode: "standard" | "glacier";
2667
- region: string;
2668
- } & {
2669
- providerSettings: {
2670
- id: string;
2671
- features: ("versioning" | "edge")[];
2672
- modes: ("standard" | "glacier")[];
2673
- regions: string[];
2674
- };
2675
- };
2676
- } | {
2677
- id: string;
2678
- protocol: "mongo";
2679
- provider: "scaleway" | "secrecy" | "ovh";
2680
- mongoStorageOptions: {
2681
- id: string;
2682
- } & {
2683
- providerSettings: {
2684
- id: string;
2685
- };
2686
- };
2687
- };
2688
2543
  access: {
2689
2544
  key: string | null;
2690
2545
  sharedByPubKey: string;
@@ -2693,46 +2548,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2693
2548
  _output_out: {
2694
2549
  id: string;
2695
2550
  createdAt: Date;
2551
+ storageType: "s3" | "cold" | "lite";
2696
2552
  size: bigint;
2697
2553
  md5: string;
2698
2554
  userAppUserId: string;
2699
2555
  userAppAppId: string;
2700
- storageId: string;
2701
2556
  sizeEncrypted: bigint | null;
2702
2557
  md5Encrypted: string | null;
2703
2558
  mime: string | null;
2704
2559
  ext: string | null;
2705
2560
  validatedAt: Date | null;
2706
2561
  restoreSince: Date | null;
2707
- } & {
2708
- storage: {
2709
- id: string;
2710
- protocol: "s3";
2711
- provider: "scaleway" | "secrecy" | "ovh";
2712
- s3StorageOptions: {
2713
- id: string;
2714
- mode: "standard" | "glacier";
2715
- region: string;
2716
- } & {
2717
- providerSettings: {
2718
- id: string;
2719
- features: ("versioning" | "edge")[];
2720
- modes: ("standard" | "glacier")[];
2721
- regions: string[];
2722
- };
2723
- };
2724
- } | {
2725
- id: string;
2726
- protocol: "mongo";
2727
- provider: "scaleway" | "secrecy" | "ovh";
2728
- mongoStorageOptions: {
2729
- id: string;
2730
- } & {
2731
- providerSettings: {
2732
- id: string;
2733
- };
2734
- };
2735
- };
2736
2562
  access: {
2737
2563
  key: string | null;
2738
2564
  sharedByPubKey: string;
@@ -2772,34 +2598,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2772
2598
  id: string;
2773
2599
  type: "received_mail";
2774
2600
  key: string | null;
2775
- storage: {
2776
- id: string;
2777
- protocol: "s3";
2778
- provider: "scaleway" | "secrecy" | "ovh";
2779
- s3StorageOptions: {
2780
- id: string;
2781
- mode: "standard" | "glacier";
2782
- region: string;
2783
- } & {
2784
- providerSettings: {
2785
- id: string;
2786
- features: ("versioning" | "edge")[];
2787
- modes: ("standard" | "glacier")[];
2788
- regions: string[];
2789
- };
2790
- };
2791
- } | {
2792
- id: string;
2793
- protocol: "mongo";
2794
- provider: "scaleway" | "secrecy" | "ovh";
2795
- mongoStorageOptions: {
2796
- id: string;
2797
- } & {
2798
- providerSettings: {
2799
- id: string;
2800
- };
2801
- };
2802
- };
2601
+ storageType: "s3" | "cold" | "lite";
2803
2602
  size: bigint;
2804
2603
  md5: string;
2805
2604
  sizeEncrypted: bigint | null;
@@ -2808,43 +2607,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2808
2607
  ext: string | null;
2809
2608
  senderPublicKey: string;
2810
2609
  maybeParts: {
2811
- url: string;
2812
2610
  md5: string;
2813
2611
  order: number;
2612
+ contentUrl: string;
2814
2613
  }[] | null;
2815
- maybeBytes: Buffer | null;
2614
+ maybeContent: Buffer | null;
2816
2615
  } | {
2817
2616
  id: string;
2818
2617
  type: "sent_mail";
2819
2618
  key: string | null;
2820
- storage: {
2821
- id: string;
2822
- protocol: "s3";
2823
- provider: "scaleway" | "secrecy" | "ovh";
2824
- s3StorageOptions: {
2825
- id: string;
2826
- mode: "standard" | "glacier";
2827
- region: string;
2828
- } & {
2829
- providerSettings: {
2830
- id: string;
2831
- features: ("versioning" | "edge")[];
2832
- modes: ("standard" | "glacier")[];
2833
- regions: string[];
2834
- };
2835
- };
2836
- } | {
2837
- id: string;
2838
- protocol: "mongo";
2839
- provider: "scaleway" | "secrecy" | "ovh";
2840
- mongoStorageOptions: {
2841
- id: string;
2842
- } & {
2843
- providerSettings: {
2844
- id: string;
2845
- };
2846
- };
2847
- };
2619
+ storageType: "s3" | "cold" | "lite";
2848
2620
  size: bigint;
2849
2621
  md5: string;
2850
2622
  sizeEncrypted: bigint | null;
@@ -2852,32 +2624,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2852
2624
  mime: string | null;
2853
2625
  ext: string | null;
2854
2626
  maybeParts: {
2855
- url: string;
2856
2627
  md5: string;
2857
2628
  order: number;
2629
+ contentUrl: string;
2858
2630
  }[] | null;
2859
- maybeBytes: Buffer | null;
2631
+ maybeContent: Buffer | null;
2860
2632
  } | {
2861
2633
  id: string;
2862
- type: "s3";
2634
+ type: "cloud";
2863
2635
  key: string | null;
2864
- storage: {
2865
- id: string;
2866
- protocol: "s3";
2867
- provider: "scaleway" | "secrecy" | "ovh";
2868
- s3StorageOptions: {
2869
- id: string;
2870
- mode: "standard" | "glacier";
2871
- region: string;
2872
- } & {
2873
- providerSettings: {
2874
- id: string;
2875
- features: ("versioning" | "edge")[];
2876
- modes: ("standard" | "glacier")[];
2877
- regions: string[];
2878
- };
2879
- };
2880
- };
2636
+ storageType: "s3" | "cold";
2881
2637
  size: bigint;
2882
2638
  md5: string;
2883
2639
  sizeEncrypted: bigint | null;
@@ -2885,68 +2641,30 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2885
2641
  mime: string | null;
2886
2642
  ext: string | null;
2887
2643
  parts: {
2888
- url: string;
2889
2644
  md5: string;
2890
2645
  order: number;
2646
+ contentUrl: string;
2891
2647
  }[];
2892
2648
  publicKey: string;
2893
2649
  } | {
2894
2650
  id: string;
2895
- type: "mongo";
2651
+ type: "lite";
2896
2652
  key: string | null;
2897
- storage: {
2898
- id: string;
2899
- protocol: "mongo";
2900
- provider: "scaleway" | "secrecy" | "ovh";
2901
- mongoStorageOptions: {
2902
- id: string;
2903
- } & {
2904
- providerSettings: {
2905
- id: string;
2906
- };
2907
- };
2908
- };
2653
+ storageType: "lite";
2909
2654
  size: bigint;
2910
2655
  md5: string;
2911
2656
  sizeEncrypted: bigint | null;
2912
2657
  md5Encrypted: string | null;
2913
2658
  mime: string | null;
2914
2659
  ext: string | null;
2660
+ content: Buffer;
2915
2661
  publicKey: string;
2916
- bytes: Buffer;
2917
2662
  };
2918
2663
  _output_out: {
2919
2664
  id: string;
2920
2665
  type: "received_mail";
2921
2666
  key: string | null;
2922
- storage: {
2923
- id: string;
2924
- protocol: "s3";
2925
- provider: "scaleway" | "secrecy" | "ovh";
2926
- s3StorageOptions: {
2927
- id: string;
2928
- mode: "standard" | "glacier";
2929
- region: string;
2930
- } & {
2931
- providerSettings: {
2932
- id: string;
2933
- features: ("versioning" | "edge")[];
2934
- modes: ("standard" | "glacier")[];
2935
- regions: string[];
2936
- };
2937
- };
2938
- } | {
2939
- id: string;
2940
- protocol: "mongo";
2941
- provider: "scaleway" | "secrecy" | "ovh";
2942
- mongoStorageOptions: {
2943
- id: string;
2944
- } & {
2945
- providerSettings: {
2946
- id: string;
2947
- };
2948
- };
2949
- };
2667
+ storageType: "s3" | "cold" | "lite";
2950
2668
  size: bigint;
2951
2669
  md5: string;
2952
2670
  sizeEncrypted: bigint | null;
@@ -2955,43 +2673,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2955
2673
  ext: string | null;
2956
2674
  senderPublicKey: string;
2957
2675
  maybeParts: {
2958
- url: string;
2959
2676
  md5: string;
2960
2677
  order: number;
2678
+ contentUrl: string;
2961
2679
  }[] | null;
2962
- maybeBytes: Buffer | null;
2680
+ maybeContent: Buffer | null;
2963
2681
  } | {
2964
2682
  id: string;
2965
2683
  type: "sent_mail";
2966
2684
  key: string | null;
2967
- storage: {
2968
- id: string;
2969
- protocol: "s3";
2970
- provider: "scaleway" | "secrecy" | "ovh";
2971
- s3StorageOptions: {
2972
- id: string;
2973
- mode: "standard" | "glacier";
2974
- region: string;
2975
- } & {
2976
- providerSettings: {
2977
- id: string;
2978
- features: ("versioning" | "edge")[];
2979
- modes: ("standard" | "glacier")[];
2980
- regions: string[];
2981
- };
2982
- };
2983
- } | {
2984
- id: string;
2985
- protocol: "mongo";
2986
- provider: "scaleway" | "secrecy" | "ovh";
2987
- mongoStorageOptions: {
2988
- id: string;
2989
- } & {
2990
- providerSettings: {
2991
- id: string;
2992
- };
2993
- };
2994
- };
2685
+ storageType: "s3" | "cold" | "lite";
2995
2686
  size: bigint;
2996
2687
  md5: string;
2997
2688
  sizeEncrypted: bigint | null;
@@ -2999,32 +2690,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2999
2690
  mime: string | null;
3000
2691
  ext: string | null;
3001
2692
  maybeParts: {
3002
- url: string;
3003
2693
  md5: string;
3004
2694
  order: number;
2695
+ contentUrl: string;
3005
2696
  }[] | null;
3006
- maybeBytes: Buffer | null;
2697
+ maybeContent: Buffer | null;
3007
2698
  } | {
3008
2699
  id: string;
3009
- type: "s3";
2700
+ type: "cloud";
3010
2701
  key: string | null;
3011
- storage: {
3012
- id: string;
3013
- protocol: "s3";
3014
- provider: "scaleway" | "secrecy" | "ovh";
3015
- s3StorageOptions: {
3016
- id: string;
3017
- mode: "standard" | "glacier";
3018
- region: string;
3019
- } & {
3020
- providerSettings: {
3021
- id: string;
3022
- features: ("versioning" | "edge")[];
3023
- modes: ("standard" | "glacier")[];
3024
- regions: string[];
3025
- };
3026
- };
3027
- };
2702
+ storageType: "s3" | "cold";
3028
2703
  size: bigint;
3029
2704
  md5: string;
3030
2705
  sizeEncrypted: bigint | null;
@@ -3032,35 +2707,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3032
2707
  mime: string | null;
3033
2708
  ext: string | null;
3034
2709
  parts: {
3035
- url: string;
3036
2710
  md5: string;
3037
2711
  order: number;
2712
+ contentUrl: string;
3038
2713
  }[];
3039
2714
  publicKey: string;
3040
2715
  } | {
3041
2716
  id: string;
3042
- type: "mongo";
2717
+ type: "lite";
3043
2718
  key: string | null;
3044
- storage: {
3045
- id: string;
3046
- protocol: "mongo";
3047
- provider: "scaleway" | "secrecy" | "ovh";
3048
- mongoStorageOptions: {
3049
- id: string;
3050
- } & {
3051
- providerSettings: {
3052
- id: string;
3053
- };
3054
- };
3055
- };
2719
+ storageType: "lite";
3056
2720
  size: bigint;
3057
2721
  md5: string;
3058
2722
  sizeEncrypted: bigint | null;
3059
2723
  md5Encrypted: string | null;
3060
2724
  mime: string | null;
3061
2725
  ext: string | null;
2726
+ content: Buffer;
3062
2727
  publicKey: string;
3063
- bytes: Buffer;
3064
2728
  };
3065
2729
  }, unknown>;
3066
2730
  dataContentByIds: _trpc_server.BuildProcedure<"query", {
@@ -3096,34 +2760,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3096
2760
  id: string;
3097
2761
  type: "received_mail";
3098
2762
  key: string | null;
3099
- storage: {
3100
- id: string;
3101
- protocol: "s3";
3102
- provider: "scaleway" | "secrecy" | "ovh";
3103
- s3StorageOptions: {
3104
- id: string;
3105
- mode: "standard" | "glacier";
3106
- region: string;
3107
- } & {
3108
- providerSettings: {
3109
- id: string;
3110
- features: ("versioning" | "edge")[];
3111
- modes: ("standard" | "glacier")[];
3112
- regions: string[];
3113
- };
3114
- };
3115
- } | {
3116
- id: string;
3117
- protocol: "mongo";
3118
- provider: "scaleway" | "secrecy" | "ovh";
3119
- mongoStorageOptions: {
3120
- id: string;
3121
- } & {
3122
- providerSettings: {
3123
- id: string;
3124
- };
3125
- };
3126
- };
2763
+ storageType: "s3" | "cold" | "lite";
3127
2764
  size: bigint;
3128
2765
  md5: string;
3129
2766
  sizeEncrypted: bigint | null;
@@ -3132,43 +2769,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3132
2769
  ext: string | null;
3133
2770
  senderPublicKey: string;
3134
2771
  maybeParts: {
3135
- url: string;
3136
2772
  md5: string;
3137
2773
  order: number;
2774
+ contentUrl: string;
3138
2775
  }[] | null;
3139
- maybeBytes: Buffer | null;
2776
+ maybeContent: Buffer | null;
3140
2777
  } | {
3141
2778
  id: string;
3142
2779
  type: "sent_mail";
3143
2780
  key: string | null;
3144
- storage: {
3145
- id: string;
3146
- protocol: "s3";
3147
- provider: "scaleway" | "secrecy" | "ovh";
3148
- s3StorageOptions: {
3149
- id: string;
3150
- mode: "standard" | "glacier";
3151
- region: string;
3152
- } & {
3153
- providerSettings: {
3154
- id: string;
3155
- features: ("versioning" | "edge")[];
3156
- modes: ("standard" | "glacier")[];
3157
- regions: string[];
3158
- };
3159
- };
3160
- } | {
3161
- id: string;
3162
- protocol: "mongo";
3163
- provider: "scaleway" | "secrecy" | "ovh";
3164
- mongoStorageOptions: {
3165
- id: string;
3166
- } & {
3167
- providerSettings: {
3168
- id: string;
3169
- };
3170
- };
3171
- };
2781
+ storageType: "s3" | "cold" | "lite";
3172
2782
  size: bigint;
3173
2783
  md5: string;
3174
2784
  sizeEncrypted: bigint | null;
@@ -3176,32 +2786,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3176
2786
  mime: string | null;
3177
2787
  ext: string | null;
3178
2788
  maybeParts: {
3179
- url: string;
3180
2789
  md5: string;
3181
2790
  order: number;
2791
+ contentUrl: string;
3182
2792
  }[] | null;
3183
- maybeBytes: Buffer | null;
2793
+ maybeContent: Buffer | null;
3184
2794
  } | {
3185
2795
  id: string;
3186
- type: "s3";
2796
+ type: "cloud";
3187
2797
  key: string | null;
3188
- storage: {
3189
- id: string;
3190
- protocol: "s3";
3191
- provider: "scaleway" | "secrecy" | "ovh";
3192
- s3StorageOptions: {
3193
- id: string;
3194
- mode: "standard" | "glacier";
3195
- region: string;
3196
- } & {
3197
- providerSettings: {
3198
- id: string;
3199
- features: ("versioning" | "edge")[];
3200
- modes: ("standard" | "glacier")[];
3201
- regions: string[];
3202
- };
3203
- };
3204
- };
2798
+ storageType: "s3" | "cold";
3205
2799
  size: bigint;
3206
2800
  md5: string;
3207
2801
  sizeEncrypted: bigint | null;
@@ -3209,68 +2803,30 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3209
2803
  mime: string | null;
3210
2804
  ext: string | null;
3211
2805
  parts: {
3212
- url: string;
3213
2806
  md5: string;
3214
2807
  order: number;
2808
+ contentUrl: string;
3215
2809
  }[];
3216
2810
  publicKey: string;
3217
2811
  } | {
3218
2812
  id: string;
3219
- type: "mongo";
2813
+ type: "lite";
3220
2814
  key: string | null;
3221
- storage: {
3222
- id: string;
3223
- protocol: "mongo";
3224
- provider: "scaleway" | "secrecy" | "ovh";
3225
- mongoStorageOptions: {
3226
- id: string;
3227
- } & {
3228
- providerSettings: {
3229
- id: string;
3230
- };
3231
- };
3232
- };
2815
+ storageType: "lite";
3233
2816
  size: bigint;
3234
2817
  md5: string;
3235
2818
  sizeEncrypted: bigint | null;
3236
2819
  md5Encrypted: string | null;
3237
2820
  mime: string | null;
3238
2821
  ext: string | null;
2822
+ content: Buffer;
3239
2823
  publicKey: string;
3240
- bytes: Buffer;
3241
2824
  })[];
3242
2825
  _output_out: ({
3243
2826
  id: string;
3244
2827
  type: "received_mail";
3245
2828
  key: string | null;
3246
- storage: {
3247
- id: string;
3248
- protocol: "s3";
3249
- provider: "scaleway" | "secrecy" | "ovh";
3250
- s3StorageOptions: {
3251
- id: string;
3252
- mode: "standard" | "glacier";
3253
- region: string;
3254
- } & {
3255
- providerSettings: {
3256
- id: string;
3257
- features: ("versioning" | "edge")[];
3258
- modes: ("standard" | "glacier")[];
3259
- regions: string[];
3260
- };
3261
- };
3262
- } | {
3263
- id: string;
3264
- protocol: "mongo";
3265
- provider: "scaleway" | "secrecy" | "ovh";
3266
- mongoStorageOptions: {
3267
- id: string;
3268
- } & {
3269
- providerSettings: {
3270
- id: string;
3271
- };
3272
- };
3273
- };
2829
+ storageType: "s3" | "cold" | "lite";
3274
2830
  size: bigint;
3275
2831
  md5: string;
3276
2832
  sizeEncrypted: bigint | null;
@@ -3279,43 +2835,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3279
2835
  ext: string | null;
3280
2836
  senderPublicKey: string;
3281
2837
  maybeParts: {
3282
- url: string;
3283
2838
  md5: string;
3284
2839
  order: number;
2840
+ contentUrl: string;
3285
2841
  }[] | null;
3286
- maybeBytes: Buffer | null;
2842
+ maybeContent: Buffer | null;
3287
2843
  } | {
3288
2844
  id: string;
3289
2845
  type: "sent_mail";
3290
2846
  key: string | null;
3291
- storage: {
3292
- id: string;
3293
- protocol: "s3";
3294
- provider: "scaleway" | "secrecy" | "ovh";
3295
- s3StorageOptions: {
3296
- id: string;
3297
- mode: "standard" | "glacier";
3298
- region: string;
3299
- } & {
3300
- providerSettings: {
3301
- id: string;
3302
- features: ("versioning" | "edge")[];
3303
- modes: ("standard" | "glacier")[];
3304
- regions: string[];
3305
- };
3306
- };
3307
- } | {
3308
- id: string;
3309
- protocol: "mongo";
3310
- provider: "scaleway" | "secrecy" | "ovh";
3311
- mongoStorageOptions: {
3312
- id: string;
3313
- } & {
3314
- providerSettings: {
3315
- id: string;
3316
- };
3317
- };
3318
- };
2847
+ storageType: "s3" | "cold" | "lite";
3319
2848
  size: bigint;
3320
2849
  md5: string;
3321
2850
  sizeEncrypted: bigint | null;
@@ -3323,32 +2852,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3323
2852
  mime: string | null;
3324
2853
  ext: string | null;
3325
2854
  maybeParts: {
3326
- url: string;
3327
2855
  md5: string;
3328
- order: number;
3329
- }[] | null;
3330
- maybeBytes: Buffer | null;
3331
- } | {
3332
- id: string;
3333
- type: "s3";
3334
- key: string | null;
3335
- storage: {
3336
- id: string;
3337
- protocol: "s3";
3338
- provider: "scaleway" | "secrecy" | "ovh";
3339
- s3StorageOptions: {
3340
- id: string;
3341
- mode: "standard" | "glacier";
3342
- region: string;
3343
- } & {
3344
- providerSettings: {
3345
- id: string;
3346
- features: ("versioning" | "edge")[];
3347
- modes: ("standard" | "glacier")[];
3348
- regions: string[];
3349
- };
3350
- };
3351
- };
2856
+ order: number;
2857
+ contentUrl: string;
2858
+ }[] | null;
2859
+ maybeContent: Buffer | null;
2860
+ } | {
2861
+ id: string;
2862
+ type: "cloud";
2863
+ key: string | null;
2864
+ storageType: "s3" | "cold";
3352
2865
  size: bigint;
3353
2866
  md5: string;
3354
2867
  sizeEncrypted: bigint | null;
@@ -3356,35 +2869,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3356
2869
  mime: string | null;
3357
2870
  ext: string | null;
3358
2871
  parts: {
3359
- url: string;
3360
2872
  md5: string;
3361
2873
  order: number;
2874
+ contentUrl: string;
3362
2875
  }[];
3363
2876
  publicKey: string;
3364
2877
  } | {
3365
2878
  id: string;
3366
- type: "mongo";
2879
+ type: "lite";
3367
2880
  key: string | null;
3368
- storage: {
3369
- id: string;
3370
- protocol: "mongo";
3371
- provider: "scaleway" | "secrecy" | "ovh";
3372
- mongoStorageOptions: {
3373
- id: string;
3374
- } & {
3375
- providerSettings: {
3376
- id: string;
3377
- };
3378
- };
3379
- };
2881
+ storageType: "lite";
3380
2882
  size: bigint;
3381
2883
  md5: string;
3382
2884
  sizeEncrypted: bigint | null;
3383
2885
  md5Encrypted: string | null;
3384
2886
  mime: string | null;
3385
2887
  ext: string | null;
2888
+ content: Buffer;
3386
2889
  publicKey: string;
3387
- bytes: Buffer;
3388
2890
  })[];
3389
2891
  }, unknown>;
3390
2892
  dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -3444,21 +2946,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3444
2946
  _ctx_out: {};
3445
2947
  _input_in: {
3446
2948
  dataId: string;
3447
- storageProtocol: "s3" | "mongo";
2949
+ storageType: "s3" | "cold" | "lite";
3448
2950
  };
3449
2951
  _input_out: {
3450
2952
  dataId: string;
3451
- storageProtocol: "s3" | "mongo";
2953
+ storageType: "s3" | "cold" | "lite";
3452
2954
  };
3453
2955
  _output_in: {
3454
2956
  isMoved: boolean;
3455
- fromProtocol: "s3" | "mongo";
3456
- toProtocol: "s3" | "mongo";
2957
+ fromType: "s3" | "cold" | "lite";
2958
+ toType: "s3" | "cold" | "lite";
3457
2959
  };
3458
2960
  _output_out: {
3459
2961
  isMoved: boolean;
3460
- fromProtocol: "s3" | "mongo";
3461
- toProtocol: "s3" | "mongo";
2962
+ fromType: "s3" | "cold" | "lite";
2963
+ toType: "s3" | "cold" | "lite";
3462
2964
  };
3463
2965
  }, unknown>;
3464
2966
  saveInCloud: _trpc_server.BuildProcedure<"mutation", {
@@ -3535,102 +3037,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3535
3037
  sizeEncrypted: bigint;
3536
3038
  };
3537
3039
  } & {
3538
- current: ({
3040
+ current: {
3539
3041
  id: string;
3540
3042
  createdAt: Date;
3043
+ storageType: "s3" | "cold" | "lite";
3541
3044
  size: bigint;
3542
3045
  md5: string;
3543
3046
  userAppUserId: string;
3544
3047
  userAppAppId: string;
3545
- storageId: string;
3546
3048
  sizeEncrypted: bigint | null;
3547
3049
  md5Encrypted: string | null;
3548
3050
  mime: string | null;
3549
3051
  ext: string | null;
3550
3052
  validatedAt: Date | null;
3551
3053
  restoreSince: Date | null;
3552
- } & {
3553
- storage: {
3554
- id: string;
3555
- protocol: "s3";
3556
- provider: "scaleway" | "secrecy" | "ovh";
3557
- s3StorageOptions: {
3558
- id: string;
3559
- mode: "standard" | "glacier";
3560
- region: string;
3561
- } & {
3562
- providerSettings: {
3563
- id: string;
3564
- features: ("versioning" | "edge")[];
3565
- modes: ("standard" | "glacier")[];
3566
- regions: string[];
3567
- };
3568
- };
3569
- } | {
3570
- id: string;
3571
- protocol: "mongo";
3572
- provider: "scaleway" | "secrecy" | "ovh";
3573
- mongoStorageOptions: {
3574
- id: string;
3575
- } & {
3576
- providerSettings: {
3577
- id: string;
3578
- };
3579
- };
3580
- };
3581
3054
  access: {
3582
3055
  key: string | null;
3583
3056
  sharedByPubKey: string;
3584
3057
  };
3585
- }) | null;
3586
- history: ({
3058
+ } | null;
3059
+ history: {
3587
3060
  id: string;
3588
3061
  createdAt: Date;
3062
+ storageType: "s3" | "cold" | "lite";
3589
3063
  size: bigint;
3590
3064
  md5: string;
3591
3065
  userAppUserId: string;
3592
3066
  userAppAppId: string;
3593
- storageId: string;
3594
3067
  sizeEncrypted: bigint | null;
3595
3068
  md5Encrypted: string | null;
3596
3069
  mime: string | null;
3597
3070
  ext: string | null;
3598
3071
  validatedAt: Date | null;
3599
3072
  restoreSince: Date | null;
3600
- } & {
3601
- storage: {
3602
- id: string;
3603
- protocol: "s3";
3604
- provider: "scaleway" | "secrecy" | "ovh";
3605
- s3StorageOptions: {
3606
- id: string;
3607
- mode: "standard" | "glacier";
3608
- region: string;
3609
- } & {
3610
- providerSettings: {
3611
- id: string;
3612
- features: ("versioning" | "edge")[];
3613
- modes: ("standard" | "glacier")[];
3614
- regions: string[];
3615
- };
3616
- };
3617
- } | {
3618
- id: string;
3619
- protocol: "mongo";
3620
- provider: "scaleway" | "secrecy" | "ovh";
3621
- mongoStorageOptions: {
3622
- id: string;
3623
- } & {
3624
- providerSettings: {
3625
- id: string;
3626
- };
3627
- };
3628
- };
3629
3073
  access: {
3630
3074
  key: string | null;
3631
3075
  sharedByPubKey: string;
3632
3076
  };
3633
- })[];
3077
+ }[];
3634
3078
  parent: ({
3635
3079
  name: string;
3636
3080
  id: string;
@@ -3744,102 +3188,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3744
3188
  sizeEncrypted: bigint;
3745
3189
  };
3746
3190
  } & {
3747
- current: ({
3191
+ current: {
3748
3192
  id: string;
3749
3193
  createdAt: Date;
3194
+ storageType: "s3" | "cold" | "lite";
3750
3195
  size: bigint;
3751
3196
  md5: string;
3752
3197
  userAppUserId: string;
3753
3198
  userAppAppId: string;
3754
- storageId: string;
3755
3199
  sizeEncrypted: bigint | null;
3756
3200
  md5Encrypted: string | null;
3757
3201
  mime: string | null;
3758
3202
  ext: string | null;
3759
3203
  validatedAt: Date | null;
3760
3204
  restoreSince: Date | null;
3761
- } & {
3762
- storage: {
3763
- id: string;
3764
- protocol: "s3";
3765
- provider: "scaleway" | "secrecy" | "ovh";
3766
- s3StorageOptions: {
3767
- id: string;
3768
- mode: "standard" | "glacier";
3769
- region: string;
3770
- } & {
3771
- providerSettings: {
3772
- id: string;
3773
- features: ("versioning" | "edge")[];
3774
- modes: ("standard" | "glacier")[];
3775
- regions: string[];
3776
- };
3777
- };
3778
- } | {
3779
- id: string;
3780
- protocol: "mongo";
3781
- provider: "scaleway" | "secrecy" | "ovh";
3782
- mongoStorageOptions: {
3783
- id: string;
3784
- } & {
3785
- providerSettings: {
3786
- id: string;
3787
- };
3788
- };
3789
- };
3790
3205
  access: {
3791
3206
  key: string | null;
3792
3207
  sharedByPubKey: string;
3793
3208
  };
3794
- }) | null;
3795
- history: ({
3209
+ } | null;
3210
+ history: {
3796
3211
  id: string;
3797
3212
  createdAt: Date;
3213
+ storageType: "s3" | "cold" | "lite";
3798
3214
  size: bigint;
3799
3215
  md5: string;
3800
3216
  userAppUserId: string;
3801
3217
  userAppAppId: string;
3802
- storageId: string;
3803
3218
  sizeEncrypted: bigint | null;
3804
3219
  md5Encrypted: string | null;
3805
3220
  mime: string | null;
3806
3221
  ext: string | null;
3807
3222
  validatedAt: Date | null;
3808
3223
  restoreSince: Date | null;
3809
- } & {
3810
- storage: {
3811
- id: string;
3812
- protocol: "s3";
3813
- provider: "scaleway" | "secrecy" | "ovh";
3814
- s3StorageOptions: {
3815
- id: string;
3816
- mode: "standard" | "glacier";
3817
- region: string;
3818
- } & {
3819
- providerSettings: {
3820
- id: string;
3821
- features: ("versioning" | "edge")[];
3822
- modes: ("standard" | "glacier")[];
3823
- regions: string[];
3824
- };
3825
- };
3826
- } | {
3827
- id: string;
3828
- protocol: "mongo";
3829
- provider: "scaleway" | "secrecy" | "ovh";
3830
- mongoStorageOptions: {
3831
- id: string;
3832
- } & {
3833
- providerSettings: {
3834
- id: string;
3835
- };
3836
- };
3837
- };
3838
3224
  access: {
3839
3225
  key: string | null;
3840
3226
  sharedByPubKey: string;
3841
3227
  };
3842
- })[];
3228
+ }[];
3843
3229
  parent: ({
3844
3230
  name: string;
3845
3231
  id: string;
@@ -4010,8 +3396,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4010
3396
  history: {
4011
3397
  createdAt: Date;
4012
3398
  dataId: string;
3399
+ storageType: "s3" | "cold" | "lite";
4013
3400
  size: bigint;
4014
- storageType: "s3" | "mongo";
4015
3401
  }[];
4016
3402
  access: {
4017
3403
  appId: string;
@@ -4051,8 +3437,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4051
3437
  history: {
4052
3438
  createdAt: Date;
4053
3439
  dataId: string;
3440
+ storageType: "s3" | "cold" | "lite";
4054
3441
  size: bigint;
4055
- storageType: "s3" | "mongo";
4056
3442
  }[];
4057
3443
  access: {
4058
3444
  appId: string;
@@ -4356,10 +3742,58 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4356
3742
  }>;
4357
3743
  _meta: object;
4358
3744
  _ctx_out: {};
4359
- _input_in: any;
4360
- _input_out: any;
4361
- _output_in: any;
4362
- _output_out: any;
3745
+ _input_in: {
3746
+ type: "encrypted";
3747
+ key: string;
3748
+ size: bigint;
3749
+ md5: string;
3750
+ sizeEncrypted: bigint;
3751
+ md5Encrypted: string;
3752
+ content: Buffer;
3753
+ mime?: string | undefined;
3754
+ ext?: string | undefined;
3755
+ } | {
3756
+ type: "unencrypted";
3757
+ size: bigint;
3758
+ md5: string;
3759
+ content: Buffer;
3760
+ mime?: string | undefined;
3761
+ ext?: string | undefined;
3762
+ };
3763
+ _input_out: {
3764
+ type: "encrypted";
3765
+ key: string;
3766
+ size: bigint;
3767
+ md5: string;
3768
+ sizeEncrypted: bigint;
3769
+ md5Encrypted: string;
3770
+ content: Buffer;
3771
+ mime?: string | undefined;
3772
+ ext?: string | undefined;
3773
+ } | {
3774
+ type: "unencrypted";
3775
+ size: bigint;
3776
+ md5: string;
3777
+ content: Buffer;
3778
+ mime?: string | undefined;
3779
+ ext?: string | undefined;
3780
+ };
3781
+ _output_in: {
3782
+ id: string;
3783
+ keyPair: {
3784
+ pub: string;
3785
+ encPriv: string;
3786
+ };
3787
+ key: string | null;
3788
+ };
3789
+ _output_out: {
3790
+ id: string;
3791
+ keyPair: {
3792
+ pub: string;
3793
+ encPriv: string;
3794
+ };
3795
+ key: string | null;
3796
+ };
4363
3797
  }, unknown>;
4364
3798
  reportData: _trpc_server.BuildProcedure<"mutation", {
4365
3799
  _config: _trpc_server.RootConfig<{
@@ -4707,102 +4141,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4707
4141
  sizeEncrypted: bigint;
4708
4142
  };
4709
4143
  } & {
4710
- current: ({
4144
+ current: {
4711
4145
  id: string;
4712
4146
  createdAt: Date;
4147
+ storageType: "s3" | "cold" | "lite";
4713
4148
  size: bigint;
4714
4149
  md5: string;
4715
4150
  userAppUserId: string;
4716
4151
  userAppAppId: string;
4717
- storageId: string;
4718
4152
  sizeEncrypted: bigint | null;
4719
4153
  md5Encrypted: string | null;
4720
4154
  mime: string | null;
4721
4155
  ext: string | null;
4722
4156
  validatedAt: Date | null;
4723
4157
  restoreSince: Date | null;
4724
- } & {
4725
- storage: {
4726
- id: string;
4727
- protocol: "s3";
4728
- provider: "scaleway" | "secrecy" | "ovh";
4729
- s3StorageOptions: {
4730
- id: string;
4731
- mode: "standard" | "glacier";
4732
- region: string;
4733
- } & {
4734
- providerSettings: {
4735
- id: string;
4736
- features: ("versioning" | "edge")[];
4737
- modes: ("standard" | "glacier")[];
4738
- regions: string[];
4739
- };
4740
- };
4741
- } | {
4742
- id: string;
4743
- protocol: "mongo";
4744
- provider: "scaleway" | "secrecy" | "ovh";
4745
- mongoStorageOptions: {
4746
- id: string;
4747
- } & {
4748
- providerSettings: {
4749
- id: string;
4750
- };
4751
- };
4752
- };
4753
4158
  access: {
4754
4159
  key: string | null;
4755
4160
  sharedByPubKey: string;
4756
4161
  };
4757
- }) | null;
4758
- history: ({
4162
+ } | null;
4163
+ history: {
4759
4164
  id: string;
4760
4165
  createdAt: Date;
4166
+ storageType: "s3" | "cold" | "lite";
4761
4167
  size: bigint;
4762
4168
  md5: string;
4763
4169
  userAppUserId: string;
4764
4170
  userAppAppId: string;
4765
- storageId: string;
4766
4171
  sizeEncrypted: bigint | null;
4767
4172
  md5Encrypted: string | null;
4768
4173
  mime: string | null;
4769
4174
  ext: string | null;
4770
4175
  validatedAt: Date | null;
4771
4176
  restoreSince: Date | null;
4772
- } & {
4773
- storage: {
4774
- id: string;
4775
- protocol: "s3";
4776
- provider: "scaleway" | "secrecy" | "ovh";
4777
- s3StorageOptions: {
4778
- id: string;
4779
- mode: "standard" | "glacier";
4780
- region: string;
4781
- } & {
4782
- providerSettings: {
4783
- id: string;
4784
- features: ("versioning" | "edge")[];
4785
- modes: ("standard" | "glacier")[];
4786
- regions: string[];
4787
- };
4788
- };
4789
- } | {
4790
- id: string;
4791
- protocol: "mongo";
4792
- provider: "scaleway" | "secrecy" | "ovh";
4793
- mongoStorageOptions: {
4794
- id: string;
4795
- } & {
4796
- providerSettings: {
4797
- id: string;
4798
- };
4799
- };
4800
- };
4801
4177
  access: {
4802
4178
  key: string | null;
4803
4179
  sharedByPubKey: string;
4804
4180
  };
4805
- })[];
4181
+ }[];
4806
4182
  parent: ({
4807
4183
  name: string;
4808
4184
  id: string;
@@ -4916,102 +4292,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4916
4292
  sizeEncrypted: bigint;
4917
4293
  };
4918
4294
  } & {
4919
- current: ({
4295
+ current: {
4920
4296
  id: string;
4921
4297
  createdAt: Date;
4298
+ storageType: "s3" | "cold" | "lite";
4922
4299
  size: bigint;
4923
4300
  md5: string;
4924
4301
  userAppUserId: string;
4925
4302
  userAppAppId: string;
4926
- storageId: string;
4927
4303
  sizeEncrypted: bigint | null;
4928
4304
  md5Encrypted: string | null;
4929
4305
  mime: string | null;
4930
4306
  ext: string | null;
4931
4307
  validatedAt: Date | null;
4932
4308
  restoreSince: Date | null;
4933
- } & {
4934
- storage: {
4935
- id: string;
4936
- protocol: "s3";
4937
- provider: "scaleway" | "secrecy" | "ovh";
4938
- s3StorageOptions: {
4939
- id: string;
4940
- mode: "standard" | "glacier";
4941
- region: string;
4942
- } & {
4943
- providerSettings: {
4944
- id: string;
4945
- features: ("versioning" | "edge")[];
4946
- modes: ("standard" | "glacier")[];
4947
- regions: string[];
4948
- };
4949
- };
4950
- } | {
4951
- id: string;
4952
- protocol: "mongo";
4953
- provider: "scaleway" | "secrecy" | "ovh";
4954
- mongoStorageOptions: {
4955
- id: string;
4956
- } & {
4957
- providerSettings: {
4958
- id: string;
4959
- };
4960
- };
4961
- };
4962
4309
  access: {
4963
4310
  key: string | null;
4964
4311
  sharedByPubKey: string;
4965
4312
  };
4966
- }) | null;
4967
- history: ({
4313
+ } | null;
4314
+ history: {
4968
4315
  id: string;
4969
4316
  createdAt: Date;
4317
+ storageType: "s3" | "cold" | "lite";
4970
4318
  size: bigint;
4971
4319
  md5: string;
4972
4320
  userAppUserId: string;
4973
4321
  userAppAppId: string;
4974
- storageId: string;
4975
4322
  sizeEncrypted: bigint | null;
4976
4323
  md5Encrypted: string | null;
4977
4324
  mime: string | null;
4978
4325
  ext: string | null;
4979
4326
  validatedAt: Date | null;
4980
4327
  restoreSince: Date | null;
4981
- } & {
4982
- storage: {
4983
- id: string;
4984
- protocol: "s3";
4985
- provider: "scaleway" | "secrecy" | "ovh";
4986
- s3StorageOptions: {
4987
- id: string;
4988
- mode: "standard" | "glacier";
4989
- region: string;
4990
- } & {
4991
- providerSettings: {
4992
- id: string;
4993
- features: ("versioning" | "edge")[];
4994
- modes: ("standard" | "glacier")[];
4995
- regions: string[];
4996
- };
4997
- };
4998
- } | {
4999
- id: string;
5000
- protocol: "mongo";
5001
- provider: "scaleway" | "secrecy" | "ovh";
5002
- mongoStorageOptions: {
5003
- id: string;
5004
- } & {
5005
- providerSettings: {
5006
- id: string;
5007
- };
5008
- };
5009
- };
5010
4328
  access: {
5011
4329
  key: string | null;
5012
4330
  sharedByPubKey: string;
5013
4331
  };
5014
- })[];
4332
+ }[];
5015
4333
  parent: ({
5016
4334
  name: string;
5017
4335
  id: string;
@@ -5621,102 +4939,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5621
4939
  sizeEncrypted: bigint;
5622
4940
  };
5623
4941
  } & {
5624
- current: ({
4942
+ current: {
5625
4943
  id: string;
5626
4944
  createdAt: Date;
4945
+ storageType: "s3" | "cold" | "lite";
5627
4946
  size: bigint;
5628
4947
  md5: string;
5629
4948
  userAppUserId: string;
5630
4949
  userAppAppId: string;
5631
- storageId: string;
5632
4950
  sizeEncrypted: bigint | null;
5633
4951
  md5Encrypted: string | null;
5634
4952
  mime: string | null;
5635
4953
  ext: string | null;
5636
4954
  validatedAt: Date | null;
5637
4955
  restoreSince: Date | null;
5638
- } & {
5639
- storage: {
5640
- id: string;
5641
- protocol: "s3";
5642
- provider: "scaleway" | "secrecy" | "ovh";
5643
- s3StorageOptions: {
5644
- id: string;
5645
- mode: "standard" | "glacier";
5646
- region: string;
5647
- } & {
5648
- providerSettings: {
5649
- id: string;
5650
- features: ("versioning" | "edge")[];
5651
- modes: ("standard" | "glacier")[];
5652
- regions: string[];
5653
- };
5654
- };
5655
- } | {
5656
- id: string;
5657
- protocol: "mongo";
5658
- provider: "scaleway" | "secrecy" | "ovh";
5659
- mongoStorageOptions: {
5660
- id: string;
5661
- } & {
5662
- providerSettings: {
5663
- id: string;
5664
- };
5665
- };
5666
- };
5667
4956
  access: {
5668
4957
  key: string | null;
5669
4958
  sharedByPubKey: string;
5670
4959
  };
5671
- }) | null;
5672
- history: ({
4960
+ } | null;
4961
+ history: {
5673
4962
  id: string;
5674
4963
  createdAt: Date;
4964
+ storageType: "s3" | "cold" | "lite";
5675
4965
  size: bigint;
5676
4966
  md5: string;
5677
4967
  userAppUserId: string;
5678
4968
  userAppAppId: string;
5679
- storageId: string;
5680
4969
  sizeEncrypted: bigint | null;
5681
4970
  md5Encrypted: string | null;
5682
4971
  mime: string | null;
5683
4972
  ext: string | null;
5684
4973
  validatedAt: Date | null;
5685
4974
  restoreSince: Date | null;
5686
- } & {
5687
- storage: {
5688
- id: string;
5689
- protocol: "s3";
5690
- provider: "scaleway" | "secrecy" | "ovh";
5691
- s3StorageOptions: {
5692
- id: string;
5693
- mode: "standard" | "glacier";
5694
- region: string;
5695
- } & {
5696
- providerSettings: {
5697
- id: string;
5698
- features: ("versioning" | "edge")[];
5699
- modes: ("standard" | "glacier")[];
5700
- regions: string[];
5701
- };
5702
- };
5703
- } | {
5704
- id: string;
5705
- protocol: "mongo";
5706
- provider: "scaleway" | "secrecy" | "ovh";
5707
- mongoStorageOptions: {
5708
- id: string;
5709
- } & {
5710
- providerSettings: {
5711
- id: string;
5712
- };
5713
- };
5714
- };
5715
4975
  access: {
5716
4976
  key: string | null;
5717
4977
  sharedByPubKey: string;
5718
4978
  };
5719
- })[];
4979
+ }[];
5720
4980
  parent: ({
5721
4981
  name: string;
5722
4982
  id: string;
@@ -5830,102 +5090,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5830
5090
  sizeEncrypted: bigint;
5831
5091
  };
5832
5092
  } & {
5833
- current: ({
5093
+ current: {
5834
5094
  id: string;
5835
5095
  createdAt: Date;
5096
+ storageType: "s3" | "cold" | "lite";
5836
5097
  size: bigint;
5837
5098
  md5: string;
5838
5099
  userAppUserId: string;
5839
5100
  userAppAppId: string;
5840
- storageId: string;
5841
5101
  sizeEncrypted: bigint | null;
5842
5102
  md5Encrypted: string | null;
5843
5103
  mime: string | null;
5844
5104
  ext: string | null;
5845
5105
  validatedAt: Date | null;
5846
5106
  restoreSince: Date | null;
5847
- } & {
5848
- storage: {
5849
- id: string;
5850
- protocol: "s3";
5851
- provider: "scaleway" | "secrecy" | "ovh";
5852
- s3StorageOptions: {
5853
- id: string;
5854
- mode: "standard" | "glacier";
5855
- region: string;
5856
- } & {
5857
- providerSettings: {
5858
- id: string;
5859
- features: ("versioning" | "edge")[];
5860
- modes: ("standard" | "glacier")[];
5861
- regions: string[];
5862
- };
5863
- };
5864
- } | {
5865
- id: string;
5866
- protocol: "mongo";
5867
- provider: "scaleway" | "secrecy" | "ovh";
5868
- mongoStorageOptions: {
5869
- id: string;
5870
- } & {
5871
- providerSettings: {
5872
- id: string;
5873
- };
5874
- };
5875
- };
5876
5107
  access: {
5877
5108
  key: string | null;
5878
5109
  sharedByPubKey: string;
5879
5110
  };
5880
- }) | null;
5881
- history: ({
5111
+ } | null;
5112
+ history: {
5882
5113
  id: string;
5883
5114
  createdAt: Date;
5115
+ storageType: "s3" | "cold" | "lite";
5884
5116
  size: bigint;
5885
5117
  md5: string;
5886
5118
  userAppUserId: string;
5887
5119
  userAppAppId: string;
5888
- storageId: string;
5889
5120
  sizeEncrypted: bigint | null;
5890
5121
  md5Encrypted: string | null;
5891
5122
  mime: string | null;
5892
5123
  ext: string | null;
5893
5124
  validatedAt: Date | null;
5894
5125
  restoreSince: Date | null;
5895
- } & {
5896
- storage: {
5897
- id: string;
5898
- protocol: "s3";
5899
- provider: "scaleway" | "secrecy" | "ovh";
5900
- s3StorageOptions: {
5901
- id: string;
5902
- mode: "standard" | "glacier";
5903
- region: string;
5904
- } & {
5905
- providerSettings: {
5906
- id: string;
5907
- features: ("versioning" | "edge")[];
5908
- modes: ("standard" | "glacier")[];
5909
- regions: string[];
5910
- };
5911
- };
5912
- } | {
5913
- id: string;
5914
- protocol: "mongo";
5915
- provider: "scaleway" | "secrecy" | "ovh";
5916
- mongoStorageOptions: {
5917
- id: string;
5918
- } & {
5919
- providerSettings: {
5920
- id: string;
5921
- };
5922
- };
5923
- };
5924
5126
  access: {
5925
5127
  key: string | null;
5926
5128
  sharedByPubKey: string;
5927
5129
  };
5928
- })[];
5130
+ }[];
5929
5131
  parent: ({
5930
5132
  name: string;
5931
5133
  id: string;
@@ -6515,102 +5717,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6515
5717
  sizeEncrypted: bigint;
6516
5718
  };
6517
5719
  } & {
6518
- current: ({
5720
+ current: {
6519
5721
  id: string;
6520
5722
  createdAt: Date;
5723
+ storageType: "s3" | "cold" | "lite";
6521
5724
  size: bigint;
6522
5725
  md5: string;
6523
5726
  userAppUserId: string;
6524
5727
  userAppAppId: string;
6525
- storageId: string;
6526
5728
  sizeEncrypted: bigint | null;
6527
5729
  md5Encrypted: string | null;
6528
5730
  mime: string | null;
6529
5731
  ext: string | null;
6530
- validatedAt: Date | null;
6531
- restoreSince: Date | null;
6532
- } & {
6533
- storage: {
6534
- id: string;
6535
- protocol: "s3";
6536
- provider: "scaleway" | "secrecy" | "ovh";
6537
- s3StorageOptions: {
6538
- id: string;
6539
- mode: "standard" | "glacier";
6540
- region: string;
6541
- } & {
6542
- providerSettings: {
6543
- id: string;
6544
- features: ("versioning" | "edge")[];
6545
- modes: ("standard" | "glacier")[];
6546
- regions: string[];
6547
- };
6548
- };
6549
- } | {
6550
- id: string;
6551
- protocol: "mongo";
6552
- provider: "scaleway" | "secrecy" | "ovh";
6553
- mongoStorageOptions: {
6554
- id: string;
6555
- } & {
6556
- providerSettings: {
6557
- id: string;
6558
- };
6559
- };
6560
- };
5732
+ validatedAt: Date | null;
5733
+ restoreSince: Date | null;
6561
5734
  access: {
6562
5735
  key: string | null;
6563
5736
  sharedByPubKey: string;
6564
5737
  };
6565
- }) | null;
6566
- history: ({
5738
+ } | null;
5739
+ history: {
6567
5740
  id: string;
6568
5741
  createdAt: Date;
5742
+ storageType: "s3" | "cold" | "lite";
6569
5743
  size: bigint;
6570
5744
  md5: string;
6571
5745
  userAppUserId: string;
6572
5746
  userAppAppId: string;
6573
- storageId: string;
6574
5747
  sizeEncrypted: bigint | null;
6575
5748
  md5Encrypted: string | null;
6576
5749
  mime: string | null;
6577
5750
  ext: string | null;
6578
5751
  validatedAt: Date | null;
6579
5752
  restoreSince: Date | null;
6580
- } & {
6581
- storage: {
6582
- id: string;
6583
- protocol: "s3";
6584
- provider: "scaleway" | "secrecy" | "ovh";
6585
- s3StorageOptions: {
6586
- id: string;
6587
- mode: "standard" | "glacier";
6588
- region: string;
6589
- } & {
6590
- providerSettings: {
6591
- id: string;
6592
- features: ("versioning" | "edge")[];
6593
- modes: ("standard" | "glacier")[];
6594
- regions: string[];
6595
- };
6596
- };
6597
- } | {
6598
- id: string;
6599
- protocol: "mongo";
6600
- provider: "scaleway" | "secrecy" | "ovh";
6601
- mongoStorageOptions: {
6602
- id: string;
6603
- } & {
6604
- providerSettings: {
6605
- id: string;
6606
- };
6607
- };
6608
- };
6609
5753
  access: {
6610
5754
  key: string | null;
6611
5755
  sharedByPubKey: string;
6612
5756
  };
6613
- })[];
5757
+ }[];
6614
5758
  parent: ({
6615
5759
  name: string;
6616
5760
  id: string;
@@ -6724,102 +5868,44 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6724
5868
  sizeEncrypted: bigint;
6725
5869
  };
6726
5870
  } & {
6727
- current: ({
5871
+ current: {
6728
5872
  id: string;
6729
5873
  createdAt: Date;
5874
+ storageType: "s3" | "cold" | "lite";
6730
5875
  size: bigint;
6731
5876
  md5: string;
6732
5877
  userAppUserId: string;
6733
5878
  userAppAppId: string;
6734
- storageId: string;
6735
5879
  sizeEncrypted: bigint | null;
6736
5880
  md5Encrypted: string | null;
6737
5881
  mime: string | null;
6738
5882
  ext: string | null;
6739
5883
  validatedAt: Date | null;
6740
5884
  restoreSince: Date | null;
6741
- } & {
6742
- storage: {
6743
- id: string;
6744
- protocol: "s3";
6745
- provider: "scaleway" | "secrecy" | "ovh";
6746
- s3StorageOptions: {
6747
- id: string;
6748
- mode: "standard" | "glacier";
6749
- region: string;
6750
- } & {
6751
- providerSettings: {
6752
- id: string;
6753
- features: ("versioning" | "edge")[];
6754
- modes: ("standard" | "glacier")[];
6755
- regions: string[];
6756
- };
6757
- };
6758
- } | {
6759
- id: string;
6760
- protocol: "mongo";
6761
- provider: "scaleway" | "secrecy" | "ovh";
6762
- mongoStorageOptions: {
6763
- id: string;
6764
- } & {
6765
- providerSettings: {
6766
- id: string;
6767
- };
6768
- };
6769
- };
6770
5885
  access: {
6771
5886
  key: string | null;
6772
5887
  sharedByPubKey: string;
6773
5888
  };
6774
- }) | null;
6775
- history: ({
5889
+ } | null;
5890
+ history: {
6776
5891
  id: string;
6777
5892
  createdAt: Date;
5893
+ storageType: "s3" | "cold" | "lite";
6778
5894
  size: bigint;
6779
5895
  md5: string;
6780
5896
  userAppUserId: string;
6781
5897
  userAppAppId: string;
6782
- storageId: string;
6783
5898
  sizeEncrypted: bigint | null;
6784
5899
  md5Encrypted: string | null;
6785
5900
  mime: string | null;
6786
5901
  ext: string | null;
6787
5902
  validatedAt: Date | null;
6788
5903
  restoreSince: Date | null;
6789
- } & {
6790
- storage: {
6791
- id: string;
6792
- protocol: "s3";
6793
- provider: "scaleway" | "secrecy" | "ovh";
6794
- s3StorageOptions: {
6795
- id: string;
6796
- mode: "standard" | "glacier";
6797
- region: string;
6798
- } & {
6799
- providerSettings: {
6800
- id: string;
6801
- features: ("versioning" | "edge")[];
6802
- modes: ("standard" | "glacier")[];
6803
- regions: string[];
6804
- };
6805
- };
6806
- } | {
6807
- id: string;
6808
- protocol: "mongo";
6809
- provider: "scaleway" | "secrecy" | "ovh";
6810
- mongoStorageOptions: {
6811
- id: string;
6812
- } & {
6813
- providerSettings: {
6814
- id: string;
6815
- };
6816
- };
6817
- };
6818
5904
  access: {
6819
5905
  key: string | null;
6820
5906
  sharedByPubKey: string;
6821
5907
  };
6822
- })[];
5908
+ }[];
6823
5909
  parent: ({
6824
5910
  name: string;
6825
5911
  id: string;
@@ -11164,6 +10250,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11164
10250
  replyTo: {
11165
10251
  id: string;
11166
10252
  } | null;
10253
+ temporaryRecipients: {
10254
+ email: string | null;
10255
+ }[];
11167
10256
  recipients: {
11168
10257
  id: string;
11169
10258
  lastname: string;
@@ -11171,9 +10260,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11171
10260
  avatar: string | null;
11172
10261
  isSearchable: boolean;
11173
10262
  }[];
11174
- temporaryRecipients: {
11175
- email: string | null;
11176
- }[];
11177
10263
  } | null;
11178
10264
  mailIntegrityDraft: {
11179
10265
  id: string;
@@ -11182,6 +10268,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11182
10268
  replyTo: {
11183
10269
  id: string;
11184
10270
  } | null;
10271
+ temporaryRecipients: {
10272
+ email: string | null;
10273
+ }[];
11185
10274
  recipients: {
11186
10275
  id: string;
11187
10276
  lastname: string;
@@ -11189,9 +10278,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11189
10278
  avatar: string | null;
11190
10279
  isSearchable: boolean;
11191
10280
  }[];
11192
- temporaryRecipients: {
11193
- email: string | null;
11194
- }[];
11195
10281
  } | null;
11196
10282
  sender: {
11197
10283
  id: string;
@@ -11222,6 +10308,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11222
10308
  replyTo: {
11223
10309
  id: string;
11224
10310
  } | null;
10311
+ temporaryRecipients: {
10312
+ email: string | null;
10313
+ }[];
11225
10314
  recipients: {
11226
10315
  id: string;
11227
10316
  lastname: string;
@@ -11229,9 +10318,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11229
10318
  avatar: string | null;
11230
10319
  isSearchable: boolean;
11231
10320
  }[];
11232
- temporaryRecipients: {
11233
- email: string | null;
11234
- }[];
11235
10321
  } | null;
11236
10322
  mailIntegrityDraft: {
11237
10323
  id: string;
@@ -11240,6 +10326,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11240
10326
  replyTo: {
11241
10327
  id: string;
11242
10328
  } | null;
10329
+ temporaryRecipients: {
10330
+ email: string | null;
10331
+ }[];
11243
10332
  recipients: {
11244
10333
  id: string;
11245
10334
  lastname: string;
@@ -11247,9 +10336,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11247
10336
  avatar: string | null;
11248
10337
  isSearchable: boolean;
11249
10338
  }[];
11250
- temporaryRecipients: {
11251
- email: string | null;
11252
- }[];
11253
10339
  } | null;
11254
10340
  sender: {
11255
10341
  id: string;
@@ -11332,6 +10418,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11332
10418
  replyTo: {
11333
10419
  id: string;
11334
10420
  } | null;
10421
+ temporaryRecipients: {
10422
+ email: string | null;
10423
+ }[];
11335
10424
  recipients: {
11336
10425
  id: string;
11337
10426
  lastname: string;
@@ -11339,9 +10428,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11339
10428
  avatar: string | null;
11340
10429
  isSearchable: boolean;
11341
10430
  }[];
11342
- temporaryRecipients: {
11343
- email: string | null;
11344
- }[];
11345
10431
  } | null;
11346
10432
  mailIntegrityDraft: {
11347
10433
  id: string;
@@ -11350,6 +10436,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11350
10436
  replyTo: {
11351
10437
  id: string;
11352
10438
  } | null;
10439
+ temporaryRecipients: {
10440
+ email: string | null;
10441
+ }[];
11353
10442
  recipients: {
11354
10443
  id: string;
11355
10444
  lastname: string;
@@ -11357,9 +10446,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11357
10446
  avatar: string | null;
11358
10447
  isSearchable: boolean;
11359
10448
  }[];
11360
- temporaryRecipients: {
11361
- email: string | null;
11362
- }[];
11363
10449
  } | null;
11364
10450
  sender: {
11365
10451
  id: string;
@@ -11390,6 +10476,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11390
10476
  replyTo: {
11391
10477
  id: string;
11392
10478
  } | null;
10479
+ temporaryRecipients: {
10480
+ email: string | null;
10481
+ }[];
11393
10482
  recipients: {
11394
10483
  id: string;
11395
10484
  lastname: string;
@@ -11397,9 +10486,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11397
10486
  avatar: string | null;
11398
10487
  isSearchable: boolean;
11399
10488
  }[];
11400
- temporaryRecipients: {
11401
- email: string | null;
11402
- }[];
11403
10489
  } | null;
11404
10490
  mailIntegrityDraft: {
11405
10491
  id: string;
@@ -11408,6 +10494,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11408
10494
  replyTo: {
11409
10495
  id: string;
11410
10496
  } | null;
10497
+ temporaryRecipients: {
10498
+ email: string | null;
10499
+ }[];
11411
10500
  recipients: {
11412
10501
  id: string;
11413
10502
  lastname: string;
@@ -11415,9 +10504,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11415
10504
  avatar: string | null;
11416
10505
  isSearchable: boolean;
11417
10506
  }[];
11418
- temporaryRecipients: {
11419
- email: string | null;
11420
- }[];
11421
10507
  } | null;
11422
10508
  sender: {
11423
10509
  id: string;
@@ -11586,6 +10672,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11586
10672
  replyTo: {
11587
10673
  id: string;
11588
10674
  } | null;
10675
+ temporaryRecipients: {
10676
+ email: string | null;
10677
+ }[];
11589
10678
  recipients: {
11590
10679
  id: string;
11591
10680
  lastname: string;
@@ -11593,9 +10682,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11593
10682
  avatar: string | null;
11594
10683
  isSearchable: boolean;
11595
10684
  }[];
11596
- temporaryRecipients: {
11597
- email: string | null;
11598
- }[];
11599
10685
  } | null;
11600
10686
  mailIntegrityDraft: {
11601
10687
  id: string;
@@ -11604,6 +10690,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11604
10690
  replyTo: {
11605
10691
  id: string;
11606
10692
  } | null;
10693
+ temporaryRecipients: {
10694
+ email: string | null;
10695
+ }[];
11607
10696
  recipients: {
11608
10697
  id: string;
11609
10698
  lastname: string;
@@ -11611,9 +10700,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11611
10700
  avatar: string | null;
11612
10701
  isSearchable: boolean;
11613
10702
  }[];
11614
- temporaryRecipients: {
11615
- email: string | null;
11616
- }[];
11617
10703
  } | null;
11618
10704
  sender: {
11619
10705
  id: string;
@@ -11644,6 +10730,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11644
10730
  replyTo: {
11645
10731
  id: string;
11646
10732
  } | null;
10733
+ temporaryRecipients: {
10734
+ email: string | null;
10735
+ }[];
11647
10736
  recipients: {
11648
10737
  id: string;
11649
10738
  lastname: string;
@@ -11651,9 +10740,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11651
10740
  avatar: string | null;
11652
10741
  isSearchable: boolean;
11653
10742
  }[];
11654
- temporaryRecipients: {
11655
- email: string | null;
11656
- }[];
11657
10743
  } | null;
11658
10744
  mailIntegrityDraft: {
11659
10745
  id: string;
@@ -11662,6 +10748,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11662
10748
  replyTo: {
11663
10749
  id: string;
11664
10750
  } | null;
10751
+ temporaryRecipients: {
10752
+ email: string | null;
10753
+ }[];
11665
10754
  recipients: {
11666
10755
  id: string;
11667
10756
  lastname: string;
@@ -11669,9 +10758,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11669
10758
  avatar: string | null;
11670
10759
  isSearchable: boolean;
11671
10760
  }[];
11672
- temporaryRecipients: {
11673
- email: string | null;
11674
- }[];
11675
10761
  } | null;
11676
10762
  sender: {
11677
10763
  id: string;
@@ -11710,8 +10796,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11710
10796
  }>;
11711
10797
  _meta: object;
11712
10798
  _ctx_out: {};
11713
- _input_in: {};
11714
- _input_out: {};
10799
+ _input_in: {} & {
10800
+ page?: number | undefined;
10801
+ perPage?: number | undefined;
10802
+ };
10803
+ _input_out: {} & {
10804
+ page: number;
10805
+ perPage: number;
10806
+ };
11715
10807
  _output_in: ({
11716
10808
  id: string;
11717
10809
  createdAt: Date;
@@ -11728,6 +10820,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11728
10820
  replyTo: {
11729
10821
  id: string;
11730
10822
  } | null;
10823
+ temporaryRecipients: {
10824
+ email: string | null;
10825
+ }[];
11731
10826
  recipients: {
11732
10827
  id: string;
11733
10828
  lastname: string;
@@ -11735,9 +10830,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11735
10830
  avatar: string | null;
11736
10831
  isSearchable: boolean;
11737
10832
  }[];
11738
- temporaryRecipients: {
11739
- email: string | null;
11740
- }[];
11741
10833
  } | null;
11742
10834
  mailIntegrityDraft: {
11743
10835
  id: string;
@@ -11746,6 +10838,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11746
10838
  replyTo: {
11747
10839
  id: string;
11748
10840
  } | null;
10841
+ temporaryRecipients: {
10842
+ email: string | null;
10843
+ }[];
11749
10844
  recipients: {
11750
10845
  id: string;
11751
10846
  lastname: string;
@@ -11753,9 +10848,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11753
10848
  avatar: string | null;
11754
10849
  isSearchable: boolean;
11755
10850
  }[];
11756
- temporaryRecipients: {
11757
- email: string | null;
11758
- }[];
11759
10851
  } | null;
11760
10852
  sender: {
11761
10853
  id: string;
@@ -11786,6 +10878,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11786
10878
  replyTo: {
11787
10879
  id: string;
11788
10880
  } | null;
10881
+ temporaryRecipients: {
10882
+ email: string | null;
10883
+ }[];
11789
10884
  recipients: {
11790
10885
  id: string;
11791
10886
  lastname: string;
@@ -11793,9 +10888,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11793
10888
  avatar: string | null;
11794
10889
  isSearchable: boolean;
11795
10890
  }[];
11796
- temporaryRecipients: {
11797
- email: string | null;
11798
- }[];
11799
10891
  } | null;
11800
10892
  mailIntegrityDraft: {
11801
10893
  id: string;
@@ -11804,6 +10896,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11804
10896
  replyTo: {
11805
10897
  id: string;
11806
10898
  } | null;
10899
+ temporaryRecipients: {
10900
+ email: string | null;
10901
+ }[];
11807
10902
  recipients: {
11808
10903
  id: string;
11809
10904
  lastname: string;
@@ -11811,9 +10906,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11811
10906
  avatar: string | null;
11812
10907
  isSearchable: boolean;
11813
10908
  }[];
11814
- temporaryRecipients: {
11815
- email: string | null;
11816
- }[];
11817
10909
  } | null;
11818
10910
  sender: {
11819
10911
  id: string;
@@ -11920,8 +11012,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11920
11012
  }>;
11921
11013
  _meta: object;
11922
11014
  _ctx_out: {};
11923
- _input_in: {};
11924
- _input_out: {};
11015
+ _input_in: {} & {
11016
+ page?: number | undefined;
11017
+ perPage?: number | undefined;
11018
+ };
11019
+ _input_out: {} & {
11020
+ page: number;
11021
+ perPage: number;
11022
+ };
11925
11023
  _output_in: ({
11926
11024
  id: string;
11927
11025
  createdAt: Date;
@@ -11938,6 +11036,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11938
11036
  replyTo: {
11939
11037
  id: string;
11940
11038
  } | null;
11039
+ temporaryRecipients: {
11040
+ email: string | null;
11041
+ }[];
11941
11042
  recipients: {
11942
11043
  id: string;
11943
11044
  lastname: string;
@@ -11945,9 +11046,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11945
11046
  avatar: string | null;
11946
11047
  isSearchable: boolean;
11947
11048
  }[];
11948
- temporaryRecipients: {
11949
- email: string | null;
11950
- }[];
11951
11049
  } | null;
11952
11050
  mailIntegrityDraft: {
11953
11051
  id: string;
@@ -11956,6 +11054,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11956
11054
  replyTo: {
11957
11055
  id: string;
11958
11056
  } | null;
11057
+ temporaryRecipients: {
11058
+ email: string | null;
11059
+ }[];
11959
11060
  recipients: {
11960
11061
  id: string;
11961
11062
  lastname: string;
@@ -11963,9 +11064,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11963
11064
  avatar: string | null;
11964
11065
  isSearchable: boolean;
11965
11066
  }[];
11966
- temporaryRecipients: {
11967
- email: string | null;
11968
- }[];
11969
11067
  } | null;
11970
11068
  sender: {
11971
11069
  id: string;
@@ -11996,6 +11094,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11996
11094
  replyTo: {
11997
11095
  id: string;
11998
11096
  } | null;
11097
+ temporaryRecipients: {
11098
+ email: string | null;
11099
+ }[];
11999
11100
  recipients: {
12000
11101
  id: string;
12001
11102
  lastname: string;
@@ -12003,9 +11104,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12003
11104
  avatar: string | null;
12004
11105
  isSearchable: boolean;
12005
11106
  }[];
12006
- temporaryRecipients: {
12007
- email: string | null;
12008
- }[];
12009
11107
  } | null;
12010
11108
  mailIntegrityDraft: {
12011
11109
  id: string;
@@ -12014,6 +11112,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12014
11112
  replyTo: {
12015
11113
  id: string;
12016
11114
  } | null;
11115
+ temporaryRecipients: {
11116
+ email: string | null;
11117
+ }[];
12017
11118
  recipients: {
12018
11119
  id: string;
12019
11120
  lastname: string;
@@ -12021,9 +11122,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12021
11122
  avatar: string | null;
12022
11123
  isSearchable: boolean;
12023
11124
  }[];
12024
- temporaryRecipients: {
12025
- email: string | null;
12026
- }[];
12027
11125
  } | null;
12028
11126
  sender: {
12029
11127
  id: string;
@@ -12173,6 +11271,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12173
11271
  _input_in: {
12174
11272
  id: string;
12175
11273
  customMessage: string | null;
11274
+ temporaryRecipients: string[];
12176
11275
  recipients: ({
12177
11276
  subject: string;
12178
11277
  body: string;
@@ -12184,11 +11283,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12184
11283
  dataId: string;
12185
11284
  }[];
12186
11285
  })[];
12187
- temporaryRecipients: string[];
12188
11286
  };
12189
11287
  _input_out: {
12190
11288
  id: string;
12191
11289
  customMessage: string | null;
11290
+ temporaryRecipients: string[];
12192
11291
  recipients: ({
12193
11292
  subject: string;
12194
11293
  body: string;
@@ -12200,7 +11299,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12200
11299
  dataId: string;
12201
11300
  }[];
12202
11301
  })[];
12203
- temporaryRecipients: string[];
12204
11302
  };
12205
11303
  _output_in: {
12206
11304
  isSent: boolean;
@@ -12290,8 +11388,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12290
11388
  }>;
12291
11389
  _meta: object;
12292
11390
  _ctx_out: {};
12293
- _input_in: {};
12294
- _input_out: {};
11391
+ _input_in: {} & {
11392
+ page?: number | undefined;
11393
+ perPage?: number | undefined;
11394
+ };
11395
+ _input_out: {} & {
11396
+ page: number;
11397
+ perPage: number;
11398
+ };
12295
11399
  _output_in: ({
12296
11400
  id: string;
12297
11401
  createdAt: Date;
@@ -12308,6 +11412,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12308
11412
  replyTo: {
12309
11413
  id: string;
12310
11414
  } | null;
11415
+ temporaryRecipients: {
11416
+ email: string | null;
11417
+ }[];
12311
11418
  recipients: {
12312
11419
  id: string;
12313
11420
  lastname: string;
@@ -12315,9 +11422,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12315
11422
  avatar: string | null;
12316
11423
  isSearchable: boolean;
12317
11424
  }[];
12318
- temporaryRecipients: {
12319
- email: string | null;
12320
- }[];
12321
11425
  } | null;
12322
11426
  mailIntegrityDraft: {
12323
11427
  id: string;
@@ -12326,6 +11430,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12326
11430
  replyTo: {
12327
11431
  id: string;
12328
11432
  } | null;
11433
+ temporaryRecipients: {
11434
+ email: string | null;
11435
+ }[];
12329
11436
  recipients: {
12330
11437
  id: string;
12331
11438
  lastname: string;
@@ -12333,9 +11440,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12333
11440
  avatar: string | null;
12334
11441
  isSearchable: boolean;
12335
11442
  }[];
12336
- temporaryRecipients: {
12337
- email: string | null;
12338
- }[];
12339
11443
  } | null;
12340
11444
  sender: {
12341
11445
  id: string;
@@ -12366,6 +11470,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12366
11470
  replyTo: {
12367
11471
  id: string;
12368
11472
  } | null;
11473
+ temporaryRecipients: {
11474
+ email: string | null;
11475
+ }[];
12369
11476
  recipients: {
12370
11477
  id: string;
12371
11478
  lastname: string;
@@ -12373,9 +11480,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12373
11480
  avatar: string | null;
12374
11481
  isSearchable: boolean;
12375
11482
  }[];
12376
- temporaryRecipients: {
12377
- email: string | null;
12378
- }[];
12379
11483
  } | null;
12380
11484
  mailIntegrityDraft: {
12381
11485
  id: string;
@@ -12384,6 +11488,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12384
11488
  replyTo: {
12385
11489
  id: string;
12386
11490
  } | null;
11491
+ temporaryRecipients: {
11492
+ email: string | null;
11493
+ }[];
12387
11494
  recipients: {
12388
11495
  id: string;
12389
11496
  lastname: string;
@@ -12391,9 +11498,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12391
11498
  avatar: string | null;
12392
11499
  isSearchable: boolean;
12393
11500
  }[];
12394
- temporaryRecipients: {
12395
- email: string | null;
12396
- }[];
12397
11501
  } | null;
12398
11502
  sender: {
12399
11503
  id: string;
@@ -12540,6 +11644,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12540
11644
  replyTo: {
12541
11645
  id: string;
12542
11646
  } | null;
11647
+ temporaryRecipients: {
11648
+ email: string | null;
11649
+ }[];
12543
11650
  recipients: {
12544
11651
  id: string;
12545
11652
  lastname: string;
@@ -12547,9 +11654,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12547
11654
  avatar: string | null;
12548
11655
  isSearchable: boolean;
12549
11656
  }[];
12550
- temporaryRecipients: {
12551
- email: string | null;
12552
- }[];
12553
11657
  } | null;
12554
11658
  mailIntegrityDraft: {
12555
11659
  id: string;
@@ -12558,6 +11662,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12558
11662
  replyTo: {
12559
11663
  id: string;
12560
11664
  } | null;
11665
+ temporaryRecipients: {
11666
+ email: string | null;
11667
+ }[];
12561
11668
  recipients: {
12562
11669
  id: string;
12563
11670
  lastname: string;
@@ -12565,9 +11672,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12565
11672
  avatar: string | null;
12566
11673
  isSearchable: boolean;
12567
11674
  }[];
12568
- temporaryRecipients: {
12569
- email: string | null;
12570
- }[];
12571
11675
  } | null;
12572
11676
  sender: {
12573
11677
  id: string;
@@ -12598,6 +11702,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12598
11702
  replyTo: {
12599
11703
  id: string;
12600
11704
  } | null;
11705
+ temporaryRecipients: {
11706
+ email: string | null;
11707
+ }[];
12601
11708
  recipients: {
12602
11709
  id: string;
12603
11710
  lastname: string;
@@ -12605,9 +11712,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12605
11712
  avatar: string | null;
12606
11713
  isSearchable: boolean;
12607
11714
  }[];
12608
- temporaryRecipients: {
12609
- email: string | null;
12610
- }[];
12611
11715
  } | null;
12612
11716
  mailIntegrityDraft: {
12613
11717
  id: string;
@@ -12616,6 +11720,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12616
11720
  replyTo: {
12617
11721
  id: string;
12618
11722
  } | null;
11723
+ temporaryRecipients: {
11724
+ email: string | null;
11725
+ }[];
12619
11726
  recipients: {
12620
11727
  id: string;
12621
11728
  lastname: string;
@@ -12623,9 +11730,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12623
11730
  avatar: string | null;
12624
11731
  isSearchable: boolean;
12625
11732
  }[];
12626
- temporaryRecipients: {
12627
- email: string | null;
12628
- }[];
12629
11733
  } | null;
12630
11734
  sender: {
12631
11735
  id: string;
@@ -12675,6 +11779,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12675
11779
  isSearchable: boolean;
12676
11780
  };
12677
11781
  date: Date;
11782
+ temporaryRecipients: {
11783
+ email: string | null;
11784
+ id: string;
11785
+ phone: string | null;
11786
+ }[];
12678
11787
  recipients: {
12679
11788
  id: string;
12680
11789
  lastname: string;
@@ -12682,11 +11791,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12682
11791
  avatar: string | null;
12683
11792
  isSearchable: boolean;
12684
11793
  }[];
12685
- temporaryRecipients: {
12686
- email: string | null;
12687
- id: string;
12688
- phone: string | null;
12689
- }[];
12690
11794
  attachmentsCount: number;
12691
11795
  }[];
12692
11796
  _output_out: {
@@ -12698,6 +11802,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12698
11802
  isSearchable: boolean;
12699
11803
  };
12700
11804
  date: Date;
11805
+ temporaryRecipients: {
11806
+ email: string | null;
11807
+ id: string;
11808
+ phone: string | null;
11809
+ }[];
12701
11810
  recipients: {
12702
11811
  id: string;
12703
11812
  lastname: string;
@@ -12705,11 +11814,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12705
11814
  avatar: string | null;
12706
11815
  isSearchable: boolean;
12707
11816
  }[];
12708
- temporaryRecipients: {
12709
- email: string | null;
12710
- id: string;
12711
- phone: string | null;
12712
- }[];
12713
11817
  attachmentsCount: number;
12714
11818
  }[];
12715
11819
  }, unknown>;