@secrecy/lib 1.61.3 → 1.62.0-feat-storage-providers.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -302,7 +302,27 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
302
302
  users: number;
303
303
  developers: number;
304
304
  hasDatabase: boolean;
305
- storageUsage: number;
305
+ storageUsage: {
306
+ count: bigint;
307
+ size: bigint;
308
+ details: ({
309
+ count: bigint;
310
+ id: string;
311
+ size: bigint;
312
+ mode: "standard" | "glacier";
313
+ provider: "scaleway" | "ovh";
314
+ protocol: "s3";
315
+ region: string;
316
+ } | {
317
+ count: bigint;
318
+ id: string;
319
+ size: bigint;
320
+ mode: "standard";
321
+ provider: "secrecy";
322
+ protocol: "mongo";
323
+ region: string;
324
+ })[];
325
+ };
306
326
  downloadBandwidthUsage: number;
307
327
  uploadBandwidthUsage: number;
308
328
  };
@@ -310,7 +330,27 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
310
330
  users: number;
311
331
  developers: number;
312
332
  hasDatabase: boolean;
313
- storageUsage: number;
333
+ storageUsage: {
334
+ count: bigint;
335
+ size: bigint;
336
+ details: ({
337
+ count: bigint;
338
+ id: string;
339
+ size: bigint;
340
+ mode: "standard" | "glacier";
341
+ provider: "scaleway" | "ovh";
342
+ protocol: "s3";
343
+ region: string;
344
+ } | {
345
+ count: bigint;
346
+ id: string;
347
+ size: bigint;
348
+ mode: "standard";
349
+ provider: "secrecy";
350
+ protocol: "mongo";
351
+ region: string;
352
+ })[];
353
+ };
314
354
  downloadBandwidthUsage: number;
315
355
  uploadBandwidthUsage: number;
316
356
  };
@@ -2097,44 +2137,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2097
2137
  sizeEncrypted: bigint;
2098
2138
  };
