@secrecy/trpc-api-types 1.33.0-feat-mails-pagination.1 → 1.33.0-feat-other-s3-providers.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.cts +1417 -245
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -346,7 +346,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
346
346
  users: number;
347
347
  developers: number;
348
348
  hasDatabase: boolean;
349
- storageUsage: number;
349
+ storageUsage: {
350
+ count: bigint;
351
+ size: bigint;
352
+ details: ({
353
+ count: bigint;
354
+ id: string;
355
+ size: bigint;
356
+ mode: "standard" | "glacier";
357
+ provider: "scaleway" | "ovh";
358
+ protocol: "s3";
359
+ region: string;
360
+ } | {
361
+ count: bigint;
362
+ id: string;
363
+ size: bigint;
364
+ mode: "standard";
365
+ provider: "secrecy";
366
+ protocol: "mongo";
367
+ region: string;
368
+ })[];
369
+ };
350
370
  downloadBandwidthUsage: number;
351
371
  uploadBandwidthUsage: number;
352
372
  };
@@ -354,7 +374,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
354
374
  users: number;
355
375
  developers: number;
356
376
  hasDatabase: boolean;
357
- storageUsage: number;
377
+ storageUsage: {
378
+ count: bigint;
379
+ size: bigint;
380
+ details: ({
381
+ count: bigint;
382
+ id: string;
383
+ size: bigint;
384
+ mode: "standard" | "glacier";
385
+ provider: "scaleway" | "ovh";
386
+ protocol: "s3";
387
+ region: string;
388
+ } | {
389
+ count: bigint;
390
+ id: string;
391
+ size: bigint;
392
+ mode: "standard";
393
+ provider: "secrecy";
394
+ protocol: "mongo";
395
+ region: string;
396
+ })[];
397
+ };
358
398
  downloadBandwidthUsage: number;
359
399
  uploadBandwidthUsage: number;
360
400
  };
@@ -2189,44 +2229,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2189
2229
  sizeEncrypted: bigint;
2190
2230
  };
