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

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 +1553 -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,112 @@ 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
+ mode: "standard";
2271
+ region: string;
2272
+ } & {
2273
+ providerSettings: {
2274
+ id: string;
2275
+ regions: string[];
2276
+ modes: "standard"[];
2277
+ };
2278
+ };
2279
+ };
2206
2280
  access: {
2207
2281
  key: string | null;
2208
2282
  sharedByPubKey: string;
2209
2283
  };
2210
- } | null;
2211
- history: {
2284
+ }) | null;
2285
+ history: ({
2212
2286
  id: string;
2213
2287
  createdAt: Date;
2214
- storageType: "s3" | "cold" | "lite";
2215
2288
  size: bigint;
2216
2289
  md5: string;
2217
2290
  userAppUserId: string;
2218
2291
  userAppAppId: string;
2292
+ nextStorageId: string | null;
2219
2293
  sizeEncrypted: bigint | null;
2220
2294
  md5Encrypted: string | null;
2221
2295
  mime: string | null;
2222
2296
  ext: string | null;
2223
2297
  validatedAt: Date | null;
2224
2298
  restoreSince: Date | null;
2299
+ onTransferSince: Date | null;
2300
+ } & {
2301
+ storage: {
2302
+ id: string;
2303
+ provider: "scaleway" | "ovh";
2304
+ protocol: "s3";
2305
+ s3StorageOptions: {
2306
+ id: string;
2307
+ mode: "standard" | "glacier";
2308
+ region: string;
2309
+ } & {
2310
+ providerSettings: {
2311
+ id: string;
2312
+ features: ("versioning" | "edge")[];
2313
+ regions: string[];
2314
+ modes: ("standard" | "glacier")[];
2315
+ };
2316
+ };
2317
+ } | {
2318
+ id: string;
2319
+ provider: "secrecy";
2320
+ protocol: "mongo";
2321
+ mongoStorageOptions: {
2322
+ id: string;
2323
+ mode: "standard";
2324
+ region: string;
2325
+ } & {
2326
+ providerSettings: {
2327
+ id: string;
2328
+ regions: string[];
2329
+ modes: "standard"[];
2330
+ };
2331
+ };
2332
+ };
2225
2333
  access: {
2226
2334
  key: string | null;
2227
2335
  sharedByPubKey: string;
2228
2336
  };
2229
- }[];
2337
+ })[];
2230
2338
  parent: ({
2231
2339
  name: string;
2232
2340
  id: string;
@@ -2340,44 +2448,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2340
2448
  sizeEncrypted: bigint;
2341
2449
  };
2342
2450
  } & {
2343
- current: {
2451
+ current: ({
2344
2452
  id: string;
2345
2453
  createdAt: Date;
2346
- storageType: "s3" | "cold" | "lite";
2347
2454
  size: bigint;
2348
2455
  md5: string;
2349
2456
  userAppUserId: string;
2350
2457
  userAppAppId: string;
2458
+ nextStorageId: string | null;
2351
2459
  sizeEncrypted: bigint | null;
2352
2460
  md5Encrypted: string | null;
2353
2461
  mime: string | null;
2354
2462
  ext: string | null;
2355
2463
  validatedAt: Date | null;
2356
2464
  restoreSince: Date | null;
2465
+ onTransferSince: Date | null;
2466
+ } & {
2467
+ storage: {
2468
+ id: string;
2469
+ provider: "scaleway" | "ovh";
2470
+ protocol: "s3";
2471
+ s3StorageOptions: {
2472
+ id: string;
2473
+ mode: "standard" | "glacier";
2474
+ region: string;
2475
+ } & {
2476
+ providerSettings: {
2477
+ id: string;
2478
+ features: ("versioning" | "edge")[];
2479
+ regions: string[];
2480
+ modes: ("standard" | "glacier")[];
2481
+ };
2482
+ };
2483
+ } | {
2484
+ id: string;
2485
+ provider: "secrecy";
2486
+ protocol: "mongo";
2487
+ mongoStorageOptions: {
2488
+ id: string;
2489
+ mode: "standard";
2490
+ region: string;
2491
+ } & {
2492
+ providerSettings: {
2493
+ id: string;
2494
+ regions: string[];
2495
+ modes: "standard"[];
2496
+ };
2497
+ };
2498
+ };
2357
2499
  access: {
2358
2500
  key: string | null;
2359
2501
  sharedByPubKey: string;
2360
2502
  };
2361
- } | null;
2362
- history: {
2503
+ }) | null;
2504
+ history: ({
2363
2505
  id: string;
2364
2506
  createdAt: Date;
2365
- storageType: "s3" | "cold" | "lite";
2366
2507
  size: bigint;
2367
2508
  md5: string;
2368
2509
  userAppUserId: string;
2369
2510
  userAppAppId: string;
2511
+ nextStorageId: string | null;
2370
2512
  sizeEncrypted: bigint | null;
2371
2513
  md5Encrypted: string | null;
2372
2514
  mime: string | null;
2373
2515
  ext: string | null;
2374
2516
  validatedAt: Date | null;
2375
2517
  restoreSince: Date | null;
2518
+ onTransferSince: Date | null;
2519
+ } & {
2520
+ storage: {
2521
+ id: string;
2522
+ provider: "scaleway" | "ovh";
2523
+ protocol: "s3";
2524
+ s3StorageOptions: {
2525
+ id: string;
2526
+ mode: "standard" | "glacier";
2527
+ region: string;
2528
+ } & {
2529
+ providerSettings: {
2530
+ id: string;
2531
+ features: ("versioning" | "edge")[];
2532
+ regions: string[];
2533
+ modes: ("standard" | "glacier")[];
2534
+ };
2535
+ };
2536
+ } | {
2537
+ id: string;
2538
+ provider: "secrecy";
2539
+ protocol: "mongo";
2540
+ mongoStorageOptions: {
2541
+ id: string;
2542
+ mode: "standard";
2543
+ region: string;
2544
+ } & {
2545
+ providerSettings: {
2546
+ id: string;
2547
+ regions: string[];
2548
+ modes: "standard"[];
2549
+ };
2550
+ };
2551
+ };
2376
2552
  access: {
2377
2553
  key: string | null;
2378
2554
  sharedByPubKey: string;
2379
2555
  };
2380
- }[];
2556
+ })[];
2381
2557
  parent: ({
2382
2558
  name: string;
2383
2559
  id: string;
@@ -2529,17 +2705,51 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2529
2705
  _output_in: {
2530
2706
  id: string;
2531
2707
  createdAt: Date;
2532
- storageType: "s3" | "cold" | "lite";
2533
2708
  size: bigint;
2534
2709
  md5: string;
2535
2710
  userAppUserId: string;
2536
2711
  userAppAppId: string;
2712
+ nextStorageId: string | null;
2537
2713
  sizeEncrypted: bigint | null;
2538
2714
  md5Encrypted: string | null;
2539
2715
  mime: string | null;
2540
2716
  ext: string | null;
2541
2717
  validatedAt: Date | null;
2542
2718
  restoreSince: Date | null;
2719
+ onTransferSince: Date | null;
2720
+ } & {
2721
+ storage: {
2722
+ id: string;
2723
+ provider: "scaleway" | "ovh";
2724
+ protocol: "s3";
2725
+ s3StorageOptions: {
2726
+ id: string;
2727
+ mode: "standard" | "glacier";
2728
+ region: string;
2729
+ } & {
2730
+ providerSettings: {
2731
+ id: string;
2732
+ features: ("versioning" | "edge")[];
2733
+ regions: string[];
2734
+ modes: ("standard" | "glacier")[];
2735
+ };
2736
+ };
2737
+ } | {
2738
+ id: string;
2739
+ provider: "secrecy";
2740
+ protocol: "mongo";
2741
+ mongoStorageOptions: {
2742
+ id: string;
2743
+ mode: "standard";
2744
+ region: string;
2745
+ } & {
2746
+ providerSettings: {
2747
+ id: string;
2748
+ regions: string[];
2749
+ modes: "standard"[];
2750
+ };
2751
+ };
2752
+ };
2543
2753
  access: {
2544
2754
  key: string | null;
2545
2755
  sharedByPubKey: string;
@@ -2548,17 +2758,51 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2548
2758
  _output_out: {
2549
2759
  id: string;
2550
2760
  createdAt: Date;
2551
- storageType: "s3" | "cold" | "lite";
2552
2761
  size: bigint;
2553
2762
  md5: string;
2554
2763
  userAppUserId: string;
2555
2764
  userAppAppId: string;
2765
+ nextStorageId: string | null;
2556
2766
  sizeEncrypted: bigint | null;
2557
2767
  md5Encrypted: string | null;
2558
2768
  mime: string | null;
2559
2769
  ext: string | null;
2560
2770
  validatedAt: Date | null;
2561
2771
  restoreSince: Date | null;
2772
+ onTransferSince: Date | null;
2773
+ } & {
2774
+ storage: {
2775
+ id: string;
2776
+ provider: "scaleway" | "ovh";
2777
+ protocol: "s3";
2778
+ s3StorageOptions: {
2779
+ id: string;
2780
+ mode: "standard" | "glacier";
2781
+ region: string;
2782
+ } & {
2783
+ providerSettings: {
2784
+ id: string;
2785
+ features: ("versioning" | "edge")[];
2786
+ regions: string[];
2787
+ modes: ("standard" | "glacier")[];
2788
+ };
2789
+ };
2790
+ } | {
2791
+ id: string;
2792
+ provider: "secrecy";
2793
+ protocol: "mongo";
2794
+ mongoStorageOptions: {
2795
+ id: string;
2796
+ mode: "standard";
2797
+ region: string;
2798
+ } & {
2799
+ providerSettings: {
2800
+ id: string;
2801
+ regions: string[];
2802
+ modes: "standard"[];
2803
+ };
2804
+ };
2805
+ };
2562
2806
  access: {
2563
2807
  key: string | null;
2564
2808
  sharedByPubKey: string;
@@ -2598,7 +2842,38 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2598
2842
  id: string;
2599
2843
  type: "received_mail";
2600
2844
  key: string | null;
2601
- storageType: "s3" | "cold" | "lite";
2845
+ storage: {
2846
+ id: string;
2847
+ provider: "scaleway" | "ovh";
2848
+ protocol: "s3";
2849
+ s3StorageOptions: {
2850
+ id: string;
2851
+ mode: "standard" | "glacier";
2852
+ region: string;
2853
+ } & {
2854
+ providerSettings: {
2855
+ id: string;
2856
+ features: ("versioning" | "edge")[];
2857
+ regions: string[];
2858
+ modes: ("standard" | "glacier")[];
2859
+ };
2860
+ };
2861
+ } | {
2862
+ id: string;
2863
+ provider: "secrecy";
2864
+ protocol: "mongo";
2865
+ mongoStorageOptions: {
2866
+ id: string;
2867
+ mode: "standard";
2868
+ region: string;
2869
+ } & {
2870
+ providerSettings: {
2871
+ id: string;
2872
+ regions: string[];
2873
+ modes: "standard"[];
2874
+ };
2875
+ };
2876
+ };
2602
2877
  size: bigint;
2603
2878
  md5: string;
2604
2879
  sizeEncrypted: bigint | null;
@@ -2607,16 +2882,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2607
2882
  ext: string | null;
2608
2883
  senderPublicKey: string;
2609
2884
  maybeParts: {
2885
+ url: string;
2610
2886
  md5: string;
2611
2887
  order: number;
2612
- contentUrl: string;
2613
2888
  }[] | null;
2614
- maybeContent: Buffer | null;
2889
+ maybeBytes: Buffer | null;
2615
2890
  } | {
2616
2891
  id: string;
2617
2892
  type: "sent_mail";
2618
2893
  key: string | null;
2619
- storageType: "s3" | "cold" | "lite";
2894
+ storage: {
2895
+ id: string;
2896
+ provider: "scaleway" | "ovh";
2897
+ protocol: "s3";
2898
+ s3StorageOptions: {
2899
+ id: string;
2900
+ mode: "standard" | "glacier";
2901
+ region: string;
2902
+ } & {
2903
+ providerSettings: {
2904
+ id: string;
2905
+ features: ("versioning" | "edge")[];
2906
+ regions: string[];
2907
+ modes: ("standard" | "glacier")[];
2908
+ };
2909
+ };
2910
+ } | {
2911
+ id: string;
2912
+ provider: "secrecy";
2913
+ protocol: "mongo";
2914
+ mongoStorageOptions: {
2915
+ id: string;
2916
+ mode: "standard";
2917
+ region: string;
2918
+ } & {
2919
+ providerSettings: {
2920
+ id: string;
2921
+ regions: string[];
2922
+ modes: "standard"[];
2923
+ };
2924
+ };
2925
+ };
2620
2926
  size: bigint;
2621
2927
  md5: string;
2622
2928
  sizeEncrypted: bigint | null;
@@ -2624,16 +2930,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2624
2930
  mime: string | null;
2625
2931
  ext: string | null;
2626
2932
  maybeParts: {
2933
+ url: string;
2627
2934
  md5: string;
2628
2935
  order: number;
2629
- contentUrl: string;
2630
2936
  }[] | null;
2631
- maybeContent: Buffer | null;
2937
+ maybeBytes: Buffer | null;
2632
2938
  } | {
2633
2939
  id: string;
2634
- type: "cloud";
2940
+ type: "s3";
2635
2941
  key: string | null;
2636
- storageType: "s3" | "cold";
2942
+ storage: {
2943
+ id: string;
2944
+ provider: "scaleway" | "ovh";
2945
+ protocol: "s3";
2946
+ s3StorageOptions: {
2947
+ id: string;
2948
+ mode: "standard" | "glacier";
2949
+ region: string;
2950
+ } & {
2951
+ providerSettings: {
2952
+ id: string;
2953
+ features: ("versioning" | "edge")[];
2954
+ regions: string[];
2955
+ modes: ("standard" | "glacier")[];
2956
+ };
2957
+ };
2958
+ };
2637
2959
  size: bigint;
2638
2960
  md5: string;
2639
2961
  sizeEncrypted: bigint | null;
@@ -2641,30 +2963,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2641
2963
  mime: string | null;
2642
2964
  ext: string | null;
2643
2965
  parts: {
2966
+ url: string;
2644
2967
  md5: string;
2645
2968
  order: number;
2646
- contentUrl: string;
2647
2969
  }[];
2648
2970
  publicKey: string;
2649
2971
  } | {
2650
2972
  id: string;
2651
- type: "lite";
2973
+ type: "mongo";
2652
2974
  key: string | null;
2653
- storageType: "lite";
2975
+ storage: {
2976
+ id: string;
2977
+ provider: "secrecy";
2978
+ protocol: "mongo";
2979
+ mongoStorageOptions: {
2980
+ id: string;
2981
+ mode: "standard";
2982
+ region: string;
2983
+ } & {
2984
+ providerSettings: {
2985
+ id: string;
2986
+ regions: string[];
2987
+ modes: "standard"[];
2988
+ };
2989
+ };
2990
+ };
2654
2991
  size: bigint;
2655
2992
  md5: string;
2656
2993
  sizeEncrypted: bigint | null;
2657
2994
  md5Encrypted: string | null;
2658
2995
  mime: string | null;
2659
2996
  ext: string | null;
2660
- content: Buffer;
2661
2997
  publicKey: string;
2998
+ bytes: Buffer;
2662
2999
  };
2663
3000
  _output_out: {
2664
3001
  id: string;
2665
3002
  type: "received_mail";
2666
3003
  key: string | null;
2667
- storageType: "s3" | "cold" | "lite";
3004
+ storage: {
3005
+ id: string;
3006
+ provider: "scaleway" | "ovh";
3007
+ protocol: "s3";
3008
+ s3StorageOptions: {
3009
+ id: string;
3010
+ mode: "standard" | "glacier";
3011
+ region: string;
3012
+ } & {
3013
+ providerSettings: {
3014
+ id: string;
3015
+ features: ("versioning" | "edge")[];
3016
+ regions: string[];
3017
+ modes: ("standard" | "glacier")[];
3018
+ };
3019
+ };
3020
+ } | {
3021
+ id: string;
3022
+ provider: "secrecy";
3023
+ protocol: "mongo";
3024
+ mongoStorageOptions: {
3025
+ id: string;
3026
+ mode: "standard";
3027
+ region: string;
3028
+ } & {
3029
+ providerSettings: {
3030
+ id: string;
3031
+ regions: string[];
3032
+ modes: "standard"[];
3033
+ };
3034
+ };
3035
+ };
2668
3036
  size: bigint;
2669
3037
  md5: string;
2670
3038
  sizeEncrypted: bigint | null;
@@ -2673,16 +3041,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2673
3041
  ext: string | null;
2674
3042
  senderPublicKey: string;
2675
3043
  maybeParts: {
3044
+ url: string;
2676
3045
  md5: string;
2677
3046
  order: number;
2678
- contentUrl: string;
2679
3047
  }[] | null;
2680
- maybeContent: Buffer | null;
3048
+ maybeBytes: Buffer | null;
2681
3049
  } | {
2682
3050
  id: string;
2683
3051
  type: "sent_mail";
2684
3052
  key: string | null;
2685
- storageType: "s3" | "cold" | "lite";
3053
+ storage: {
3054
+ id: string;
3055
+ provider: "scaleway" | "ovh";
3056
+ protocol: "s3";
3057
+ s3StorageOptions: {
3058
+ id: string;
3059
+ mode: "standard" | "glacier";
3060
+ region: string;
3061
+ } & {
3062
+ providerSettings: {
3063
+ id: string;
3064
+ features: ("versioning" | "edge")[];
3065
+ regions: string[];
3066
+ modes: ("standard" | "glacier")[];
3067
+ };
3068
+ };
3069
+ } | {
3070
+ id: string;
3071
+ provider: "secrecy";
3072
+ protocol: "mongo";
3073
+ mongoStorageOptions: {
3074
+ id: string;
3075
+ mode: "standard";
3076
+ region: string;
3077
+ } & {
3078
+ providerSettings: {
3079
+ id: string;
3080
+ regions: string[];
3081
+ modes: "standard"[];
3082
+ };
3083
+ };
3084
+ };
2686
3085
  size: bigint;
2687
3086
  md5: string;
2688
3087
  sizeEncrypted: bigint | null;
@@ -2690,16 +3089,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2690
3089
  mime: string | null;
2691
3090
  ext: string | null;
2692
3091
  maybeParts: {
3092
+ url: string;
2693
3093
  md5: string;
2694
3094
  order: number;
2695
- contentUrl: string;
2696
3095
  }[] | null;
2697
- maybeContent: Buffer | null;
3096
+ maybeBytes: Buffer | null;
2698
3097
  } | {
2699
3098
  id: string;
2700
- type: "cloud";
3099
+ type: "s3";
2701
3100
  key: string | null;
2702
- storageType: "s3" | "cold";
3101
+ storage: {
3102
+ id: string;
3103
+ provider: "scaleway" | "ovh";
3104
+ protocol: "s3";
3105
+ s3StorageOptions: {
3106
+ id: string;
3107
+ mode: "standard" | "glacier";
3108
+ region: string;
3109
+ } & {
3110
+ providerSettings: {
3111
+ id: string;
3112
+ features: ("versioning" | "edge")[];
3113
+ regions: string[];
3114
+ modes: ("standard" | "glacier")[];
3115
+ };
3116
+ };
3117
+ };
2703
3118
  size: bigint;
2704
3119
  md5: string;
2705
3120
  sizeEncrypted: bigint | null;
@@ -2707,24 +3122,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2707
3122
  mime: string | null;
2708
3123
  ext: string | null;
2709
3124
  parts: {
3125
+ url: string;
2710
3126
  md5: string;
2711
3127
  order: number;
2712
- contentUrl: string;
2713
3128
  }[];
2714
3129
  publicKey: string;
2715
3130
  } | {
2716
3131
  id: string;
2717
- type: "lite";
3132
+ type: "mongo";
2718
3133
  key: string | null;
2719
- storageType: "lite";
3134
+ storage: {
3135
+ id: string;
3136
+ provider: "secrecy";
3137
+ protocol: "mongo";
3138
+ mongoStorageOptions: {
3139
+ id: string;
3140
+ mode: "standard";
3141
+ region: string;
3142
+ } & {
3143
+ providerSettings: {
3144
+ id: string;
3145
+ regions: string[];
3146
+ modes: "standard"[];
3147
+ };
3148
+ };
3149
+ };
2720
3150
  size: bigint;
2721
3151
  md5: string;
2722
3152
  sizeEncrypted: bigint | null;
2723
3153
  md5Encrypted: string | null;
2724
3154
  mime: string | null;
2725
3155
  ext: string | null;
2726
- content: Buffer;
2727
3156
  publicKey: string;
3157
+ bytes: Buffer;
2728
3158
  };
2729
3159
  }, unknown>;
2730
3160
  dataContentByIds: _trpc_server.BuildProcedure<"query", {
@@ -2760,7 +3190,38 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2760
3190
  id: string;
2761
3191
  type: "received_mail";
2762
3192
  key: string | null;
2763
- storageType: "s3" | "cold" | "lite";
3193
+ storage: {
3194
+ id: string;
3195
+ provider: "scaleway" | "ovh";
3196
+ protocol: "s3";
3197
+ s3StorageOptions: {
3198
+ id: string;
3199
+ mode: "standard" | "glacier";
3200
+ region: string;
3201
+ } & {
3202
+ providerSettings: {
3203
+ id: string;
3204
+ features: ("versioning" | "edge")[];
3205
+ regions: string[];
3206
+ modes: ("standard" | "glacier")[];
3207
+ };
3208
+ };
3209
+ } | {
3210
+ id: string;
3211
+ provider: "secrecy";
3212
+ protocol: "mongo";
3213
+ mongoStorageOptions: {
3214
+ id: string;
3215
+ mode: "standard";
3216
+ region: string;
3217
+ } & {
3218
+ providerSettings: {
3219
+ id: string;
3220
+ regions: string[];
3221
+ modes: "standard"[];
3222
+ };
3223
+ };
3224
+ };
2764
3225
  size: bigint;
2765
3226
  md5: string;
2766
3227
  sizeEncrypted: bigint | null;
@@ -2769,16 +3230,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2769
3230
  ext: string | null;
2770
3231
  senderPublicKey: string;
2771
3232
  maybeParts: {
3233
+ url: string;
2772
3234
  md5: string;
2773
3235
  order: number;
2774
- contentUrl: string;
2775
3236
  }[] | null;
2776
- maybeContent: Buffer | null;
3237
+ maybeBytes: Buffer | null;
2777
3238
  } | {
2778
3239
  id: string;
2779
3240
  type: "sent_mail";
2780
3241
  key: string | null;
2781
- storageType: "s3" | "cold" | "lite";
3242
+ storage: {
3243
+ id: string;
3244
+ provider: "scaleway" | "ovh";
3245
+ protocol: "s3";
3246
+ s3StorageOptions: {
3247
+ id: string;
3248
+ mode: "standard" | "glacier";
3249
+ region: string;
3250
+ } & {
3251
+ providerSettings: {
3252
+ id: string;
3253
+ features: ("versioning" | "edge")[];
3254
+ regions: string[];
3255
+ modes: ("standard" | "glacier")[];
3256
+ };
3257
+ };
3258
+ } | {
3259
+ id: string;
3260
+ provider: "secrecy";
3261
+ protocol: "mongo";
3262
+ mongoStorageOptions: {
3263
+ id: string;
3264
+ mode: "standard";
3265
+ region: string;
3266
+ } & {
3267
+ providerSettings: {
3268
+ id: string;
3269
+ regions: string[];
3270
+ modes: "standard"[];
3271
+ };
3272
+ };
3273
+ };
2782
3274
  size: bigint;
2783
3275
  md5: string;
2784
3276
  sizeEncrypted: bigint | null;
@@ -2786,16 +3278,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2786
3278
  mime: string | null;
2787
3279
  ext: string | null;
2788
3280
  maybeParts: {
3281
+ url: string;
2789
3282
  md5: string;
2790
3283
  order: number;
2791
- contentUrl: string;
2792
3284
  }[] | null;
2793
- maybeContent: Buffer | null;
3285
+ maybeBytes: Buffer | null;
2794
3286
  } | {
2795
3287
  id: string;
2796
- type: "cloud";
3288
+ type: "s3";
2797
3289
  key: string | null;
2798
- storageType: "s3" | "cold";
3290
+ storage: {
3291
+ id: string;
3292
+ provider: "scaleway" | "ovh";
3293
+ protocol: "s3";
3294
+ s3StorageOptions: {
3295
+ id: string;
3296
+ mode: "standard" | "glacier";
3297
+ region: string;
3298
+ } & {
3299
+ providerSettings: {
3300
+ id: string;
3301
+ features: ("versioning" | "edge")[];
3302
+ regions: string[];
3303
+ modes: ("standard" | "glacier")[];
3304
+ };
3305
+ };
3306
+ };
2799
3307
  size: bigint;
2800
3308
  md5: string;
2801
3309
  sizeEncrypted: bigint | null;
@@ -2803,30 +3311,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2803
3311
  mime: string | null;
2804
3312
  ext: string | null;
2805
3313
  parts: {
3314
+ url: string;
2806
3315
  md5: string;
2807
3316
  order: number;
2808
- contentUrl: string;
2809
3317
  }[];
2810
3318
  publicKey: string;
2811
3319
  } | {
2812
3320
  id: string;
2813
- type: "lite";
3321
+ type: "mongo";
2814
3322
  key: string | null;
2815
- storageType: "lite";
3323
+ storage: {
3324
+ id: string;
3325
+ provider: "secrecy";
3326
+ protocol: "mongo";
3327
+ mongoStorageOptions: {
3328
+ id: string;
3329
+ mode: "standard";
3330
+ region: string;
3331
+ } & {
3332
+ providerSettings: {
3333
+ id: string;
3334
+ regions: string[];
3335
+ modes: "standard"[];
3336
+ };
3337
+ };
3338
+ };
2816
3339
  size: bigint;
2817
3340
  md5: string;
2818
3341
  sizeEncrypted: bigint | null;
2819
3342
  md5Encrypted: string | null;
2820
3343
  mime: string | null;
2821
3344
  ext: string | null;
2822
- content: Buffer;
2823
3345
  publicKey: string;
3346
+ bytes: Buffer;
2824
3347
  })[];
2825
3348
  _output_out: ({
2826
3349
  id: string;
2827
3350
  type: "received_mail";
2828
3351
  key: string | null;
2829
- storageType: "s3" | "cold" | "lite";
3352
+ storage: {
3353
+ id: string;
3354
+ provider: "scaleway" | "ovh";
3355
+ protocol: "s3";
3356
+ s3StorageOptions: {
3357
+ id: string;
3358
+ mode: "standard" | "glacier";
3359
+ region: string;
3360
+ } & {
3361
+ providerSettings: {
3362
+ id: string;
3363
+ features: ("versioning" | "edge")[];
3364
+ regions: string[];
3365
+ modes: ("standard" | "glacier")[];
3366
+ };
3367
+ };
3368
+ } | {
3369
+ id: string;
3370
+ provider: "secrecy";
3371
+ protocol: "mongo";
3372
+ mongoStorageOptions: {
3373
+ id: string;
3374
+ mode: "standard";
3375
+ region: string;
3376
+ } & {
3377
+ providerSettings: {
3378
+ id: string;
3379
+ regions: string[];
3380
+ modes: "standard"[];
3381
+ };
3382
+ };
3383
+ };
2830
3384
  size: bigint;
2831
3385
  md5: string;
2832
3386
  sizeEncrypted: bigint | null;
@@ -2835,16 +3389,47 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2835
3389
  ext: string | null;
2836
3390
  senderPublicKey: string;
2837
3391
  maybeParts: {
3392
+ url: string;
2838
3393
  md5: string;
2839
3394
  order: number;
2840
- contentUrl: string;
2841
3395
  }[] | null;
2842
- maybeContent: Buffer | null;
3396
+ maybeBytes: Buffer | null;
2843
3397
  } | {
2844
3398
  id: string;
2845
3399
  type: "sent_mail";
2846
3400
  key: string | null;
2847
- storageType: "s3" | "cold" | "lite";
3401
+ storage: {
3402
+ id: string;
3403
+ provider: "scaleway" | "ovh";
3404
+ protocol: "s3";
3405
+ s3StorageOptions: {
3406
+ id: string;
3407
+ mode: "standard" | "glacier";
3408
+ region: string;
3409
+ } & {
3410
+ providerSettings: {
3411
+ id: string;
3412
+ features: ("versioning" | "edge")[];
3413
+ regions: string[];
3414
+ modes: ("standard" | "glacier")[];
3415
+ };
3416
+ };
3417
+ } | {
3418
+ id: string;
3419
+ provider: "secrecy";
3420
+ protocol: "mongo";
3421
+ mongoStorageOptions: {
3422
+ id: string;
3423
+ mode: "standard";
3424
+ region: string;
3425
+ } & {
3426
+ providerSettings: {
3427
+ id: string;
3428
+ regions: string[];
3429
+ modes: "standard"[];
3430
+ };
3431
+ };
3432
+ };
2848
3433
  size: bigint;
2849
3434
  md5: string;
2850
3435
  sizeEncrypted: bigint | null;
@@ -2852,16 +3437,32 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2852
3437
  mime: string | null;
2853
3438
  ext: string | null;
2854
3439
  maybeParts: {
3440
+ url: string;
2855
3441
  md5: string;
2856
3442
  order: number;
2857
- contentUrl: string;
2858
3443
  }[] | null;
2859
- maybeContent: Buffer | null;
3444
+ maybeBytes: Buffer | null;
2860
3445
  } | {
2861
3446
  id: string;
2862
- type: "cloud";
3447
+ type: "s3";
2863
3448
  key: string | null;
2864
- storageType: "s3" | "cold";
3449
+ storage: {
3450
+ id: string;
3451
+ provider: "scaleway" | "ovh";
3452
+ protocol: "s3";
3453
+ s3StorageOptions: {
3454
+ id: string;
3455
+ mode: "standard" | "glacier";
3456
+ region: string;
3457
+ } & {
3458
+ providerSettings: {
3459
+ id: string;
3460
+ features: ("versioning" | "edge")[];
3461
+ regions: string[];
3462
+ modes: ("standard" | "glacier")[];
3463
+ };
3464
+ };
3465
+ };
2865
3466
  size: bigint;
2866
3467
  md5: string;
2867
3468
  sizeEncrypted: bigint | null;
@@ -2869,24 +3470,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2869
3470
  mime: string | null;
2870
3471
  ext: string | null;
2871
3472
  parts: {
3473
+ url: string;
2872
3474
  md5: string;
2873
3475
  order: number;
2874
- contentUrl: string;
2875
3476
  }[];
2876
3477
  publicKey: string;
2877
3478
  } | {
2878
3479
  id: string;
2879
- type: "lite";
3480
+ type: "mongo";
2880
3481
  key: string | null;
2881
- storageType: "lite";
3482
+ storage: {
3483
+ id: string;
3484
+ provider: "secrecy";
3485
+ protocol: "mongo";
3486
+ mongoStorageOptions: {
3487
+ id: string;
3488
+ mode: "standard";
3489
+ region: string;
3490
+ } & {
3491
+ providerSettings: {
3492
+ id: string;
3493
+ regions: string[];
3494
+ modes: "standard"[];
3495
+ };
3496
+ };
3497
+ };
2882
3498
  size: bigint;
2883
3499
  md5: string;
2884
3500
  sizeEncrypted: bigint | null;
2885
3501
  md5Encrypted: string | null;
2886
3502
  mime: string | null;
2887
3503
  ext: string | null;
2888
- content: Buffer;
2889
3504
  publicKey: string;
3505
+ bytes: Buffer;
2890
3506
  })[];
2891
3507
  }, unknown>;
2892
3508
  dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2946,21 +3562,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2946
3562
  _ctx_out: {};
2947
3563
  _input_in: {
2948
3564
  dataId: string;
2949
- storageType: "s3" | "cold" | "lite";
3565
+ mode?: "standard" | "glacier" | undefined;
3566
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3567
+ protocol?: "s3" | "mongo" | undefined;
3568
+ region?: string | undefined;
2950
3569
  };
2951
3570
  _input_out: {
2952
3571
  dataId: string;
2953
- storageType: "s3" | "cold" | "lite";
3572
+ mode?: "standard" | "glacier" | undefined;
3573
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3574
+ protocol?: "s3" | "mongo" | undefined;
3575
+ region?: string | undefined;
2954
3576
  };
2955
3577
  _output_in: {
2956
3578
  isMoved: boolean;
2957
- fromType: "s3" | "cold" | "lite";
2958
- toType: "s3" | "cold" | "lite";
3579
+ fromProtocol?: "s3" | "mongo" | undefined;
3580
+ fromMode?: "standard" | "glacier" | undefined;
3581
+ fromRegion?: string | undefined;
3582
+ toProtocol?: "s3" | "mongo" | undefined;
3583
+ toMode?: "standard" | "glacier" | undefined;
3584
+ toRegion?: string | undefined;
2959
3585
  };
2960
3586
  _output_out: {
2961
3587
  isMoved: boolean;
2962
- fromType: "s3" | "cold" | "lite";
2963
- toType: "s3" | "cold" | "lite";
3588
+ fromProtocol?: "s3" | "mongo" | undefined;
3589
+ fromMode?: "standard" | "glacier" | undefined;
3590
+ fromRegion?: string | undefined;
3591
+ toProtocol?: "s3" | "mongo" | undefined;
3592
+ toMode?: "standard" | "glacier" | undefined;
3593
+ toRegion?: string | undefined;
2964
3594
  };
2965
3595
  }, unknown>;
2966
3596
  saveInCloud: _trpc_server.BuildProcedure<"mutation", {
@@ -3037,44 +3667,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3037
3667
  sizeEncrypted: bigint;
3038
3668
  };
3039
3669
  } & {
3040
- current: {
3670
+ current: ({
3041
3671
  id: string;
3042
3672
  createdAt: Date;
3043
- storageType: "s3" | "cold" | "lite";
3044
3673
  size: bigint;
3045
3674
  md5: string;
3046
3675
  userAppUserId: string;
3047
3676
  userAppAppId: string;
3677
+ nextStorageId: string | null;
3048
3678
  sizeEncrypted: bigint | null;
3049
3679
  md5Encrypted: string | null;
3050
3680
  mime: string | null;
3051
3681
  ext: string | null;
3052
3682
  validatedAt: Date | null;
3053
3683
  restoreSince: Date | null;
3684
+ onTransferSince: Date | null;
3685
+ } & {
3686
+ storage: {
3687
+ id: string;
3688
+ provider: "scaleway" | "ovh";
3689
+ protocol: "s3";
3690
+ s3StorageOptions: {
3691
+ id: string;
3692
+ mode: "standard" | "glacier";
3693
+ region: string;
3694
+ } & {
3695
+ providerSettings: {
3696
+ id: string;
3697
+ features: ("versioning" | "edge")[];
3698
+ regions: string[];
3699
+ modes: ("standard" | "glacier")[];
3700
+ };
3701
+ };
3702
+ } | {
3703
+ id: string;
3704
+ provider: "secrecy";
3705
+ protocol: "mongo";
3706
+ mongoStorageOptions: {
3707
+ id: string;
3708
+ mode: "standard";
3709
+ region: string;
3710
+ } & {
3711
+ providerSettings: {
3712
+ id: string;
3713
+ regions: string[];
3714
+ modes: "standard"[];
3715
+ };
3716
+ };
3717
+ };
3054
3718
  access: {
3055
3719
  key: string | null;
3056
3720
  sharedByPubKey: string;
3057
3721
  };
3058
- } | null;
3059
- history: {
3722
+ }) | null;
3723
+ history: ({
3060
3724
  id: string;
3061
3725
  createdAt: Date;
3062
- storageType: "s3" | "cold" | "lite";
3063
3726
  size: bigint;
3064
3727
  md5: string;
3065
3728
  userAppUserId: string;
3066
3729
  userAppAppId: string;
3730
+ nextStorageId: string | null;
3067
3731
  sizeEncrypted: bigint | null;
3068
3732
  md5Encrypted: string | null;
3069
3733
  mime: string | null;
3070
3734
  ext: string | null;
3071
3735
  validatedAt: Date | null;
3072
3736
  restoreSince: Date | null;
3737
+ onTransferSince: Date | null;
3738
+ } & {
3739
+ storage: {
3740
+ id: string;
3741
+ provider: "scaleway" | "ovh";
3742
+ protocol: "s3";
3743
+ s3StorageOptions: {
3744
+ id: string;
3745
+ mode: "standard" | "glacier";
3746
+ region: string;
3747
+ } & {
3748
+ providerSettings: {
3749
+ id: string;
3750
+ features: ("versioning" | "edge")[];
3751
+ regions: string[];
3752
+ modes: ("standard" | "glacier")[];
3753
+ };
3754
+ };
3755
+ } | {
3756
+ id: string;
3757
+ provider: "secrecy";
3758
+ protocol: "mongo";
3759
+ mongoStorageOptions: {
3760
+ id: string;
3761
+ mode: "standard";
3762
+ region: string;
3763
+ } & {
3764
+ providerSettings: {
3765
+ id: string;
3766
+ regions: string[];
3767
+ modes: "standard"[];
3768
+ };
3769
+ };
3770
+ };
3073
3771
  access: {
3074
3772
  key: string | null;
3075
3773
  sharedByPubKey: string;
3076
3774
  };
3077
- }[];
3775
+ })[];
3078
3776
  parent: ({
3079
3777
  name: string;
3080
3778
  id: string;
@@ -3188,44 +3886,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3188
3886
  sizeEncrypted: bigint;
3189
3887
  };
3190
3888
  } & {
3191
- current: {
3889
+ current: ({
3192
3890
  id: string;
3193
3891
  createdAt: Date;
3194
- storageType: "s3" | "cold" | "lite";
3195
3892
  size: bigint;
3196
3893
  md5: string;
3197
3894
  userAppUserId: string;
3198
3895
  userAppAppId: string;
3896
+ nextStorageId: string | null;
3199
3897
  sizeEncrypted: bigint | null;
3200
3898
  md5Encrypted: string | null;
3201
3899
  mime: string | null;
3202
3900
  ext: string | null;
3203
3901
  validatedAt: Date | null;
3204
3902
  restoreSince: Date | null;
3903
+ onTransferSince: Date | null;
3904
+ } & {
3905
+ storage: {
3906
+ id: string;
3907
+ provider: "scaleway" | "ovh";
3908
+ protocol: "s3";
3909
+ s3StorageOptions: {
3910
+ id: string;
3911
+ mode: "standard" | "glacier";
3912
+ region: string;
3913
+ } & {
3914
+ providerSettings: {
3915
+ id: string;
3916
+ features: ("versioning" | "edge")[];
3917
+ regions: string[];
3918
+ modes: ("standard" | "glacier")[];
3919
+ };
3920
+ };
3921
+ } | {
3922
+ id: string;
3923
+ provider: "secrecy";
3924
+ protocol: "mongo";
3925
+ mongoStorageOptions: {
3926
+ id: string;
3927
+ mode: "standard";
3928
+ region: string;
3929
+ } & {
3930
+ providerSettings: {
3931
+ id: string;
3932
+ regions: string[];
3933
+ modes: "standard"[];
3934
+ };
3935
+ };
3936
+ };
3205
3937
  access: {
3206
3938
  key: string | null;
3207
3939
  sharedByPubKey: string;
3208
3940
  };
3209
- } | null;
3210
- history: {
3941
+ }) | null;
3942
+ history: ({
3211
3943
  id: string;
3212
3944
  createdAt: Date;
3213
- storageType: "s3" | "cold" | "lite";
3214
3945
  size: bigint;
3215
3946
  md5: string;
3216
3947
  userAppUserId: string;
3217
3948
  userAppAppId: string;
3949
+ nextStorageId: string | null;
3218
3950
  sizeEncrypted: bigint | null;
3219
3951
  md5Encrypted: string | null;
3220
3952
  mime: string | null;
3221
3953
  ext: string | null;
3222
3954
  validatedAt: Date | null;
3223
3955
  restoreSince: Date | null;
3956
+ onTransferSince: Date | null;
3957
+ } & {
3958
+ storage: {
3959
+ id: string;
3960
+ provider: "scaleway" | "ovh";
3961
+ protocol: "s3";
3962
+ s3StorageOptions: {
3963
+ id: string;
3964
+ mode: "standard" | "glacier";
3965
+ region: string;
3966
+ } & {
3967
+ providerSettings: {
3968
+ id: string;
3969
+ features: ("versioning" | "edge")[];
3970
+ regions: string[];
3971
+ modes: ("standard" | "glacier")[];
3972
+ };
3973
+ };
3974
+ } | {
3975
+ id: string;
3976
+ provider: "secrecy";
3977
+ protocol: "mongo";
3978
+ mongoStorageOptions: {
3979
+ id: string;
3980
+ mode: "standard";
3981
+ region: string;
3982
+ } & {
3983
+ providerSettings: {
3984
+ id: string;
3985
+ regions: string[];
3986
+ modes: "standard"[];
3987
+ };
3988
+ };
3989
+ };
3224
3990
  access: {
3225
3991
  key: string | null;
3226
3992
  sharedByPubKey: string;
3227
3993
  };
3228
- }[];
3994
+ })[];
3229
3995
  parent: ({
3230
3996
  name: string;
3231
3997
  id: string;
@@ -3396,8 +4162,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3396
4162
  history: {
3397
4163
  createdAt: Date;
3398
4164
  dataId: string;
3399
- storageType: "s3" | "cold" | "lite";
3400
4165
  size: bigint;
4166
+ storageType: "s3" | "mongo";
3401
4167
  }[];
3402
4168
  access: {
3403
4169
  appId: string;
@@ -3437,8 +4203,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3437
4203
  history: {
3438
4204
  createdAt: Date;
3439
4205
  dataId: string;
3440
- storageType: "s3" | "cold" | "lite";
3441
4206
  size: bigint;
4207
+ storageType: "s3" | "mongo";
3442
4208
  }[];
3443
4209
  access: {
3444
4210
  appId: string;
@@ -3581,12 +4347,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3581
4347
  md5: string;
3582
4348
  sizeEncrypted: bigint;
3583
4349
  md5Encrypted: string;
4350
+ mode?: "standard" | "glacier" | undefined;
4351
+ provider?: "scaleway" | "ovh" | undefined;
4352
+ region?: string | undefined;
3584
4353
  mime?: string | undefined;
3585
4354
  ext?: string | undefined;
3586
4355
  } | {
3587
4356
  type: "unencrypted";
3588
4357
  size: bigint;
3589
4358
  md5: string;
4359
+ mode?: "standard" | "glacier" | undefined;
4360
+ provider?: "scaleway" | "ovh" | undefined;
4361
+ region?: string | undefined;
3590
4362
  mime?: string | undefined;
3591
4363
  ext?: string | undefined;
3592
4364
  };
@@ -3594,15 +4366,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3594
4366
  type: "encrypted";
3595
4367
  key: string;
3596
4368
  size: bigint;
4369
+ mode: "standard" | "glacier";
3597
4370
  md5: string;
4371
+ provider: "scaleway" | "ovh";
3598
4372
  sizeEncrypted: bigint;
3599
4373
  md5Encrypted: string;
4374
+ region?: string | undefined;
3600
4375
  mime?: string | undefined;
3601
4376
  ext?: string | undefined;
3602
4377
  } | {
3603
4378
  type: "unencrypted";
3604
4379
  size: bigint;
4380
+ mode: "standard" | "glacier";
3605
4381
  md5: string;
4382
+ provider: "scaleway" | "ovh";
4383
+ region?: string | undefined;
3606
4384
  mime?: string | undefined;
3607
4385
  ext?: string | undefined;
3608
4386
  };
@@ -3665,12 +4443,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3665
4443
  md5: string;
3666
4444
  sizeEncrypted: bigint;
3667
4445
  md5Encrypted: string;
4446
+ mode?: "standard" | "glacier" | undefined;
4447
+ provider?: "scaleway" | "ovh" | undefined;
4448
+ region?: string | undefined;
3668
4449
  mime?: string | undefined;
3669
4450
  ext?: string | undefined;
3670
4451
  } | {
3671
4452
  type: "unencrypted";
3672
4453
  size: bigint;
3673
4454
  md5: string;
4455
+ mode?: "standard" | "glacier" | undefined;
4456
+ provider?: "scaleway" | "ovh" | undefined;
4457
+ region?: string | undefined;
3674
4458
  mime?: string | undefined;
3675
4459
  ext?: string | undefined;
3676
4460
  };
@@ -3678,15 +4462,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3678
4462
  type: "encrypted";
3679
4463
  key: string;
3680
4464
  size: bigint;
4465
+ mode: "standard" | "glacier";
3681
4466
  md5: string;
4467
+ provider: "scaleway" | "ovh";
3682
4468
  sizeEncrypted: bigint;
3683
4469
  md5Encrypted: string;
4470
+ region?: string | undefined;
3684
4471
  mime?: string | undefined;
3685
4472
  ext?: string | undefined;
3686
4473
  } | {
3687
4474
  type: "unencrypted";
3688
4475
  size: bigint;
4476
+ mode: "standard" | "glacier";
3689
4477
  md5: string;
4478
+ provider: "scaleway" | "ovh";
4479
+ region?: string | undefined;
3690
4480
  mime?: string | undefined;
3691
4481
  ext?: string | undefined;
3692
4482
  };
@@ -3719,7 +4509,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3719
4509
  partSize: bigint;
3720
4510
  };
3721
4511
  }, unknown>;
3722
- uploadLiteData: _trpc_server.BuildProcedure<"mutation", {
4512
+ uploadMongoData: _trpc_server.BuildProcedure<"mutation", {
3723
4513
  _config: _trpc_server.RootConfig<{
3724
4514
  ctx: {};
3725
4515
  meta: object;
@@ -3749,14 +4539,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3749
4539
  md5: string;
3750
4540
  sizeEncrypted: bigint;
3751
4541
  md5Encrypted: string;
3752
- content: Buffer;
4542
+ bytes: Buffer;
3753
4543
  mime?: string | undefined;
3754
4544
  ext?: string | undefined;
3755
4545
  } | {
3756
4546
  type: "unencrypted";
3757
4547
  size: bigint;
3758
4548
  md5: string;
3759
- content: Buffer;
4549
+ bytes: Buffer;
3760
4550
  mime?: string | undefined;
3761
4551
  ext?: string | undefined;
3762
4552
  };
@@ -3767,14 +4557,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3767
4557
  md5: string;
3768
4558
  sizeEncrypted: bigint;
3769
4559
  md5Encrypted: string;
3770
- content: Buffer;
4560
+ bytes: Buffer;
3771
4561
  mime?: string | undefined;
3772
4562
  ext?: string | undefined;
3773
4563
  } | {
3774
4564
  type: "unencrypted";
3775
4565
  size: bigint;
3776
4566
  md5: string;
3777
- content: Buffer;
4567
+ bytes: Buffer;
3778
4568
  mime?: string | undefined;
3779
4569
  ext?: string | undefined;
3780
4570
  };
@@ -3835,6 +4625,134 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3835
4625
  isReported: boolean;
3836
4626
  };
3837
4627
  }, unknown>;