2099
2139
  } & {
2100
- current: {
2140
+ current: ({
2101
2141
  id: string;
2102
2142
  createdAt: Date;
2103
- storageType: "s3" | "cold" | "lite";
2104
2143
  size: bigint;
2105
2144
  md5: string;
2106
2145
  userAppUserId: string;
2107
2146
  userAppAppId: string;
2147
+ nextStorageId: string | null;
2108
2148
  sizeEncrypted: bigint | null;
2109
2149
  md5Encrypted: string | null;
2110
2150
  mime: string | null;
2111
2151
  ext: string | null;
2112
2152
  validatedAt: Date | null;
2113
2153
  restoreSince: Date | null;
2154
+ onTransferSince: Date | null;
2155
+ } & {
2156
+ storage: {
2157
+ id: string;
2158
+ provider: "scaleway" | "ovh";
2159
+ protocol: "s3";
2160
+ s3StorageOptions: {
2161
+ id: string;
2162
+ mode: "standard" | "glacier";
2163
+ region: string;
2164
+ } & {
2165
+ providerSettings: {
2166
+ id: string;
2167
+ features: ("versioning" | "edge")[];
2168
+ regions: string[];
2169
+ modes: ("standard" | "glacier")[];
2170
+ };
2171
+ };
2172
+ } | {
2173
+ id: string;
2174
+ provider: "secrecy";
2175
+ protocol: "mongo";
2176
+ mongoStorageOptions: {
2177
+ id: string;
2178
+ mode: "standard";
2179
+ region: string;
2180
+ } & {
2181
+ providerSettings: {
2182
+ id: string;
2183
+ regions: string[];
2184
+ modes: "standard"[];
2185
+ };
2186
+ };
2187
+ };
2114
2188
  access: {
2115
2189
  key: string | null;
2116
2190
  sharedByPubKey: string;
2117
2191
  };
2118
- } | null;
2119
- history: {
2192
+ }) | null;
2193
+ history: ({
2120
2194
  id: string;
2121
2195
  createdAt: Date;
2122
- storageType: "s3" | "cold" | "lite";
2123
2196
  size: bigint;
2124
2197
  md5: string;
2125
2198
  userAppUserId: string;
2126
2199
  userAppAppId: string;
2200
+ nextStorageId: string | null;
2127
2201
  sizeEncrypted: bigint | null;
2128
2202
  md5Encrypted: string | null;
2129
2203
  mime: string | null;
2130
2204
  ext: string | null;
2131
2205
  validatedAt: Date | null;
2132
2206
  restoreSince: Date | null;
2207
+ onTransferSince: Date | null;
2208
+ } & {
2209
+ storage: {
2210
+ id: string;
2211
+ provider: "scaleway" | "ovh";
2212
+ protocol: "s3";
2213
+ s3StorageOptions: {
2214
+ id: string;
2215
+ mode: "standard" | "glacier";
2216
+ region: string;
2217
+ } & {
2218
+ providerSettings: {
2219
+ id: string;
2220
+ features: ("versioning" | "edge")[];
2221
+ regions: string[];
2222
+ modes: ("standard" | "glacier")[];
2223
+ };
2224
+ };
2225
+ } | {
2226
+ id: string;
2227
+ provider: "secrecy";
2228
+ protocol: "mongo";
2229
+ mongoStorageOptions: {
2230
+ id: string;
2231
+ mode: "standard";
2232
+ region: string;
2233
+ } & {
2234
+ providerSettings: {
2235
+ id: string;
2236
+ regions: string[];
2237
+ modes: "standard"[];
2238
+ };
2239
+ };
2240
+ };
2133
2241
  access: {
2134
2242
  key: string | null;
2135
2243
  sharedByPubKey: string;
2136
2244
  };
2137
- }[];
2245
+ })[];
2138
2246
  parent: ({
2139
2247
  name: string;
2140
2248
  id: string;
@@ -2248,44 +2356,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2248
2356
  sizeEncrypted: bigint;
2249
2357
  };
2250
2358
  } & {
2251
- current: {
2359
+ current: ({
2252
2360
  id: string;
2253
2361
  createdAt: Date;
2254
- storageType: "s3" | "cold" | "lite";
2255
2362
  size: bigint;
2256
2363
  md5: string;
2257
2364
  userAppUserId: string;
2258
2365
  userAppAppId: string;
2366
+ nextStorageId: string | null;
2259
2367
  sizeEncrypted: bigint | null;
2260
2368
  md5Encrypted: string | null;
2261
2369
  mime: string | null;
2262
2370
  ext: string | null;
2263
2371
  validatedAt: Date | null;
2264
2372
  restoreSince: Date | null;
2373
+ onTransferSince: Date | null;
2374
+ } & {
2375
+ storage: {
2376
+ id: string;
2377
+ provider: "scaleway" | "ovh";
2378
+ protocol: "s3";
2379
+ s3StorageOptions: {
2380
+ id: string;
2381
+ mode: "standard" | "glacier";
2382
+ region: string;
2383
+ } & {
2384
+ providerSettings: {
2385
+ id: string;
2386
+ features: ("versioning" | "edge")[];
2387
+ regions: string[];
2388
+ modes: ("standard" | "glacier")[];
2389
+ };
2390
+ };
2391
+ } | {
2392
+ id: string;
2393
+ provider: "secrecy";
2394
+ protocol: "mongo";
2395
+ mongoStorageOptions: {
2396
+ id: string;
2397
+ mode: "standard";
2398
+ region: string;
2399
+ } & {
2400
+ providerSettings: {
2401
+ id: string;
2402
+ regions: string[];
2403
+ modes: "standard"[];
2404
+ };
2405
+ };
2406
+ };
2265
2407
  access: {
2266
2408
  key: string | null;
2267
2409
  sharedByPubKey: string;
2268
2410
  };
2269
- } | null;
2270
- history: {
2411
+ }) | null;
2412
+ history: ({
2271
2413
  id: string;
2272
2414
  createdAt: Date;
2273
- storageType: "s3" | "cold" | "lite";
2274
2415
  size: bigint;
2275
2416
  md5: string;
2276
2417
  userAppUserId: string;
2277
2418
  userAppAppId: string;
2419
+ nextStorageId: string | null;
2278
2420
  sizeEncrypted: bigint | null;
2279
2421
  md5Encrypted: string | null;
2280
2422
  mime: string | null;
2281
2423
  ext: string | null;
2282
2424
  validatedAt: Date | null;
2283
2425
  restoreSince: Date | null;
2426
+ onTransferSince: Date | null;
2427
+ } & {
2428
+ storage: {
2429
+ id: string;
2430
+ provider: "scaleway" | "ovh";
2431
+ protocol: "s3";
2432
+ s3StorageOptions: {
2433
+ id: string;
2434
+ mode: "standard" | "glacier";
2435
+ region: string;
2436
+ } & {
2437
+ providerSettings: {
2438
+ id: string;
2439
+ features: ("versioning" | "edge")[];
2440
+ regions: string[];
2441
+ modes: ("standard" | "glacier")[];
2442
+ };
2443
+ };
2444
+ } | {
2445
+ id: string;
2446
+ provider: "secrecy";
2447
+ protocol: "mongo";
2448
+ mongoStorageOptions: {
2449
+ id: string;
2450
+ mode: "standard";
2451
+ region: string;
2452
+ } & {
2453
+ providerSettings: {
2454
+ id: string;
2455
+ regions: string[];
2456
+ modes: "standard"[];
2457
+ };
2458
+ };
2459
+ };
2284
2460
  access: {
2285
2461
  key: string | null;
2286
2462
  sharedByPubKey: string;
2287
2463
  };
2288
- }[];
2464
+ })[];
2289
2465
  parent: ({
2290
2466
  name: string;
2291
2467
  id: string;
@@ -2441,17 +2617,51 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2441
2617
  _output_in: {
2442
2618
  id: string;
2443
2619
  createdAt: Date;
2444
- storageType: "s3" | "cold" | "lite";
2445
2620
  size: bigint;
2446
2621
  md5: string;
2447
2622
  userAppUserId: string;
2448
2623
  userAppAppId: string;
2624
+ nextStorageId: string | null;
2449
2625
  sizeEncrypted: bigint | null;
2450
2626
  md5Encrypted: string | null;
2451
2627
  mime: string | null;
2452
2628
  ext: string | null;
2453
2629
  validatedAt: Date | null;
2454
2630
  restoreSince: Date | null;
2631
+ onTransferSince: Date | null;
2632
+ } & {
2633
+ storage: {
2634
+ id: string;
2635
+ provider: "scaleway" | "ovh";
2636
+ protocol: "s3";
2637
+ s3StorageOptions: {
2638
+ id: string;
2639
+ mode: "standard" | "glacier";
2640
+ region: string;
2641
+ } & {
2642
+ providerSettings: {
2643
+ id: string;
2644
+ features: ("versioning" | "edge")[];
2645
+ regions: string[];
2646
+ modes: ("standard" | "glacier")[];
2647
+ };
2648
+ };
2649
+ } | {
2650
+ id: string;
2651
+ provider: "secrecy";
2652
+ protocol: "mongo";
2653
+ mongoStorageOptions: {
2654
+ id: string;
2655
+ mode: "standard";
2656
+ region: string;
2657
+ } & {
2658
+ providerSettings: {
2659
+ id: string;
2660
+ regions: string[];
2661
+ modes: "standard"[];
2662
+ };
2663
+ };
2664
+ };
2455
2665
  access: {
2456
2666
  key: string | null;
2457
2667
  sharedByPubKey: string;
@@ -2460,17 +2670,51 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2460
2670
  _output_out: {
2461
2671
  id: string;
2462
2672
  createdAt: Date;
2463
- storageType: "s3" | "cold" | "lite";
2464
2673
  size: bigint;
2465
2674
  md5: string;
2466
2675
  userAppUserId: string;
2467
2676
  userAppAppId: string;
2677
+ nextStorageId: string | null;
2468
2678
  sizeEncrypted: bigint | null;
2469
2679
  md5Encrypted: string | null;
2470
2680
  mime: string | null;
2471
2681
  ext: string | null;
2472
2682
  validatedAt: Date | null;
2473
2683
  restoreSince: Date | null;
2684
+ onTransferSince: Date | null;
2685
+ } & {
2686
+ storage: {
2687
+ id: string;
2688
+ provider: "scaleway" | "ovh";
2689
+ protocol: "s3";
2690
+ s3StorageOptions: {
2691
+ id: string;
2692
+ mode: "standard" | "glacier";
2693
+ region: string;
2694
+ } & {
2695
+ providerSettings: {
2696
+ id: string;
2697
+ features: ("versioning" | "edge")[];
2698
+ regions: string[];
2699
+ modes: ("standard" | "glacier")[];
2700
+ };
2701
+ };
2702
+ } | {
2703
+ id: string;
2704
+ provider: "secrecy";
2705
+ protocol: "mongo";
2706
+ mongoStorageOptions: {
2707
+ id: string;
2708
+ mode: "standard";
2709
+ region: string;
2710
+ } & {
2711
+ providerSettings: {
2712
+ id: string;
2713
+ regions: string[];
2714
+ modes: "standard"[];
2715
+ };
2716
+ };
2717
+ };
2474
2718
  access: {
2475
2719
  key: string | null;
2476
2720
  sharedByPubKey: string;
@@ -2512,7 +2756,38 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2512
2756
  id: string;
2513
2757
  type: "received_mail";
2514
2758
  key: string | null;
2515
- storageType: "s3" | "cold" | "lite";
2759
+ storage: {
2760
+ id: string;
2761
+ provider: "scaleway" | "ovh";
2762
+ protocol: "s3";
2763
+ s3StorageOptions: {
2764
+ id: string;
2765
+ mode: "standard" | "glacier";
2766
+ region: string;
2767
+ } & {
2768
+ providerSettings: {
2769
+ id: string;
2770
+ features: ("versioning" | "edge")[];
2771
+ regions: string[];
2772
+ modes: ("standard" | "glacier")[];
2773
+ };
2774
+ };
2775
+ } | {
2776
+ id: string;
2777
+ provider: "secrecy";
2778
+ protocol: "mongo";
2779
+ mongoStorageOptions: {
2780
+ id: string;
2781
+ mode: "standard";
2782
+ region: string;
2783
+ } & {
2784
+ providerSettings: {
2785
+ id: string;
2786
+ regions: string[];
2787
+ modes: "standard"[];
2788
+ };
2789
+ };
2790
+ };
2516
2791
  size: bigint;
2517
2792
  md5: string;
2518
2793
  sizeEncrypted: bigint | null;
@@ -2521,16 +2796,47 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2521
2796
  ext: string | null;
2522
2797
  senderPublicKey: string;
2523
2798
  maybeParts: {
2799
+ url: string;
2524
2800
  md5: string;
2525
2801
  order: number;
2526
- contentUrl: string;
2527
2802
  }[] | null;
2528
- maybeContent: Buffer | null;
2803
+ maybeBytes: Buffer | null;
2529
2804
  } | {
2530
2805
  id: string;
2531
2806
  type: "sent_mail";
2532
2807
  key: string | null;
2533
- storageType: "s3" | "cold" | "lite";
2808
+ storage: {
2809
+ id: string;
2810
+ provider: "scaleway" | "ovh";
2811
+ protocol: "s3";
2812
+ s3StorageOptions: {
2813
+ id: string;
2814
+ mode: "standard" | "glacier";
2815
+ region: string;
2816
+ } & {
2817
+ providerSettings: {
2818
+ id: string;
2819
+ features: ("versioning" | "edge")[];
2820
+ regions: string[];
2821
+ modes: ("standard" | "glacier")[];
2822
+ };
2823
+ };
2824
+ } | {
2825
+ id: string;
2826
+ provider: "secrecy";
2827
+ protocol: "mongo";
2828
+ mongoStorageOptions: {
2829
+ id: string;
2830
+ mode: "standard";
2831
+ region: string;
2832
+ } & {
2833
+ providerSettings: {
2834
+ id: string;
2835
+ regions: string[];
2836
+ modes: "standard"[];
2837
+ };
2838
+ };
2839
+ };
2534
2840
  size: bigint;
2535
2841
  md5: string;
2536
2842
  sizeEncrypted: bigint | null;
@@ -2538,16 +2844,32 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2538
2844
  mime: string | null;
2539
2845
  ext: string | null;
2540
2846
  maybeParts: {
2847
+ url: string;
2541
2848
  md5: string;
2542
2849
  order: number;
2543
- contentUrl: string;
2544
2850
  }[] | null;
2545
- maybeContent: Buffer | null;
2851
+ maybeBytes: Buffer | null;
2546
2852
  } | {
2547
2853
  id: string;
2548
- type: "cloud";
2854
+ type: "s3";
2549
2855
  key: string | null;
2550
- storageType: "s3" | "cold";
2856
+ storage: {
2857
+ id: string;
2858
+ provider: "scaleway" | "ovh";
2859
+ protocol: "s3";
2860
+ s3StorageOptions: {
2861
+ id: string;
2862
+ mode: "standard" | "glacier";
2863
+ region: string;
2864
+ } & {
2865
+ providerSettings: {
2866
+ id: string;
2867
+ features: ("versioning" | "edge")[];
2868
+ regions: string[];
2869
+ modes: ("standard" | "glacier")[];
2870
+ };
2871
+ };
2872
+ };
2551
2873
  size: bigint;
2552
2874
  md5: string;
2553
2875
  sizeEncrypted: bigint | null;
@@ -2555,30 +2877,76 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2555
2877
  mime: string | null;
2556
2878
  ext: string | null;
2557
2879
  parts: {
2880
+ url: string;
2558
2881
  md5: string;
2559
2882
  order: number;
2560
- contentUrl: string;
2561
2883
  }[];
2562
2884
  publicKey: string;
2563
2885
  } | {
2564
2886
  id: string;
2565
- type: "lite";
2887
+ type: "mongo";
2566
2888
  key: string | null;
2567
- storageType: "lite";
2889
+ storage: {
2890
+ id: string;
2891
+ provider: "secrecy";
2892
+ protocol: "mongo";
2893
+ mongoStorageOptions: {
2894
+ id: string;
2895
+ mode: "standard";
2896
+ region: string;
2897
+ } & {
2898
+ providerSettings: {
2899
+ id: string;
2900
+ regions: string[];
2901
+ modes: "standard"[];
2902
+ };
2903
+ };
2904
+ };
2568
2905
  size: bigint;
2569
2906
  md5: string;
2570
2907
  sizeEncrypted: bigint | null;
2571
2908
  md5Encrypted: string | null;
2572
2909
  mime: string | null;
2573
2910
  ext: string | null;
2574
- content: Buffer;
2575
2911
  publicKey: string;
2912
+ bytes: Buffer;
2576
2913
  };
2577
2914
  _output_out: {
2578
2915
  id: string;
2579
2916
  type: "received_mail";
2580
2917
  key: string | null;
2581
- storageType: "s3" | "cold" | "lite";
2918
+ storage: {
2919
+ id: string;
2920
+ provider: "scaleway" | "ovh";
2921
+ protocol: "s3";
2922
+ s3StorageOptions: {
2923
+ id: string;
2924
+ mode: "standard" | "glacier";
2925
+ region: string;
2926
+ } & {
2927
+ providerSettings: {
2928
+ id: string;
2929
+ features: ("versioning" | "edge")[];
2930
+ regions: string[];
2931
+ modes: ("standard" | "glacier")[];
2932
+ };
2933
+ };
2934
+ } | {
2935
+ id: string;
2936
+ provider: "secrecy";
2937
+ protocol: "mongo";
2938
+ mongoStorageOptions: {
2939
+ id: string;
2940
+ mode: "standard";
2941
+ region: string;
2942
+ } & {
2943
+ providerSettings: {
2944
+ id: string;
2945
+ regions: string[];
2946
+ modes: "standard"[];
2947
+ };
2948
+ };
2949
+ };
2582
2950
  size: bigint;
2583
2951
  md5: string;
2584
2952
  sizeEncrypted: bigint | null;
@@ -2587,16 +2955,47 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2587
2955
  ext: string | null;
2588
2956
  senderPublicKey: string;
2589
2957
  maybeParts: {
2958
+ url: string;
2590
2959
  md5: string;
2591
2960
  order: number;
2592
- contentUrl: string;
2593
2961
  }[] | null;
2594
- maybeContent: Buffer | null;
2962
+ maybeBytes: Buffer | null;
2595
2963
  } | {
2596
2964
  id: string;
2597
2965
  type: "sent_mail";
2598
2966
  key: string | null;
2599
- storageType: "s3" | "cold" | "lite";
2967
+ storage: {
2968
+ id: string;
2969
+ provider: "scaleway" | "ovh";
2970
+ protocol: "s3";
2971
+ s3StorageOptions: {
2972
+ id: string;
2973
+ mode: "standard" | "glacier";
2974
+ region: string;
2975
+ } & {
2976
+ providerSettings: {
2977
+ id: string;
2978
+ features: ("versioning" | "edge")[];
2979
+ regions: string[];
2980
+ modes: ("standard" | "glacier")[];
2981
+ };
2982
+ };
2983
+ } | {
2984
+ id: string;
2985
+ provider: "secrecy";
2986
+ protocol: "mongo";
2987
+ mongoStorageOptions: {
2988
+ id: string;
2989
+ mode: "standard";
2990
+ region: string;
2991
+ } & {
2992
+ providerSettings: {
2993
+ id: string;
2994
+ regions: string[];
2995
+ modes: "standard"[];
2996
+ };
2997
+ };
2998
+ };
2600
2999
  size: bigint;
2601
3000
  md5: string;
2602
3001
  sizeEncrypted: bigint | null;
@@ -2604,16 +3003,32 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2604
3003
  mime: string | null;
2605
3004
  ext: string | null;
2606
3005
  maybeParts: {
3006
+ url: string;
2607
3007
  md5: string;
2608
3008
  order: number;
2609
- contentUrl: string;
2610
3009
  }[] | null;
2611
- maybeContent: Buffer | null;
3010
+ maybeBytes: Buffer | null;
2612
3011
  } | {
2613
3012
  id: string;
2614
- type: "cloud";
3013
+ type: "s3";
2615
3014
  key: string | null;
2616
- storageType: "s3" | "cold";
3015
+ storage: {
3016
+ id: string;
3017
+ provider: "scaleway" | "ovh";
3018
+ protocol: "s3";
3019
+ s3StorageOptions: {
3020
+ id: string;
3021
+ mode: "standard" | "glacier";
3022
+ region: string;
3023
+ } & {
3024
+ providerSettings: {
3025
+ id: string;
3026
+ features: ("versioning" | "edge")[];
3027
+ regions: string[];
3028
+ modes: ("standard" | "glacier")[];
3029
+ };
3030
+ };
3031
+ };
2617
3032
  size: bigint;
2618
3033
  md5: string;
2619
3034
  sizeEncrypted: bigint | null;
@@ -2621,24 +3036,39 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2621
3036
  mime: string | null;
2622
3037
  ext: string | null;
2623
3038
  parts: {
3039
+ url: string;
2624
3040
  md5: string;
2625
3041
  order: number;
2626
- contentUrl: string;
2627
3042
  }[];
2628
3043
  publicKey: string;
2629
3044
  } | {
2630
3045
  id: string;
2631
- type: "lite";
3046
+ type: "mongo";
2632
3047
  key: string | null;
2633
- storageType: "lite";
3048
+ storage: {
3049
+ id: string;
3050
+ provider: "secrecy";
3051
+ protocol: "mongo";
3052
+ mongoStorageOptions: {
3053
+ id: string;
3054
+ mode: "standard";
3055
+ region: string;
3056
+ } & {
3057
+ providerSettings: {
3058
+ id: string;
3059
+ regions: string[];
3060
+ modes: "standard"[];
3061
+ };
3062
+ };
3063
+ };
2634
3064
  size: bigint;
2635
3065
  md5: string;
2636
3066
  sizeEncrypted: bigint | null;
2637
3067
  md5Encrypted: string | null;
2638
3068
  mime: string | null;
2639
3069
  ext: string | null;
2640
- content: Buffer;
2641
3070
  publicKey: string;
3071
+ bytes: Buffer;
2642
3072
  };
2643
3073
  }, unknown>>;
2644
3074
  };
@@ -2676,7 +3106,38 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2676
3106
  id: string;
2677
3107
  type: "received_mail";
2678
3108
  key: string | null;
2679
- storageType: "s3" | "cold" | "lite";
3109
+ storage: {
3110
+ id: string;
3111
+ provider: "scaleway" | "ovh";
3112
+ protocol: "s3";
3113
+ s3StorageOptions: {
3114
+ id: string;
3115
+ mode: "standard" | "glacier";
3116
+ region: string;
3117
+ } & {
3118
+ providerSettings: {
3119
+ id: string;
3120
+ features: ("versioning" | "edge")[];
3121
+ regions: string[];
3122
+ modes: ("standard" | "glacier")[];
3123
+ };
3124
+ };
3125
+ } | {
3126
+ id: string;
3127
+ provider: "secrecy";
3128
+ protocol: "mongo";
3129
+ mongoStorageOptions: {
3130
+ id: string;
3131
+ mode: "standard";
3132
+ region: string;
3133
+ } & {
3134
+ providerSettings: {
3135
+ id: string;
3136
+ regions: string[];
3137
+ modes: "standard"[];
3138
+ };
3139
+ };
3140
+ };
2680
3141
  size: bigint;
2681
3142
  md5: string;
2682
3143
  sizeEncrypted: bigint | null;
@@ -2685,16 +3146,47 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2685
3146
  ext: string | null;
2686
3147
  senderPublicKey: string;
2687
3148
  maybeParts: {
3149
+ url: string;
2688
3150
  md5: string;
2689
3151
  order: number;
2690
- contentUrl: string;
2691
3152
  }[] | null;
2692
- maybeContent: Buffer | null;
3153
+ maybeBytes: Buffer | null;
2693
3154
  } | {
2694
3155
  id: string;
2695
3156
  type: "sent_mail";
2696
3157
  key: string | null;
2697
- storageType: "s3" | "cold" | "lite";
3158
+ storage: {
3159
+ id: string;
3160
+ provider: "scaleway" | "ovh";
3161
+ protocol: "s3";
3162
+ s3StorageOptions: {
3163
+ id: string;
3164
+ mode: "standard" | "glacier";
3165
+ region: string;
3166
+ } & {
3167
+ providerSettings: {
3168
+ id: string;
3169
+ features: ("versioning" | "edge")[];
3170
+ regions: string[];
3171
+ modes: ("standard" | "glacier")[];
3172
+ };
3173
+ };
3174
+ } | {
3175
+ id: string;
3176
+ provider: "secrecy";
3177
+ protocol: "mongo";
3178
+ mongoStorageOptions: {
3179
+ id: string;
3180
+ mode: "standard";
3181
+ region: string;
3182
+ } & {
3183
+ providerSettings: {
3184
+ id: string;
3185
+ regions: string[];
3186
+ modes: "standard"[];
3187
+ };
3188
+ };
3189
+ };
2698
3190
  size: bigint;
2699
3191
  md5: string;
2700
3192
  sizeEncrypted: bigint | null;
@@ -2702,16 +3194,32 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2702
3194
  mime: string | null;
2703
3195
  ext: string | null;
2704
3196
  maybeParts: {
3197
+ url: string;
2705
3198
  md5: string;
2706
3199
  order: number;
2707
- contentUrl: string;
2708
3200
  }[] | null;
2709
- maybeContent: Buffer | null;
3201
+ maybeBytes: Buffer | null;
2710
3202
  } | {
2711
3203
  id: string;
2712
- type: "cloud";
3204
+ type: "s3";
2713
3205
  key: string | null;
2714
- storageType: "s3" | "cold";
3206
+ storage: {
3207
+ id: string;
3208
+ provider: "scaleway" | "ovh";
3209
+ protocol: "s3";
3210
+ s3StorageOptions: {
3211
+ id: string;
3212
+ mode: "standard" | "glacier";
3213
+ region: string;
3214
+ } & {
3215
+ providerSettings: {
3216
+ id: string;
3217
+ features: ("versioning" | "edge")[];
3218
+ regions: string[];
3219
+ modes: ("standard" | "glacier")[];
3220
+ };
3221
+ };
3222
+ };
2715
3223
  size: bigint;
2716
3224
  md5: string;
2717
3225
  sizeEncrypted: bigint | null;
@@ -2719,30 +3227,76 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2719
3227
  mime: string | null;
2720
3228
  ext: string | null;
2721
3229
  parts: {
3230
+ url: string;
2722
3231
  md5: string;
2723
3232
  order: number;
2724
- contentUrl: string;
2725
3233
  }[];
2726
3234
  publicKey: string;
2727
3235
  } | {
2728
3236
  id: string;
2729
- type: "lite";
3237
+ type: "mongo";
2730
3238
  key: string | null;
2731
- storageType: "lite";
3239
+ storage: {
3240
+ id: string;
3241
+ provider: "secrecy";
3242
+ protocol: "mongo";
3243
+ mongoStorageOptions: {
3244
+ id: string;
3245
+ mode: "standard";
3246
+ region: string;
3247
+ } & {
3248
+ providerSettings: {
3249
+ id: string;
3250
+ regions: string[];
3251
+ modes: "standard"[];
3252
+ };
3253
+ };
3254
+ };
2732
3255
  size: bigint;
2733
3256
  md5: string;
2734
3257
  sizeEncrypted: bigint | null;
2735
3258
  md5Encrypted: string | null;
2736
3259
  mime: string | null;
2737
3260
  ext: string | null;
2738
- content: Buffer;
2739
3261
  publicKey: string;
3262
+ bytes: Buffer;
2740
3263
  })[];
2741
3264
  _output_out: ({
2742
3265
  id: string;
2743
3266
  type: "received_mail";
2744
3267
  key: string | null;
2745
- storageType: "s3" | "cold" | "lite";
3268
+ storage: {
3269
+ id: string;
3270
+ provider: "scaleway" | "ovh";
3271
+ protocol: "s3";
3272
+ s3StorageOptions: {
3273
+ id: string;
3274
+ mode: "standard" | "glacier";
3275
+ region: string;
3276
+ } & {
3277
+ providerSettings: {
3278
+ id: string;
3279
+ features: ("versioning" | "edge")[];
3280
+ regions: string[];
3281
+ modes: ("standard" | "glacier")[];
3282
+ };
3283
+ };
3284
+ } | {
3285
+ id: string;
3286
+ provider: "secrecy";
3287
+ protocol: "mongo";
3288
+ mongoStorageOptions: {
3289
+ id: string;
3290
+ mode: "standard";
3291
+ region: string;
3292
+ } & {
3293
+ providerSettings: {
3294
+ id: string;
3295
+ regions: string[];
3296
+ modes: "standard"[];
3297
+ };
3298
+ };
3299
+ };
2746
3300
  size: bigint;
2747
3301
  md5: string;
2748
3302
  sizeEncrypted: bigint | null;
@@ -2751,16 +3305,47 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2751
3305
  ext: string | null;
2752
3306
  senderPublicKey: string;
2753
3307
  maybeParts: {
3308
+ url: string;
2754
3309
  md5: string;
2755
3310
  order: number;
2756
- contentUrl: string;
2757
3311
  }[] | null;
2758
- maybeContent: Buffer | null;
3312
+ maybeBytes: Buffer | null;
2759
3313
  } | {
2760
3314
  id: string;
2761
3315
  type: "sent_mail";
2762
3316
  key: string | null;
2763
- storageType: "s3" | "cold" | "lite";
3317
+ storage: {
3318
+ id: string;
3319
+ provider: "scaleway" | "ovh";
3320
+ protocol: "s3";
3321
+ s3StorageOptions: {
3322
+ id: string;
3323
+ mode: "standard" | "glacier";
3324
+ region: string;
3325
+ } & {
3326
+ providerSettings: {
3327
+ id: string;
3328
+ features: ("versioning" | "edge")[];
3329
+ regions: string[];
3330
+ modes: ("standard" | "glacier")[];
3331
+ };
3332
+ };
3333
+ } | {
3334
+ id: string;
3335
+ provider: "secrecy";
3336
+ protocol: "mongo";
3337
+ mongoStorageOptions: {
3338
+ id: string;
3339
+ mode: "standard";
3340
+ region: string;
3341
+ } & {
3342
+ providerSettings: {
3343
+ id: string;
3344
+ regions: string[];
3345
+ modes: "standard"[];
3346
+ };
3347
+ };
3348
+ };
2764
3349
  size: bigint;
2765
3350
  md5: string;
2766
3351
  sizeEncrypted: bigint | null;
@@ -2768,16 +3353,32 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2768
3353
  mime: string | null;
2769
3354
  ext: string | null;
2770
3355
  maybeParts: {
3356
+ url: string;
2771
3357
  md5: string;
2772
3358
  order: number;
2773
- contentUrl: string;
2774
3359
  }[] | null;
2775
- maybeContent: Buffer | null;
3360
+ maybeBytes: Buffer | null;
2776
3361
  } | {
2777
3362
  id: string;
2778
- type: "cloud";
3363
+ type: "s3";
2779
3364
  key: string | null;
2780
- storageType: "s3" | "cold";
3365
+ storage: {
3366
+ id: string;
3367
+ provider: "scaleway" | "ovh";
3368
+ protocol: "s3";
3369
+ s3StorageOptions: {
3370
+ id: string;
3371
+ mode: "standard" | "glacier";
3372
+ region: string;
3373
+ } & {
3374
+ providerSettings: {
3375
+ id: string;
3376
+ features: ("versioning" | "edge")[];
3377
+ regions: string[];
3378
+ modes: ("standard" | "glacier")[];
3379
+ };
3380
+ };
3381
+ };
2781
3382
  size: bigint;
2782
3383
  md5: string;
2783
3384
  sizeEncrypted: bigint | null;
@@ -2785,24 +3386,39 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2785
3386
  mime: string | null;
2786
3387
  ext: string | null;
2787
3388
  parts: {
3389
+ url: string;
2788
3390
  md5: string;
2789
3391
  order: number;
2790
- contentUrl: string;
2791
3392
  }[];
2792
3393
  publicKey: string;
2793
3394
  } | {
2794
3395
  id: string;
2795
- type: "lite";
3396
+ type: "mongo";
2796
3397
  key: string | null;
2797
- storageType: "lite";
3398
+ storage: {
3399
+ id: string;
3400
+ provider: "secrecy";
3401
+ protocol: "mongo";
3402
+ mongoStorageOptions: {
3403
+ id: string;
3404
+ mode: "standard";
3405
+ region: string;
3406
+ } & {
3407
+ providerSettings: {
3408
+ id: string;
3409
+ regions: string[];
3410
+ modes: "standard"[];
3411
+ };
3412
+ };
3413
+ };
2798
3414
  size: bigint;
2799
3415
  md5: string;
2800
3416
  sizeEncrypted: bigint | null;
2801
3417
  md5Encrypted: string | null;
2802
3418
  mime: string | null;
2803
3419
  ext: string | null;
2804
- content: Buffer;
2805
3420
  publicKey: string;
3421
+ bytes: Buffer;
2806
3422
  })[];
2807
3423
  }, unknown>>;
2808
3424
  };
@@ -2866,21 +3482,35 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2866
3482
  _ctx_out: {};
2867
3483
  _input_in: {
2868
3484
  dataId: string;
2869
- storageType: "s3" | "cold" | "lite";
3485
+ mode?: "standard" | "glacier" | undefined;
3486
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3487
+ protocol?: "s3" | "mongo" | undefined;
3488
+ region?: string | undefined;
2870
3489
  };
2871
3490
  _input_out: {
2872
3491
  dataId: string;
2873
- storageType: "s3" | "cold" | "lite";
3492
+ mode?: "standard" | "glacier" | undefined;
3493
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3494
+ protocol?: "s3" | "mongo" | undefined;
3495
+ region?: string | undefined;
2874
3496
  };
2875
3497
  _output_in: {
2876
3498
  isMoved: boolean;
2877
- fromType: "s3" | "cold" | "lite";
2878
- toType: "s3" | "cold" | "lite";
3499
+ fromProtocol?: "s3" | "mongo" | undefined;
3500
+ fromMode?: "standard" | "glacier" | undefined;
3501
+ fromRegion?: string | undefined;
3502
+ toProtocol?: "s3" | "mongo" | undefined;
3503
+ toMode?: "standard" | "glacier" | undefined;
3504
+ toRegion?: string | undefined;
2879
3505
  };
2880
3506
  _output_out: {
2881
3507
  isMoved: boolean;
2882
- fromType: "s3" | "cold" | "lite";
2883
- toType: "s3" | "cold" | "lite";
3508
+ fromProtocol?: "s3" | "mongo" | undefined;
3509
+ fromMode?: "standard" | "glacier" | undefined;
3510
+ fromRegion?: string | undefined;
3511
+ toProtocol?: "s3" | "mongo" | undefined;
3512
+ toMode?: "standard" | "glacier" | undefined;
3513
+ toRegion?: string | undefined;
2884
3514
  };
2885
3515
  }, unknown>>;