2191
2231
  } & {
2192
- current: {
2232
+ current: ({
2193
2233
  id: string;
2194
2234
  createdAt: Date;
2195
- storageType: "s3" | "cold" | "lite";
2196
2235
  size: bigint;
2197
2236
  md5: string;
2198
2237
  userAppUserId: string;
2199
2238
  userAppAppId: string;
2239
+ nextStorageId: string | null;
2200
2240
  sizeEncrypted: bigint | null;
2201
2241
  md5Encrypted: string | null;
2202
2242
  mime: string | null;
2203
2243
  ext: string | null;
2204
2244
  validatedAt: Date | null;
2205
2245
  restoreSince: Date | null;
2246
+ onTransferSince: Date | null;
2247
+ } & {
2248
+ storage: {
2249
+ id: string;
2250
+ provider: "scaleway" | "ovh";
2251
+ protocol: "s3";
2252
+ s3StorageOptions: {
2253
+ id: string;
2254
+ mode: "standard" | "glacier";
2255
+ region: string;
2256
+ } & {
2257
+ providerSettings: {
2258
+ id: string;
2259
+ features: ("versioning" | "edge")[];
2260
+ regions: string[];
2261
+ modes: ("standard" | "glacier")[];
2262
+ };
2263
+ };
2264
+ } | {
2265
+ id: string;
2266
+ provider: "secrecy";
2267
+ protocol: "mongo";
2268
+ mongoStorageOptions: {
2269
+ id: string;
2270
+ } & {
2271
+ providerSettings: {
2272
+ id: string;
2273
+ };
2274
+ };
2275
+ };
2206
2276
  access: {
2207
2277
  key: string | null;
2208
2278
  sharedByPubKey: string;
2209
2279
  };
2210
- } | null;
2211
- history: {
2280
+ }) | null;
2281
+ history: ({
2212
2282
  id: string;
2213
2283
  createdAt: Date;
2214
- storageType: "s3" | "cold" | "lite";
2215
2284
  size: bigint;
2216
2285
  md5: string;
2217
2286
  userAppUserId: string;
2218
2287
  userAppAppId: string;
2288
+ nextStorageId: string | null;
2219
2289
  sizeEncrypted: bigint | null;
2220
2290
  md5Encrypted: string | null;
2221
2291
  mime: string | null;
2222
2292
  ext: string | null;
2223
2293
  validatedAt: Date | null;
2224
2294
  restoreSince: Date | null;
2295
+ onTransferSince: Date | null;
2296
+ } & {
2297
+ storage: {
2298
+ id: string;
2299
+ provider: "scaleway" | "ovh";
2300
+ protocol: "s3";
2301
+ s3StorageOptions: {
2302
+ id: string;
2303
+ mode: "standard" | "glacier";
2304
+ region: string;
2305
+ } & {
2306
+ providerSettings: {
2307
+ id: string;
2308
+ features: ("versioning" | "edge")[];
2309
+ regions: string[];
2310
+ modes: ("standard" | "glacier")[];
2311
+ };
2312
+ };
2313
+ } | {
2314
+ id: string;
2315
+ provider: "secrecy";
2316
+ protocol: "mongo";
2317
+ mongoStorageOptions: {
2318
+ id: string;
2319
+ } & {
2320
+ providerSettings: {
2321
+ id: string;
2322
+ };
2323
+ };
2324
+ };
2225
2325
  access: {
2226
2326
  key: string | null;
2227
2327
  sharedByPubKey: string;
2228
2328
  };
2229
- }[];
2329
+ })[];
2230
2330
  parent: ({
2231
2331
  name: string;
2232
2332
  id: string;
@@ -2340,44 +2440,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2340
2440
  sizeEncrypted: bigint;
2341
2441
  };
2342
2442
  } & {
2343
- current: {
2443
+ current: ({
2344
2444
  id: string;
2345
2445
  createdAt: Date;
2346
- storageType: "s3" | "cold" | "lite";
2347
2446
  size: bigint;
2348
2447
  md5: string;
2349
2448
  userAppUserId: string;
2350
2449
  userAppAppId: string;
2450
+ nextStorageId: string | null;
2351
2451
  sizeEncrypted: bigint | null;
2352
2452
  md5Encrypted: string | null;
2353
2453
  mime: string | null;
2354
2454
  ext: string | null;
2355
2455
  validatedAt: Date | null;
2356
2456
  restoreSince: Date | null;
2457
+ onTransferSince: Date | null;
2458
+ } & {
2459
+ storage: {
2460
+ id: string;
2461
+ provider: "scaleway" | "ovh";
2462
+ protocol: "s3";
2463
+ s3StorageOptions: {
2464
+ id: string;
2465
+ mode: "standard" | "glacier";
2466
+ region: string;
2467
+ } & {
2468
+ providerSettings: {
2469
+ id: string;
2470
+ features: ("versioning" | "edge")[];
2471
+ regions: string[];
2472
+ modes: ("standard" | "glacier")[];
2473
+ };
2474
+ };
2475
+ } | {
2476
+ id: string;
2477
+ provider: "secrecy";
2478
+ protocol: "mongo";
2479
+ mongoStorageOptions: {
2480
+ id: string;
2481
+ } & {
2482
+ providerSettings: {
2483
+ id: string;
2484
+ };
2485
+ };
2486
+ };
2357
2487
  access: {
2358
2488
  key: string | null;
2359
2489
  sharedByPubKey: string;
2360
2490
  };
2361
- } | null;
2362
- history: {
2491
+ }) | null;
2492
+ history: ({
2363
2493
  id: string;
2364
2494
  createdAt: Date;
2365
- storageType: "s3" | "cold" | "lite";
2366
2495
  size: bigint;
2367
2496
  md5: string;
2368
2497
  userAppUserId: string;
2369
2498
  userAppAppId: string;
2499
+ nextStorageId: string | null;
2370
2500
  sizeEncrypted: bigint | null;
2371
2501
  md5Encrypted: string | null;
2372
2502
  mime: string | null;
2373
2503
  ext: string | null;
2374
2504
  validatedAt: Date | null;
2375
2505
  restoreSince: Date | null;
2506
+ onTransferSince: Date | null;
2507
+ } & {
2508
+ storage: {
2509
+ id: string;
2510
+ provider: "scaleway" | "ovh";
2511
+ protocol: "s3";
2512
+ s3StorageOptions: {
2513
+ id: string;
2514
+ mode: "standard" | "glacier";
2515
+ region: string;
2516
+ } & {
2517
+ providerSettings: {
2518
+ id: string;
2519
+ features: ("versioning" | "edge")[];
2520
+ regions: string[];
2521
+ modes: ("standard" | "glacier")[];
2522
+ };
2523
+ };
2524
+ } | {
2525
+ id: string;
2526
+ provider: "secrecy";
2527
+ protocol: "mongo";
2528
+ mongoStorageOptions: {
2529
+ id: string;
2530
+ } & {
2531
+ providerSettings: {
2532
+ id: string;
2533
+ };
2534
+ };
2535
+ };
2376
2536
  access: {
2377
2537
  key: string | null;
2378
2538
  sharedByPubKey: string;
2379
2539
  };
2380
- }[];
2540
+ })[];
2381
2541
  parent: ({
2382
2542
  name: string;
2383
2543
  id: string;
@@ -2529,17 +2689,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2529
2689
  _output_in: {
2530
2690
  id: string;
2531
2691
  createdAt: Date;
2532
- storageType: "s3" | "cold" | "lite";
2533
2692
  size: bigint;
2534
2693
  md5: string;
2535
2694
  userAppUserId: string;
2536
2695
  userAppAppId: string;
2696
+ nextStorageId: string | null;
2537
2697
  sizeEncrypted: bigint | null;
2538
2698
  md5Encrypted: string | null;
2539
2699
  mime: string | null;
2540
2700
  ext: string | null;
2541
2701
  validatedAt: Date | null;
2542
2702
  restoreSince: Date | null;
2703
+ onTransferSince: Date | null;
2704
+ } & {
2705
+ storage: {
2706
+ id: string;
2707
+ provider: "scaleway" | "ovh";
2708
+ protocol: "s3";
2709
+ s3StorageOptions: {
2710
+ id: string;
2711
+ mode: "standard" | "glacier";
2712
+ region: string;
2713
+ } & {
2714
+ providerSettings: {
2715
+ id: string;
2716
+ features: ("versioning" | "edge")[];
2717
+ regions: string[];
2718
+ modes: ("standard" | "glacier")[];
2719
+ };
2720
+ };
2721
+ } | {
2722
+ id: string;
2723
+ provider: "secrecy";
2724
+ protocol: "mongo";
2725
+ mongoStorageOptions: {
2726
+ id: string;
2727
+ } & {
2728
+ providerSettings: {
2729
+ id: string;
2730
+ };
2731
+ };
2732
+ };
2543
2733
  access: {
2544
2734
  key: string | null;
2545
2735
  sharedByPubKey: string;
@@ -2548,17 +2738,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2548
2738
  _output_out: {
2549
2739
  id: string;
2550
2740
  createdAt: Date;
2551
- storageType: "s3" | "cold" | "lite";
2552
2741
  size: bigint;
2553
2742
  md5: string;
2554
2743
  userAppUserId: string;
2555
2744
  userAppAppId: string;
2745
+ nextStorageId: string | null;
2556
2746
  sizeEncrypted: bigint | null;
2557
2747
  md5Encrypted: string | null;
2558
2748
  mime: string | null;
2559
2749
  ext: string | null;
2560
2750
  validatedAt: Date | null;
2561
2751
  restoreSince: Date | null;
2752
+ onTransferSince: Date | null;
2753
+ } & {
2754
+ storage: {
2755
+ id: string;
2756
+ provider: "scaleway" | "ovh";
2757
+ protocol: "s3";
2758
+ s3StorageOptions: {
2759
+ id: string;
2760
+ mode: "standard" | "glacier";
2761
+ region: string;
2762
+ } & {
2763
+ providerSettings: {
2764
+ id: string;
2765
+ features: ("versioning" | "edge")[];
2766
+ regions: string[];
2767
+ modes: ("standard" | "glacier")[];
2768
+ };
2769
+ };
2770
+ } | {
2771
+ id: string;
2772
+ provider: "secrecy";
2773
+ protocol: "mongo";
2774
+ mongoStorageOptions: {
2775
+ id: string;
2776
+ } & {
2777
+ providerSettings: {
2778
+ id: string;
2779
+ };
2780
+ };
2781
+ };
2562
2782
  access: {
2563
2783
  key: string | null;
2564
2784
  sharedByPubKey: string;
@@ -2598,7 +2818,34 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2598
2818
  id: string;
2599
2819
  type: "received_mail";
2600
2820
  key: string | null;
2601
- storageType: "s3" | "cold" | "lite";
2821
+ storage: {
2822
+ id: string;
2823
+ provider: "scaleway" | "ovh";
2824
+ protocol: "s3";
2825
+ s3StorageOptions: {
2826
+ id: string;
2827
+ mode: "standard" | "glacier";
2828
+ region: string;
2829
+ } & {
2830
+ providerSettings: {
2831
+ id: string;
2832
+ features: ("versioning" | "edge")[];
2833
+ regions: string[];
2834
+ modes: ("standard" | "glacier")[];
2835
+ };
2836
+ };
2837
+ } | {
2838
+ id: string;
2839
+ provider: "secrecy";
2840
+ protocol: "mongo";
2841
+ mongoStorageOptions: {
2842
+ id: string;
2843
+ } & {
2844
+ providerSettings: {
2845
+ id: string;
2846
+ };
2847
+ };
2848
+ };
2602
2849
  size: bigint;
2603
2850
  md5: string;
2604
2851
  sizeEncrypted: bigint | null;
@@ -2607,16 +2854,43 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2607
2854
  ext: string | null;
2608
2855
  senderPublicKey: string;
2609
2856
  maybeParts: {
2857
+ url: string;
2610
2858
  md5: string;
2611
2859
  order: number;
2612
- contentUrl: string;
2613
2860
  }[] | null;
2614
- maybeContent: Buffer | null;
2861
+ maybeBytes: Buffer | null;
2615
2862
  } | {
2616
2863
  id: string;
2617
2864
  type: "sent_mail";
2618
2865
  key: string | null;
2619
- storageType: "s3" | "cold" | "lite";
2866
+ storage: {
2867
+ id: string;
2868
+ provider: "scaleway" | "ovh";
2869
+ protocol: "s3";
2870
+ s3StorageOptions: {
2871
+ id: string;
2872
+ mode: "standard" | "glacier";
2873
+ region: string;
2874
+ } & {
2875
+ providerSettings: {
2876
+ id: string;
2877
+ features: ("versioning" | "edge")[];
2878
+ regions: string[];
2879
+ modes: ("standard" | "glacier")[];
2880
+ };
2881
+ };
2882
+ } | {
2883
+ id: string;
2884
+ provider: "secrecy";
2885
+ protocol: "mongo";
2886
+ mongoStorageOptions: {
2887
+ id: string;
2888
+ } & {
2889
+ providerSettings: {
2890
+ id: string;
2891
+ };
2892
+ };
2893
+ };
2620
2894
  size: bigint;
2621
2895
  md5: string;
2622
2896
  sizeEncrypted: bigint | null;
@@ -2624,16 +2898,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2624
2898
  mime: string | null;
2625
2899
  ext: string | null;
2626
2900
  maybeParts: {
2901
+ url: string;
2627
2902
  md5: string;
2628
2903
  order: number;
2629
- contentUrl: string;
2630
2904
  }[] | null;
2631
- maybeContent: Buffer | null;
2905
+ maybeBytes: Buffer | null;
2632
2906
  } | {
2633
2907
  id: string;
2634
- type: "cloud";
2908
+ type: "s3";
2635
2909
  key: string | null;
2636
- storageType: "s3" | "cold";
2910
+ storage: {
2911
+ id: string;
2912
+ provider: "scaleway" | "ovh";
2913
+ protocol: "s3";
2914
+ s3StorageOptions: {
2915
+ id: string;
2916
+ mode: "standard" | "glacier";
2917
+ region: string;
2918
+ } & {
2919
+ providerSettings: {
2920
+ id: string;
2921
+ features: ("versioning" | "edge")[];
2922
+ regions: string[];
2923
+ modes: ("standard" | "glacier")[];
2924
+ };
2925
+ };
2926
+ };
2637
2927
  size: bigint;
2638
2928
  md5: string;
2639
2929
  sizeEncrypted: bigint | null;
@@ -2641,30 +2931,68 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2641
2931
  mime: string | null;
2642
2932
  ext: string | null;
2643
2933
  parts: {
2934
+ url: string;
2644
2935
  md5: string;
2645
2936
  order: number;
2646
- contentUrl: string;
2647
2937
  }[];
2648
2938
  publicKey: string;
2649
2939
  } | {
2650
2940
  id: string;
2651
- type: "lite";
2941
+ type: "mongo";
2652
2942
  key: string | null;
2653
- storageType: "lite";
2943
+ storage: {
2944
+ id: string;
2945
+ provider: "secrecy";
2946
+ protocol: "mongo";
2947
+ mongoStorageOptions: {
2948
+ id: string;
2949
+ } & {
2950
+ providerSettings: {
2951
+ id: string;
2952
+ };
2953
+ };
2954
+ };
2654
2955
  size: bigint;
2655
2956
  md5: string;
2656
2957
  sizeEncrypted: bigint | null;
2657
2958
  md5Encrypted: string | null;
2658
2959
  mime: string | null;
2659
2960
  ext: string | null;
2660
- content: Buffer;
2661
2961
  publicKey: string;
2962
+ bytes: Buffer;
2662
2963
  };
2663
2964
  _output_out: {
2664
2965
  id: string;
2665
2966
  type: "received_mail";
2666
2967
  key: string | null;
2667
- storageType: "s3" | "cold" | "lite";
2968
+ storage: {
2969
+ id: string;
2970
+ provider: "scaleway" | "ovh";
2971
+ protocol: "s3";
2972
+ s3StorageOptions: {
2973
+ id: string;
2974
+ mode: "standard" | "glacier";
2975
+ region: string;
2976
+ } & {
2977
+ providerSettings: {
2978
+ id: string;
2979
+ features: ("versioning" | "edge")[];
2980
+ regions: string[];
2981
+ modes: ("standard" | "glacier")[];
2982
+ };
2983
+ };
2984
+ } | {
2985
+ id: string;
2986
+ provider: "secrecy";
2987
+ protocol: "mongo";
2988
+ mongoStorageOptions: {
2989
+ id: string;
2990
+ } & {
2991
+ providerSettings: {
2992
+ id: string;
2993
+ };
2994
+ };
2995
+ };
2668
2996
  size: bigint;
2669
2997
  md5: string;
2670
2998
  sizeEncrypted: bigint | null;
@@ -2673,16 +3001,43 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2673
3001
  ext: string | null;
2674
3002
  senderPublicKey: string;
2675
3003
  maybeParts: {
3004
+ url: string;
2676
3005
  md5: string;
2677
3006
  order: number;
2678
- contentUrl: string;
2679
3007
  }[] | null;
2680
- maybeContent: Buffer | null;
3008
+ maybeBytes: Buffer | null;
2681
3009
  } | {
2682
3010
  id: string;
2683
3011
  type: "sent_mail";
2684
3012
  key: string | null;
2685
- storageType: "s3" | "cold" | "lite";
3013
+ storage: {
3014
+ id: string;
3015
+ provider: "scaleway" | "ovh";
3016
+ protocol: "s3";
3017
+ s3StorageOptions: {
3018
+ id: string;
3019
+ mode: "standard" | "glacier";
3020
+ region: string;
3021
+ } & {
3022
+ providerSettings: {
3023
+ id: string;
3024
+ features: ("versioning" | "edge")[];
3025
+ regions: string[];
3026
+ modes: ("standard" | "glacier")[];
3027
+ };
3028
+ };
3029
+ } | {
3030
+ id: string;
3031
+ provider: "secrecy";
3032
+ protocol: "mongo";
3033
+ mongoStorageOptions: {
3034
+ id: string;
3035
+ } & {
3036
+ providerSettings: {
3037
+ id: string;
3038
+ };
3039
+ };
3040
+ };
2686
3041
  size: bigint;
2687
3042
  md5: string;
2688
3043
  sizeEncrypted: bigint | null;
@@ -2690,16 +3045,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2690
3045
  mime: string | null;
2691
3046
  ext: string | null;
2692
3047
  maybeParts: {
3048
+ url: string;
2693
3049
  md5: string;
2694
3050
  order: number;
2695
- contentUrl: string;
2696
3051
  }[] | null;
2697
- maybeContent: Buffer | null;
3052
+ maybeBytes: Buffer | null;
2698
3053
  } | {
2699
3054
  id: string;
2700
- type: "cloud";
3055
+ type: "s3";
2701
3056
  key: string | null;
2702
- storageType: "s3" | "cold";
3057
+ storage: {
3058
+ id: string;
3059
+ provider: "scaleway" | "ovh";
3060
+ protocol: "s3";
3061
+ s3StorageOptions: {
3062
+ id: string;
3063
+ mode: "standard" | "glacier";
3064
+ region: string;
3065
+ } & {
3066
+ providerSettings: {
3067
+ id: string;
3068
+ features: ("versioning" | "edge")[];
3069
+ regions: string[];
3070
+ modes: ("standard" | "glacier")[];
3071
+ };
3072
+ };
3073
+ };
2703
3074
  size: bigint;
2704
3075
  md5: string;
2705
3076
  sizeEncrypted: bigint | null;
@@ -2707,24 +3078,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2707
3078
  mime: string | null;
2708
3079
  ext: string | null;
2709
3080
  parts: {
3081
+ url: string;
2710
3082
  md5: string;
2711
3083
  order: number;
2712
- contentUrl: string;
2713
3084
  }[];
2714
3085
  publicKey: string;
2715
3086
  } | {
2716
3087
  id: string;
2717
- type: "lite";
3088
+ type: "mongo";
2718
3089
  key: string | null;
2719
- storageType: "lite";
3090
+ storage: {
3091
+ id: string;
3092
+ provider: "secrecy";
3093
+ protocol: "mongo";
3094
+ mongoStorageOptions: {
3095
+ id: string;
3096
+ } & {
3097
+ providerSettings: {
3098
+ id: string;
3099
+ };
3100
+ };
3101
+ };
2720
3102
  size: bigint;
2721
3103
  md5: string;
2722
3104
  sizeEncrypted: bigint | null;
2723
3105
  md5Encrypted: string | null;
2724
3106
  mime: string | null;
2725
3107
  ext: string | null;
2726
- content: Buffer;
2727
3108
  publicKey: string;
3109
+ bytes: Buffer;
2728
3110
  };
2729
3111
  }, unknown>;
2730
3112
  dataContentByIds: _trpc_server.BuildProcedure<"query", {
@@ -2760,7 +3142,34 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2760
3142
  id: string;
2761
3143
  type: "received_mail";
2762
3144
  key: string | null;
2763
- storageType: "s3" | "cold" | "lite";
3145
+ storage: {
3146
+ id: string;
3147
+ provider: "scaleway" | "ovh";
3148
+ protocol: "s3";
3149
+ s3StorageOptions: {
3150
+ id: string;
3151
+ mode: "standard" | "glacier";
3152
+ region: string;
3153
+ } & {
3154
+ providerSettings: {
3155
+ id: string;
3156
+ features: ("versioning" | "edge")[];
3157
+ regions: string[];
3158
+ modes: ("standard" | "glacier")[];
3159
+ };
3160
+ };
3161
+ } | {
3162
+ id: string;
3163
+ provider: "secrecy";
3164
+ protocol: "mongo";
3165
+ mongoStorageOptions: {
3166
+ id: string;
3167
+ } & {
3168
+ providerSettings: {
3169
+ id: string;
3170
+ };
3171
+ };
3172
+ };
2764
3173
  size: bigint;
2765
3174
  md5: string;
2766
3175
  sizeEncrypted: bigint | null;
@@ -2769,16 +3178,43 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2769
3178
  ext: string | null;
2770
3179
  senderPublicKey: string;
2771
3180
  maybeParts: {
3181
+ url: string;
2772
3182
  md5: string;
2773
3183
  order: number;
2774
- contentUrl: string;
2775
3184
  }[] | null;
2776
- maybeContent: Buffer | null;
3185
+ maybeBytes: Buffer | null;
2777
3186
  } | {
2778
3187
  id: string;
2779
3188
  type: "sent_mail";
2780
3189
  key: string | null;
2781
- storageType: "s3" | "cold" | "lite";
3190
+ storage: {
3191
+ id: string;
3192
+ provider: "scaleway" | "ovh";
3193
+ protocol: "s3";
3194
+ s3StorageOptions: {
3195
+ id: string;
3196
+ mode: "standard" | "glacier";
3197
+ region: string;
3198
+ } & {
3199
+ providerSettings: {
3200
+ id: string;
3201
+ features: ("versioning" | "edge")[];
3202
+ regions: string[];
3203
+ modes: ("standard" | "glacier")[];
3204
+ };
3205
+ };
3206
+ } | {
3207
+ id: string;
3208
+ provider: "secrecy";
3209
+ protocol: "mongo";
3210
+ mongoStorageOptions: {
3211
+ id: string;
3212
+ } & {
3213
+ providerSettings: {
3214
+ id: string;
3215
+ };
3216
+ };
3217
+ };
2782
3218
  size: bigint;
2783
3219
  md5: string;
2784
3220
  sizeEncrypted: bigint | null;
@@ -2786,16 +3222,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2786
3222
  mime: string | null;
2787
3223
  ext: string | null;
2788
3224
  maybeParts: {
3225
+ url: string;
2789
3226
  md5: string;
2790
3227
  order: number;
2791
- contentUrl: string;
2792
3228
  }[] | null;
2793
- maybeContent: Buffer | null;
3229
+ maybeBytes: Buffer | null;
2794
3230
  } | {
2795
3231
  id: string;
2796
- type: "cloud";
3232
+ type: "s3";
2797
3233
  key: string | null;
2798
- storageType: "s3" | "cold";
3234
+ storage: {
3235
+ id: string;
3236
+ provider: "scaleway" | "ovh";
3237
+ protocol: "s3";
3238
+ s3StorageOptions: {
3239
+ id: string;
3240
+ mode: "standard" | "glacier";
3241
+ region: string;
3242
+ } & {
3243
+ providerSettings: {
3244
+ id: string;
3245
+ features: ("versioning" | "edge")[];
3246
+ regions: string[];
3247
+ modes: ("standard" | "glacier")[];
3248
+ };
3249
+ };
3250
+ };
2799
3251
  size: bigint;
2800
3252
  md5: string;
2801
3253
  sizeEncrypted: bigint | null;
@@ -2803,30 +3255,68 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2803
3255
  mime: string | null;
2804
3256
  ext: string | null;
2805
3257
  parts: {
3258
+ url: string;
2806
3259
  md5: string;
2807
3260
  order: number;
2808
- contentUrl: string;
2809
3261
  }[];
2810
3262
  publicKey: string;
2811
3263
  } | {
2812
3264
  id: string;
2813
- type: "lite";
3265
+ type: "mongo";
2814
3266
  key: string | null;
2815
- storageType: "lite";
3267
+ storage: {
3268
+ id: string;
3269
+ provider: "secrecy";
3270
+ protocol: "mongo";
3271
+ mongoStorageOptions: {
3272
+ id: string;
3273
+ } & {
3274
+ providerSettings: {
3275
+ id: string;
3276
+ };
3277
+ };
3278
+ };
2816
3279
  size: bigint;
2817
3280
  md5: string;
2818
3281
  sizeEncrypted: bigint | null;
2819
3282
  md5Encrypted: string | null;
2820
3283
  mime: string | null;
2821
3284
  ext: string | null;
2822
- content: Buffer;
2823
3285
  publicKey: string;
3286
+ bytes: Buffer;
2824
3287
  })[];
2825
3288
  _output_out: ({
2826
3289
  id: string;
2827
3290
  type: "received_mail";
2828
3291
  key: string | null;
2829
- storageType: "s3" | "cold" | "lite";
3292
+ storage: {
3293
+ id: string;
3294
+ provider: "scaleway" | "ovh";
3295
+ protocol: "s3";
3296
+ s3StorageOptions: {
3297
+ id: string;
3298
+ mode: "standard" | "glacier";
3299
+ region: string;
3300
+ } & {
3301
+ providerSettings: {
3302
+ id: string;
3303
+ features: ("versioning" | "edge")[];
3304
+ regions: string[];
3305
+ modes: ("standard" | "glacier")[];
3306
+ };
3307
+ };
3308
+ } | {
3309
+ id: string;
3310
+ provider: "secrecy";
3311
+ protocol: "mongo";
3312
+ mongoStorageOptions: {
3313
+ id: string;
3314
+ } & {
3315
+ providerSettings: {
3316
+ id: string;
3317
+ };
3318
+ };
3319
+ };
2830
3320
  size: bigint;
2831
3321
  md5: string;
2832
3322
  sizeEncrypted: bigint | null;
@@ -2835,16 +3325,43 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2835
3325
  ext: string | null;
2836
3326
  senderPublicKey: string;
2837
3327
  maybeParts: {
3328
+ url: string;
2838
3329
  md5: string;
2839
3330
  order: number;
2840
- contentUrl: string;
2841
3331
  }[] | null;
2842
- maybeContent: Buffer | null;
3332
+ maybeBytes: Buffer | null;
2843
3333
  } | {
2844
3334
  id: string;
2845
3335
  type: "sent_mail";
2846
3336
  key: string | null;
2847
- storageType: "s3" | "cold" | "lite";
3337
+ storage: {
3338
+ id: string;
3339
+ provider: "scaleway" | "ovh";
3340
+ protocol: "s3";
3341
+ s3StorageOptions: {
3342
+ id: string;
3343
+ mode: "standard" | "glacier";
3344
+ region: string;
3345
+ } & {
3346
+ providerSettings: {
3347
+ id: string;
3348
+ features: ("versioning" | "edge")[];
3349
+ regions: string[];
3350
+ modes: ("standard" | "glacier")[];
3351
+ };
3352
+ };
3353
+ } | {
3354
+ id: string;
3355
+ provider: "secrecy";
3356
+ protocol: "mongo";
3357
+ mongoStorageOptions: {
3358
+ id: string;
3359
+ } & {
3360
+ providerSettings: {
3361
+ id: string;
3362
+ };
3363
+ };
3364
+ };
2848
3365
  size: bigint;
2849
3366
  md5: string;
2850
3367
  sizeEncrypted: bigint | null;
@@ -2852,16 +3369,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2852
3369
  mime: string | null;
2853
3370
  ext: string | null;
2854
3371
  maybeParts: {
3372
+ url: string;
2855
3373
  md5: string;
2856
3374
  order: number;
2857
- contentUrl: string;
2858
3375
  }[] | null;
2859
- maybeContent: Buffer | null;
3376
+ maybeBytes: Buffer | null;
2860
3377
  } | {
2861
3378
  id: string;
2862
- type: "cloud";
3379
+ type: "s3";
2863
3380
  key: string | null;
2864
- storageType: "s3" | "cold";
3381
+ storage: {
3382
+ id: string;
3383
+ provider: "scaleway" | "ovh";
3384
+ protocol: "s3";
3385
+ s3StorageOptions: {
3386
+ id: string;
3387
+ mode: "standard" | "glacier";
3388
+ region: string;
3389
+ } & {
3390
+ providerSettings: {
3391
+ id: string;
3392
+ features: ("versioning" | "edge")[];
3393
+ regions: string[];
3394
+ modes: ("standard" | "glacier")[];
3395
+ };
3396
+ };
3397
+ };
2865
3398
  size: bigint;
2866
3399
  md5: string;
2867
3400
  sizeEncrypted: bigint | null;
@@ -2869,24 +3402,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2869
3402
  mime: string | null;
2870
3403
  ext: string | null;
2871
3404
  parts: {
3405
+ url: string;
2872
3406
  md5: string;
2873
3407
  order: number;
2874
- contentUrl: string;
2875
3408
  }[];
2876
3409
  publicKey: string;
2877
3410
  } | {
2878
3411
  id: string;
2879
- type: "lite";
3412
+ type: "mongo";
2880
3413
  key: string | null;
2881
- storageType: "lite";
3414
+ storage: {
3415
+ id: string;
3416
+ provider: "secrecy";
3417
+ protocol: "mongo";
3418
+ mongoStorageOptions: {
3419
+ id: string;
3420
+ } & {
3421
+ providerSettings: {
3422
+ id: string;
3423
+ };
3424
+ };
3425
+ };
2882
3426
  size: bigint;
2883
3427
  md5: string;
2884
3428
  sizeEncrypted: bigint | null;
2885
3429
  md5Encrypted: string | null;
2886
3430
  mime: string | null;
2887
3431
  ext: string | null;
2888
- content: Buffer;
2889
3432
  publicKey: string;
3433
+ bytes: Buffer;
2890
3434
  })[];
2891
3435
  }, unknown>;
2892
3436
  dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2946,21 +3490,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2946
3490
  _ctx_out: {};
2947
3491
  _input_in: {
2948
3492
  dataId: string;
2949
- storageType: "s3" | "cold" | "lite";
3493
+ mode?: "standard" | "glacier" | undefined;
3494
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3495
+ protocol?: "s3" | "mongo" | undefined;
3496
+ region?: string | undefined;
2950
3497
  };
2951
3498
  _input_out: {
2952
3499
  dataId: string;
2953
- storageType: "s3" | "cold" | "lite";
3500
+ mode?: "standard" | "glacier" | undefined;
3501
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3502
+ protocol?: "s3" | "mongo" | undefined;
3503
+ region?: string | undefined;
2954
3504
  };
2955
3505
  _output_in: {
2956
3506
  isMoved: boolean;
2957
- fromType: "s3" | "cold" | "lite";
2958
- toType: "s3" | "cold" | "lite";
3507
+ fromProtocol?: "s3" | "mongo" | undefined;
3508
+ fromMode?: "standard" | "glacier" | undefined;
3509
+ fromRegion?: string | undefined;
3510
+ toProtocol?: "s3" | "mongo" | undefined;
3511
+ toMode?: "standard" | "glacier" | undefined;
3512
+ toRegion?: string | undefined;
2959
3513
  };
2960
3514
  _output_out: {
2961
3515
  isMoved: boolean;
2962
- fromType: "s3" | "cold" | "lite";
2963
- toType: "s3" | "cold" | "lite";
3516
+ fromProtocol?: "s3" | "mongo" | undefined;
3517
+ fromMode?: "standard" | "glacier" | undefined;
3518
+ fromRegion?: string | undefined;
3519
+ toProtocol?: "s3" | "mongo" | undefined;
3520
+ toMode?: "standard" | "glacier" | undefined;
3521
+ toRegion?: string | undefined;
2964
3522
  };
2965
3523
  }, unknown>;
2966
3524
  saveInCloud: _trpc_server.BuildProcedure<"mutation", {
@@ -3037,44 +3595,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3037
3595
  sizeEncrypted: bigint;
3038
3596
  };
3039
3597
  } & {
3040
- current: {
3598
+ current: ({
3041
3599
  id: string;
3042
3600
  createdAt: Date;
3043
- storageType: "s3" | "cold" | "lite";
3044
3601
  size: bigint;
3045
3602
  md5: string;
3046
3603
  userAppUserId: string;
3047
3604
  userAppAppId: string;
3605
+ nextStorageId: string | null;
3048
3606
  sizeEncrypted: bigint | null;
3049
3607
  md5Encrypted: string | null;
3050
3608
  mime: string | null;
3051
3609
  ext: string | null;
3052
3610
  validatedAt: Date | null;
3053
3611
  restoreSince: Date | null;
3612
+ onTransferSince: Date | null;
3613
+ } & {
3614
+ storage: {
3615
+ id: string;
3616
+ provider: "scaleway" | "ovh";
3617
+ protocol: "s3";
3618
+ s3StorageOptions: {
3619
+ id: string;
3620
+ mode: "standard" | "glacier";
3621
+ region: string;
3622
+ } & {
3623
+ providerSettings: {
3624
+ id: string;
3625
+ features: ("versioning" | "edge")[];
3626
+ regions: string[];
3627
+ modes: ("standard" | "glacier")[];
3628
+ };
3629
+ };
3630
+ } | {
3631
+ id: string;
3632
+ provider: "secrecy";
3633
+ protocol: "mongo";
3634
+ mongoStorageOptions: {
3635
+ id: string;
3636
+ } & {
3637
+ providerSettings: {
3638
+ id: string;
3639
+ };
3640
+ };
3641
+ };
3054
3642
  access: {
3055
3643
  key: string | null;
3056
3644
  sharedByPubKey: string;
3057
3645
  };
3058
- } | null;
3059
- history: {
3646
+ }) | null;
3647
+ history: ({
3060
3648
  id: string;
3061
3649
  createdAt: Date;
3062
- storageType: "s3" | "cold" | "lite";
3063
3650
  size: bigint;
3064
3651
  md5: string;
3065
3652
  userAppUserId: string;
3066
3653
  userAppAppId: string;
3654
+ nextStorageId: string | null;
3067
3655
  sizeEncrypted: bigint | null;
3068
3656
  md5Encrypted: string | null;
3069
3657
  mime: string | null;
3070
3658
  ext: string | null;
3071
3659
  validatedAt: Date | null;
3072
3660
  restoreSince: Date | null;
3661
+ onTransferSince: Date | null;
3662
+ } & {
3663
+ storage: {
3664
+ id: string;
3665
+ provider: "scaleway" | "ovh";
3666
+ protocol: "s3";
3667
+ s3StorageOptions: {
3668
+ id: string;
3669
+ mode: "standard" | "glacier";
3670
+ region: string;
3671
+ } & {
3672
+ providerSettings: {
3673
+ id: string;
3674
+ features: ("versioning" | "edge")[];
3675
+ regions: string[];
3676
+ modes: ("standard" | "glacier")[];
3677
+ };
3678
+ };
3679
+ } | {
3680
+ id: string;
3681
+ provider: "secrecy";
3682
+ protocol: "mongo";
3683
+ mongoStorageOptions: {
3684
+ id: string;
3685
+ } & {
3686
+ providerSettings: {
3687
+ id: string;
3688
+ };
3689
+ };
3690
+ };
3073
3691
  access: {
3074
3692
  key: string | null;
3075
3693
  sharedByPubKey: string;
3076
3694
  };
3077
- }[];
3695
+ })[];
3078
3696
  parent: ({
3079
3697
  name: string;
3080
3698
  id: string;
@@ -3188,44 +3806,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3188
3806
  sizeEncrypted: bigint;
3189
3807
  };
3190
3808
  } & {
3191
- current: {
3809
+ current: ({
3192
3810
  id: string;
3193
3811
  createdAt: Date;
3194
- storageType: "s3" | "cold" | "lite";
3195
3812
  size: bigint;
3196
3813
  md5: string;
3197
3814
  userAppUserId: string;
3198
3815
  userAppAppId: string;
3816
+ nextStorageId: string | null;
3199
3817
  sizeEncrypted: bigint | null;
3200
3818
  md5Encrypted: string | null;
3201
3819
  mime: string | null;
3202
3820
  ext: string | null;
3203
3821
  validatedAt: Date | null;
3204
3822
  restoreSince: Date | null;
3823
+ onTransferSince: Date | null;
3824
+ } & {
3825
+ storage: {
3826
+ id: string;
3827
+ provider: "scaleway" | "ovh";
3828
+ protocol: "s3";
3829
+ s3StorageOptions: {
3830
+ id: string;
3831
+ mode: "standard" | "glacier";
3832
+ region: string;
3833
+ } & {
3834
+ providerSettings: {
3835
+ id: string;
3836
+ features: ("versioning" | "edge")[];
3837
+ regions: string[];
3838
+ modes: ("standard" | "glacier")[];
3839
+ };
3840
+ };
3841
+ } | {
3842
+ id: string;
3843
+ provider: "secrecy";
3844
+ protocol: "mongo";
3845
+ mongoStorageOptions: {
3846
+ id: string;
3847
+ } & {
3848
+ providerSettings: {
3849
+ id: string;
3850
+ };
3851
+ };
3852
+ };
3205
3853
  access: {
3206
3854
  key: string | null;
3207
3855
  sharedByPubKey: string;
3208
3856
  };
3209
- } | null;
3210
- history: {
3857
+ }) | null;
3858
+ history: ({
3211
3859
  id: string;
3212
3860
  createdAt: Date;
3213
- storageType: "s3" | "cold" | "lite";
3214
3861
  size: bigint;
3215
3862
  md5: string;
3216
3863
  userAppUserId: string;
3217
3864
  userAppAppId: string;
3865
+ nextStorageId: string | null;
3218
3866
  sizeEncrypted: bigint | null;
3219
3867
  md5Encrypted: string | null;
3220
3868
  mime: string | null;
3221
3869
  ext: string | null;
3222
3870
  validatedAt: Date | null;
3223
3871
  restoreSince: Date | null;
3872
+ onTransferSince: Date | null;
3873
+ } & {
3874
+ storage: {
3875
+ id: string;
3876
+ provider: "scaleway" | "ovh";
3877
+ protocol: "s3";
3878
+ s3StorageOptions: {
3879
+ id: string;
3880
+ mode: "standard" | "glacier";
3881
+ region: string;
3882
+ } & {
3883
+ providerSettings: {
3884
+ id: string;
3885
+ features: ("versioning" | "edge")[];
3886
+ regions: string[];
3887
+ modes: ("standard" | "glacier")[];
3888
+ };
3889
+ };
3890
+ } | {
3891
+ id: string;
3892
+ provider: "secrecy";
3893
+ protocol: "mongo";
3894
+ mongoStorageOptions: {
3895
+ id: string;
3896
+ } & {
3897
+ providerSettings: {
3898
+ id: string;
3899
+ };
3900
+ };
3901
+ };
3224
3902
  access: {
3225
3903
  key: string | null;
3226
3904
  sharedByPubKey: string;
3227
3905
  };
3228
- }[];
3906
+ })[];
3229
3907
  parent: ({
3230
3908
  name: string;
3231
3909
  id: string;
@@ -3396,8 +4074,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3396
4074
  history: {
3397
4075
  createdAt: Date;
3398
4076
  dataId: string;
3399
- storageType: "s3" | "cold" | "lite";
3400
4077
  size: bigint;
4078
+ storageType: "s3" | "mongo";
3401
4079
  }[];
3402
4080
  access: {
3403
4081
  appId: string;
@@ -3437,8 +4115,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3437
4115
  history: {
3438
4116
  createdAt: Date;
3439
4117
  dataId: string;
3440
- storageType: "s3" | "cold" | "lite";
3441
4118
  size: bigint;
4119
+ storageType: "s3" | "mongo";
3442
4120
  }[];
3443
4121
  access: {
3444
4122
  appId: string;
@@ -3581,12 +4259,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3581
4259
  md5: string;
3582
4260
  sizeEncrypted: bigint;
3583
4261
  md5Encrypted: string;
4262
+ mode?: "standard" | "glacier" | undefined;
4263
+ provider?: "scaleway" | "ovh" | undefined;
4264
+ region?: string | undefined;
3584
4265
  mime?: string | undefined;
3585
4266
  ext?: string | undefined;
3586
4267
  } | {
3587
4268
  type: "unencrypted";
3588
4269
  size: bigint;
3589
4270
  md5: string;
4271
+ mode?: "standard" | "glacier" | undefined;
4272
+ provider?: "scaleway" | "ovh" | undefined;
4273
+ region?: string | undefined;
3590
4274
  mime?: string | undefined;
3591
4275
  ext?: string | undefined;
3592
4276
  };
@@ -3594,15 +4278,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3594
4278
  type: "encrypted";
3595
4279
  key: string;
3596
4280
  size: bigint;
4281
+ mode: "standard" | "glacier";
3597
4282
  md5: string;
4283
+ provider: "scaleway" | "ovh";
3598
4284
  sizeEncrypted: bigint;
3599
4285
  md5Encrypted: string;
4286
+ region?: string | undefined;
3600
4287
  mime?: string | undefined;
3601
4288
  ext?: string | undefined;
3602
4289
  } | {
3603
4290
  type: "unencrypted";
3604
4291
  size: bigint;
4292
+ mode: "standard" | "glacier";
3605
4293
  md5: string;
4294
+ provider: "scaleway" | "ovh";
4295
+ region?: string | undefined;
3606
4296
  mime?: string | undefined;
3607
4297
  ext?: string | undefined;
3608
4298
  };
@@ -3665,12 +4355,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3665
4355
  md5: string;
3666
4356
  sizeEncrypted: bigint;
3667
4357
  md5Encrypted: string;
4358
+ mode?: "standard" | "glacier" | undefined;
4359
+ provider?: "scaleway" | "ovh" | undefined;
4360
+ region?: string | undefined;
3668
4361
  mime?: string | undefined;
3669
4362
  ext?: string | undefined;
3670
4363
  } | {
3671
4364
  type: "unencrypted";
3672
4365
  size: bigint;
3673
4366
  md5: string;
4367
+ mode?: "standard" | "glacier" | undefined;
4368
+ provider?: "scaleway" | "ovh" | undefined;
4369
+ region?: string | undefined;
3674
4370
  mime?: string | undefined;
3675
4371
  ext?: string | undefined;
3676
4372
  };
@@ -3678,15 +4374,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3678
4374
  type: "encrypted";
3679
4375
  key: string;
3680
4376
  size: bigint;
4377
+ mode: "standard" | "glacier";
3681
4378
  md5: string;
4379
+ provider: "scaleway" | "ovh";
3682
4380
  sizeEncrypted: bigint;
3683
4381
  md5Encrypted: string;
4382
+ region?: string | undefined;
3684
4383
  mime?: string | undefined;
3685
4384
  ext?: string | undefined;
3686
4385
  } | {
3687
4386
  type: "unencrypted";
3688
4387
  size: bigint;
4388
+ mode: "standard" | "glacier";
3689
4389
  md5: string;
4390
+ provider: "scaleway" | "ovh";
4391
+ region?: string | undefined;
3690
4392
  mime?: string | undefined;
3691
4393
  ext?: string | undefined;
3692
4394
  };
@@ -3719,7 +4421,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3719
4421
  partSize: bigint;
3720
4422
  };
3721
4423
  }, unknown>;
3722
- uploadLiteData: _trpc_server.BuildProcedure<"mutation", {
4424
+ uploadMongoData: _trpc_server.BuildProcedure<"mutation", {
3723
4425
  _config: _trpc_server.RootConfig<{
3724
4426
  ctx: {};
3725
4427
  meta: object;
@@ -3749,14 +4451,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3749
4451
  md5: string;
3750
4452
  sizeEncrypted: bigint;
3751
4453
  md5Encrypted: string;
3752
- content: Buffer;
4454
+ bytes: Buffer;
3753
4455
  mime?: string | undefined;
3754
4456
  ext?: string | undefined;
3755
4457
  } | {
3756
4458
  type: "unencrypted";
3757
4459
  size: bigint;
3758
4460
  md5: string;
3759
- content: Buffer;
4461
+ bytes: Buffer;
3760
4462
  mime?: string | undefined;
3761
4463
  ext?: string | undefined;
3762
4464
  };
@@ -3767,14 +4469,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3767
4469
  md5: string;
3768
4470
  sizeEncrypted: bigint;
3769
4471
  md5Encrypted: string;
3770
- content: Buffer;
4472
+ bytes: Buffer;
3771
4473
  mime?: string | undefined;
3772
4474
  ext?: string | undefined;
3773
4475
  } | {
3774
4476
  type: "unencrypted";
3775
4477
  size: bigint;
3776
4478
  md5: string;
3777
- content: Buffer;
4479
+ bytes: Buffer;
3778
4480
  mime?: string | undefined;
3779
4481
  ext?: string | undefined;
3780
4482
  };
@@ -3835,6 +4537,134 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3835
4537
  isReported: boolean;
3836
4538
  };
3837
4539
  }, unknown>;
4540
+ dataStorage: _trpc_server.BuildProcedure<"query", {
4541
+ _config: _trpc_server.RootConfig<{
4542
+ ctx: {};
4543
+ meta: object;
4544
+ errorShape: {
4545
+ message: string;
4546
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4547
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4548
+ } | {
4549
+ data: {
4550
+ zodError: zod.typeToFlattenedError<any, string> | null;
4551
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4552
+ httpStatus: number;
4553
+ path?: string;
4554
+ stack?: string;
4555
+ };
4556
+ message: string;
4557
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4558
+ };
4559
+ transformer: typeof superjson.default;
4560
+ }>;
4561
+ _meta: object;
4562
+ _ctx_out: {};
4563
+ _input_in: {
4564
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4565
+ protocol?: "s3" | "mongo" | undefined;
4566
+ };
4567
+ _input_out: {
4568
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4569
+ protocol?: "s3" | "mongo" | undefined;
4570
+ };
4571
+ _output_in: {
4572
+ id: string;
4573
+ provider: "scaleway" | "secrecy" | "ovh";
4574
+ protocol: "s3" | "mongo";
4575
+ s3StorageOptionsId: string | null;
4576
+ mongoStorageOptionsId: string | null;
4577
+ }[];
4578
+ _output_out: {
4579
+ id: string;
4580
+ provider: "scaleway" | "secrecy" | "ovh";
4581
+ protocol: "s3" | "mongo";
4582
+ s3StorageOptionsId: string | null;
4583
+ mongoStorageOptionsId: string | null;
4584
+ }[];
4585
+ }, unknown>;
4586
+ dataStorageMongoSettings: _trpc_server.BuildProcedure<"query", {
4587
+ _config: _trpc_server.RootConfig<{
4588
+ ctx: {};
4589
+ meta: object;
4590
+ errorShape: {
4591
+ message: string;
4592
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4593
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4594
+ } | {
4595
+ data: {
4596
+ zodError: zod.typeToFlattenedError<any, string> | null;
4597
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4598
+ httpStatus: number;
4599
+ path?: string;
4600
+ stack?: string;
4601
+ };
4602
+ message: string;
4603
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4604
+ };
4605
+ transformer: typeof superjson.default;
4606
+ }>;
4607
+ _meta: object;
4608
+ _ctx_out: {};
4609
+ _input_in: {
4610
+ id: string;
4611
+ };
4612
+ _input_out: {
4613
+ id: string;
4614
+ };
4615
+ _output_in: {
4616
+ id: string;
4617
+ regions: string[];
4618
+ modes: "standard"[];
4619
+ };
4620
+ _output_out: {
4621
+ id: string;
4622
+ regions: string[];
4623
+ modes: "standard"[];
4624
+ };
4625
+ }, unknown>;
4626
+ dataStorageS3Settings: _trpc_server.BuildProcedure<"query", {
4627
+ _config: _trpc_server.RootConfig<{
4628
+ ctx: {};
4629
+ meta: object;
4630
+ errorShape: {
4631
+ message: string;
4632
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4633
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4634
+ } | {
4635
+ data: {
4636
+ zodError: zod.typeToFlattenedError<any, string> | null;
4637
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4638
+ httpStatus: number;
4639
+ path?: string;
4640
+ stack?: string;
4641
+ };
4642
+ message: string;
4643
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4644
+ };
4645
+ transformer: typeof superjson.default;
4646
+ }>;
4647
+ _meta: object;
4648
+ _ctx_out: {};
4649
+ _input_in: {
4650
+ id: string;
4651
+ };
4652
+ _input_out: {
4653
+ id: string;
4654
+ };
4655
+ _output_in: {
4656
+ id: string;
4657
+ features: ("versioning" | "edge")[];
4658
+ regions: string[];
4659
+ modes: ("standard" | "glacier")[];
4660
+ };
4661
+ _output_out: {
4662
+ id: string;
4663
+ features: ("versioning" | "edge")[];
4664
+ regions: string[];
4665
+ modes: ("standard" | "glacier")[];
4666
+ };
4667
+ }, unknown>;
3838
4668
  dataLink: _trpc_server.BuildProcedure<"query", {
3839
4669
  _config: _trpc_server.RootConfig<{
3840
4670
  ctx: {};
@@ -4141,44 +4971,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4141
4971
  sizeEncrypted: bigint;
4142
4972
  };
4143
4973
  } & {
4144
- current: {
4974
+ current: ({
4145
4975
  id: string;
4146
4976
  createdAt: Date;
4147
- storageType: "s3" | "cold" | "lite";
4148
4977
  size: bigint;
4149
4978
  md5: string;
4150
4979
  userAppUserId: string;
4151
4980
  userAppAppId: string;
4981
+ nextStorageId: string | null;
4152
4982
  sizeEncrypted: bigint | null;
4153
4983
  md5Encrypted: string | null;
4154
4984
  mime: string | null;
4155
4985
  ext: string | null;
4156
4986
  validatedAt: Date | null;
4157
4987
  restoreSince: Date | null;
4988
+ onTransferSince: Date | null;
4989
+ } & {
4990
+ storage: {
4991
+ id: string;
4992
+ provider: "scaleway" | "ovh";
4993
+ protocol: "s3";
4994
+ s3StorageOptions: {
4995
+ id: string;
4996
+ mode: "standard" | "glacier";
4997
+ region: string;
4998
+ } & {
4999
+ providerSettings: {
5000
+ id: string;
5001
+ features: ("versioning" | "edge")[];
5002
+ regions: string[];
5003
+ modes: ("standard" | "glacier")[];
5004
+ };
5005
+ };
5006
+ } | {
5007
+ id: string;
5008
+ provider: "secrecy";
5009
+ protocol: "mongo";
5010
+ mongoStorageOptions: {
5011
+ id: string;
5012
+ } & {
5013
+ providerSettings: {
5014
+ id: string;
5015
+ };
5016
+ };
5017
+ };
4158
5018
  access: {
4159
5019
  key: string | null;
4160
5020
  sharedByPubKey: string;
4161
5021
  };
4162
- } | null;
4163
- history: {
5022
+ }) | null;
5023
+ history: ({
4164
5024
  id: string;
4165
5025
  createdAt: Date;
4166
- storageType: "s3" | "cold" | "lite";
4167
5026
  size: bigint;
4168
5027
  md5: string;
4169
5028
  userAppUserId: string;
4170
5029
  userAppAppId: string;
5030
+ nextStorageId: string | null;
4171
5031
  sizeEncrypted: bigint | null;
4172
5032
  md5Encrypted: string | null;
4173
5033
  mime: string | null;
4174
5034
  ext: string | null;
4175
5035
  validatedAt: Date | null;
4176
5036
  restoreSince: Date | null;
5037
+ onTransferSince: Date | null;
5038
+ } & {
5039
+ storage: {
5040
+ id: string;
5041
+ provider: "scaleway" | "ovh";
5042
+ protocol: "s3";
5043
+ s3StorageOptions: {
5044
+ id: string;
5045
+ mode: "standard" | "glacier";
5046
+ region: string;
5047
+ } & {
5048
+ providerSettings: {
5049
+ id: string;
5050
+ features: ("versioning" | "edge")[];
5051
+ regions: string[];
5052
+ modes: ("standard" | "glacier")[];
5053
+ };
5054
+ };
5055
+ } | {
5056
+ id: string;
5057
+ provider: "secrecy";
5058
+ protocol: "mongo";
5059
+ mongoStorageOptions: {
5060
+ id: string;
5061
+ } & {
5062
+ providerSettings: {
5063
+ id: string;
5064
+ };
5065
+ };
5066
+ };
4177
5067
  access: {
4178
5068
  key: string | null;
4179
5069
  sharedByPubKey: string;
4180
5070
  };
4181
- }[];
5071
+ })[];
4182
5072
  parent: ({
4183
5073
  name: string;
4184
5074
  id: string;
@@ -4292,44 +5182,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4292
5182
  sizeEncrypted: bigint;
4293
5183
  };
4294
5184
  } & {
4295
- current: {
5185
+ current: ({
4296
5186
  id: string;
4297
5187
  createdAt: Date;
4298
- storageType: "s3" | "cold" | "lite";
4299
5188
  size: bigint;
4300
5189
  md5: string;
4301
5190
  userAppUserId: string;
4302
5191
  userAppAppId: string;
5192
+ nextStorageId: string | null;
4303
5193
  sizeEncrypted: bigint | null;
4304
5194
  md5Encrypted: string | null;
4305
5195
  mime: string | null;
4306
5196
  ext: string | null;
4307
5197
  validatedAt: Date | null;
4308
5198
  restoreSince: Date | null;
5199
+ onTransferSince: Date | null;
5200
+ } & {
5201
+ storage: {
5202
+ id: string;
5203
+ provider: "scaleway" | "ovh";
5204
+ protocol: "s3";
5205
+ s3StorageOptions: {
5206
+ id: string;
5207
+ mode: "standard" | "glacier";
5208
+ region: string;
5209
+ } & {
5210
+ providerSettings: {
5211
+ id: string;
5212
+ features: ("versioning" | "edge")[];
5213
+ regions: string[];
5214
+ modes: ("standard" | "glacier")[];
5215
+ };
5216
+ };
5217
+ } | {
5218
+ id: string;
5219
+ provider: "secrecy";
5220
+ protocol: "mongo";
5221
+ mongoStorageOptions: {
5222
+ id: string;
5223
+ } & {
5224
+ providerSettings: {
5225
+ id: string;
5226
+ };
5227
+ };
5228
+ };
4309
5229
  access: {
4310
5230
  key: string | null;
4311
5231
  sharedByPubKey: string;
4312
5232
  };
4313
- } | null;
4314
- history: {
5233
+ }) | null;
5234
+ history: ({
4315
5235
  id: string;
4316
5236
  createdAt: Date;
4317
- storageType: "s3" | "cold" | "lite";
4318
5237
  size: bigint;
4319
5238
  md5: string;
4320
5239
  userAppUserId: string;
4321
5240
  userAppAppId: string;
5241
+ nextStorageId: string | null;
4322
5242
  sizeEncrypted: bigint | null;
4323
5243
  md5Encrypted: string | null;
4324
5244
  mime: string | null;
4325
5245
  ext: string | null;
4326
5246
  validatedAt: Date | null;
4327
5247
  restoreSince: Date | null;
5248
+ onTransferSince: Date | null;
5249
+ } & {
5250
+ storage: {
5251
+ id: string;
5252
+ provider: "scaleway" | "ovh";
5253
+ protocol: "s3";
5254
+ s3StorageOptions: {
5255
+ id: string;
5256
+ mode: "standard" | "glacier";
5257
+ region: string;
5258
+ } & {
5259
+ providerSettings: {
5260
+ id: string;
5261
+ features: ("versioning" | "edge")[];
5262
+ regions: string[];
5263
+ modes: ("standard" | "glacier")[];
5264
+ };
5265
+ };
5266
+ } | {
5267
+ id: string;
5268
+ provider: "secrecy";
5269
+ protocol: "mongo";
5270
+ mongoStorageOptions: {
5271
+ id: string;
5272
+ } & {
5273
+ providerSettings: {
5274
+ id: string;
5275
+ };
5276
+ };
5277
+ };
4328
5278
  access: {
4329
5279
  key: string | null;
4330
5280
  sharedByPubKey: string;
4331
5281
  };
4332
- }[];
5282
+ })[];
4333
5283
  parent: ({
4334
5284
  name: string;
4335
5285
  id: string;
@@ -4939,44 +5889,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4939
5889
  sizeEncrypted: bigint;
4940
5890
  };
4941
5891
  } & {
4942
- current: {
5892
+ current: ({
4943
5893
  id: string;
4944
5894
  createdAt: Date;
4945
- storageType: "s3" | "cold" | "lite";
4946
5895
  size: bigint;
4947
5896
  md5: string;
4948
5897
  userAppUserId: string;
4949
5898
  userAppAppId: string;
5899
+ nextStorageId: string | null;
4950
5900
  sizeEncrypted: bigint | null;
4951
5901
  md5Encrypted: string | null;
4952
5902
  mime: string | null;
4953
5903
  ext: string | null;
4954
5904
  validatedAt: Date | null;
4955
5905
  restoreSince: Date | null;
5906
+ onTransferSince: Date | null;
5907
+ } & {
5908
+ storage: {
5909
+ id: string;
5910
+ provider: "scaleway" | "ovh";
5911
+ protocol: "s3";
5912
+ s3StorageOptions: {
5913
+ id: string;
5914
+ mode: "standard" | "glacier";
5915
+ region: string;
5916
+ } & {
5917
+ providerSettings: {
5918
+ id: string;
5919
+ features: ("versioning" | "edge")[];
5920
+ regions: string[];
5921
+ modes: ("standard" | "glacier")[];
5922
+ };
5923
+ };
5924
+ } | {
5925
+ id: string;
5926
+ provider: "secrecy";
5927
+ protocol: "mongo";
5928
+ mongoStorageOptions: {
5929
+ id: string;
5930
+ } & {
5931
+ providerSettings: {
5932
+ id: string;
5933
+ };
5934
+ };
5935
+ };
4956
5936
  access: {
4957
5937
  key: string | null;
4958
5938
  sharedByPubKey: string;
4959
5939
  };
4960
- } | null;
4961
- history: {
5940
+ }) | null;
5941
+ history: ({
4962
5942
  id: string;
4963
5943
  createdAt: Date;
4964
- storageType: "s3" | "cold" | "lite";
4965
5944
  size: bigint;
4966
5945
  md5: string;
4967
5946
  userAppUserId: string;
4968
5947
  userAppAppId: string;
5948
+ nextStorageId: string | null;
4969
5949
  sizeEncrypted: bigint | null;
4970
5950
  md5Encrypted: string | null;
4971
5951
  mime: string | null;
4972
5952
  ext: string | null;
4973
5953
  validatedAt: Date | null;
4974
5954
  restoreSince: Date | null;
5955
+ onTransferSince: Date | null;
5956
+ } & {
5957
+ storage: {
5958
+ id: string;
5959
+ provider: "scaleway" | "ovh";
5960
+ protocol: "s3";
5961
+ s3StorageOptions: {
5962
+ id: string;
5963
+ mode: "standard" | "glacier";
5964
+ region: string;
5965
+ } & {
5966
+ providerSettings: {
5967
+ id: string;
5968
+ features: ("versioning" | "edge")[];
5969
+ regions: string[];
5970
+ modes: ("standard" | "glacier")[];
5971
+ };
5972
+ };
5973
+ } | {
5974
+ id: string;
5975
+ provider: "secrecy";
5976
+ protocol: "mongo";
5977
+ mongoStorageOptions: {
5978
+ id: string;
5979
+ } & {
5980
+ providerSettings: {
5981
+ id: string;
5982
+ };
5983
+ };
5984
+ };
4975
5985
  access: {
4976
5986
  key: string | null;
4977
5987
  sharedByPubKey: string;
4978
5988
  };
4979
- }[];
5989
+ })[];
4980
5990
  parent: ({
4981
5991
  name: string;
4982
5992
  id: string;
@@ -5090,44 +6100,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5090
6100
  sizeEncrypted: bigint;
5091
6101
  };
5092
6102
  } & {
5093
- current: {
6103
+ current: ({
5094
6104
  id: string;
5095
6105
  createdAt: Date;
5096
- storageType: "s3" | "cold" | "lite";
5097
6106
  size: bigint;
5098
6107
  md5: string;
5099
6108
  userAppUserId: string;
5100
6109
  userAppAppId: string;
6110
+ nextStorageId: string | null;
5101
6111
  sizeEncrypted: bigint | null;
5102
6112
  md5Encrypted: string | null;
5103
6113
  mime: string | null;
5104
6114
  ext: string | null;
5105
6115
  validatedAt: Date | null;
5106
6116
  restoreSince: Date | null;
6117
+ onTransferSince: Date | null;
6118
+ } & {
6119
+ storage: {
6120
+ id: string;
6121
+ provider: "scaleway" | "ovh";
6122
+ protocol: "s3";
6123
+ s3StorageOptions: {
6124
+ id: string;
6125
+ mode: "standard" | "glacier";
6126
+ region: string;
6127
+ } & {
6128
+ providerSettings: {
6129
+ id: string;
6130
+ features: ("versioning" | "edge")[];
6131
+ regions: string[];
6132
+ modes: ("standard" | "glacier")[];
6133
+ };
6134
+ };
6135
+ } | {
6136
+ id: string;
6137
+ provider: "secrecy";
6138
+ protocol: "mongo";
6139
+ mongoStorageOptions: {
6140
+ id: string;
6141
+ } & {
6142
+ providerSettings: {
6143
+ id: string;
6144
+ };
6145
+ };
6146
+ };
5107
6147
  access: {
5108
6148
  key: string | null;
5109
6149
  sharedByPubKey: string;
5110
6150
  };
5111
- } | null;
5112
- history: {
6151
+ }) | null;
6152
+ history: ({
5113
6153
  id: string;
5114
6154
  createdAt: Date;
5115
- storageType: "s3" | "cold" | "lite";
5116
6155
  size: bigint;
5117
6156
  md5: string;
5118
6157
  userAppUserId: string;
5119
6158
  userAppAppId: string;
6159
+ nextStorageId: string | null;
5120
6160
  sizeEncrypted: bigint | null;
5121
6161
  md5Encrypted: string | null;
5122
6162
  mime: string | null;
5123
6163
  ext: string | null;
5124
6164
  validatedAt: Date | null;
5125
6165
  restoreSince: Date | null;
6166
+ onTransferSince: Date | null;
6167
+ } & {
6168
+ storage: {
6169
+ id: string;
6170
+ provider: "scaleway" | "ovh";
6171
+ protocol: "s3";
6172
+ s3StorageOptions: {
6173
+ id: string;
6174
+ mode: "standard" | "glacier";
6175
+ region: string;
6176
+ } & {
6177
+ providerSettings: {
6178
+ id: string;
6179
+ features: ("versioning" | "edge")[];
6180
+ regions: string[];
6181
+ modes: ("standard" | "glacier")[];
6182
+ };
6183
+ };
6184
+ } | {
6185
+ id: string;
6186
+ provider: "secrecy";
6187
+ protocol: "mongo";
6188
+ mongoStorageOptions: {
6189
+ id: string;
6190
+ } & {
6191
+ providerSettings: {
6192
+ id: string;
6193
+ };
6194
+ };
6195
+ };
5126
6196
  access: {
5127
6197
  key: string | null;
5128
6198
  sharedByPubKey: string;
5129
6199
  };
5130
- }[];
6200
+ })[];
5131
6201
  parent: ({
5132
6202
  name: string;
5133
6203
  id: string;
@@ -5717,44 +6787,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5717
6787
  sizeEncrypted: bigint;
5718
6788
  };
5719
6789
  } & {
5720
- current: {
6790
+ current: ({
5721
6791
  id: string;
5722
6792
  createdAt: Date;
5723
- storageType: "s3" | "cold" | "lite";
5724
6793
  size: bigint;
5725
6794
  md5: string;
5726
6795
  userAppUserId: string;
5727
6796
  userAppAppId: string;
6797
+ nextStorageId: string | null;
5728
6798
  sizeEncrypted: bigint | null;
5729
6799
  md5Encrypted: string | null;
5730
6800
  mime: string | null;
5731
6801
  ext: string | null;
5732
6802
  validatedAt: Date | null;
5733
6803
  restoreSince: Date | null;
6804
+ onTransferSince: Date | null;
6805
+ } & {
6806
+ storage: {
6807
+ id: string;
6808
+ provider: "scaleway" | "ovh";
6809
+ protocol: "s3";
6810
+ s3StorageOptions: {
6811
+ id: string;
6812
+ mode: "standard" | "glacier";
6813
+ region: string;
6814
+ } & {
6815
+ providerSettings: {
6816
+ id: string;
6817
+ features: ("versioning" | "edge")[];
6818
+ regions: string[];
6819
+ modes: ("standard" | "glacier")[];
6820
+ };
6821
+ };
6822
+ } | {
6823
+ id: string;
6824
+ provider: "secrecy";
6825
+ protocol: "mongo";
6826
+ mongoStorageOptions: {
6827
+ id: string;
6828
+ } & {
6829
+ providerSettings: {
6830
+ id: string;
6831
+ };
6832
+ };
6833
+ };
5734
6834
  access: {
5735
6835
  key: string | null;
5736
6836
  sharedByPubKey: string;
5737
6837
  };
5738
- } | null;
5739
- history: {
6838
+ }) | null;
6839
+ history: ({
5740
6840
  id: string;
5741
6841
  createdAt: Date;
5742
- storageType: "s3" | "cold" | "lite";
5743
6842
  size: bigint;
5744
6843
  md5: string;
5745
6844
  userAppUserId: string;
5746
6845
  userAppAppId: string;
6846
+ nextStorageId: string | null;
5747
6847
  sizeEncrypted: bigint | null;
5748
6848
  md5Encrypted: string | null;
5749
6849
  mime: string | null;
5750
6850
  ext: string | null;
5751
6851
  validatedAt: Date | null;
5752
6852
  restoreSince: Date | null;
6853
+ onTransferSince: Date | null;
6854
+ } & {
6855
+ storage: {
6856
+ id: string;
6857
+ provider: "scaleway" | "ovh";
6858
+ protocol: "s3";
6859
+ s3StorageOptions: {
6860
+ id: string;
6861
+ mode: "standard" | "glacier";
6862
+ region: string;
6863
+ } & {
6864
+ providerSettings: {
6865
+ id: string;
6866
+ features: ("versioning" | "edge")[];
6867
+ regions: string[];
6868
+ modes: ("standard" | "glacier")[];
6869
+ };
6870
+ };
6871
+ } | {
6872
+ id: string;
6873
+ provider: "secrecy";
6874
+ protocol: "mongo";
6875
+ mongoStorageOptions: {
6876
+ id: string;
6877
+ } & {
6878
+ providerSettings: {
6879
+ id: string;
6880
+ };
6881
+ };
6882
+ };
5753
6883
  access: {
5754
6884
  key: string | null;
5755
6885
  sharedByPubKey: string;
5756
6886
  };
5757
- }[];
6887
+ })[];
5758
6888
  parent: ({
5759
6889
  name: string;
5760
6890
  id: string;
@@ -5868,44 +6998,104 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5868
6998
  sizeEncrypted: bigint;
5869
6999
  };
5870
7000
  } & {
5871
- current: {
7001
+ current: ({
5872
7002
  id: string;
5873
7003
  createdAt: Date;
5874
- storageType: "s3" | "cold" | "lite";
5875
7004
  size: bigint;
5876
7005
  md5: string;
5877
7006
  userAppUserId: string;
5878
7007
  userAppAppId: string;
7008
+ nextStorageId: string | null;
5879
7009
  sizeEncrypted: bigint | null;
5880
7010
  md5Encrypted: string | null;
5881
7011
  mime: string | null;
5882
7012
  ext: string | null;
5883
7013
  validatedAt: Date | null;
5884
7014
  restoreSince: Date | null;
7015
+ onTransferSince: Date | null;
7016
+ } & {
7017
+ storage: {
7018
+ id: string;
7019
+ provider: "scaleway" | "ovh";
7020
+ protocol: "s3";
7021
+ s3StorageOptions: {
7022
+ id: string;
7023
+ mode: "standard" | "glacier";
7024
+ region: string;
7025
+ } & {
7026
+ providerSettings: {
7027
+ id: string;
7028
+ features: ("versioning" | "edge")[];
7029
+ regions: string[];
7030
+ modes: ("standard" | "glacier")[];
7031
+ };
7032
+ };
7033
+ } | {
7034
+ id: string;
7035
+ provider: "secrecy";
7036
+ protocol: "mongo";
7037
+ mongoStorageOptions: {
7038
+ id: string;
7039
+ } & {
7040
+ providerSettings: {
7041
+ id: string;
7042
+ };
7043
+ };
7044
+ };
5885
7045
  access: {
5886
7046
  key: string | null;
5887
7047
  sharedByPubKey: string;
5888
7048
  };
5889
- } | null;
5890
- history: {
7049
+ }) | null;
7050
+ history: ({
5891
7051
  id: string;
5892
7052
  createdAt: Date;
5893
- storageType: "s3" | "cold" | "lite";
5894
7053
  size: bigint;
5895
7054
  md5: string;
5896
7055
  userAppUserId: string;
5897
7056
  userAppAppId: string;
7057
+ nextStorageId: string | null;
5898
7058
  sizeEncrypted: bigint | null;
5899
7059
  md5Encrypted: string | null;
5900
7060
  mime: string | null;
5901
7061
  ext: string | null;
5902
7062
  validatedAt: Date | null;
5903
7063
  restoreSince: Date | null;
7064
+ onTransferSince: Date | null;
7065
+ } & {
7066
+ storage: {
7067
+ id: string;
7068
+ provider: "scaleway" | "ovh";
7069
+ protocol: "s3";
7070
+ s3StorageOptions: {
7071
+ id: string;
7072
+ mode: "standard" | "glacier";
7073
+ region: string;
7074
+ } & {
7075
+ providerSettings: {
7076
+ id: string;
7077
+ features: ("versioning" | "edge")[];
7078
+ regions: string[];
7079
+ modes: ("standard" | "glacier")[];
7080
+ };
7081
+ };
7082
+ } | {
7083
+ id: string;
7084
+ provider: "secrecy";
7085
+ protocol: "mongo";
7086
+ mongoStorageOptions: {
7087
+ id: string;
7088
+ } & {
7089
+ providerSettings: {
7090
+ id: string;
7091
+ };
7092
+ };
7093
+ };
5904
7094
  access: {
5905
7095
  key: string | null;
5906
7096
  sharedByPubKey: string;
5907
7097
  };
5908
- }[];
7098
+ })[];
5909
7099
  parent: ({
5910
7100
  name: string;
5911
7101
  id: string;
@@ -10250,9 +11440,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10250
11440
  replyTo: {
10251
11441
  id: string;
10252
11442
  } | null;
10253
- temporaryRecipients: {
10254
- email: string | null;
10255
- }[];
10256
11443
  recipients: {
10257
11444
  id: string;
10258
11445
  lastname: string;
@@ -10260,6 +11447,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10260
11447
  avatar: string | null;
10261
11448
  isSearchable: boolean;
10262
11449
  }[];
11450
+ temporaryRecipients: {
11451
+ email: string | null;
11452
+ }[];
10263
11453
  } | null;
10264
11454
  mailIntegrityDraft: {
10265
11455
  id: string;
@@ -10268,9 +11458,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10268
11458
  replyTo: {
10269
11459
  id: string;
10270
11460
  } | null;
10271
- temporaryRecipients: {
10272
- email: string | null;
10273
- }[];
10274
11461
  recipients: {
10275
11462
  id: string;
10276
11463
  lastname: string;
@@ -10278,6 +11465,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10278
11465
  avatar: string | null;
10279
11466
  isSearchable: boolean;
10280
11467
  }[];
11468
+ temporaryRecipients: {
11469
+ email: string | null;
11470
+ }[];
10281
11471
  } | null;
10282
11472
  sender: {
10283
11473
  id: string;
@@ -10308,9 +11498,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10308
11498
  replyTo: {
10309
11499
  id: string;
10310
11500
  } | null;
10311
- temporaryRecipients: {
10312
- email: string | null;
10313
- }[];
10314
11501
  recipients: {
10315
11502
  id: string;
10316
11503
  lastname: string;
@@ -10318,6 +11505,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10318
11505
  avatar: string | null;
10319
11506
  isSearchable: boolean;
10320
11507
  }[];
11508
+ temporaryRecipients: {
11509
+ email: string | null;
11510
+ }[];
10321
11511
  } | null;
10322
11512
  mailIntegrityDraft: {
10323
11513
  id: string;
@@ -10326,9 +11516,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10326
11516
  replyTo: {
10327
11517
  id: string;
10328
11518
  } | null;
10329
- temporaryRecipients: {
10330
- email: string | null;
10331
- }[];
10332
11519
  recipients: {
10333
11520
  id: string;
10334
11521
  lastname: string;
@@ -10336,6 +11523,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10336
11523
  avatar: string | null;
10337
11524
  isSearchable: boolean;
10338
11525
  }[];
11526
+ temporaryRecipients: {
11527
+ email: string | null;
11528
+ }[];
10339
11529
  } | null;
10340
11530
  sender: {
10341
11531
  id: string;
@@ -10418,9 +11608,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10418
11608
  replyTo: {
10419
11609
  id: string;
10420
11610
  } | null;
10421
- temporaryRecipients: {
10422
- email: string | null;
10423
- }[];
10424
11611
  recipients: {
10425
11612
  id: string;
10426
11613
  lastname: string;
@@ -10428,6 +11615,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10428
11615
  avatar: string | null;
10429
11616
  isSearchable: boolean;
10430
11617
  }[];
11618
+ temporaryRecipients: {
11619
+ email: string | null;
11620
+ }[];
10431
11621
  } | null;
10432
11622
  mailIntegrityDraft: {
10433
11623
  id: string;
@@ -10436,9 +11626,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10436
11626
  replyTo: {
10437
11627
  id: string;
10438
11628
  } | null;
10439
- temporaryRecipients: {
10440
- email: string | null;
10441
- }[];
10442
11629
  recipients: {
10443
11630
  id: string;
10444
11631
  lastname: string;
@@ -10446,6 +11633,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10446
11633
  avatar: string | null;
10447
11634
  isSearchable: boolean;
10448
11635
  }[];
11636
+ temporaryRecipients: {
11637
+ email: string | null;
11638
+ }[];
10449
11639
  } | null;
10450
11640
  sender: {
10451
11641
  id: string;
@@ -10476,9 +11666,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10476
11666
  replyTo: {
10477
11667
  id: string;
10478
11668
  } | null;
10479
- temporaryRecipients: {
10480
- email: string | null;
10481
- }[];
10482
11669
  recipients: {
10483
11670
  id: string;
10484
11671
  lastname: string;
@@ -10486,6 +11673,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10486
11673
  avatar: string | null;
10487
11674
  isSearchable: boolean;
10488
11675
  }[];
11676
+ temporaryRecipients: {
11677
+ email: string | null;
11678
+ }[];
10489
11679
  } | null;
10490
11680
  mailIntegrityDraft: {
10491
11681
  id: string;
@@ -10494,9 +11684,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10494
11684
  replyTo: {
10495
11685
  id: string;
10496
11686
  } | null;
10497
- temporaryRecipients: {
10498
- email: string | null;
10499
- }[];
10500
11687
  recipients: {
10501
11688
  id: string;
10502
11689
  lastname: string;
@@ -10504,6 +11691,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10504
11691
  avatar: string | null;
10505
11692
  isSearchable: boolean;
10506
11693
  }[];
11694
+ temporaryRecipients: {
11695
+ email: string | null;
11696
+ }[];
10507
11697
  } | null;
10508
11698
  sender: {
10509
11699
  id: string;
@@ -10672,9 +11862,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10672
11862
  replyTo: {
10673
11863
  id: string;
10674
11864
  } | null;
10675
- temporaryRecipients: {
10676
- email: string | null;
10677
- }[];
10678
11865
  recipients: {
10679
11866
  id: string;
10680
11867
  lastname: string;
@@ -10682,6 +11869,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10682
11869
  avatar: string | null;
10683
11870
  isSearchable: boolean;
10684
11871
  }[];
11872
+ temporaryRecipients: {
11873
+ email: string | null;
11874
+ }[];
10685
11875
  } | null;
10686
11876
  mailIntegrityDraft: {
10687
11877
  id: string;
@@ -10690,9 +11880,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10690
11880
  replyTo: {
10691
11881
  id: string;
10692
11882
  } | null;
10693
- temporaryRecipients: {
10694
- email: string | null;
10695
- }[];
10696
11883
  recipients: {
10697
11884
  id: string;
10698
11885
  lastname: string;
@@ -10700,6 +11887,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10700
11887
  avatar: string | null;
10701
11888
  isSearchable: boolean;
10702
11889
  }[];
11890
+ temporaryRecipients: {
11891
+ email: string | null;
11892
+ }[];
10703
11893
  } | null;
10704
11894
  sender: {
10705
11895
  id: string;
@@ -10730,9 +11920,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10730
11920
  replyTo: {
10731
11921
  id: string;
10732
11922
  } | null;
10733
- temporaryRecipients: {
10734
- email: string | null;
10735
- }[];
10736
11923
  recipients: {
10737
11924
  id: string;
10738
11925
  lastname: string;
@@ -10740,6 +11927,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10740
11927
  avatar: string | null;
10741
11928
  isSearchable: boolean;
10742
11929
  }[];
11930
+ temporaryRecipients: {
11931
+ email: string | null;
11932
+ }[];
10743
11933
  } | null;
10744
11934
  mailIntegrityDraft: {
10745
11935
  id: string;
@@ -10748,9 +11938,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10748
11938
  replyTo: {
10749
11939
  id: string;
10750
11940
  } | null;
10751
- temporaryRecipients: {
10752
- email: string | null;
10753
- }[];
10754
11941
  recipients: {
10755
11942
  id: string;
10756
11943
  lastname: string;
@@ -10758,6 +11945,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10758
11945
  avatar: string | null;
10759
11946
  isSearchable: boolean;
10760
11947
  }[];
11948
+ temporaryRecipients: {
11949
+ email: string | null;
11950
+ }[];
10761
11951
  } | null;
10762
11952
  sender: {
10763
11953
  id: string;
@@ -10796,14 +11986,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10796
11986
  }>;
10797
11987
  _meta: object;
10798
11988
  _ctx_out: {};
10799
- _input_in: {} & {
10800
- page?: number | undefined;
10801
- perPage?: number | undefined;
10802
- };
10803
- _input_out: {} & {
10804
- page: number;
10805
- perPage: number;
10806
- };
11989
+ _input_in: {};
11990
+ _input_out: {};
10807
11991
  _output_in: ({
10808
11992
  id: string;
10809
11993
  createdAt: Date;
@@ -10820,9 +12004,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10820
12004
  replyTo: {
10821
12005
  id: string;
10822
12006
  } | null;
10823
- temporaryRecipients: {
10824
- email: string | null;
10825
- }[];
10826
12007
  recipients: {
10827
12008
  id: string;
10828
12009
  lastname: string;
@@ -10830,6 +12011,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10830
12011
  avatar: string | null;
10831
12012
  isSearchable: boolean;
10832
12013
  }[];
12014
+ temporaryRecipients: {
12015
+ email: string | null;
12016
+ }[];
10833
12017
  } | null;
10834
12018
  mailIntegrityDraft: {
10835
12019
  id: string;
@@ -10838,9 +12022,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10838
12022
  replyTo: {
10839
12023
  id: string;
10840
12024
  } | null;
10841
- temporaryRecipients: {
10842
- email: string | null;
10843
- }[];
10844
12025
  recipients: {
10845
12026
  id: string;
10846
12027
  lastname: string;
@@ -10848,6 +12029,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10848
12029
  avatar: string | null;
10849
12030
  isSearchable: boolean;
10850
12031
  }[];
12032
+ temporaryRecipients: {
12033
+ email: string | null;
12034
+ }[];
10851
12035
  } | null;
10852
12036
  sender: {
10853
12037
  id: string;
@@ -10878,9 +12062,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10878
12062
  replyTo: {
10879
12063
  id: string;
10880
12064
  } | null;
10881
- temporaryRecipients: {
10882
- email: string | null;
10883
- }[];
10884
12065
  recipients: {
10885
12066
  id: string;
10886
12067
  lastname: string;
@@ -10888,6 +12069,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10888
12069
  avatar: string | null;
10889
12070
  isSearchable: boolean;
10890
12071
  }[];
12072
+ temporaryRecipients: {
12073
+ email: string | null;
12074
+ }[];
10891
12075
  } | null;
10892
12076
  mailIntegrityDraft: {
10893
12077
  id: string;
@@ -10896,9 +12080,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10896
12080
  replyTo: {
10897
12081
  id: string;
10898
12082
  } | null;
10899
- temporaryRecipients: {
10900
- email: string | null;
10901
- }[];
10902
12083
  recipients: {
10903
12084
  id: string;
10904
12085
  lastname: string;
@@ -10906,6 +12087,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10906
12087
  avatar: string | null;
10907
12088
  isSearchable: boolean;
10908
12089
  }[];
12090
+ temporaryRecipients: {
12091
+ email: string | null;
12092
+ }[];
10909
12093
  } | null;
10910
12094
  sender: {
10911
12095
  id: string;
@@ -11012,14 +12196,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11012
12196
  }>;
11013
12197
  _meta: object;
11014
12198
  _ctx_out: {};
11015
- _input_in: {} & {
11016
- page?: number | undefined;
11017
- perPage?: number | undefined;
11018
- };
11019
- _input_out: {} & {
11020
- page: number;
11021
- perPage: number;
11022
- };
12199
+ _input_in: {};
12200
+ _input_out: {};
11023
12201
  _output_in: ({
11024
12202
  id: string;
11025
12203
  createdAt: Date;
@@ -11036,9 +12214,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11036
12214
  replyTo: {
11037
12215
  id: string;
11038
12216
  } | null;
11039
- temporaryRecipients: {
11040
- email: string | null;
11041
- }[];
11042
12217
  recipients: {
11043
12218
  id: string;
11044
12219
  lastname: string;
@@ -11046,6 +12221,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11046
12221
  avatar: string | null;
11047
12222
  isSearchable: boolean;
11048
12223
  }[];
12224
+ temporaryRecipients: {
12225
+ email: string | null;
12226
+ }[];
11049
12227
  } | null;
11050
12228
  mailIntegrityDraft: {
11051
12229
  id: string;
@@ -11054,9 +12232,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11054
12232
  replyTo: {
11055
12233
  id: string;
11056
12234
  } | null;
11057
- temporaryRecipients: {
11058
- email: string | null;
11059
- }[];
11060
12235
  recipients: {
11061
12236
  id: string;
11062
12237
  lastname: string;
@@ -11064,6 +12239,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11064
12239
  avatar: string | null;
11065
12240
  isSearchable: boolean;
11066
12241
  }[];
12242
+ temporaryRecipients: {
12243
+ email: string | null;
12244
+ }[];
11067
12245
  } | null;
11068
12246
  sender: {
11069
12247
  id: string;
@@ -11094,9 +12272,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11094
12272
  replyTo: {
11095
12273
  id: string;
11096
12274
  } | null;
11097
- temporaryRecipients: {
11098
- email: string | null;
11099
- }[];
11100
12275
  recipients: {
11101
12276
  id: string;
11102
12277
  lastname: string;
@@ -11104,6 +12279,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11104
12279
  avatar: string | null;
11105
12280
  isSearchable: boolean;
11106
12281
  }[];
12282
+ temporaryRecipients: {
12283
+ email: string | null;
12284
+ }[];
11107
12285
  } | null;
11108
12286
  mailIntegrityDraft: {
11109
12287
  id: string;
@@ -11112,9 +12290,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11112
12290
  replyTo: {
11113
12291
  id: string;
11114
12292
  } | null;
11115
- temporaryRecipients: {
11116
- email: string | null;
11117
- }[];
11118
12293
  recipients: {
11119
12294
  id: string;
11120
12295
  lastname: string;
@@ -11122,6 +12297,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11122
12297
  avatar: string | null;
11123
12298
  isSearchable: boolean;
11124
12299
  }[];
12300
+ temporaryRecipients: {
12301
+ email: string | null;
12302
+ }[];
11125
12303
  } | null;
11126
12304
  sender: {
11127
12305
  id: string;
@@ -11271,7 +12449,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11271
12449
  _input_in: {
11272
12450
  id: string;
11273
12451
  customMessage: string | null;
11274
- temporaryRecipients: string[];
11275
12452
  recipients: ({
11276
12453
  subject: string;
11277
12454
  body: string;
@@ -11283,11 +12460,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11283
12460
  dataId: string;
11284
12461
  }[];
11285
12462
  })[];
12463
+ temporaryRecipients: string[];
11286
12464
  };
11287
12465
  _input_out: {
11288
12466
  id: string;
11289
12467
  customMessage: string | null;
11290
- temporaryRecipients: string[];
11291
12468
  recipients: ({
11292
12469
  subject: string;
11293
12470
  body: string;
@@ -11299,6 +12476,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11299
12476
  dataId: string;
11300
12477
  }[];
11301
12478
  })[];
12479
+ temporaryRecipients: string[];
11302
12480
  };
11303
12481
  _output_in: {
11304
12482
  isSent: boolean;
@@ -11388,14 +12566,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11388
12566
  }>;
11389
12567
  _meta: object;
11390
12568
  _ctx_out: {};
11391
- _input_in: {} & {
11392
- page?: number | undefined;
11393
- perPage?: number | undefined;
11394
- };
11395
- _input_out: {} & {
11396
- page: number;
11397
- perPage: number;
11398
- };
12569
+ _input_in: {};
12570
+ _input_out: {};
11399
12571
  _output_in: ({
11400
12572
  id: string;
11401
12573
  createdAt: Date;
@@ -11412,9 +12584,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11412
12584
  replyTo: {
11413
12585
  id: string;
11414
12586
  } | null;
11415
- temporaryRecipients: {
11416
- email: string | null;
11417
- }[];
11418
12587
  recipients: {
11419
12588
  id: string;
11420
12589
  lastname: string;
@@ -11422,6 +12591,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11422
12591
  avatar: string | null;
11423
12592
  isSearchable: boolean;
11424
12593
  }[];
12594
+ temporaryRecipients: {
12595
+ email: string | null;
12596
+ }[];
11425
12597
  } | null;
11426
12598
  mailIntegrityDraft: {
11427
12599
  id: string;
@@ -11430,9 +12602,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11430
12602
  replyTo: {
11431
12603
  id: string;
11432
12604
  } | null;
11433
- temporaryRecipients: {
11434
- email: string | null;
11435
- }[];
11436
12605
  recipients: {
11437
12606
  id: string;
11438
12607
  lastname: string;
@@ -11440,6 +12609,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11440
12609
  avatar: string | null;
11441
12610
  isSearchable: boolean;
11442
12611
  }[];
12612
+ temporaryRecipients: {
12613
+ email: string | null;
12614
+ }[];
11443
12615
  } | null;
11444
12616
  sender: {
11445
12617
  id: string;
@@ -11470,9 +12642,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11470
12642
  replyTo: {
11471
12643
  id: string;
11472
12644
  } | null;
11473
- temporaryRecipients: {
11474
- email: string | null;
11475
- }[];
11476
12645
  recipients: {
11477
12646
  id: string;
11478
12647
  lastname: string;
@@ -11480,6 +12649,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11480
12649
  avatar: string | null;
11481
12650
  isSearchable: boolean;
11482
12651
  }[];
12652
+ temporaryRecipients: {
12653
+ email: string | null;
12654
+ }[];
11483
12655
  } | null;
11484
12656
  mailIntegrityDraft: {
11485
12657
  id: string;
@@ -11488,9 +12660,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11488
12660
  replyTo: {
11489
12661
  id: string;
11490
12662
  } | null;
11491
- temporaryRecipients: {
11492
- email: string | null;
11493
- }[];
11494
12663
  recipients: {
11495
12664
  id: string;
11496
12665
  lastname: string;
@@ -11498,6 +12667,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11498
12667
  avatar: string | null;
11499
12668
  isSearchable: boolean;
11500
12669
  }[];
12670
+ temporaryRecipients: {
12671
+ email: string | null;
12672
+ }[];
11501
12673
  } | null;
11502
12674
  sender: {
11503
12675
  id: string;
@@ -11644,9 +12816,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11644
12816
  replyTo: {
11645
12817
  id: string;
11646
12818
  } | null;
11647
- temporaryRecipients: {
11648
- email: string | null;
11649
- }[];
11650
12819
  recipients: {
11651
12820
  id: string;
11652
12821
  lastname: string;
@@ -11654,6 +12823,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11654
12823
  avatar: string | null;
11655
12824
  isSearchable: boolean;
11656
12825
  }[];
12826
+ temporaryRecipients: {
12827
+ email: string | null;
12828
+ }[];
11657
12829
  } | null;
11658
12830
  mailIntegrityDraft: {
11659
12831
  id: string;
@@ -11662,9 +12834,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11662
12834
  replyTo: {
11663
12835
  id: string;
11664
12836
  } | null;
11665
- temporaryRecipients: {
11666
- email: string | null;
11667
- }[];
11668
12837
  recipients: {
11669
12838
  id: string;
11670
12839
  lastname: string;
@@ -11672,6 +12841,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11672
12841
  avatar: string | null;
11673
12842
  isSearchable: boolean;
11674
12843
  }[];
12844
+ temporaryRecipients: {
12845
+ email: string | null;
12846
+ }[];
11675
12847
  } | null;
11676
12848
  sender: {
11677
12849
  id: string;
@@ -11702,9 +12874,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11702
12874
  replyTo: {
11703
12875
  id: string;
11704
12876
  } | null;
11705
- temporaryRecipients: {
11706
- email: string | null;
11707
- }[];
11708
12877
  recipients: {
11709
12878
  id: string;
11710
12879
  lastname: string;
@@ -11712,6 +12881,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11712
12881
  avatar: string | null;
11713
12882
  isSearchable: boolean;
11714
12883
  }[];
12884
+ temporaryRecipients: {
12885
+ email: string | null;
12886
+ }[];
11715
12887
  } | null;
11716
12888
  mailIntegrityDraft: {
11717
12889
  id: string;
@@ -11720,9 +12892,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11720
12892
  replyTo: {
11721
12893
  id: string;
11722
12894
  } | null;
11723
- temporaryRecipients: {
11724
- email: string | null;
11725
- }[];
11726
12895
  recipients: {
11727
12896
  id: string;
11728
12897
  lastname: string;
@@ -11730,6 +12899,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11730
12899
  avatar: string | null;
11731
12900
  isSearchable: boolean;
11732
12901
  }[];
12902
+ temporaryRecipients: {
12903
+ email: string | null;
12904
+ }[];
11733
12905
  } | null;
11734
12906
  sender: {
11735
12907
  id: string;
@@ -11779,11 +12951,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11779
12951
  isSearchable: boolean;
11780
12952
  };
11781
12953
  date: Date;
11782
- temporaryRecipients: {
11783
- email: string | null;
11784
- id: string;
11785
- phone: string | null;
11786
- }[];
11787
12954
  recipients: {
11788
12955
  id: string;
11789
12956
  lastname: string;
@@ -11791,6 +12958,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11791
12958
  avatar: string | null;
11792
12959
  isSearchable: boolean;
11793
12960
  }[];
12961
+ temporaryRecipients: {
12962
+ email: string | null;
12963
+ id: string;
12964
+ phone: string | null;
12965
+ }[];
11794
12966
  attachmentsCount: number;
11795
12967
  }[];
11796
12968
  _output_out: {
@@ -11802,11 +12974,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11802
12974
  isSearchable: boolean;
11803
12975
  };
11804
12976
  date: Date;
11805
- temporaryRecipients: {
11806
- email: string | null;
11807
- id: string;
11808
- phone: string | null;
11809
- }[];
11810
12977
  recipients: {
11811
12978
  id: string;
11812
12979
  lastname: string;
@@ -11814,6 +12981,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11814
12981
  avatar: string | null;
11815
12982
  isSearchable: boolean;
11816
12983
  }[];
12984
+ temporaryRecipients: {
12985
+ email: string | null;
12986
+ id: string;
12987
+ phone: string | null;
12988
+ }[];
11817
12989
  attachmentsCount: number;
11818
12990
  }[];
11819
12991
  }, unknown>;