4628
+ dataStorage: _trpc_server.BuildProcedure<"query", {
4629
+ _config: _trpc_server.RootConfig<{
4630
+ ctx: {};
4631
+ meta: object;
4632
+ errorShape: {
4633
+ message: string;
4634
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4635
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4636
+ } | {
4637
+ data: {
4638
+ zodError: zod.typeToFlattenedError<any, string> | null;
4639
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4640
+ httpStatus: number;
4641
+ path?: string;
4642
+ stack?: string;
4643
+ };
4644
+ message: string;
4645
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4646
+ };
4647
+ transformer: typeof superjson.default;
4648
+ }>;
4649
+ _meta: object;
4650
+ _ctx_out: {};
4651
+ _input_in: {
4652
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4653
+ protocol?: "s3" | "mongo" | undefined;
4654
+ };
4655
+ _input_out: {
4656
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4657
+ protocol?: "s3" | "mongo" | undefined;
4658
+ };
4659
+ _output_in: {
4660
+ id: string;
4661
+ provider: "scaleway" | "secrecy" | "ovh";
4662
+ protocol: "s3" | "mongo";
4663
+ s3StorageOptionsId: string | null;
4664
+ mongoStorageOptionsId: string | null;
4665
+ }[];
4666
+ _output_out: {
4667
+ id: string;
4668
+ provider: "scaleway" | "secrecy" | "ovh";
4669
+ protocol: "s3" | "mongo";
4670
+ s3StorageOptionsId: string | null;
4671
+ mongoStorageOptionsId: string | null;
4672
+ }[];
4673
+ }, unknown>;
4674
+ dataStorageMongoSettings: _trpc_server.BuildProcedure<"query", {
4675
+ _config: _trpc_server.RootConfig<{
4676
+ ctx: {};
4677
+ meta: object;
4678
+ errorShape: {
4679
+ message: string;
4680
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4681
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4682
+ } | {
4683
+ data: {
4684
+ zodError: zod.typeToFlattenedError<any, string> | null;
4685
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4686
+ httpStatus: number;
4687
+ path?: string;
4688
+ stack?: string;
4689
+ };
4690
+ message: string;
4691
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4692
+ };
4693
+ transformer: typeof superjson.default;
4694
+ }>;
4695
+ _meta: object;
4696
+ _ctx_out: {};
4697
+ _input_in: {
4698
+ id: string;
4699
+ };
4700
+ _input_out: {
4701
+ id: string;
4702
+ };
4703
+ _output_in: {
4704
+ id: string;
4705
+ regions: string[];
4706
+ modes: "standard"[];
4707
+ };
4708
+ _output_out: {
4709
+ id: string;
4710
+ regions: string[];
4711
+ modes: "standard"[];
4712
+ };
4713
+ }, unknown>;
4714
+ dataStorageS3Settings: _trpc_server.BuildProcedure<"query", {
4715
+ _config: _trpc_server.RootConfig<{
4716
+ ctx: {};
4717
+ meta: object;
4718
+ errorShape: {
4719
+ message: string;
4720
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4721
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4722
+ } | {
4723
+ data: {
4724
+ zodError: zod.typeToFlattenedError<any, string> | null;
4725
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4726
+ httpStatus: number;
4727
+ path?: string;
4728
+ stack?: string;
4729
+ };
4730
+ message: string;
4731
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4732
+ };
4733
+ transformer: typeof superjson.default;
4734
+ }>;
4735
+ _meta: object;
4736
+ _ctx_out: {};
4737
+ _input_in: {
4738
+ id: string;
4739
+ };
4740
+ _input_out: {
4741
+ id: string;
4742
+ };
4743
+ _output_in: {
4744
+ id: string;
4745
+ features: ("versioning" | "edge")[];
4746
+ regions: string[];
4747
+ modes: ("standard" | "glacier")[];
4748
+ };
4749
+ _output_out: {
4750
+ id: string;
4751
+ features: ("versioning" | "edge")[];
4752
+ regions: string[];
4753
+ modes: ("standard" | "glacier")[];
4754
+ };
4755
+ }, unknown>;
3838
4756
  dataLink: _trpc_server.BuildProcedure<"query", {
3839
4757
  _config: _trpc_server.RootConfig<{
3840
4758
  ctx: {};
@@ -4141,44 +5059,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4141
5059
  sizeEncrypted: bigint;
4142
5060
  };
4143
5061
  } & {
4144
- current: {
5062
+ current: ({
4145
5063
  id: string;
4146
5064
  createdAt: Date;
4147
- storageType: "s3" | "cold" | "lite";
4148
5065
  size: bigint;
4149
5066
  md5: string;
4150
5067
  userAppUserId: string;
4151
5068
  userAppAppId: string;
5069
+ nextStorageId: string | null;
4152
5070
  sizeEncrypted: bigint | null;
4153
5071
  md5Encrypted: string | null;
4154
5072
  mime: string | null;
4155
5073
  ext: string | null;
4156
5074
  validatedAt: Date | null;
4157
5075
  restoreSince: Date | null;
5076
+ onTransferSince: Date | null;
5077
+ } & {
5078
+ storage: {
5079
+ id: string;
5080
+ provider: "scaleway" | "ovh";
5081
+ protocol: "s3";
5082
+ s3StorageOptions: {
5083
+ id: string;
5084
+ mode: "standard" | "glacier";
5085
+ region: string;
5086
+ } & {
5087
+ providerSettings: {
5088
+ id: string;
5089
+ features: ("versioning" | "edge")[];
5090
+ regions: string[];
5091
+ modes: ("standard" | "glacier")[];
5092
+ };
5093
+ };
5094
+ } | {
5095
+ id: string;
5096
+ provider: "secrecy";
5097
+ protocol: "mongo";
5098
+ mongoStorageOptions: {
5099
+ id: string;
5100
+ mode: "standard";
5101
+ region: string;
5102
+ } & {
5103
+ providerSettings: {
5104
+ id: string;
5105
+ regions: string[];
5106
+ modes: "standard"[];
5107
+ };
5108
+ };
5109
+ };
4158
5110
  access: {
4159
5111
  key: string | null;
4160
5112
  sharedByPubKey: string;
4161
5113
  };
4162
- } | null;
4163
- history: {
5114
+ }) | null;
5115
+ history: ({
4164
5116
  id: string;
4165
5117
  createdAt: Date;
4166
- storageType: "s3" | "cold" | "lite";
4167
5118
  size: bigint;
4168
5119
  md5: string;
4169
5120
  userAppUserId: string;
4170
5121
  userAppAppId: string;
5122
+ nextStorageId: string | null;
4171
5123
  sizeEncrypted: bigint | null;
4172
5124
  md5Encrypted: string | null;
4173
5125
  mime: string | null;
4174
5126
  ext: string | null;
4175
5127
  validatedAt: Date | null;
4176
5128
  restoreSince: Date | null;
5129
+ onTransferSince: Date | null;
5130
+ } & {
5131
+ storage: {
5132
+ id: string;
5133
+ provider: "scaleway" | "ovh";
5134
+ protocol: "s3";
5135
+ s3StorageOptions: {
5136
+ id: string;
5137
+ mode: "standard" | "glacier";
5138
+ region: string;
5139
+ } & {
5140
+ providerSettings: {
5141
+ id: string;
5142
+ features: ("versioning" | "edge")[];
5143
+ regions: string[];
5144
+ modes: ("standard" | "glacier")[];
5145
+ };
5146
+ };
5147
+ } | {
5148
+ id: string;
5149
+ provider: "secrecy";
5150
+ protocol: "mongo";
5151
+ mongoStorageOptions: {
5152
+ id: string;
5153
+ mode: "standard";
5154
+ region: string;
5155
+ } & {
5156
+ providerSettings: {
5157
+ id: string;
5158
+ regions: string[];
5159
+ modes: "standard"[];
5160
+ };
5161
+ };
5162
+ };
4177
5163
  access: {
4178
5164
  key: string | null;
4179
5165
  sharedByPubKey: string;
4180
5166
  };
4181
- }[];
5167
+ })[];
4182
5168
  parent: ({
4183
5169
  name: string;
4184
5170
  id: string;
@@ -4292,44 +5278,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4292
5278
  sizeEncrypted: bigint;
4293
5279
  };
4294
5280
  } & {
4295
- current: {
5281
+ current: ({
4296
5282
  id: string;
4297
5283
  createdAt: Date;
4298
- storageType: "s3" | "cold" | "lite";
4299
5284
  size: bigint;
4300
5285
  md5: string;
4301
5286
  userAppUserId: string;
4302
5287
  userAppAppId: string;
5288
+ nextStorageId: string | null;
4303
5289
  sizeEncrypted: bigint | null;
4304
5290
  md5Encrypted: string | null;
4305
5291
  mime: string | null;
4306
5292
  ext: string | null;
4307
5293
  validatedAt: Date | null;
4308
5294
  restoreSince: Date | null;
5295
+ onTransferSince: Date | null;
5296
+ } & {
5297
+ storage: {
5298
+ id: string;
5299
+ provider: "scaleway" | "ovh";
5300
+ protocol: "s3";
5301
+ s3StorageOptions: {
5302
+ id: string;
5303
+ mode: "standard" | "glacier";
5304
+ region: string;
5305
+ } & {
5306
+ providerSettings: {
5307
+ id: string;
5308
+ features: ("versioning" | "edge")[];
5309
+ regions: string[];
5310
+ modes: ("standard" | "glacier")[];
5311
+ };
5312
+ };
5313
+ } | {
5314
+ id: string;
5315
+ provider: "secrecy";
5316
+ protocol: "mongo";
5317
+ mongoStorageOptions: {
5318
+ id: string;
5319
+ mode: "standard";
5320
+ region: string;
5321
+ } & {
5322
+ providerSettings: {
5323
+ id: string;
5324
+ regions: string[];
5325
+ modes: "standard"[];
5326
+ };
5327
+ };
5328
+ };
4309
5329
  access: {
4310
5330
  key: string | null;
4311
5331
  sharedByPubKey: string;
4312
5332
  };
4313
- } | null;
4314
- history: {
5333
+ }) | null;
5334
+ history: ({
4315
5335
  id: string;
4316
5336
  createdAt: Date;
4317
- storageType: "s3" | "cold" | "lite";
4318
5337
  size: bigint;
4319
5338
  md5: string;
4320
5339
  userAppUserId: string;
4321
5340
  userAppAppId: string;
5341
+ nextStorageId: string | null;
4322
5342
  sizeEncrypted: bigint | null;
4323
5343
  md5Encrypted: string | null;
4324
5344
  mime: string | null;
4325
5345
  ext: string | null;
4326
5346
  validatedAt: Date | null;
4327
5347
  restoreSince: Date | null;
5348
+ onTransferSince: Date | null;
5349
+ } & {
5350
+ storage: {
5351
+ id: string;
5352
+ provider: "scaleway" | "ovh";
5353
+ protocol: "s3";
5354
+ s3StorageOptions: {
5355
+ id: string;
5356
+ mode: "standard" | "glacier";
5357
+ region: string;
5358
+ } & {
5359
+ providerSettings: {
5360
+ id: string;
5361
+ features: ("versioning" | "edge")[];
5362
+ regions: string[];
5363
+ modes: ("standard" | "glacier")[];
5364
+ };
5365
+ };
5366
+ } | {
5367
+ id: string;
5368
+ provider: "secrecy";
5369
+ protocol: "mongo";
5370
+ mongoStorageOptions: {
5371
+ id: string;
5372
+ mode: "standard";
5373
+ region: string;
5374
+ } & {
5375
+ providerSettings: {
5376
+ id: string;
5377
+ regions: string[];
5378
+ modes: "standard"[];
5379
+ };
5380
+ };
5381
+ };
4328
5382
  access: {
4329
5383
  key: string | null;
4330
5384
  sharedByPubKey: string;
4331
5385
  };
4332
- }[];
5386
+ })[];
4333
5387
  parent: ({
4334
5388
  name: string;
4335
5389
  id: string;
@@ -4939,44 +5993,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4939
5993
  sizeEncrypted: bigint;
4940
5994
  };
4941
5995
  } & {
4942
- current: {
5996
+ current: ({
4943
5997
  id: string;
4944
5998
  createdAt: Date;
4945
- storageType: "s3" | "cold" | "lite";
4946
5999
  size: bigint;
4947
6000
  md5: string;
4948
6001
  userAppUserId: string;
4949
6002
  userAppAppId: string;
6003
+ nextStorageId: string | null;
4950
6004
  sizeEncrypted: bigint | null;
4951
6005
  md5Encrypted: string | null;
4952
6006
  mime: string | null;
4953
6007
  ext: string | null;
4954
6008
  validatedAt: Date | null;
4955
6009
  restoreSince: Date | null;
6010
+ onTransferSince: Date | null;
6011
+ } & {
6012
+ storage: {
6013
+ id: string;
6014
+ provider: "scaleway" | "ovh";
6015
+ protocol: "s3";
6016
+ s3StorageOptions: {
6017
+ id: string;
6018
+ mode: "standard" | "glacier";
6019
+ region: string;
6020
+ } & {
6021
+ providerSettings: {
6022
+ id: string;
6023
+ features: ("versioning" | "edge")[];
6024
+ regions: string[];
6025
+ modes: ("standard" | "glacier")[];
6026
+ };
6027
+ };
6028
+ } | {
6029
+ id: string;
6030
+ provider: "secrecy";
6031
+ protocol: "mongo";
6032
+ mongoStorageOptions: {
6033
+ id: string;
6034
+ mode: "standard";
6035
+ region: string;
6036
+ } & {
6037
+ providerSettings: {
6038
+ id: string;
6039
+ regions: string[];
6040
+ modes: "standard"[];
6041
+ };
6042
+ };
6043
+ };
4956
6044
  access: {
4957
6045
  key: string | null;
4958
6046
  sharedByPubKey: string;
4959
6047
  };
4960
- } | null;
4961
- history: {
6048
+ }) | null;
6049
+ history: ({
4962
6050
  id: string;
4963
6051
  createdAt: Date;
4964
- storageType: "s3" | "cold" | "lite";
4965
6052
  size: bigint;
4966
6053
  md5: string;
4967
6054
  userAppUserId: string;
4968
6055
  userAppAppId: string;
6056
+ nextStorageId: string | null;
4969
6057
  sizeEncrypted: bigint | null;
4970
6058
  md5Encrypted: string | null;
4971
6059
  mime: string | null;
4972
6060
  ext: string | null;
4973
6061
  validatedAt: Date | null;
4974
6062
  restoreSince: Date | null;
6063
+ onTransferSince: Date | null;
6064
+ } & {
6065
+ storage: {
6066
+ id: string;
6067
+ provider: "scaleway" | "ovh";
6068
+ protocol: "s3";
6069
+ s3StorageOptions: {
6070
+ id: string;
6071
+ mode: "standard" | "glacier";
6072
+ region: string;
6073
+ } & {
6074
+ providerSettings: {
6075
+ id: string;
6076
+ features: ("versioning" | "edge")[];
6077
+ regions: string[];
6078
+ modes: ("standard" | "glacier")[];
6079
+ };
6080
+ };
6081
+ } | {
6082
+ id: string;
6083
+ provider: "secrecy";
6084
+ protocol: "mongo";
6085
+ mongoStorageOptions: {
6086
+ id: string;
6087
+ mode: "standard";
6088
+ region: string;
6089
+ } & {
6090
+ providerSettings: {
6091
+ id: string;
6092
+ regions: string[];
6093
+ modes: "standard"[];
6094
+ };
6095
+ };
6096
+ };
4975
6097
  access: {
4976
6098
  key: string | null;
4977
6099
  sharedByPubKey: string;
4978
6100
  };
4979
- }[];
6101
+ })[];
4980
6102
  parent: ({
4981
6103
  name: string;
4982
6104
  id: string;
@@ -5090,44 +6212,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5090
6212
  sizeEncrypted: bigint;
5091
6213
  };
5092
6214
  } & {
5093
- current: {
6215
+ current: ({
5094
6216
  id: string;
5095
6217
  createdAt: Date;
5096
- storageType: "s3" | "cold" | "lite";
5097
6218
  size: bigint;
5098
6219
  md5: string;
5099
6220
  userAppUserId: string;
5100
6221
  userAppAppId: string;
6222
+ nextStorageId: string | null;
5101
6223
  sizeEncrypted: bigint | null;
5102
6224
  md5Encrypted: string | null;
5103
6225
  mime: string | null;
5104
6226
  ext: string | null;
5105
6227
  validatedAt: Date | null;
5106
6228
  restoreSince: Date | null;
6229
+ onTransferSince: Date | null;
6230
+ } & {
6231
+ storage: {
6232
+ id: string;
6233
+ provider: "scaleway" | "ovh";
6234
+ protocol: "s3";
6235
+ s3StorageOptions: {
6236
+ id: string;
6237
+ mode: "standard" | "glacier";
6238
+ region: string;
6239
+ } & {
6240
+ providerSettings: {
6241
+ id: string;
6242
+ features: ("versioning" | "edge")[];
6243
+ regions: string[];
6244
+ modes: ("standard" | "glacier")[];
6245
+ };
6246
+ };
6247
+ } | {
6248
+ id: string;
6249
+ provider: "secrecy";
6250
+ protocol: "mongo";
6251
+ mongoStorageOptions: {
6252
+ id: string;
6253
+ mode: "standard";
6254
+ region: string;
6255
+ } & {
6256
+ providerSettings: {
6257
+ id: string;
6258
+ regions: string[];
6259
+ modes: "standard"[];
6260
+ };
6261
+ };
6262
+ };
5107
6263
  access: {
5108
6264
  key: string | null;
5109
6265
  sharedByPubKey: string;
5110
6266
  };
5111
- } | null;
5112
- history: {
6267
+ }) | null;
6268
+ history: ({
5113
6269
  id: string;
5114
6270
  createdAt: Date;
5115
- storageType: "s3" | "cold" | "lite";
5116
6271
  size: bigint;
5117
6272
  md5: string;
5118
6273
  userAppUserId: string;
5119
6274
  userAppAppId: string;
6275
+ nextStorageId: string | null;
5120
6276
  sizeEncrypted: bigint | null;
5121
6277
  md5Encrypted: string | null;
5122
6278
  mime: string | null;
5123
6279
  ext: string | null;
5124
6280
  validatedAt: Date | null;
5125
6281
  restoreSince: Date | null;
6282
+ onTransferSince: Date | null;
6283
+ } & {
6284
+ storage: {
6285
+ id: string;
6286
+ provider: "scaleway" | "ovh";
6287
+ protocol: "s3";
6288
+ s3StorageOptions: {
6289
+ id: string;
6290
+ mode: "standard" | "glacier";
6291
+ region: string;
6292
+ } & {
6293
+ providerSettings: {
6294
+ id: string;
6295
+ features: ("versioning" | "edge")[];
6296
+ regions: string[];
6297
+ modes: ("standard" | "glacier")[];
6298
+ };
6299
+ };
6300
+ } | {
6301
+ id: string;
6302
+ provider: "secrecy";
6303
+ protocol: "mongo";
6304
+ mongoStorageOptions: {
6305
+ id: string;
6306
+ mode: "standard";
6307
+ region: string;
6308
+ } & {
6309
+ providerSettings: {
6310
+ id: string;
6311
+ regions: string[];
6312
+ modes: "standard"[];
6313
+ };
6314
+ };
6315
+ };
5126
6316
  access: {
5127
6317
  key: string | null;
5128
6318
  sharedByPubKey: string;
5129
6319
  };
5130
- }[];
6320
+ })[];
5131
6321
  parent: ({
5132
6322
  name: string;
5133
6323
  id: string;
@@ -5717,44 +6907,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5717
6907
  sizeEncrypted: bigint;
5718
6908
  };
5719
6909
  } & {
5720
- current: {
6910
+ current: ({
5721
6911
  id: string;
5722
6912
  createdAt: Date;
5723
- storageType: "s3" | "cold" | "lite";
5724
6913
  size: bigint;
5725
6914
  md5: string;
5726
6915
  userAppUserId: string;
5727
6916
  userAppAppId: string;
6917
+ nextStorageId: string | null;
5728
6918
  sizeEncrypted: bigint | null;
5729
6919
  md5Encrypted: string | null;
5730
6920
  mime: string | null;
5731
6921
  ext: string | null;
5732
6922
  validatedAt: Date | null;
5733
6923
  restoreSince: Date | null;
6924
+ onTransferSince: Date | null;
6925
+ } & {
6926
+ storage: {
6927
+ id: string;
6928
+ provider: "scaleway" | "ovh";
6929
+ protocol: "s3";
6930
+ s3StorageOptions: {
6931
+ id: string;
6932
+ mode: "standard" | "glacier";
6933
+ region: string;
6934
+ } & {
6935
+ providerSettings: {
6936
+ id: string;
6937
+ features: ("versioning" | "edge")[];
6938
+ regions: string[];
6939
+ modes: ("standard" | "glacier")[];
6940
+ };
6941
+ };
6942
+ } | {
6943
+ id: string;
6944
+ provider: "secrecy";
6945
+ protocol: "mongo";
6946
+ mongoStorageOptions: {
6947
+ id: string;
6948
+ mode: "standard";
6949
+ region: string;
6950
+ } & {
6951
+ providerSettings: {
6952
+ id: string;
6953
+ regions: string[];
6954
+ modes: "standard"[];
6955
+ };
6956
+ };
6957
+ };
5734
6958
  access: {
5735
6959
  key: string | null;
5736
6960
  sharedByPubKey: string;
5737
6961
  };
5738
- } | null;
5739
- history: {
6962
+ }) | null;
6963
+ history: ({
5740
6964
  id: string;
5741
6965
  createdAt: Date;
5742
- storageType: "s3" | "cold" | "lite";
5743
6966
  size: bigint;
5744
6967
  md5: string;
5745
6968
  userAppUserId: string;
5746
6969
  userAppAppId: string;
6970
+ nextStorageId: string | null;
5747
6971
  sizeEncrypted: bigint | null;
5748
6972
  md5Encrypted: string | null;
5749
6973
  mime: string | null;
5750
6974
  ext: string | null;
5751
6975
  validatedAt: Date | null;
5752
6976
  restoreSince: Date | null;
6977
+ onTransferSince: Date | null;
6978
+ } & {
6979
+ storage: {
6980
+ id: string;
6981
+ provider: "scaleway" | "ovh";
6982
+ protocol: "s3";
6983
+ s3StorageOptions: {
6984
+ id: string;
6985
+ mode: "standard" | "glacier";
6986
+ region: string;
6987
+ } & {
6988
+ providerSettings: {
6989
+ id: string;
6990
+ features: ("versioning" | "edge")[];
6991
+ regions: string[];
6992
+ modes: ("standard" | "glacier")[];
6993
+ };
6994
+ };
6995
+ } | {
6996
+ id: string;
6997
+ provider: "secrecy";
6998
+ protocol: "mongo";
6999
+ mongoStorageOptions: {
7000
+ id: string;
7001
+ mode: "standard";
7002
+ region: string;
7003
+ } & {
7004
+ providerSettings: {
7005
+ id: string;
7006
+ regions: string[];
7007
+ modes: "standard"[];
7008
+ };
7009
+ };
7010
+ };
5753
7011
  access: {
5754
7012
  key: string | null;
5755
7013
  sharedByPubKey: string;
5756
7014
  };
5757
- }[];
7015
+ })[];
5758
7016
  parent: ({
5759
7017
  name: string;
5760
7018
  id: string;
@@ -5868,44 +7126,112 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5868
7126
  sizeEncrypted: bigint;
5869
7127
  };
5870
7128
  } & {
5871
- current: {
7129
+ current: ({
5872
7130
  id: string;
5873
7131
  createdAt: Date;
5874
- storageType: "s3" | "cold" | "lite";
5875
7132
  size: bigint;
5876
7133
  md5: string;
5877
7134
  userAppUserId: string;
5878
7135
  userAppAppId: string;
7136
+ nextStorageId: string | null;
5879
7137
  sizeEncrypted: bigint | null;
5880
7138
  md5Encrypted: string | null;
5881
7139
  mime: string | null;
5882
7140
  ext: string | null;
5883
7141
  validatedAt: Date | null;
5884
7142
  restoreSince: Date | null;
7143
+ onTransferSince: Date | null;
7144
+ } & {
7145
+ storage: {
7146
+ id: string;
7147
+ provider: "scaleway" | "ovh";
7148
+ protocol: "s3";
7149
+ s3StorageOptions: {
7150
+ id: string;
7151
+ mode: "standard" | "glacier";
7152
+ region: string;
7153
+ } & {
7154
+ providerSettings: {
7155
+ id: string;
7156
+ features: ("versioning" | "edge")[];
7157
+ regions: string[];
7158
+ modes: ("standard" | "glacier")[];
7159
+ };
7160
+ };
7161
+ } | {
7162
+ id: string;
7163
+ provider: "secrecy";
7164
+ protocol: "mongo";
7165
+ mongoStorageOptions: {
7166
+ id: string;
7167
+ mode: "standard";
7168
+ region: string;
7169
+ } & {
7170
+ providerSettings: {
7171
+ id: string;
7172
+ regions: string[];
7173
+ modes: "standard"[];
7174
+ };
7175
+ };
7176
+ };
5885
7177
  access: {
5886
7178
  key: string | null;
5887
7179
  sharedByPubKey: string;
5888
7180
  };
5889
- } | null;
5890
- history: {
7181
+ }) | null;
7182
+ history: ({
5891
7183
  id: string;
5892
7184
  createdAt: Date;
5893
- storageType: "s3" | "cold" | "lite";
5894
7185
  size: bigint;
5895
7186
  md5: string;
5896
7187
  userAppUserId: string;
5897
7188
  userAppAppId: string;
7189
+ nextStorageId: string | null;
5898
7190
  sizeEncrypted: bigint | null;
5899
7191
  md5Encrypted: string | null;
5900
7192
  mime: string | null;
5901
7193
  ext: string | null;
5902
7194
  validatedAt: Date | null;
5903
7195
  restoreSince: Date | null;
7196
+ onTransferSince: Date | null;
7197
+ } & {
7198
+ storage: {
7199
+ id: string;
7200
+ provider: "scaleway" | "ovh";
7201
+ protocol: "s3";
7202
+ s3StorageOptions: {
7203
+ id: string;
7204
+ mode: "standard" | "glacier";
7205
+ region: string;
7206
+ } & {
7207
+ providerSettings: {
7208
+ id: string;
7209
+ features: ("versioning" | "edge")[];
7210
+ regions: string[];
7211
+ modes: ("standard" | "glacier")[];
7212
+ };
7213
+ };
7214
+ } | {
7215
+ id: string;
7216
+ provider: "secrecy";
7217
+ protocol: "mongo";
7218
+ mongoStorageOptions: {
7219
+ id: string;
7220
+ mode: "standard";
7221
+ region: string;
7222
+ } & {
7223
+ providerSettings: {
7224
+ id: string;
7225
+ regions: string[];
7226
+ modes: "standard"[];
7227
+ };
7228
+ };
7229
+ };
5904
7230
  access: {
5905
7231
  key: string | null;
5906
7232
  sharedByPubKey: string;
5907
7233
  };
5908
- }[];
7234
+ })[];
5909
7235
  parent: ({
5910
7236
  name: string;
5911
7237
  id: string;
@@ -10250,9 +11576,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10250
11576
  replyTo: {
10251
11577
  id: string;
10252
11578
  } | null;
10253
- temporaryRecipients: {
10254
- email: string | null;
10255
- }[];
10256
11579
  recipients: {
10257
11580
  id: string;
10258
11581
  lastname: string;
@@ -10260,6 +11583,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10260
11583
  avatar: string | null;
10261
11584
  isSearchable: boolean;
10262
11585
  }[];
11586
+ temporaryRecipients: {
11587
+ email: string | null;
11588
+ }[];
10263
11589
  } | null;
10264
11590
  mailIntegrityDraft: {
10265
11591
  id: string;
@@ -10268,9 +11594,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10268
11594
  replyTo: {
10269
11595
  id: string;
10270
11596
  } | null;
10271
- temporaryRecipients: {
10272
- email: string | null;
10273
- }[];
10274
11597
  recipients: {
10275
11598
  id: string;
10276
11599
  lastname: string;
@@ -10278,6 +11601,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10278
11601
  avatar: string | null;
10279
11602
  isSearchable: boolean;
10280
11603
  }[];
11604
+ temporaryRecipients: {
11605
+ email: string | null;
11606
+ }[];
10281
11607
  } | null;
10282
11608
  sender: {
10283
11609
  id: string;
@@ -10308,9 +11634,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10308
11634
  replyTo: {
10309
11635
  id: string;
10310
11636
  } | null;
10311
- temporaryRecipients: {
10312
- email: string | null;
10313
- }[];
10314
11637
  recipients: {
10315
11638
  id: string;
10316
11639
  lastname: string;
@@ -10318,6 +11641,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10318
11641
  avatar: string | null;
10319
11642
  isSearchable: boolean;
10320
11643
  }[];
11644
+ temporaryRecipients: {
11645
+ email: string | null;
11646
+ }[];
10321
11647
  } | null;
10322
11648
  mailIntegrityDraft: {
10323
11649
  id: string;
@@ -10326,9 +11652,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10326
11652
  replyTo: {
10327
11653
  id: string;
10328
11654
  } | null;
10329
- temporaryRecipients: {
10330
- email: string | null;
10331
- }[];
10332
11655
  recipients: {
10333
11656
  id: string;
10334
11657
  lastname: string;
@@ -10336,6 +11659,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10336
11659
  avatar: string | null;
10337
11660
  isSearchable: boolean;
10338
11661
  }[];
11662
+ temporaryRecipients: {
11663
+ email: string | null;
11664
+ }[];
10339
11665
  } | null;
10340
11666
  sender: {
10341
11667
  id: string;
@@ -10418,9 +11744,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10418
11744
  replyTo: {
10419
11745
  id: string;
10420
11746
  } | null;
10421
- temporaryRecipients: {
10422
- email: string | null;
10423
- }[];
10424
11747
  recipients: {
10425
11748
  id: string;
10426
11749
  lastname: string;
@@ -10428,6 +11751,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10428
11751
  avatar: string | null;
10429
11752
  isSearchable: boolean;
10430
11753
  }[];
11754
+ temporaryRecipients: {
11755
+ email: string | null;
11756
+ }[];
10431
11757
  } | null;
10432
11758
  mailIntegrityDraft: {
10433
11759
  id: string;
@@ -10436,9 +11762,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10436
11762
  replyTo: {
10437
11763
  id: string;
10438
11764
  } | null;
10439
- temporaryRecipients: {
10440
- email: string | null;
10441
- }[];
10442
11765
  recipients: {
10443
11766
  id: string;
10444
11767
  lastname: string;
@@ -10446,6 +11769,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10446
11769
  avatar: string | null;
10447
11770
  isSearchable: boolean;
10448
11771
  }[];
11772
+ temporaryRecipients: {
11773
+ email: string | null;
11774
+ }[];
10449
11775
  } | null;
10450
11776
  sender: {
10451
11777
  id: string;
@@ -10476,9 +11802,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10476
11802
  replyTo: {
10477
11803
  id: string;
10478
11804
  } | null;
10479
- temporaryRecipients: {
10480
- email: string | null;
10481
- }[];
10482
11805
  recipients: {
10483
11806
  id: string;
10484
11807
  lastname: string;
@@ -10486,6 +11809,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10486
11809
  avatar: string | null;
10487
11810
  isSearchable: boolean;
10488
11811
  }[];
11812
+ temporaryRecipients: {
11813
+ email: string | null;
11814
+ }[];
10489
11815
  } | null;
10490
11816
  mailIntegrityDraft: {
10491
11817
  id: string;
@@ -10494,9 +11820,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10494
11820
  replyTo: {
10495
11821
  id: string;
10496
11822
  } | null;
10497
- temporaryRecipients: {
10498
- email: string | null;
10499
- }[];
10500
11823
  recipients: {
10501
11824
  id: string;
10502
11825
  lastname: string;
@@ -10504,6 +11827,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10504
11827
  avatar: string | null;
10505
11828
  isSearchable: boolean;
10506
11829
  }[];
11830
+ temporaryRecipients: {
11831
+ email: string | null;
11832
+ }[];
10507
11833
  } | null;
10508
11834
  sender: {
10509
11835
  id: string;
@@ -10672,9 +11998,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10672
11998
  replyTo: {
10673
11999
  id: string;
10674
12000
  } | null;
10675
- temporaryRecipients: {
10676
- email: string | null;
10677
- }[];
10678
12001
  recipients: {
10679
12002
  id: string;
10680
12003
  lastname: string;
@@ -10682,6 +12005,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10682
12005
  avatar: string | null;
10683
12006
  isSearchable: boolean;
10684
12007
  }[];
12008
+ temporaryRecipients: {
12009
+ email: string | null;
12010
+ }[];
10685
12011
  } | null;
10686
12012
  mailIntegrityDraft: {
10687
12013
  id: string;
@@ -10690,9 +12016,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10690
12016
  replyTo: {
10691
12017
  id: string;
10692
12018
  } | null;
10693
- temporaryRecipients: {
10694
- email: string | null;
10695
- }[];
10696
12019
  recipients: {
10697
12020
  id: string;
10698
12021
  lastname: string;
@@ -10700,6 +12023,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10700
12023
  avatar: string | null;
10701
12024
  isSearchable: boolean;
10702
12025
  }[];
12026
+ temporaryRecipients: {
12027
+ email: string | null;
12028
+ }[];
10703
12029
  } | null;
10704
12030
  sender: {
10705
12031
  id: string;
@@ -10730,9 +12056,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10730
12056
  replyTo: {
10731
12057
  id: string;
10732
12058
  } | null;
10733
- temporaryRecipients: {
10734
- email: string | null;
10735
- }[];
10736
12059
  recipients: {
10737
12060
  id: string;
10738
12061
  lastname: string;
@@ -10740,6 +12063,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10740
12063
  avatar: string | null;
10741
12064
  isSearchable: boolean;
10742
12065
  }[];
12066
+ temporaryRecipients: {
12067
+ email: string | null;
12068
+ }[];
10743
12069
  } | null;
10744
12070
  mailIntegrityDraft: {
10745
12071
  id: string;
@@ -10748,9 +12074,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10748
12074
  replyTo: {
10749
12075
  id: string;
10750
12076
  } | null;
10751
- temporaryRecipients: {
10752
- email: string | null;
10753
- }[];
10754
12077
  recipients: {
10755
12078
  id: string;
10756
12079
  lastname: string;
@@ -10758,6 +12081,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10758
12081
  avatar: string | null;
10759
12082
  isSearchable: boolean;
10760
12083
  }[];
12084
+ temporaryRecipients: {
12085
+ email: string | null;
12086
+ }[];
10761
12087
  } | null;
10762
12088
  sender: {
10763
12089
  id: string;
@@ -10796,14 +12122,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10796
12122
  }>;
10797
12123
  _meta: object;
10798
12124
  _ctx_out: {};
10799
- _input_in: {} & {
10800
- page?: number | undefined;
10801
- perPage?: number | undefined;
10802
- };
10803
- _input_out: {} & {
10804
- page: number;
10805
- perPage: number;
10806
- };
12125
+ _input_in: {};
12126
+ _input_out: {};
10807
12127
  _output_in: ({
10808
12128
  id: string;
10809
12129
  createdAt: Date;
@@ -10820,9 +12140,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10820
12140
  replyTo: {
10821
12141
  id: string;
10822
12142
  } | null;
10823
- temporaryRecipients: {
10824
- email: string | null;
10825
- }[];
10826
12143
  recipients: {
10827
12144
  id: string;
10828
12145
  lastname: string;
@@ -10830,6 +12147,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10830
12147
  avatar: string | null;
10831
12148
  isSearchable: boolean;
10832
12149
  }[];
12150
+ temporaryRecipients: {
12151
+ email: string | null;
12152
+ }[];
10833
12153
  } | null;
10834
12154
  mailIntegrityDraft: {
10835
12155
  id: string;
@@ -10838,9 +12158,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10838
12158
  replyTo: {
10839
12159
  id: string;
10840
12160
  } | null;
10841
- temporaryRecipients: {
10842
- email: string | null;
10843
- }[];
10844
12161
  recipients: {
10845
12162
  id: string;
10846
12163
  lastname: string;
@@ -10848,6 +12165,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10848
12165
  avatar: string | null;
10849
12166
  isSearchable: boolean;
10850
12167
  }[];
12168
+ temporaryRecipients: {
12169
+ email: string | null;
12170
+ }[];
10851
12171
  } | null;
10852
12172
  sender: {
10853
12173
  id: string;
@@ -10878,9 +12198,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10878
12198
  replyTo: {
10879
12199
  id: string;
10880
12200
  } | null;
10881
- temporaryRecipients: {
10882
- email: string | null;
10883
- }[];
10884
12201
  recipients: {
10885
12202
  id: string;
10886
12203
  lastname: string;
@@ -10888,6 +12205,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10888
12205
  avatar: string | null;
10889
12206
  isSearchable: boolean;
10890
12207
  }[];
12208
+ temporaryRecipients: {
12209
+ email: string | null;
12210
+ }[];
10891
12211
  } | null;
10892
12212
  mailIntegrityDraft: {
10893
12213
  id: string;
@@ -10896,9 +12216,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10896
12216
  replyTo: {
10897
12217
  id: string;
10898
12218
  } | null;
10899
- temporaryRecipients: {
10900
- email: string | null;
10901
- }[];
10902
12219
  recipients: {
10903
12220
  id: string;
10904
12221
  lastname: string;
@@ -10906,6 +12223,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10906
12223
  avatar: string | null;
10907
12224
  isSearchable: boolean;
10908
12225
  }[];
12226
+ temporaryRecipients: {
12227
+ email: string | null;
12228
+ }[];
10909
12229
  } | null;
10910
12230
  sender: {
10911
12231
  id: string;
@@ -11012,14 +12332,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11012
12332
  }>;
11013
12333
  _meta: object;
11014
12334
  _ctx_out: {};
11015
- _input_in: {} & {
11016
- page?: number | undefined;
11017
- perPage?: number | undefined;
11018
- };
11019
- _input_out: {} & {
11020
- page: number;
11021
- perPage: number;
11022
- };
12335
+ _input_in: {};
12336
+ _input_out: {};
11023
12337
  _output_in: ({
11024
12338
  id: string;
11025
12339
  createdAt: Date;
@@ -11036,9 +12350,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11036
12350
  replyTo: {
11037
12351
  id: string;
11038
12352
  } | null;
11039
- temporaryRecipients: {
11040
- email: string | null;
11041
- }[];
11042
12353
  recipients: {
11043
12354
  id: string;
11044
12355
  lastname: string;
@@ -11046,6 +12357,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11046
12357
  avatar: string | null;
11047
12358
  isSearchable: boolean;
11048
12359
  }[];
12360
+ temporaryRecipients: {
12361
+ email: string | null;
12362
+ }[];
11049
12363
  } | null;
11050
12364
  mailIntegrityDraft: {
11051
12365
  id: string;
@@ -11054,9 +12368,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11054
12368
  replyTo: {
11055
12369
  id: string;
11056
12370
  } | null;
11057
- temporaryRecipients: {
11058
- email: string | null;
11059
- }[];
11060
12371
  recipients: {
11061
12372
  id: string;
11062
12373
  lastname: string;
@@ -11064,6 +12375,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11064
12375
  avatar: string | null;
11065
12376
  isSearchable: boolean;
11066
12377
  }[];
12378
+ temporaryRecipients: {
12379
+ email: string | null;
12380
+ }[];
11067
12381
  } | null;
11068
12382
  sender: {
11069
12383
  id: string;
@@ -11094,9 +12408,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11094
12408
  replyTo: {
11095
12409
  id: string;
11096
12410
  } | null;
11097
- temporaryRecipients: {
11098
- email: string | null;
11099
- }[];
11100
12411
  recipients: {
11101
12412
  id: string;
11102
12413
  lastname: string;
@@ -11104,6 +12415,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11104
12415
  avatar: string | null;
11105
12416
  isSearchable: boolean;
11106
12417
  }[];
12418
+ temporaryRecipients: {
12419
+ email: string | null;
12420
+ }[];
11107
12421
  } | null;
11108
12422
  mailIntegrityDraft: {
11109
12423
  id: string;
@@ -11112,9 +12426,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11112
12426
  replyTo: {
11113
12427
  id: string;
11114
12428
  } | null;
11115
- temporaryRecipients: {
11116
- email: string | null;
11117
- }[];
11118
12429
  recipients: {
11119
12430
  id: string;
11120
12431
  lastname: string;
@@ -11122,6 +12433,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11122
12433
  avatar: string | null;
11123
12434
  isSearchable: boolean;
11124
12435
  }[];
12436
+ temporaryRecipients: {
12437
+ email: string | null;
12438
+ }[];
11125
12439
  } | null;
11126
12440
  sender: {
11127
12441
  id: string;
@@ -11271,7 +12585,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11271
12585
  _input_in: {
11272
12586
  id: string;
11273
12587
  customMessage: string | null;
11274
- temporaryRecipients: string[];
11275
12588
  recipients: ({
11276
12589
  subject: string;
11277
12590
  body: string;
@@ -11283,11 +12596,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11283
12596
  dataId: string;
11284
12597
  }[];
11285
12598
  })[];
12599
+ temporaryRecipients: string[];
11286
12600
  };
11287
12601
  _input_out: {
11288
12602
  id: string;
11289
12603
  customMessage: string | null;
11290
- temporaryRecipients: string[];
11291
12604
  recipients: ({
11292
12605
  subject: string;
11293
12606
  body: string;
@@ -11299,6 +12612,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11299
12612
  dataId: string;
11300
12613
  }[];
11301
12614
  })[];
12615
+ temporaryRecipients: string[];
11302
12616
  };
11303
12617
  _output_in: {
11304
12618
  isSent: boolean;
@@ -11388,14 +12702,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11388
12702
  }>;
11389
12703
  _meta: object;
11390
12704
  _ctx_out: {};
11391
- _input_in: {} & {
11392
- page?: number | undefined;
11393
- perPage?: number | undefined;
11394
- };
11395
- _input_out: {} & {
11396
- page: number;
11397
- perPage: number;
11398
- };
12705
+ _input_in: {};
12706
+ _input_out: {};
11399
12707
  _output_in: ({
11400
12708
  id: string;
11401
12709
  createdAt: Date;
@@ -11412,9 +12720,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11412
12720
  replyTo: {
11413
12721
  id: string;
11414
12722
  } | null;
11415
- temporaryRecipients: {
11416
- email: string | null;
11417
- }[];
11418
12723
  recipients: {
11419
12724
  id: string;
11420
12725
  lastname: string;
@@ -11422,6 +12727,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11422
12727
  avatar: string | null;
11423
12728
  isSearchable: boolean;
11424
12729
  }[];
12730
+ temporaryRecipients: {
12731
+ email: string | null;
12732
+ }[];
11425
12733
  } | null;
11426
12734
  mailIntegrityDraft: {
11427
12735
  id: string;
@@ -11430,9 +12738,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11430
12738
  replyTo: {
11431
12739
  id: string;
11432
12740
  } | null;
11433
- temporaryRecipients: {
11434
- email: string | null;
11435
- }[];
11436
12741
  recipients: {
11437
12742
  id: string;
11438
12743
  lastname: string;
@@ -11440,6 +12745,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11440
12745
  avatar: string | null;
11441
12746
  isSearchable: boolean;
11442
12747
  }[];
12748
+ temporaryRecipients: {
12749
+ email: string | null;
12750
+ }[];
11443
12751
  } | null;
11444
12752
  sender: {
11445
12753
  id: string;
@@ -11470,9 +12778,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11470
12778
  replyTo: {
11471
12779
  id: string;
11472
12780
  } | null;
11473
- temporaryRecipients: {
11474
- email: string | null;
11475
- }[];
11476
12781
  recipients: {
11477
12782
  id: string;
11478
12783
  lastname: string;
@@ -11480,6 +12785,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11480
12785
  avatar: string | null;
11481
12786
  isSearchable: boolean;
11482
12787
  }[];
12788
+ temporaryRecipients: {
12789
+ email: string | null;
12790
+ }[];
11483
12791
  } | null;
11484
12792
  mailIntegrityDraft: {
11485
12793
  id: string;
@@ -11488,9 +12796,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11488
12796
  replyTo: {
11489
12797
  id: string;
11490
12798
  } | null;
11491
- temporaryRecipients: {
11492
- email: string | null;
11493
- }[];
11494
12799
  recipients: {
11495
12800
  id: string;
11496
12801
  lastname: string;
@@ -11498,6 +12803,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11498
12803
  avatar: string | null;
11499
12804
  isSearchable: boolean;
11500
12805
  }[];
12806
+ temporaryRecipients: {
12807
+ email: string | null;
12808
+ }[];
11501
12809
  } | null;
11502
12810
  sender: {
11503
12811
  id: string;
@@ -11644,9 +12952,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11644
12952
  replyTo: {
11645
12953
  id: string;
11646
12954
  } | null;
11647
- temporaryRecipients: {
11648
- email: string | null;
11649
- }[];
11650
12955
  recipients: {
11651
12956
  id: string;
11652
12957
  lastname: string;
@@ -11654,6 +12959,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11654
12959
  avatar: string | null;
11655
12960
  isSearchable: boolean;
11656
12961
  }[];
12962
+ temporaryRecipients: {
12963
+ email: string | null;
12964
+ }[];
11657
12965
  } | null;
11658
12966
  mailIntegrityDraft: {
11659
12967
  id: string;
@@ -11662,9 +12970,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11662
12970
  replyTo: {
11663
12971
  id: string;
11664
12972
  } | null;
11665
- temporaryRecipients: {
11666
- email: string | null;
11667
- }[];
11668
12973
  recipients: {
11669
12974
  id: string;
11670
12975
  lastname: string;
@@ -11672,6 +12977,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11672
12977
  avatar: string | null;
11673
12978
  isSearchable: boolean;
11674
12979
  }[];
12980
+ temporaryRecipients: {
12981
+ email: string | null;
12982
+ }[];
11675
12983
  } | null;
11676
12984
  sender: {
11677
12985
  id: string;
@@ -11702,9 +13010,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11702
13010
  replyTo: {
11703
13011
  id: string;
11704
13012
  } | null;
11705
- temporaryRecipients: {
11706
- email: string | null;
11707
- }[];
11708
13013
  recipients: {
11709
13014
  id: string;
11710
13015
  lastname: string;
@@ -11712,6 +13017,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11712
13017
  avatar: string | null;
11713
13018
  isSearchable: boolean;
11714
13019
  }[];
13020
+ temporaryRecipients: {
13021
+ email: string | null;
13022
+ }[];
11715
13023
  } | null;
11716
13024
  mailIntegrityDraft: {
11717
13025
  id: string;
@@ -11720,9 +13028,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11720
13028
  replyTo: {
11721
13029
  id: string;
11722
13030
  } | null;
11723
- temporaryRecipients: {
11724
- email: string | null;
11725
- }[];
11726
13031
  recipients: {
11727
13032
  id: string;
11728
13033
  lastname: string;
@@ -11730,6 +13035,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11730
13035
  avatar: string | null;
11731
13036
  isSearchable: boolean;
11732
13037
  }[];
13038
+ temporaryRecipients: {
13039
+ email: string | null;
13040
+ }[];
11733
13041
  } | null;
11734
13042
  sender: {
11735
13043
  id: string;
@@ -11779,11 +13087,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11779
13087
  isSearchable: boolean;
11780
13088
  };
11781
13089
  date: Date;
11782
- temporaryRecipients: {
11783
- email: string | null;
11784
- id: string;
11785
- phone: string | null;
11786
- }[];
11787
13090
  recipients: {
11788
13091
  id: string;
11789
13092
  lastname: string;
@@ -11791,6 +13094,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11791
13094
  avatar: string | null;
11792
13095
  isSearchable: boolean;
11793
13096
  }[];
13097
+ temporaryRecipients: {
13098
+ email: string | null;
13099
+ id: string;
13100
+ phone: string | null;
13101
+ }[];
11794
13102
  attachmentsCount: number;
11795
13103
  }[];
11796
13104
  _output_out: {
@@ -11802,11 +13110,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11802
13110
  isSearchable: boolean;
11803
13111
  };
11804
13112
  date: Date;
11805
- temporaryRecipients: {
11806
- email: string | null;
11807
- id: string;
11808
- phone: string | null;
11809
- }[];
11810
13113
  recipients: {
11811
13114
  id: string;
11812
13115
  lastname: string;
@@ -11814,6 +13117,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11814
13117
  avatar: string | null;
11815
13118
  isSearchable: boolean;
11816
13119
  }[];
13120
+ temporaryRecipients: {
13121
+ email: string | null;
13122
+ id: string;
13123
+ phone: string | null;
13124
+ }[];
11817
13125
  attachmentsCount: number;
11818
13126
  }[];
11819
13127
  }, unknown>;