2886
3516
  };
@@ -2959,44 +3589,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2959
3589
  sizeEncrypted: bigint;
2960
3590
  };
2961
3591
  } & {
2962
- current: {
3592
+ current: ({
2963
3593
  id: string;
2964
3594
  createdAt: Date;
2965
- storageType: "s3" | "cold" | "lite";
2966
3595
  size: bigint;
2967
3596
  md5: string;
2968
3597
  userAppUserId: string;
2969
3598
  userAppAppId: string;
3599
+ nextStorageId: string | null;
2970
3600
  sizeEncrypted: bigint | null;
2971
3601
  md5Encrypted: string | null;
2972
3602
  mime: string | null;
2973
3603
  ext: string | null;
2974
3604
  validatedAt: Date | null;
2975
3605
  restoreSince: Date | null;
3606
+ onTransferSince: Date | null;
3607
+ } & {
3608
+ storage: {
3609
+ id: string;
3610
+ provider: "scaleway" | "ovh";
3611
+ protocol: "s3";
3612
+ s3StorageOptions: {
3613
+ id: string;
3614
+ mode: "standard" | "glacier";
3615
+ region: string;
3616
+ } & {
3617
+ providerSettings: {
3618
+ id: string;
3619
+ features: ("versioning" | "edge")[];
3620
+ regions: string[];
3621
+ modes: ("standard" | "glacier")[];
3622
+ };
3623
+ };
3624
+ } | {
3625
+ id: string;
3626
+ provider: "secrecy";
3627
+ protocol: "mongo";
3628
+ mongoStorageOptions: {
3629
+ id: string;
3630
+ mode: "standard";
3631
+ region: string;
3632
+ } & {
3633
+ providerSettings: {
3634
+ id: string;
3635
+ regions: string[];
3636
+ modes: "standard"[];
3637
+ };
3638
+ };
3639
+ };
2976
3640
  access: {
2977
3641
  key: string | null;
2978
3642
  sharedByPubKey: string;
2979
3643
  };
2980
- } | null;
2981
- history: {
3644
+ }) | null;
3645
+ history: ({
2982
3646
  id: string;
2983
3647
  createdAt: Date;
2984
- storageType: "s3" | "cold" | "lite";
2985
3648
  size: bigint;
2986
3649
  md5: string;
2987
3650
  userAppUserId: string;
2988
3651
  userAppAppId: string;
3652
+ nextStorageId: string | null;
2989
3653
  sizeEncrypted: bigint | null;
2990
3654
  md5Encrypted: string | null;
2991
3655
  mime: string | null;
2992
3656
  ext: string | null;
2993
3657
  validatedAt: Date | null;
2994
3658
  restoreSince: Date | null;
3659
+ onTransferSince: Date | null;
3660
+ } & {
3661
+ storage: {
3662
+ id: string;
3663
+ provider: "scaleway" | "ovh";
3664
+ protocol: "s3";
3665
+ s3StorageOptions: {
3666
+ id: string;
3667
+ mode: "standard" | "glacier";
3668
+ region: string;
3669
+ } & {
3670
+ providerSettings: {
3671
+ id: string;
3672
+ features: ("versioning" | "edge")[];
3673
+ regions: string[];
3674
+ modes: ("standard" | "glacier")[];
3675
+ };
3676
+ };
3677
+ } | {
3678
+ id: string;
3679
+ provider: "secrecy";
3680
+ protocol: "mongo";
3681
+ mongoStorageOptions: {
3682
+ id: string;
3683
+ mode: "standard";
3684
+ region: string;
3685
+ } & {
3686
+ providerSettings: {
3687
+ id: string;
3688
+ regions: string[];
3689
+ modes: "standard"[];
3690
+ };
3691
+ };
3692
+ };
2995
3693
  access: {
2996
3694
  key: string | null;
2997
3695
  sharedByPubKey: string;
2998
3696
  };
2999
- }[];
3697
+ })[];
3000
3698
  parent: ({
3001
3699
  name: string;
3002
3700
  id: string;
@@ -3110,44 +3808,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3110
3808
  sizeEncrypted: bigint;
3111
3809
  };
3112
3810
  } & {
3113
- current: {
3811
+ current: ({
3114
3812
  id: string;
3115
3813
  createdAt: Date;
3116
- storageType: "s3" | "cold" | "lite";
3117
3814
  size: bigint;
3118
3815
  md5: string;
3119
3816
  userAppUserId: string;
3120
3817
  userAppAppId: string;
3818
+ nextStorageId: string | null;
3121
3819
  sizeEncrypted: bigint | null;
3122
3820
  md5Encrypted: string | null;
3123
3821
  mime: string | null;
3124
3822
  ext: string | null;
3125
3823
  validatedAt: Date | null;
3126
3824
  restoreSince: Date | null;
3825
+ onTransferSince: Date | null;
3826
+ } & {
3827
+ storage: {
3828
+ id: string;
3829
+ provider: "scaleway" | "ovh";
3830
+ protocol: "s3";
3831
+ s3StorageOptions: {
3832
+ id: string;
3833
+ mode: "standard" | "glacier";
3834
+ region: string;
3835
+ } & {
3836
+ providerSettings: {
3837
+ id: string;
3838
+ features: ("versioning" | "edge")[];
3839
+ regions: string[];
3840
+ modes: ("standard" | "glacier")[];
3841
+ };
3842
+ };
3843
+ } | {
3844
+ id: string;
3845
+ provider: "secrecy";
3846
+ protocol: "mongo";
3847
+ mongoStorageOptions: {
3848
+ id: string;
3849
+ mode: "standard";
3850
+ region: string;
3851
+ } & {
3852
+ providerSettings: {
3853
+ id: string;
3854
+ regions: string[];
3855
+ modes: "standard"[];
3856
+ };
3857
+ };
3858
+ };
3127
3859
  access: {
3128
3860
  key: string | null;
3129
3861
  sharedByPubKey: string;
3130
3862
  };
3131
- } | null;
3132
- history: {
3863
+ }) | null;
3864
+ history: ({
3133
3865
  id: string;
3134
3866
  createdAt: Date;
3135
- storageType: "s3" | "cold" | "lite";
3136
3867
  size: bigint;
3137
3868
  md5: string;
3138
3869
  userAppUserId: string;
3139
3870
  userAppAppId: string;
3871
+ nextStorageId: string | null;
3140
3872
  sizeEncrypted: bigint | null;
3141
3873
  md5Encrypted: string | null;
3142
3874
  mime: string | null;
3143
3875
  ext: string | null;
3144
3876
  validatedAt: Date | null;
3145
3877
  restoreSince: Date | null;
3878
+ onTransferSince: Date | null;
3879
+ } & {
3880
+ storage: {
3881
+ id: string;
3882
+ provider: "scaleway" | "ovh";
3883
+ protocol: "s3";
3884
+ s3StorageOptions: {
3885
+ id: string;
3886
+ mode: "standard" | "glacier";
3887
+ region: string;
3888
+ } & {
3889
+ providerSettings: {
3890
+ id: string;
3891
+ features: ("versioning" | "edge")[];
3892
+ regions: string[];
3893
+ modes: ("standard" | "glacier")[];
3894
+ };
3895
+ };
3896
+ } | {
3897
+ id: string;
3898
+ provider: "secrecy";
3899
+ protocol: "mongo";
3900
+ mongoStorageOptions: {
3901
+ id: string;
3902
+ mode: "standard";
3903
+ region: string;
3904
+ } & {
3905
+ providerSettings: {
3906
+ id: string;
3907
+ regions: string[];
3908
+ modes: "standard"[];
3909
+ };
3910
+ };
3911
+ };
3146
3912
  access: {
3147
3913
  key: string | null;
3148
3914
  sharedByPubKey: string;
3149
3915
  };
3150
- }[];
3916
+ })[];
3151
3917
  parent: ({
3152
3918
  name: string;
3153
3919
  id: string;
@@ -3320,8 +4086,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3320
4086
  history: {
3321
4087
  createdAt: Date;
3322
4088
  dataId: string;
3323
- storageType: "s3" | "cold" | "lite";
3324
4089
  size: bigint;
4090
+ storageType: "s3" | "mongo";
3325
4091
  }[];
3326
4092
  access: {
3327
4093
  appId: string;
@@ -3361,8 +4127,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3361
4127
  history: {
3362
4128
  createdAt: Date;
3363
4129
  dataId: string;
3364
- storageType: "s3" | "cold" | "lite";
3365
4130
  size: bigint;
4131
+ storageType: "s3" | "mongo";
3366
4132
  }[];
3367
4133
  access: {
3368
4134
  appId: string;
@@ -3511,12 +4277,18 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3511
4277
  md5: string;
3512
4278
  sizeEncrypted: bigint;
3513
4279
  md5Encrypted: string;
4280
+ mode?: "standard" | "glacier" | undefined;
4281
+ provider?: "scaleway" | "ovh" | undefined;
4282
+ region?: string | undefined;
3514
4283
  mime?: string | undefined;
3515
4284
  ext?: string | undefined;
3516
4285
  } | {
3517
4286
  type: "unencrypted";
3518
4287
  size: bigint;
3519
4288
  md5: string;
4289
+ mode?: "standard" | "glacier" | undefined;
4290
+ provider?: "scaleway" | "ovh" | undefined;
4291
+ region?: string | undefined;
3520
4292
  mime?: string | undefined;
3521
4293
  ext?: string | undefined;
3522
4294
  };
@@ -3524,15 +4296,21 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3524
4296
  type: "encrypted";
3525
4297
  key: string;
3526
4298
  size: bigint;
4299
+ mode: "standard" | "glacier";
3527
4300
  md5: string;
4301
+ provider: "scaleway" | "ovh";
3528
4302
  sizeEncrypted: bigint;
3529
4303
  md5Encrypted: string;
4304
+ region?: string | undefined;
3530
4305
  mime?: string | undefined;
3531
4306
  ext?: string | undefined;
3532
4307
  } | {
3533
4308
  type: "unencrypted";
3534
4309
  size: bigint;
4310
+ mode: "standard" | "glacier";
3535
4311
  md5: string;
4312
+ provider: "scaleway" | "ovh";
4313
+ region?: string | undefined;
3536
4314
  mime?: string | undefined;
3537
4315
  ext?: string | undefined;
3538
4316
  };
@@ -3597,12 +4375,18 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3597
4375
  md5: string;
3598
4376
  sizeEncrypted: bigint;
3599
4377
  md5Encrypted: string;
4378
+ mode?: "standard" | "glacier" | undefined;
4379
+ provider?: "scaleway" | "ovh" | undefined;
4380
+ region?: string | undefined;
3600
4381
  mime?: string | undefined;
3601
4382
  ext?: string | undefined;
3602
4383
  } | {
3603
4384
  type: "unencrypted";
3604
4385
  size: bigint;
3605
4386
  md5: string;
4387
+ mode?: "standard" | "glacier" | undefined;
4388
+ provider?: "scaleway" | "ovh" | undefined;
4389
+ region?: string | undefined;
3606
4390
  mime?: string | undefined;
3607
4391
  ext?: string | undefined;
3608
4392
  };
@@ -3610,15 +4394,21 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3610
4394
  type: "encrypted";
3611
4395
  key: string;
3612
4396
  size: bigint;
4397
+ mode: "standard" | "glacier";
3613
4398
  md5: string;
4399
+ provider: "scaleway" | "ovh";
3614
4400
  sizeEncrypted: bigint;
3615
4401
  md5Encrypted: string;
4402
+ region?: string | undefined;
3616
4403
  mime?: string | undefined;
3617
4404
  ext?: string | undefined;
3618
4405
  } | {
3619
4406
  type: "unencrypted";
3620
4407
  size: bigint;
4408
+ mode: "standard" | "glacier";
3621
4409
  md5: string;
4410
+ provider: "scaleway" | "ovh";
4411
+ region?: string | undefined;
3622
4412
  mime?: string | undefined;
3623
4413
  ext?: string | undefined;
3624
4414
  };
@@ -3652,7 +4442,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3652
4442
  };
3653
4443
  }, unknown>>;
3654
4444
  };
3655
- uploadLiteData: {
4445
+ uploadMongoData: {
3656
4446
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
3657
4447
  _config: import("@trpc/server").RootConfig<{
3658
4448
  ctx: {};
@@ -3683,14 +4473,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3683
4473
  md5: string;
3684
4474
  sizeEncrypted: bigint;
3685
4475
  md5Encrypted: string;
3686
- content: Buffer;
4476
+ bytes: Buffer;
3687
4477
  mime?: string | undefined;
3688
4478
  ext?: string | undefined;
3689
4479
  } | {
3690
4480
  type: "unencrypted";
3691
4481
  size: bigint;
3692
4482
  md5: string;
3693
- content: Buffer;
4483
+ bytes: Buffer;
3694
4484
  mime?: string | undefined;
3695
4485
  ext?: string | undefined;
3696
4486
  };
@@ -3701,14 +4491,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3701
4491
  md5: string;
3702
4492
  sizeEncrypted: bigint;
3703
4493
  md5Encrypted: string;
3704
- content: Buffer;
4494
+ bytes: Buffer;
3705
4495
  mime?: string | undefined;
3706
4496
  ext?: string | undefined;
3707
4497
  } | {
3708
4498
  type: "unencrypted";
3709
4499
  size: bigint;
3710
4500
  md5: string;
3711
- content: Buffer;
4501
+ bytes: Buffer;
3712
4502
  mime?: string | undefined;
3713
4503
  ext?: string | undefined;
3714
4504
  };
@@ -3772,6 +4562,140 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3772
4562
  };
3773
4563
  }, unknown>>;
3774
4564
  };
4565
+ dataStorage: {
4566
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
4567
+ _config: import("@trpc/server").RootConfig<{
4568
+ ctx: {};
4569
+ meta: object;
4570
+ errorShape: {
4571
+ message: string;
4572
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4573
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4574
+ } | {
4575
+ data: {
4576
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
4577
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
4578
+ httpStatus: number;
4579
+ path?: string;
4580
+ stack?: string;
4581
+ };
4582
+ message: string;
4583
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4584
+ };
4585
+ transformer: typeof superjson;
4586
+ }>;
4587
+ _meta: object;
4588
+ _ctx_out: {};
4589
+ _input_in: {
4590
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4591
+ protocol?: "s3" | "mongo" | undefined;
4592
+ };
4593
+ _input_out: {
4594
+ provider?: "scaleway" | "secrecy" | "ovh" | undefined;
4595
+ protocol?: "s3" | "mongo" | undefined;
4596
+ };
4597
+ _output_in: {
4598
+ id: string;
4599
+ provider: "scaleway" | "secrecy" | "ovh";
4600
+ protocol: "s3" | "mongo";
4601
+ s3StorageOptionsId: string | null;
4602
+ mongoStorageOptionsId: string | null;
4603
+ }[];
4604
+ _output_out: {
4605
+ id: string;
4606
+ provider: "scaleway" | "secrecy" | "ovh";
4607
+ protocol: "s3" | "mongo";
4608
+ s3StorageOptionsId: string | null;
4609
+ mongoStorageOptionsId: string | null;
4610
+ }[];
4611
+ }, unknown>>;
4612
+ };
4613
+ dataStorageMongoSettings: {
4614
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
4615
+ _config: import("@trpc/server").RootConfig<{
4616
+ ctx: {};
4617
+ meta: object;
4618
+ errorShape: {
4619
+ message: string;
4620
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4621
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4622
+ } | {
4623
+ data: {
4624
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
4625
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
4626
+ httpStatus: number;
4627
+ path?: string;
4628
+ stack?: string;
4629
+ };
4630
+ message: string;
4631
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4632
+ };
4633
+ transformer: typeof superjson;
4634
+ }>;
4635
+ _meta: object;
4636
+ _ctx_out: {};
4637
+ _input_in: {
4638
+ id: string;
4639
+ };
4640
+ _input_out: {
4641
+ id: string;
4642
+ };
4643
+ _output_in: {
4644
+ id: string;
4645
+ regions: string[];
4646
+ modes: "standard"[];
4647
+ };
4648
+ _output_out: {
4649
+ id: string;
4650
+ regions: string[];
4651
+ modes: "standard"[];
4652
+ };
4653
+ }, unknown>>;
4654
+ };
4655
+ dataStorageS3Settings: {
4656
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
4657
+ _config: import("@trpc/server").RootConfig<{
4658
+ ctx: {};
4659
+ meta: object;
4660
+ errorShape: {
4661
+ message: string;
4662
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4663
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4664
+ } | {
4665
+ data: {
4666
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
4667
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
4668
+ httpStatus: number;
4669
+ path?: string;
4670
+ stack?: string;
4671
+ };
4672
+ message: string;
4673
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4674
+ };
4675
+ transformer: typeof superjson;
4676
+ }>;
4677
+ _meta: object;
4678
+ _ctx_out: {};
4679
+ _input_in: {
4680
+ id: string;
4681
+ };
4682
+ _input_out: {
4683
+ id: string;
4684
+ };
4685
+ _output_in: {
4686
+ id: string;
4687
+ features: ("versioning" | "edge")[];
4688
+ regions: string[];
4689
+ modes: ("standard" | "glacier")[];
4690
+ };
4691
+ _output_out: {
4692
+ id: string;
4693
+ features: ("versioning" | "edge")[];
4694
+ regions: string[];
4695
+ modes: ("standard" | "glacier")[];
4696
+ };
4697
+ }, unknown>>;
4698
+ };
3775
4699
  dataLink: {
3776
4700
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
3777
4701
  _config: import("@trpc/server").RootConfig<{
@@ -4089,44 +5013,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4089
5013
  sizeEncrypted: bigint;
4090
5014
  };
4091
5015
  } & {
4092
- current: {
5016
+ current: ({
4093
5017
  id: string;
4094
5018
  createdAt: Date;
4095
- storageType: "s3" | "cold" | "lite";
4096
5019
  size: bigint;
4097
5020
  md5: string;
4098
5021
  userAppUserId: string;
4099
5022
  userAppAppId: string;
5023
+ nextStorageId: string | null;
4100
5024
  sizeEncrypted: bigint | null;
4101
5025
  md5Encrypted: string | null;
4102
5026
  mime: string | null;
4103
5027
  ext: string | null;
4104
5028
  validatedAt: Date | null;
4105
5029
  restoreSince: Date | null;
5030
+ onTransferSince: Date | null;
5031
+ } & {
5032
+ storage: {
5033
+ id: string;
5034
+ provider: "scaleway" | "ovh";
5035
+ protocol: "s3";
5036
+ s3StorageOptions: {
5037
+ id: string;
5038
+ mode: "standard" | "glacier";
5039
+ region: string;
5040
+ } & {
5041
+ providerSettings: {
5042
+ id: string;
5043
+ features: ("versioning" | "edge")[];
5044
+ regions: string[];
5045
+ modes: ("standard" | "glacier")[];
5046
+ };
5047
+ };
5048
+ } | {
5049
+ id: string;
5050
+ provider: "secrecy";
5051
+ protocol: "mongo";
5052
+ mongoStorageOptions: {
5053
+ id: string;
5054
+ mode: "standard";
5055
+ region: string;
5056
+ } & {
5057
+ providerSettings: {
5058
+ id: string;
5059
+ regions: string[];
5060
+ modes: "standard"[];
5061
+ };
5062
+ };
5063
+ };
4106
5064
  access: {
4107
5065
  key: string | null;
4108
5066
  sharedByPubKey: string;
4109
5067
  };
4110
- } | null;
4111
- history: {
5068
+ }) | null;
5069
+ history: ({
4112
5070
  id: string;
4113
5071
  createdAt: Date;
4114
- storageType: "s3" | "cold" | "lite";
4115
5072
  size: bigint;
4116
5073
  md5: string;
4117
5074
  userAppUserId: string;
4118
5075
  userAppAppId: string;
5076
+ nextStorageId: string | null;
4119
5077
  sizeEncrypted: bigint | null;
4120
5078
  md5Encrypted: string | null;
4121
5079
  mime: string | null;
4122
5080
  ext: string | null;
4123
5081
  validatedAt: Date | null;
4124
5082
  restoreSince: Date | null;
5083
+ onTransferSince: Date | null;
5084
+ } & {
5085
+ storage: {
5086
+ id: string;
5087
+ provider: "scaleway" | "ovh";
5088
+ protocol: "s3";
5089
+ s3StorageOptions: {
5090
+ id: string;
5091
+ mode: "standard" | "glacier";
5092
+ region: string;
5093
+ } & {
5094
+ providerSettings: {
5095
+ id: string;
5096
+ features: ("versioning" | "edge")[];
5097
+ regions: string[];
5098
+ modes: ("standard" | "glacier")[];
5099
+ };
5100
+ };
5101
+ } | {
5102
+ id: string;
5103
+ provider: "secrecy";
5104
+ protocol: "mongo";
5105
+ mongoStorageOptions: {
5106
+ id: string;
5107
+ mode: "standard";
5108
+ region: string;
5109
+ } & {
5110
+ providerSettings: {
5111
+ id: string;
5112
+ regions: string[];
5113
+ modes: "standard"[];
5114
+ };
5115
+ };
5116
+ };
4125
5117
  access: {
4126
5118
  key: string | null;
4127
5119
  sharedByPubKey: string;
4128
5120
  };
4129
- }[];
5121
+ })[];
4130
5122
  parent: ({
4131
5123
  name: string;
4132
5124
  id: string;
@@ -4240,44 +5232,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4240
5232
  sizeEncrypted: bigint;
4241
5233
  };
4242
5234
  } & {
4243
- current: {
5235
+ current: ({
4244
5236
  id: string;
4245
5237
  createdAt: Date;
4246
- storageType: "s3" | "cold" | "lite";
4247
5238
  size: bigint;
4248
5239
  md5: string;
4249
5240
  userAppUserId: string;
4250
5241
  userAppAppId: string;
5242
+ nextStorageId: string | null;
4251
5243
  sizeEncrypted: bigint | null;
4252
5244
  md5Encrypted: string | null;
4253
5245
  mime: string | null;
4254
5246
  ext: string | null;
4255
5247
  validatedAt: Date | null;
4256
5248
  restoreSince: Date | null;
5249
+ onTransferSince: Date | null;
5250
+ } & {
5251
+ storage: {
5252
+ id: string;
5253
+ provider: "scaleway" | "ovh";
5254
+ protocol: "s3";
5255
+ s3StorageOptions: {
5256
+ id: string;
5257
+ mode: "standard" | "glacier";
5258
+ region: string;
5259
+ } & {
5260
+ providerSettings: {
5261
+ id: string;
5262
+ features: ("versioning" | "edge")[];
5263
+ regions: string[];
5264
+ modes: ("standard" | "glacier")[];
5265
+ };
5266
+ };
5267
+ } | {
5268
+ id: string;
5269
+ provider: "secrecy";
5270
+ protocol: "mongo";
5271
+ mongoStorageOptions: {
5272
+ id: string;
5273
+ mode: "standard";
5274
+ region: string;
5275
+ } & {
5276
+ providerSettings: {
5277
+ id: string;
5278
+ regions: string[];
5279
+ modes: "standard"[];
5280
+ };
5281
+ };
5282
+ };
4257
5283
  access: {
4258
5284
  key: string | null;
4259
5285
  sharedByPubKey: string;
4260
5286
  };
4261
- } | null;
4262
- history: {
5287
+ }) | null;
5288
+ history: ({
4263
5289
  id: string;
4264
5290
  createdAt: Date;
4265
- storageType: "s3" | "cold" | "lite";
4266
5291
  size: bigint;
4267
5292
  md5: string;
4268
5293
  userAppUserId: string;
4269
5294
  userAppAppId: string;
5295
+ nextStorageId: string | null;
4270
5296
  sizeEncrypted: bigint | null;
4271
5297
  md5Encrypted: string | null;
4272
5298
  mime: string | null;
4273
5299
  ext: string | null;
4274
5300
  validatedAt: Date | null;
4275
5301
  restoreSince: Date | null;
5302
+ onTransferSince: Date | null;
5303
+ } & {
5304
+ storage: {
5305
+ id: string;
5306
+ provider: "scaleway" | "ovh";
5307
+ protocol: "s3";
5308
+ s3StorageOptions: {
5309
+ id: string;
5310
+ mode: "standard" | "glacier";
5311
+ region: string;
5312
+ } & {
5313
+ providerSettings: {
5314
+ id: string;
5315
+ features: ("versioning" | "edge")[];
5316
+ regions: string[];
5317
+ modes: ("standard" | "glacier")[];
5318
+ };
5319
+ };
5320
+ } | {
5321
+ id: string;
5322
+ provider: "secrecy";
5323
+ protocol: "mongo";
5324
+ mongoStorageOptions: {
5325
+ id: string;
5326
+ mode: "standard";
5327
+ region: string;
5328
+ } & {
5329
+ providerSettings: {
5330
+ id: string;
5331
+ regions: string[];
5332
+ modes: "standard"[];
5333
+ };
5334
+ };
5335
+ };
4276
5336
  access: {
4277
5337
  key: string | null;
4278
5338
  sharedByPubKey: string;
4279
5339
  };
4280
- }[];
5340
+ })[];
4281
5341
  parent: ({
4282
5342
  name: string;
4283
5343
  id: string;
@@ -4909,44 +5969,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4909
5969
  sizeEncrypted: bigint;
4910
5970
  };
4911
5971
  } & {
4912
- current: {
5972
+ current: ({
4913
5973
  id: string;
4914
5974
  createdAt: Date;
4915
- storageType: "s3" | "cold" | "lite";
4916
5975
  size: bigint;
4917
5976
  md5: string;
4918
5977
  userAppUserId: string;
4919
5978
  userAppAppId: string;
5979
+ nextStorageId: string | null;
4920
5980
  sizeEncrypted: bigint | null;
4921
5981
  md5Encrypted: string | null;
4922
5982
  mime: string | null;
4923
5983
  ext: string | null;
4924
5984
  validatedAt: Date | null;
4925
5985
  restoreSince: Date | null;
5986
+ onTransferSince: Date | null;
5987
+ } & {
5988
+ storage: {
5989
+ id: string;
5990
+ provider: "scaleway" | "ovh";
5991
+ protocol: "s3";
5992
+ s3StorageOptions: {
5993
+ id: string;
5994
+ mode: "standard" | "glacier";
5995
+ region: string;
5996
+ } & {
5997
+ providerSettings: {
5998
+ id: string;
5999
+ features: ("versioning" | "edge")[];
6000
+ regions: string[];
6001
+ modes: ("standard" | "glacier")[];
6002
+ };
6003
+ };
6004
+ } | {
6005
+ id: string;
6006
+ provider: "secrecy";
6007
+ protocol: "mongo";
6008
+ mongoStorageOptions: {
6009
+ id: string;
6010
+ mode: "standard";
6011
+ region: string;
6012
+ } & {
6013
+ providerSettings: {
6014
+ id: string;
6015
+ regions: string[];
6016
+ modes: "standard"[];
6017
+ };
6018
+ };
6019
+ };
4926
6020
  access: {
4927
6021
  key: string | null;
4928
6022
  sharedByPubKey: string;
4929
6023
  };
4930
- } | null;
4931
- history: {
6024
+ }) | null;
6025
+ history: ({
4932
6026
  id: string;
4933
6027
  createdAt: Date;
4934
- storageType: "s3" | "cold" | "lite";
4935
6028
  size: bigint;
4936
6029
  md5: string;
4937
6030
  userAppUserId: string;
4938
6031
  userAppAppId: string;
6032
+ nextStorageId: string | null;
4939
6033
  sizeEncrypted: bigint | null;
4940
6034
  md5Encrypted: string | null;
4941
6035
  mime: string | null;
4942
6036
  ext: string | null;
4943
6037
  validatedAt: Date | null;
4944
6038
  restoreSince: Date | null;
6039
+ onTransferSince: Date | null;
6040
+ } & {
6041
+ storage: {
6042
+ id: string;
6043
+ provider: "scaleway" | "ovh";
6044
+ protocol: "s3";
6045
+ s3StorageOptions: {
6046
+ id: string;
6047
+ mode: "standard" | "glacier";
6048
+ region: string;
6049
+ } & {
6050
+ providerSettings: {
6051
+ id: string;
6052
+ features: ("versioning" | "edge")[];
6053
+ regions: string[];
6054
+ modes: ("standard" | "glacier")[];
6055
+ };
6056
+ };
6057
+ } | {
6058
+ id: string;
6059
+ provider: "secrecy";
6060
+ protocol: "mongo";
6061
+ mongoStorageOptions: {
6062
+ id: string;
6063
+ mode: "standard";
6064
+ region: string;
6065
+ } & {
6066
+ providerSettings: {
6067
+ id: string;
6068
+ regions: string[];
6069
+ modes: "standard"[];
6070
+ };
6071
+ };
6072
+ };
4945
6073
  access: {
4946
6074
  key: string | null;
4947
6075
  sharedByPubKey: string;
4948
6076
  };
4949
- }[];
6077
+ })[];
4950
6078
  parent: ({
4951
6079
  name: string;
4952
6080
  id: string;
@@ -5060,44 +6188,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5060
6188
  sizeEncrypted: bigint;
5061
6189
  };
5062
6190
  } & {
5063
- current: {
6191
+ current: ({
5064
6192
  id: string;
5065
6193
  createdAt: Date;
5066
- storageType: "s3" | "cold" | "lite";
5067
6194
  size: bigint;
5068
6195
  md5: string;
5069
6196
  userAppUserId: string;
5070
6197
  userAppAppId: string;
6198
+ nextStorageId: string | null;
5071
6199
  sizeEncrypted: bigint | null;
5072
6200
  md5Encrypted: string | null;
5073
6201
  mime: string | null;
5074
6202
  ext: string | null;
5075
6203
  validatedAt: Date | null;
5076
6204
  restoreSince: Date | null;
6205
+ onTransferSince: Date | null;
6206
+ } & {
6207
+ storage: {
6208
+ id: string;
6209
+ provider: "scaleway" | "ovh";
6210
+ protocol: "s3";
6211
+ s3StorageOptions: {
6212
+ id: string;
6213
+ mode: "standard" | "glacier";
6214
+ region: string;
6215
+ } & {
6216
+ providerSettings: {
6217
+ id: string;
6218
+ features: ("versioning" | "edge")[];
6219
+ regions: string[];
6220
+ modes: ("standard" | "glacier")[];
6221
+ };
6222
+ };
6223
+ } | {
6224
+ id: string;
6225
+ provider: "secrecy";
6226
+ protocol: "mongo";
6227
+ mongoStorageOptions: {
6228
+ id: string;
6229
+ mode: "standard";
6230
+ region: string;
6231
+ } & {
6232
+ providerSettings: {
6233
+ id: string;
6234
+ regions: string[];
6235
+ modes: "standard"[];
6236
+ };
6237
+ };
6238
+ };
5077
6239
  access: {
5078
6240
  key: string | null;
5079
6241
  sharedByPubKey: string;
5080
6242
  };
5081
- } | null;
5082
- history: {
6243
+ }) | null;
6244
+ history: ({
5083
6245
  id: string;
5084
6246
  createdAt: Date;
5085
- storageType: "s3" | "cold" | "lite";
5086
6247
  size: bigint;
5087
6248
  md5: string;
5088
6249
  userAppUserId: string;
5089
6250
  userAppAppId: string;
6251
+ nextStorageId: string | null;
5090
6252
  sizeEncrypted: bigint | null;
5091
6253
  md5Encrypted: string | null;
5092
6254
  mime: string | null;
5093
6255
  ext: string | null;
5094
6256
  validatedAt: Date | null;
5095
6257
  restoreSince: Date | null;
6258
+ onTransferSince: Date | null;
6259
+ } & {
6260
+ storage: {
6261
+ id: string;
6262
+ provider: "scaleway" | "ovh";
6263
+ protocol: "s3";
6264
+ s3StorageOptions: {
6265
+ id: string;
6266
+ mode: "standard" | "glacier";
6267
+ region: string;
6268
+ } & {
6269
+ providerSettings: {
6270
+ id: string;
6271
+ features: ("versioning" | "edge")[];
6272
+ regions: string[];
6273
+ modes: ("standard" | "glacier")[];
6274
+ };
6275
+ };
6276
+ } | {
6277
+ id: string;
6278
+ provider: "secrecy";
6279
+ protocol: "mongo";
6280
+ mongoStorageOptions: {
6281
+ id: string;
6282
+ mode: "standard";
6283
+ region: string;
6284
+ } & {
6285
+ providerSettings: {
6286
+ id: string;
6287
+ regions: string[];
6288
+ modes: "standard"[];
6289
+ };
6290
+ };
6291
+ };
5096
6292
  access: {
5097
6293
  key: string | null;
5098
6294
  sharedByPubKey: string;
5099
6295
  };
5100
- }[];
6296
+ })[];
5101
6297
  parent: ({
5102
6298
  name: string;
5103
6299
  id: string;
@@ -5703,44 +6899,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5703
6899
  sizeEncrypted: bigint;
5704
6900
  };
5705
6901
  } & {
5706
- current: {
6902
+ current: ({
5707
6903
  id: string;
5708
6904
  createdAt: Date;
5709
- storageType: "s3" | "cold" | "lite";
5710
6905
  size: bigint;
5711
6906
  md5: string;
5712
6907
  userAppUserId: string;
5713
6908
  userAppAppId: string;
6909
+ nextStorageId: string | null;
5714
6910
  sizeEncrypted: bigint | null;
5715
6911
  md5Encrypted: string | null;
5716
6912
  mime: string | null;
5717
6913
  ext: string | null;
5718
6914
  validatedAt: Date | null;
5719
6915
  restoreSince: Date | null;
6916
+ onTransferSince: Date | null;
6917
+ } & {
6918
+ storage: {
6919
+ id: string;
6920
+ provider: "scaleway" | "ovh";
6921
+ protocol: "s3";
6922
+ s3StorageOptions: {
6923
+ id: string;
6924
+ mode: "standard" | "glacier";
6925
+ region: string;
6926
+ } & {
6927
+ providerSettings: {
6928
+ id: string;
6929
+ features: ("versioning" | "edge")[];
6930
+ regions: string[];
6931
+ modes: ("standard" | "glacier")[];
6932
+ };
6933
+ };
6934
+ } | {
6935
+ id: string;
6936
+ provider: "secrecy";
6937
+ protocol: "mongo";
6938
+ mongoStorageOptions: {
6939
+ id: string;
6940
+ mode: "standard";
6941
+ region: string;
6942
+ } & {
6943
+ providerSettings: {
6944
+ id: string;
6945
+ regions: string[];
6946
+ modes: "standard"[];
6947
+ };
6948
+ };
6949
+ };
5720
6950
  access: {
5721
6951
  key: string | null;
5722
6952
  sharedByPubKey: string;
5723
6953
  };
5724
- } | null;
5725
- history: {
6954
+ }) | null;
6955
+ history: ({
5726
6956
  id: string;
5727
6957
  createdAt: Date;
5728
- storageType: "s3" | "cold" | "lite";
5729
6958
  size: bigint;
5730
6959
  md5: string;
5731
6960
  userAppUserId: string;
5732
6961
  userAppAppId: string;
6962
+ nextStorageId: string | null;
5733
6963
  sizeEncrypted: bigint | null;
5734
6964
  md5Encrypted: string | null;
5735
6965
  mime: string | null;
5736
6966
  ext: string | null;
5737
6967
  validatedAt: Date | null;
5738
6968
  restoreSince: Date | null;
6969
+ onTransferSince: Date | null;
6970
+ } & {
6971
+ storage: {
6972
+ id: string;
6973
+ provider: "scaleway" | "ovh";
6974
+ protocol: "s3";
6975
+ s3StorageOptions: {
6976
+ id: string;
6977
+ mode: "standard" | "glacier";
6978
+ region: string;
6979
+ } & {
6980
+ providerSettings: {
6981
+ id: string;
6982
+ features: ("versioning" | "edge")[];
6983
+ regions: string[];
6984
+ modes: ("standard" | "glacier")[];
6985
+ };
6986
+ };
6987
+ } | {
6988
+ id: string;
6989
+ provider: "secrecy";
6990
+ protocol: "mongo";
6991
+ mongoStorageOptions: {
6992
+ id: string;
6993
+ mode: "standard";
6994
+ region: string;
6995
+ } & {
6996
+ providerSettings: {
6997
+ id: string;
6998
+ regions: string[];
6999
+ modes: "standard"[];
7000
+ };
7001
+ };
7002
+ };
5739
7003
  access: {
5740
7004
  key: string | null;
5741
7005
  sharedByPubKey: string;
5742
7006
  };
5743
- }[];
7007
+ })[];
5744
7008
  parent: ({
5745
7009
  name: string;
5746
7010
  id: string;
@@ -5854,44 +7118,112 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5854
7118
  sizeEncrypted: bigint;
5855
7119
  };
5856
7120
  } & {
5857
- current: {
7121
+ current: ({
5858
7122
  id: string;
5859
7123
  createdAt: Date;
5860
- storageType: "s3" | "cold" | "lite";
5861
7124
  size: bigint;
5862
7125
  md5: string;
5863
7126
  userAppUserId: string;
5864
7127
  userAppAppId: string;
7128
+ nextStorageId: string | null;
5865
7129
  sizeEncrypted: bigint | null;
5866
7130
  md5Encrypted: string | null;
5867
7131
  mime: string | null;
5868
7132
  ext: string | null;
5869
7133
  validatedAt: Date | null;
5870
7134
  restoreSince: Date | null;
7135
+ onTransferSince: Date | null;
7136
+ } & {
7137
+ storage: {
7138
+ id: string;
7139
+ provider: "scaleway" | "ovh";
7140
+ protocol: "s3";
7141
+ s3StorageOptions: {
7142
+ id: string;
7143
+ mode: "standard" | "glacier";
7144
+ region: string;
7145
+ } & {
7146
+ providerSettings: {
7147
+ id: string;
7148
+ features: ("versioning" | "edge")[];
7149
+ regions: string[];
7150
+ modes: ("standard" | "glacier")[];
7151
+ };
7152
+ };
7153
+ } | {
7154
+ id: string;
7155
+ provider: "secrecy";
7156
+ protocol: "mongo";
7157
+ mongoStorageOptions: {
7158
+ id: string;
7159
+ mode: "standard";
7160
+ region: string;
7161
+ } & {
7162
+ providerSettings: {
7163
+ id: string;
7164
+ regions: string[];
7165
+ modes: "standard"[];
7166
+ };
7167
+ };
7168
+ };
5871
7169
  access: {
5872
7170
  key: string | null;
5873
7171
  sharedByPubKey: string;
5874
7172
  };
5875
- } | null;
5876
- history: {
7173
+ }) | null;
7174
+ history: ({
5877
7175
  id: string;
5878
7176
  createdAt: Date;
5879
- storageType: "s3" | "cold" | "lite";
5880
7177
  size: bigint;
5881
7178
  md5: string;
5882
7179
  userAppUserId: string;
5883
7180
  userAppAppId: string;
7181
+ nextStorageId: string | null;
5884
7182
  sizeEncrypted: bigint | null;
5885
7183
  md5Encrypted: string | null;
5886
7184
  mime: string | null;
5887
7185
  ext: string | null;
5888
7186
  validatedAt: Date | null;
5889
7187
  restoreSince: Date | null;
7188
+ onTransferSince: Date | null;
7189
+ } & {
7190
+ storage: {
7191
+ id: string;
7192
+ provider: "scaleway" | "ovh";
7193
+ protocol: "s3";
7194
+ s3StorageOptions: {
7195
+ id: string;
7196
+ mode: "standard" | "glacier";
7197
+ region: string;
7198
+ } & {
7199
+ providerSettings: {
7200
+ id: string;
7201
+ features: ("versioning" | "edge")[];
7202
+ regions: string[];
7203
+ modes: ("standard" | "glacier")[];
7204
+ };
7205
+ };
7206
+ } | {
7207
+ id: string;
7208
+ provider: "secrecy";
7209
+ protocol: "mongo";
7210
+ mongoStorageOptions: {
7211
+ id: string;
7212
+ mode: "standard";
7213
+ region: string;
7214
+ } & {
7215
+ providerSettings: {
7216
+ id: string;
7217
+ regions: string[];
7218
+ modes: "standard"[];
7219
+ };
7220
+ };
7221
+ };
5890
7222
  access: {
5891
7223
  key: string | null;
5892
7224
  sharedByPubKey: string;
5893
7225
  };
5894
- }[];
7226
+ })[];
5895
7227
  parent: ({
5896
7228
  name: string;
5897
7229
  id: string;
@@ -10152,9 +11484,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10152
11484
  replyTo: {
10153
11485
  id: string;
10154
11486
  } | null;
10155
- temporaryRecipients: {
10156
- email: string | null;
10157
- }[];
10158
11487
  recipients: {
10159
11488
  id: string;
10160
11489
  lastname: string;
@@ -10162,6 +11491,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10162
11491
  avatar: string | null;
10163
11492
  isSearchable: boolean;
10164
11493
  }[];
11494
+ temporaryRecipients: {
11495
+ email: string | null;
11496
+ }[];
10165
11497
  } | null;
10166
11498
  mailIntegrityDraft: {
10167
11499
  id: string;
@@ -10170,9 +11502,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10170
11502
  replyTo: {
10171
11503
  id: string;
10172
11504
  } | null;
10173
- temporaryRecipients: {
10174
- email: string | null;
10175
- }[];
10176
11505
  recipients: {
10177
11506
  id: string;
10178
11507
  lastname: string;
@@ -10180,6 +11509,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10180
11509
  avatar: string | null;
10181
11510
  isSearchable: boolean;
10182
11511
  }[];
11512
+ temporaryRecipients: {
11513
+ email: string | null;
11514
+ }[];
10183
11515
  } | null;
10184
11516
  sender: {
10185
11517
  id: string;
@@ -10210,9 +11542,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10210
11542
  replyTo: {
10211
11543
  id: string;
10212
11544
  } | null;
10213
- temporaryRecipients: {
10214
- email: string | null;
10215
- }[];
10216
11545
  recipients: {
10217
11546
  id: string;
10218
11547
  lastname: string;
@@ -10220,6 +11549,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10220
11549
  avatar: string | null;
10221
11550
  isSearchable: boolean;
10222
11551
  }[];
11552
+ temporaryRecipients: {
11553
+ email: string | null;
11554
+ }[];
10223
11555
  } | null;
10224
11556
  mailIntegrityDraft: {
10225
11557
  id: string;
@@ -10228,9 +11560,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10228
11560
  replyTo: {
10229
11561
  id: string;
10230
11562
  } | null;
10231
- temporaryRecipients: {
10232
- email: string | null;
10233
- }[];
10234
11563
  recipients: {
10235
11564
  id: string;
10236
11565
  lastname: string;
@@ -10238,6 +11567,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10238
11567
  avatar: string | null;
10239
11568
  isSearchable: boolean;
10240
11569
  }[];
11570
+ temporaryRecipients: {
11571
+ email: string | null;
11572
+ }[];
10241
11573
  } | null;
10242
11574
  sender: {
10243
11575
  id: string;
@@ -10322,9 +11654,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10322
11654
  replyTo: {
10323
11655
  id: string;
10324
11656
  } | null;
10325
- temporaryRecipients: {
10326
- email: string | null;
10327
- }[];
10328
11657
  recipients: {
10329
11658
  id: string;
10330
11659
  lastname: string;
@@ -10332,6 +11661,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10332
11661
  avatar: string | null;
10333
11662
  isSearchable: boolean;
10334
11663
  }[];
11664
+ temporaryRecipients: {
11665
+ email: string | null;
11666
+ }[];
10335
11667
  } | null;
10336
11668
  mailIntegrityDraft: {
10337
11669
  id: string;
@@ -10340,9 +11672,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10340
11672
  replyTo: {
10341
11673
  id: string;
10342
11674
  } | null;
10343
- temporaryRecipients: {
10344
- email: string | null;
10345
- }[];
10346
11675
  recipients: {
10347
11676
  id: string;
10348
11677
  lastname: string;
@@ -10350,6 +11679,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10350
11679
  avatar: string | null;
10351
11680
  isSearchable: boolean;
10352
11681
  }[];
11682
+ temporaryRecipients: {
11683
+ email: string | null;
11684
+ }[];
10353
11685
  } | null;
10354
11686
  sender: {
10355
11687
  id: string;
@@ -10380,9 +11712,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10380
11712
  replyTo: {
10381
11713
  id: string;
10382
11714
  } | null;
10383
- temporaryRecipients: {
10384
- email: string | null;
10385
- }[];
10386
11715
  recipients: {
10387
11716
  id: string;
10388
11717
  lastname: string;
@@ -10390,6 +11719,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10390
11719
  avatar: string | null;
10391
11720
  isSearchable: boolean;
10392
11721
  }[];
11722
+ temporaryRecipients: {
11723
+ email: string | null;
11724
+ }[];
10393
11725
  } | null;
10394
11726
  mailIntegrityDraft: {
10395
11727
  id: string;
@@ -10398,9 +11730,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10398
11730
  replyTo: {
10399
11731
  id: string;
10400
11732
  } | null;
10401
- temporaryRecipients: {
10402
- email: string | null;
10403
- }[];
10404
11733
  recipients: {
10405
11734
  id: string;
10406
11735
  lastname: string;
@@ -10408,6 +11737,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10408
11737
  avatar: string | null;
10409
11738
  isSearchable: boolean;
10410
11739
  }[];
11740
+ temporaryRecipients: {
11741
+ email: string | null;
11742
+ }[];
10411
11743
  } | null;
10412
11744
  sender: {
10413
11745
  id: string;
@@ -10584,9 +11916,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10584
11916
  replyTo: {
10585
11917
  id: string;
10586
11918
  } | null;
10587
- temporaryRecipients: {
10588
- email: string | null;
10589
- }[];
10590
11919
  recipients: {
10591
11920
  id: string;
10592
11921
  lastname: string;
@@ -10594,6 +11923,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10594
11923
  avatar: string | null;
10595
11924
  isSearchable: boolean;
10596
11925
  }[];
11926
+ temporaryRecipients: {
11927
+ email: string | null;
11928
+ }[];
10597
11929
  } | null;
10598
11930
  mailIntegrityDraft: {
10599
11931
  id: string;
@@ -10602,9 +11934,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10602
11934
  replyTo: {
10603
11935
  id: string;
10604
11936
  } | null;
10605
- temporaryRecipients: {
10606
- email: string | null;
10607
- }[];
10608
11937
  recipients: {
10609
11938
  id: string;
10610
11939
  lastname: string;
@@ -10612,6 +11941,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10612
11941
  avatar: string | null;
10613
11942
  isSearchable: boolean;
10614
11943
  }[];
11944
+ temporaryRecipients: {
11945
+ email: string | null;
11946
+ }[];
10615
11947
  } | null;
10616
11948
  sender: {
10617
11949
  id: string;
@@ -10642,9 +11974,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10642
11974
  replyTo: {
10643
11975
  id: string;
10644
11976
  } | null;
10645
- temporaryRecipients: {
10646
- email: string | null;
10647
- }[];
10648
11977
  recipients: {
10649
11978
  id: string;
10650
11979
  lastname: string;
@@ -10652,6 +11981,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10652
11981
  avatar: string | null;
10653
11982
  isSearchable: boolean;
10654
11983
  }[];
11984
+ temporaryRecipients: {
11985
+ email: string | null;
11986
+ }[];
10655
11987
  } | null;
10656
11988
  mailIntegrityDraft: {
10657
11989
  id: string;
@@ -10660,9 +11992,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10660
11992
  replyTo: {
10661
11993
  id: string;
10662
11994
  } | null;
10663
- temporaryRecipients: {
10664
- email: string | null;
10665
- }[];
10666
11995
  recipients: {
10667
11996
  id: string;
10668
11997
  lastname: string;
@@ -10670,6 +11999,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10670
11999
  avatar: string | null;
10671
12000
  isSearchable: boolean;
10672
12001
  }[];
12002
+ temporaryRecipients: {
12003
+ email: string | null;
12004
+ }[];
10673
12005
  } | null;
10674
12006
  sender: {
10675
12007
  id: string;
@@ -10710,14 +12042,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10710
12042
  }>;
10711
12043
  _meta: object;
10712
12044
  _ctx_out: {};
10713
- _input_in: {} & {
10714
- page?: number | undefined;
10715
- perPage?: number | undefined;
10716
- };
10717
- _input_out: {} & {
10718
- page: number;
10719
- perPage: number;
10720
- };
12045
+ _input_in: {};
12046
+ _input_out: {};
10721
12047
  _output_in: ({
10722
12048
  id: string;
10723
12049
  createdAt: Date;
@@ -10734,9 +12060,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10734
12060
  replyTo: {
10735
12061
  id: string;
10736
12062
  } | null;
10737
- temporaryRecipients: {
10738
- email: string | null;
10739
- }[];
10740
12063
  recipients: {
10741
12064
  id: string;
10742
12065
  lastname: string;
@@ -10744,6 +12067,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10744
12067
  avatar: string | null;
10745
12068
  isSearchable: boolean;
10746
12069
  }[];
12070
+ temporaryRecipients: {
12071
+ email: string | null;
12072
+ }[];
10747
12073
  } | null;
10748
12074
  mailIntegrityDraft: {
10749
12075
  id: string;
@@ -10752,9 +12078,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10752
12078
  replyTo: {
10753
12079
  id: string;
10754
12080
  } | null;
10755
- temporaryRecipients: {
10756
- email: string | null;
10757
- }[];
10758
12081
  recipients: {
10759
12082
  id: string;
10760
12083
  lastname: string;
@@ -10762,6 +12085,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10762
12085
  avatar: string | null;
10763
12086
  isSearchable: boolean;
10764
12087
  }[];
12088
+ temporaryRecipients: {
12089
+ email: string | null;
12090
+ }[];
10765
12091
  } | null;
10766
12092
  sender: {
10767
12093
  id: string;
@@ -10792,9 +12118,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10792
12118
  replyTo: {
10793
12119
  id: string;
10794
12120
  } | null;
10795
- temporaryRecipients: {
10796
- email: string | null;
10797
- }[];
10798
12121
  recipients: {
10799
12122
  id: string;
10800
12123
  lastname: string;
@@ -10802,6 +12125,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10802
12125
  avatar: string | null;
10803
12126
  isSearchable: boolean;
10804
12127
  }[];
12128
+ temporaryRecipients: {
12129
+ email: string | null;
12130
+ }[];
10805
12131
  } | null;
10806
12132
  mailIntegrityDraft: {
10807
12133
  id: string;
@@ -10810,9 +12136,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10810
12136
  replyTo: {
10811
12137
  id: string;
10812
12138
  } | null;
10813
- temporaryRecipients: {
10814
- email: string | null;
10815
- }[];
10816
12139
  recipients: {
10817
12140
  id: string;
10818
12141
  lastname: string;
@@ -10820,6 +12143,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10820
12143
  avatar: string | null;
10821
12144
  isSearchable: boolean;
10822
12145
  }[];
12146
+ temporaryRecipients: {
12147
+ email: string | null;
12148
+ }[];
10823
12149
  } | null;
10824
12150
  sender: {
10825
12151
  id: string;
@@ -10932,14 +12258,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10932
12258
  }>;
10933
12259
  _meta: object;
10934
12260
  _ctx_out: {};
10935
- _input_in: {} & {
10936
- page?: number | undefined;
10937
- perPage?: number | undefined;
10938
- };
10939
- _input_out: {} & {
10940
- page: number;
10941
- perPage: number;
10942
- };
12261
+ _input_in: {};
12262
+ _input_out: {};
10943
12263
  _output_in: ({
10944
12264
  id: string;
10945
12265
  createdAt: Date;
@@ -10956,9 +12276,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10956
12276
  replyTo: {
10957
12277
  id: string;
10958
12278
  } | null;
10959
- temporaryRecipients: {
10960
- email: string | null;
10961
- }[];
10962
12279
  recipients: {
10963
12280
  id: string;
10964
12281
  lastname: string;
@@ -10966,6 +12283,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10966
12283
  avatar: string | null;
10967
12284
  isSearchable: boolean;
10968
12285
  }[];
12286
+ temporaryRecipients: {
12287
+ email: string | null;
12288
+ }[];
10969
12289
  } | null;
10970
12290
  mailIntegrityDraft: {
10971
12291
  id: string;
@@ -10974,9 +12294,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10974
12294
  replyTo: {
10975
12295
  id: string;
10976
12296
  } | null;
10977
- temporaryRecipients: {
10978
- email: string | null;
10979
- }[];
10980
12297
  recipients: {
10981
12298
  id: string;
10982
12299
  lastname: string;
@@ -10984,6 +12301,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10984
12301
  avatar: string | null;
10985
12302
  isSearchable: boolean;
10986
12303
  }[];
12304
+ temporaryRecipients: {
12305
+ email: string | null;
12306
+ }[];
10987
12307
  } | null;
10988
12308
  sender: {
10989
12309
  id: string;
@@ -11014,9 +12334,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11014
12334
  replyTo: {
11015
12335
  id: string;
11016
12336
  } | null;
11017
- temporaryRecipients: {
11018
- email: string | null;
11019
- }[];
11020
12337
  recipients: {
11021
12338
  id: string;
11022
12339
  lastname: string;
@@ -11024,6 +12341,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11024
12341
  avatar: string | null;
11025
12342
  isSearchable: boolean;
11026
12343
  }[];
12344
+ temporaryRecipients: {
12345
+ email: string | null;
12346
+ }[];
11027
12347
  } | null;
11028
12348
  mailIntegrityDraft: {
11029
12349
  id: string;
@@ -11032,9 +12352,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11032
12352
  replyTo: {
11033
12353
  id: string;
11034
12354
  } | null;
11035
- temporaryRecipients: {
11036
- email: string | null;
11037
- }[];
11038
12355
  recipients: {
11039
12356
  id: string;
11040
12357
  lastname: string;
@@ -11042,6 +12359,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11042
12359
  avatar: string | null;
11043
12360
  isSearchable: boolean;
11044
12361
  }[];
12362
+ temporaryRecipients: {
12363
+ email: string | null;
12364
+ }[];
11045
12365
  } | null;
11046
12366
  sender: {
11047
12367
  id: string;
@@ -11197,7 +12517,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11197
12517
  _input_in: {
11198
12518
  id: string;
11199
12519
  customMessage: string | null;
11200
- temporaryRecipients: string[];
11201
12520
  recipients: ({
11202
12521
  subject: string;
11203
12522
  body: string;
@@ -11209,11 +12528,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11209
12528
  dataId: string;
11210
12529
  }[];
11211
12530
  })[];
12531
+ temporaryRecipients: string[];
11212
12532
  };
11213
12533
  _input_out: {
11214
12534
  id: string;
11215
12535
  customMessage: string | null;
11216
- temporaryRecipients: string[];
11217
12536
  recipients: ({
11218
12537
  subject: string;
11219
12538
  body: string;
@@ -11225,6 +12544,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11225
12544
  dataId: string;
11226
12545
  }[];
11227
12546
  })[];
12547
+ temporaryRecipients: string[];
11228
12548
  };
11229
12549
  _output_in: {
11230
12550
  isSent: boolean;
@@ -11318,14 +12638,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11318
12638
  }>;
11319
12639
  _meta: object;
11320
12640
  _ctx_out: {};
11321
- _input_in: {} & {
11322
- page?: number | undefined;
11323
- perPage?: number | undefined;
11324
- };
11325
- _input_out: {} & {
11326
- page: number;
11327
- perPage: number;
11328
- };
12641
+ _input_in: {};
12642
+ _input_out: {};
11329
12643
  _output_in: ({
11330
12644
  id: string;
11331
12645
  createdAt: Date;
@@ -11342,9 +12656,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11342
12656
  replyTo: {
11343
12657
  id: string;
11344
12658
  } | null;
11345
- temporaryRecipients: {
11346
- email: string | null;
11347
- }[];
11348
12659
  recipients: {
11349
12660
  id: string;
11350
12661
  lastname: string;
@@ -11352,6 +12663,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11352
12663
  avatar: string | null;
11353
12664
  isSearchable: boolean;
11354
12665
  }[];
12666
+ temporaryRecipients: {
12667
+ email: string | null;
12668
+ }[];
11355
12669
  } | null;
11356
12670
  mailIntegrityDraft: {
11357
12671
  id: string;
@@ -11360,9 +12674,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11360
12674
  replyTo: {
11361
12675
  id: string;
11362
12676
  } | null;
11363
- temporaryRecipients: {
11364
- email: string | null;
11365
- }[];
11366
12677
  recipients: {
11367
12678
  id: string;
11368
12679
  lastname: string;
@@ -11370,6 +12681,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11370
12681
  avatar: string | null;
11371
12682
  isSearchable: boolean;
11372
12683
  }[];
12684
+ temporaryRecipients: {
12685
+ email: string | null;
12686
+ }[];
11373
12687
  } | null;
11374
12688
  sender: {
11375
12689
  id: string;
@@ -11400,9 +12714,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11400
12714
  replyTo: {
11401
12715
  id: string;
11402
12716
  } | null;
11403
- temporaryRecipients: {
11404
- email: string | null;
11405
- }[];
11406
12717
  recipients: {
11407
12718
  id: string;
11408
12719
  lastname: string;
@@ -11410,6 +12721,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11410
12721
  avatar: string | null;
11411
12722
  isSearchable: boolean;
11412
12723
  }[];
12724
+ temporaryRecipients: {
12725
+ email: string | null;
12726
+ }[];
11413
12727
  } | null;
11414
12728
  mailIntegrityDraft: {
11415
12729
  id: string;
@@ -11418,9 +12732,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11418
12732
  replyTo: {
11419
12733
  id: string;
11420
12734
  } | null;
11421
- temporaryRecipients: {
11422
- email: string | null;
11423
- }[];
11424
12735
  recipients: {
11425
12736
  id: string;
11426
12737
  lastname: string;
@@ -11428,6 +12739,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11428
12739
  avatar: string | null;
11429
12740
  isSearchable: boolean;
11430
12741
  }[];
12742
+ temporaryRecipients: {
12743
+ email: string | null;
12744
+ }[];
11431
12745
  } | null;
11432
12746
  sender: {
11433
12747
  id: string;
@@ -11580,9 +12894,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11580
12894
  replyTo: {
11581
12895
  id: string;
11582
12896
  } | null;
11583
- temporaryRecipients: {
11584
- email: string | null;
11585
- }[];
11586
12897
  recipients: {
11587
12898
  id: string;
11588
12899
  lastname: string;
@@ -11590,6 +12901,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11590
12901
  avatar: string | null;
11591
12902
  isSearchable: boolean;
11592
12903
  }[];
12904
+ temporaryRecipients: {
12905
+ email: string | null;
12906
+ }[];
11593
12907
  } | null;
11594
12908
  mailIntegrityDraft: {
11595
12909
  id: string;
@@ -11598,9 +12912,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11598
12912
  replyTo: {
11599
12913
  id: string;
11600
12914
  } | null;
11601
- temporaryRecipients: {
11602
- email: string | null;
11603
- }[];
11604
12915
  recipients: {
11605
12916
  id: string;
11606
12917
  lastname: string;
@@ -11608,6 +12919,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11608
12919
  avatar: string | null;
11609
12920
  isSearchable: boolean;
11610
12921
  }[];
12922
+ temporaryRecipients: {
12923
+ email: string | null;
12924
+ }[];
11611
12925
  } | null;
11612
12926
  sender: {
11613
12927
  id: string;
@@ -11638,9 +12952,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11638
12952
  replyTo: {
11639
12953
  id: string;
11640
12954
  } | null;
11641
- temporaryRecipients: {
11642
- email: string | null;
11643
- }[];
11644
12955
  recipients: {
11645
12956
  id: string;
11646
12957
  lastname: string;
@@ -11648,6 +12959,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11648
12959
  avatar: string | null;
11649
12960
  isSearchable: boolean;
11650
12961
  }[];
12962
+ temporaryRecipients: {
12963
+ email: string | null;
12964
+ }[];
11651
12965
  } | null;
11652
12966
  mailIntegrityDraft: {
11653
12967
  id: string;
@@ -11656,9 +12970,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11656
12970
  replyTo: {
11657
12971
  id: string;
11658
12972
  } | null;
11659
- temporaryRecipients: {
11660
- email: string | null;
11661
- }[];
11662
12973
  recipients: {
11663
12974
  id: string;
11664
12975
  lastname: string;
@@ -11666,6 +12977,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11666
12977
  avatar: string | null;
11667
12978
  isSearchable: boolean;
11668
12979
  }[];
12980
+ temporaryRecipients: {
12981
+ email: string | null;
12982
+ }[];
11669
12983
  } | null;
11670
12984
  sender: {
11671
12985
  id: string;
@@ -11717,11 +13031,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11717
13031
  isSearchable: boolean;
11718
13032
  };
11719
13033
  date: Date;
11720
- temporaryRecipients: {
11721
- email: string | null;
11722
- id: string;
11723
- phone: string | null;
11724
- }[];
11725
13034
  recipients: {
11726
13035
  id: string;
11727
13036
  lastname: string;
@@ -11729,6 +13038,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11729
13038
  avatar: string | null;
11730
13039
  isSearchable: boolean;
11731
13040
  }[];
13041
+ temporaryRecipients: {
13042
+ email: string | null;
13043
+ id: string;
13044
+ phone: string | null;
13045
+ }[];
11732
13046
  attachmentsCount: number;
11733
13047
  }[];
11734
13048
  _output_out: {
@@ -11740,11 +13054,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11740
13054
  isSearchable: boolean;
11741
13055
  };
11742
13056
  date: Date;
11743
- temporaryRecipients: {
11744
- email: string | null;
11745
- id: string;
11746
- phone: string | null;
11747
- }[];
11748
13057
  recipients: {
11749
13058
  id: string;
11750
13059
  lastname: string;
@@ -11752,6 +13061,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11752
13061
  avatar: string | null;
11753
13062
  isSearchable: boolean;
11754
13063
  }[];
13064
+ temporaryRecipients: {
13065
+ email: string | null;
13066
+ id: string;
13067
+ phone: string | null;
13068
+ }[];
11755
13069
  attachmentsCount: number;
11756
13070
  }[];
11757
13071
  }, unknown>>;