@secrecy/lib 1.62.0-feat-storage-providers.4 → 1.62.0-feat-node-sharing.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -302,27 +302,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
302
302
  users: number;
303
303
  developers: number;
304
304
  hasDatabase: boolean;
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
- };
305
+ storageUsage: number;
326
306
  downloadBandwidthUsage: number;
327
307
  uploadBandwidthUsage: number;
328
308
  };
@@ -330,27 +310,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
330
310
  users: number;
331
311
  developers: number;
332
312
  hasDatabase: boolean;
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
- };
313
+ storageUsage: number;
354
314
  downloadBandwidthUsage: number;
355
315
  uploadBandwidthUsage: number;
356
316
  };
@@ -874,16 +834,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
874
834
  }>;
875
835
  _meta: object;
876
836
  _ctx_out: {};
877
- _input_in: {
837
+ _input_in: string[] | {
878
838
  userId: string;
879
839
  };
880
- _input_out: {
840
+ _input_out: string[] | {
881
841
  userId: string;
882
842
  };
883
- _output_in: {
843
+ _output_in: Record<string, string> | {
884
844
  publicKey: string;
885
845
  };
886
- _output_out: {
846
+ _output_out: Record<string, string> | {
887
847
  publicKey: string;
888
848
  };
889
849
  }, unknown>>;
@@ -2030,19 +1990,29 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2030
1990
  _ctx_out: {};
2031
1991
  _input_in: {
2032
1992
  lang: "fr" | "en";
1993
+ target: string;
1994
+ tags?: string[] | undefined;
1995
+ nbPosts?: number | undefined;
2033
1996
  };
2034
1997
  _input_out: {
2035
1998
  lang: "fr" | "en";
1999
+ target: string;
2000
+ tags?: string[] | undefined;
2001
+ nbPosts?: number | undefined;
2036
2002
  };
2037
2003
  _output_in: ({
2038
2004
  id: string;
2005
+ lang: "fr" | "en";
2039
2006
  body: string;
2040
2007
  title: string;
2008
+ status: "draft" | "published";
2041
2009
  summary: string;
2042
2010
  date: Date;
2011
+ tags: string[];
2043
2012
  author: string;
2044
2013
  image: string;
2045
- imageAlt: string;
2014
+ blogId: string;
2015
+ target?: string | undefined;
2046
2016
  } & {
2047
2017
  blog: {
2048
2018
  id: string;
@@ -2051,13 +2021,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2051
2021
  })[];
2052
2022
  _output_out: ({
2053
2023
  id: string;
2024
+ lang: "fr" | "en";
2054
2025
  body: string;
2055
2026
  title: string;
2027
+ status: "draft" | "published";
2056
2028
  summary: string;
2057
2029
  date: Date;
2030
+ tags: string[];
2058
2031
  author: string;
2059
2032
  image: string;
2060
- imageAlt: string;
2033
+ blogId: string;
2034
+ target: string;
2061
2035
  } & {
2062
2036
  blog: {
2063
2037
  id: string;
@@ -2066,6 +2040,76 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2066
2040
  })[];
2067
2041
  }, unknown>>;
2068
2042
  };
2043
+ byId: {
2044
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
2045
+ _config: import("@trpc/server").RootConfig<{
2046
+ ctx: {};
2047
+ meta: object;
2048
+ errorShape: {
2049
+ message: string;
2050
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2051
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2052
+ } | {
2053
+ data: {
2054
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
2055
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2056
+ httpStatus: number;
2057
+ path?: string;
2058
+ stack?: string;
2059
+ };
2060
+ message: string;
2061
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2062
+ };
2063
+ transformer: typeof superjson;
2064
+ }>;
2065
+ _meta: object;
2066
+ _ctx_out: {};
2067
+ _input_in: {
2068
+ postId: string;
2069
+ };
2070
+ _input_out: {
2071
+ postId: string;
2072
+ };
2073
+ _output_in: {
2074
+ id: string;
2075
+ lang: "fr" | "en";
2076
+ body: string;
2077
+ title: string;
2078
+ status: "draft" | "published";
2079
+ summary: string;
2080
+ date: Date;
2081
+ tags: string[];
2082
+ author: string;
2083
+ image: string;
2084
+ blogId: string;
2085
+ target?: string | undefined;
2086
+ } & {
2087
+ blog: {
2088
+ id: string;
2089
+ order: number;
2090
+ };
2091
+ };
2092
+ _output_out: {
2093
+ id: string;
2094
+ lang: "fr" | "en";
2095
+ body: string;
2096
+ title: string;
2097
+ status: "draft" | "published";
2098
+ summary: string;
2099
+ date: Date;
2100
+ tags: string[];
2101
+ author: string;
2102
+ image: string;
2103
+ blogId: string;
2104
+ target: string;
2105
+ } & {
2106
+ blog: {
2107
+ id: string;
2108
+ order: number;
2109
+ };
2110
+ };
2111
+ }, unknown>>;
2112
+ };
2069
2113
  };
2070
2114
  cloud: {
2071
2115
  addDataToHistory: {
@@ -2137,112 +2181,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2137
2181
  sizeEncrypted: bigint;
2138
2182
  };
2139
2183
  } & {
2140
- current: ({
2184
+ current: {
2141
2185
  id: string;
2142
2186
  createdAt: Date;
2187
+ storageType: "s3" | "cold" | "lite";
2143
2188
  size: bigint;
2144
2189
  md5: string;
2145
2190
  userAppUserId: string;
2146
2191
  userAppAppId: string;
2147
- nextStorageId: string | null;
2148
2192
  sizeEncrypted: bigint | null;
2149
2193
  md5Encrypted: string | null;
2150
2194
  mime: string | null;
2151
2195
  ext: string | null;
2152
2196
  validatedAt: Date | null;
2153
2197
  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
- };
2188
2198
  access: {
2189
2199
  key: string | null;
2190
2200
  sharedByPubKey: string;
2191
2201
  };
2192
- }) | null;
2193
- history: ({
2202
+ } | null;
2203
+ history: {
2194
2204
  id: string;
2195
2205
  createdAt: Date;
2206
+ storageType: "s3" | "cold" | "lite";
2196
2207
  size: bigint;
2197
2208
  md5: string;
2198
2209
  userAppUserId: string;
2199
2210
  userAppAppId: string;
2200
- nextStorageId: string | null;
2201
2211
  sizeEncrypted: bigint | null;
2202
2212
  md5Encrypted: string | null;
2203
2213
  mime: string | null;
2204
2214
  ext: string | null;
2205
2215
  validatedAt: Date | null;
2206
2216
  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
- };
2241
2217
  access: {
2242
2218
  key: string | null;
2243
2219
  sharedByPubKey: string;
2244
2220
  };
2245
- })[];
2221
+ }[];
2246
2222
  parent: ({
2247
2223
  name: string;
2248
2224
  id: string;
@@ -2356,112 +2332,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2356
2332
  sizeEncrypted: bigint;
2357
2333
  };
2358
2334
  } & {
2359
- current: ({
2335
+ current: {
2360
2336
  id: string;
2361
2337
  createdAt: Date;
2338
+ storageType: "s3" | "cold" | "lite";
2362
2339
  size: bigint;
2363
2340
  md5: string;
2364
2341
  userAppUserId: string;
2365
2342
  userAppAppId: string;
2366
- nextStorageId: string | null;
2367
2343
  sizeEncrypted: bigint | null;
2368
2344
  md5Encrypted: string | null;
2369
2345
  mime: string | null;
2370
2346
  ext: string | null;
2371
2347
  validatedAt: Date | null;
2372
2348
  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
- };
2407
2349
  access: {
2408
2350
  key: string | null;
2409
2351
  sharedByPubKey: string;
2410
2352
  };
2411
- }) | null;
2412
- history: ({
2353
+ } | null;
2354
+ history: {
2413
2355
  id: string;
2414
2356
  createdAt: Date;
2357
+ storageType: "s3" | "cold" | "lite";
2415
2358
  size: bigint;
2416
2359
  md5: string;
2417
2360
  userAppUserId: string;
2418
2361
  userAppAppId: string;
2419
- nextStorageId: string | null;
2420
2362
  sizeEncrypted: bigint | null;
2421
2363
  md5Encrypted: string | null;
2422
2364
  mime: string | null;
2423
2365
  ext: string | null;
2424
2366
  validatedAt: Date | null;
2425
2367
  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
- };
2460
2368
  access: {
2461
2369
  key: string | null;
2462
2370
  sharedByPubKey: string;
2463
2371
  };
2464
- })[];
2372
+ }[];
2465
2373
  parent: ({
2466
2374
  name: string;
2467
2375
  id: string;
@@ -2617,51 +2525,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2617
2525
  _output_in: {
2618
2526
  id: string;
2619
2527
  createdAt: Date;
2528
+ storageType: "s3" | "cold" | "lite";
2620
2529
  size: bigint;
2621
2530
  md5: string;
2622
2531
  userAppUserId: string;
2623
2532
  userAppAppId: string;
2624
- nextStorageId: string | null;
2625
2533
  sizeEncrypted: bigint | null;
2626
2534
  md5Encrypted: string | null;
2627
2535
  mime: string | null;
2628
2536
  ext: string | null;
2629
2537
  validatedAt: Date | null;
2630
2538
  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
- };
2665
2539
  access: {
2666
2540
  key: string | null;
2667
2541
  sharedByPubKey: string;
@@ -2670,51 +2544,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2670
2544
  _output_out: {
2671
2545
  id: string;
2672
2546
  createdAt: Date;
2547
+ storageType: "s3" | "cold" | "lite";
2673
2548
  size: bigint;
2674
2549
  md5: string;
2675
2550
  userAppUserId: string;
2676
2551
  userAppAppId: string;
2677
- nextStorageId: string | null;
2678
2552
  sizeEncrypted: bigint | null;
2679
2553
  md5Encrypted: string | null;
2680
2554
  mime: string | null;
2681
2555
  ext: string | null;
2682
2556
  validatedAt: Date | null;
2683
2557
  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
- };
2718
2558
  access: {
2719
2559
  key: string | null;
2720
2560
  sharedByPubKey: string;
@@ -2756,38 +2596,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2756
2596
  id: string;
2757
2597
  type: "received_mail";
2758
2598
  key: string | null;
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
- };
2599
+ storageType: "s3" | "cold" | "lite";
2791
2600
  size: bigint;
2792
2601
  md5: string;
2793
2602
  sizeEncrypted: bigint | null;
@@ -2796,47 +2605,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2796
2605
  ext: string | null;
2797
2606
  senderPublicKey: string;
2798
2607
  maybeParts: {
2799
- url: string;
2800
2608
  md5: string;
2801
2609
  order: number;
2610
+ contentUrl: string;
2802
2611
  }[] | null;
2803
- maybeBytes: Buffer | null;
2612
+ maybeContent: Buffer | null;
2804
2613
  } | {
2805
2614
  id: string;
2806
2615
  type: "sent_mail";
2807
2616
  key: string | null;
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
- };
2617
+ storageType: "s3" | "cold" | "lite";
2840
2618
  size: bigint;
2841
2619
  md5: string;
2842
2620
  sizeEncrypted: bigint | null;
@@ -2844,32 +2622,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2844
2622
  mime: string | null;
2845
2623
  ext: string | null;
2846
2624
  maybeParts: {
2847
- url: string;
2848
2625
  md5: string;
2849
2626
  order: number;
2627
+ contentUrl: string;
2850
2628
  }[] | null;
2851
- maybeBytes: Buffer | null;
2629
+ maybeContent: Buffer | null;
2852
2630
  } | {
2853
2631
  id: string;
2854
- type: "s3";
2632
+ type: "cloud";
2855
2633
  key: string | null;
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
- };
2634
+ storageType: "s3" | "cold";
2873
2635
  size: bigint;
2874
2636
  md5: string;
2875
2637
  sizeEncrypted: bigint | null;
@@ -2877,76 +2639,30 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2877
2639
  mime: string | null;
2878
2640
  ext: string | null;
2879
2641
  parts: {
2880
- url: string;
2881
2642
  md5: string;
2882
2643
  order: number;
2644
+ contentUrl: string;
2883
2645
  }[];
2884
2646
  publicKey: string;
2885
2647
  } | {
2886
2648
  id: string;
2887
- type: "mongo";
2649
+ type: "lite";
2888
2650
  key: string | null;
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
- };
2651
+ storageType: "lite";
2905
2652
  size: bigint;
2906
2653
  md5: string;
2907
2654
  sizeEncrypted: bigint | null;
2908
2655
  md5Encrypted: string | null;
2909
2656
  mime: string | null;
2910
2657
  ext: string | null;
2658
+ content: Buffer;
2911
2659
  publicKey: string;
2912
- bytes: Buffer;
2913
2660
  };
2914
2661
  _output_out: {
2915
2662
  id: string;
2916
2663
  type: "received_mail";
2917
2664
  key: string | null;
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
- };
2665
+ storageType: "s3" | "cold" | "lite";
2950
2666
  size: bigint;
2951
2667
  md5: string;
2952
2668
  sizeEncrypted: bigint | null;
@@ -2955,47 +2671,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2955
2671
  ext: string | null;
2956
2672
  senderPublicKey: string;
2957
2673
  maybeParts: {
2958
- url: string;
2959
2674
  md5: string;
2960
2675
  order: number;
2676
+ contentUrl: string;
2961
2677
  }[] | null;
2962
- maybeBytes: Buffer | null;
2678
+ maybeContent: Buffer | null;
2963
2679
  } | {
2964
2680
  id: string;
2965
2681
  type: "sent_mail";
2966
2682
  key: string | null;
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
- };
2683
+ storageType: "s3" | "cold" | "lite";
2999
2684
  size: bigint;
3000
2685
  md5: string;
3001
2686
  sizeEncrypted: bigint | null;
@@ -3003,32 +2688,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3003
2688
  mime: string | null;
3004
2689
  ext: string | null;
3005
2690
  maybeParts: {
3006
- url: string;
3007
2691
  md5: string;
3008
2692
  order: number;
2693
+ contentUrl: string;
3009
2694
  }[] | null;
3010
- maybeBytes: Buffer | null;
2695
+ maybeContent: Buffer | null;
3011
2696
  } | {
3012
2697
  id: string;
3013
- type: "s3";
2698
+ type: "cloud";
3014
2699
  key: string | null;
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
- };
2700
+ storageType: "s3" | "cold";
3032
2701
  size: bigint;
3033
2702
  md5: string;
3034
2703
  sizeEncrypted: bigint | null;
@@ -3036,39 +2705,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3036
2705
  mime: string | null;
3037
2706
  ext: string | null;
3038
2707
  parts: {
3039
- url: string;
3040
2708
  md5: string;
3041
2709
  order: number;
2710
+ contentUrl: string;
3042
2711
  }[];
3043
2712
  publicKey: string;
3044
2713
  } | {
3045
2714
  id: string;
3046
- type: "mongo";
2715
+ type: "lite";
3047
2716
  key: string | null;
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
- };
2717
+ storageType: "lite";
3064
2718
  size: bigint;
3065
2719
  md5: string;
3066
2720
  sizeEncrypted: bigint | null;
3067
2721
  md5Encrypted: string | null;
3068
2722
  mime: string | null;
3069
2723
  ext: string | null;
2724
+ content: Buffer;
3070
2725
  publicKey: string;
3071
- bytes: Buffer;
3072
2726
  };
3073
2727
  }, unknown>>;
3074
2728
  };
@@ -3106,38 +2760,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3106
2760
  id: string;
3107
2761
  type: "received_mail";
3108
2762
  key: string | null;
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
- };
2763
+ storageType: "s3" | "cold" | "lite";
3141
2764
  size: bigint;
3142
2765
  md5: string;
3143
2766
  sizeEncrypted: bigint | null;
@@ -3146,47 +2769,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3146
2769
  ext: string | null;
3147
2770
  senderPublicKey: string;
3148
2771
  maybeParts: {
3149
- url: string;
3150
2772
  md5: string;
3151
2773
  order: number;
2774
+ contentUrl: string;
3152
2775
  }[] | null;
3153
- maybeBytes: Buffer | null;
2776
+ maybeContent: Buffer | null;
3154
2777
  } | {
3155
2778
  id: string;
3156
2779
  type: "sent_mail";
3157
2780
  key: string | null;
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
- };
2781
+ storageType: "s3" | "cold" | "lite";
3190
2782
  size: bigint;
3191
2783
  md5: string;
3192
2784
  sizeEncrypted: bigint | null;
@@ -3194,32 +2786,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3194
2786
  mime: string | null;
3195
2787
  ext: string | null;
3196
2788
  maybeParts: {
3197
- url: string;
3198
2789
  md5: string;
3199
2790
  order: number;
2791
+ contentUrl: string;
3200
2792
  }[] | null;
3201
- maybeBytes: Buffer | null;
2793
+ maybeContent: Buffer | null;
3202
2794
  } | {
3203
2795
  id: string;
3204
- type: "s3";
2796
+ type: "cloud";
3205
2797
  key: string | null;
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
- };
2798
+ storageType: "s3" | "cold";
3223
2799
  size: bigint;
3224
2800
  md5: string;
3225
2801
  sizeEncrypted: bigint | null;
@@ -3227,76 +2803,30 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3227
2803
  mime: string | null;
3228
2804
  ext: string | null;
3229
2805
  parts: {
3230
- url: string;
3231
2806
  md5: string;
3232
2807
  order: number;
2808
+ contentUrl: string;
3233
2809
  }[];
3234
2810
  publicKey: string;
3235
2811
  } | {
3236
2812
  id: string;
3237
- type: "mongo";
2813
+ type: "lite";
3238
2814
  key: string | null;
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
- };
2815
+ storageType: "lite";
3255
2816
  size: bigint;
3256
2817
  md5: string;
3257
2818
  sizeEncrypted: bigint | null;
3258
2819
  md5Encrypted: string | null;
3259
2820
  mime: string | null;
3260
2821
  ext: string | null;
2822
+ content: Buffer;
3261
2823
  publicKey: string;
3262
- bytes: Buffer;
3263
2824
  })[];
3264
2825
  _output_out: ({
3265
2826
  id: string;
3266
2827
  type: "received_mail";
3267
2828
  key: string | null;
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
- };
2829
+ storageType: "s3" | "cold" | "lite";
3300
2830
  size: bigint;
3301
2831
  md5: string;
3302
2832
  sizeEncrypted: bigint | null;
@@ -3305,47 +2835,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3305
2835
  ext: string | null;
3306
2836
  senderPublicKey: string;
3307
2837
  maybeParts: {
3308
- url: string;
3309
2838
  md5: string;
3310
2839
  order: number;
2840
+ contentUrl: string;
3311
2841
  }[] | null;
3312
- maybeBytes: Buffer | null;
2842
+ maybeContent: Buffer | null;
3313
2843
  } | {
3314
2844
  id: string;
3315
2845
  type: "sent_mail";
3316
2846
  key: string | null;
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
- };
2847
+ storageType: "s3" | "cold" | "lite";
3349
2848
  size: bigint;
3350
2849
  md5: string;
3351
2850
  sizeEncrypted: bigint | null;
@@ -3353,32 +2852,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3353
2852
  mime: string | null;
3354
2853
  ext: string | null;
3355
2854
  maybeParts: {
3356
- url: string;
3357
2855
  md5: string;
3358
2856
  order: number;
2857
+ contentUrl: string;
3359
2858
  }[] | null;
3360
- maybeBytes: Buffer | null;
2859
+ maybeContent: Buffer | null;
3361
2860
  } | {
3362
2861
  id: string;
3363
- type: "s3";
2862
+ type: "cloud";
3364
2863
  key: string | null;
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
- };
2864
+ storageType: "s3" | "cold";
3382
2865
  size: bigint;
3383
2866
  md5: string;
3384
2867
  sizeEncrypted: bigint | null;
@@ -3386,39 +2869,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3386
2869
  mime: string | null;
3387
2870
  ext: string | null;
3388
2871
  parts: {
3389
- url: string;
3390
2872
  md5: string;
3391
2873
  order: number;
2874
+ contentUrl: string;
3392
2875
  }[];
3393
2876
  publicKey: string;
3394
2877
  } | {
3395
2878
  id: string;
3396
- type: "mongo";
2879
+ type: "lite";
3397
2880
  key: string | null;
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
- };
2881
+ storageType: "lite";
3414
2882
  size: bigint;
3415
2883
  md5: string;
3416
2884
  sizeEncrypted: bigint | null;
3417
2885
  md5Encrypted: string | null;
3418
2886
  mime: string | null;
3419
2887
  ext: string | null;
2888
+ content: Buffer;
3420
2889
  publicKey: string;
3421
- bytes: Buffer;
3422
2890
  })[];
3423
2891
  }, unknown>>;
3424
2892
  };
@@ -3482,35 +2950,21 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3482
2950
  _ctx_out: {};
3483
2951
  _input_in: {
3484
2952
  dataId: string;
3485
- mode?: "standard" | "glacier" | undefined;
3486
- provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3487
- protocol?: "s3" | "mongo" | undefined;
3488
- region?: string | undefined;
2953
+ storageType: "s3" | "cold" | "lite";
3489
2954
  };
3490
2955
  _input_out: {
3491
2956
  dataId: string;
3492
- mode?: "standard" | "glacier" | undefined;
3493
- provider?: "scaleway" | "secrecy" | "ovh" | undefined;
3494
- protocol?: "s3" | "mongo" | undefined;
3495
- region?: string | undefined;
2957
+ storageType: "s3" | "cold" | "lite";
3496
2958
  };
3497
2959
  _output_in: {
3498
2960
  isMoved: boolean;
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;
2961
+ fromType: "s3" | "cold" | "lite";
2962
+ toType: "s3" | "cold" | "lite";
3505
2963
  };
3506
2964
  _output_out: {
3507
2965
  isMoved: boolean;
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;
2966
+ fromType: "s3" | "cold" | "lite";
2967
+ toType: "s3" | "cold" | "lite";
3514
2968
  };
3515
2969
  }, unknown>>;
3516
2970
  };
@@ -3589,112 +3043,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3589
3043
  sizeEncrypted: bigint;
3590
3044
  };
3591
3045
  } & {
3592
- current: ({
3046
+ current: {
3593
3047
  id: string;
3594
3048
  createdAt: Date;
3049
+ storageType: "s3" | "cold" | "lite";
3595
3050
  size: bigint;
3596
3051
  md5: string;
3597
3052
  userAppUserId: string;
3598
3053
  userAppAppId: string;
3599
- nextStorageId: string | null;
3600
3054
  sizeEncrypted: bigint | null;
3601
3055
  md5Encrypted: string | null;
3602
3056
  mime: string | null;
3603
3057
  ext: string | null;
3604
3058
  validatedAt: Date | null;
3605
3059
  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
- };
3640
3060
  access: {
3641
3061
  key: string | null;
3642
3062
  sharedByPubKey: string;
3643
3063
  };
3644
- }) | null;
3645
- history: ({
3064
+ } | null;
3065
+ history: {
3646
3066
  id: string;
3647
3067
  createdAt: Date;
3068
+ storageType: "s3" | "cold" | "lite";
3648
3069
  size: bigint;
3649
3070
  md5: string;
3650
3071
  userAppUserId: string;
3651
3072
  userAppAppId: string;
3652
- nextStorageId: string | null;
3653
3073
  sizeEncrypted: bigint | null;
3654
3074
  md5Encrypted: string | null;
3655
3075
  mime: string | null;
3656
3076
  ext: string | null;
3657
3077
  validatedAt: Date | null;
3658
3078
  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
- };
3693
3079
  access: {
3694
3080
  key: string | null;
3695
3081
  sharedByPubKey: string;
3696
3082
  };
3697
- })[];
3083
+ }[];
3698
3084
  parent: ({
3699
3085
  name: string;
3700
3086
  id: string;
@@ -3808,112 +3194,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3808
3194
  sizeEncrypted: bigint;
3809
3195
  };
3810
3196
  } & {
3811
- current: ({
3197
+ current: {
3812
3198
  id: string;
3813
3199
  createdAt: Date;
3200
+ storageType: "s3" | "cold" | "lite";
3814
3201
  size: bigint;
3815
3202
  md5: string;
3816
3203
  userAppUserId: string;
3817
3204
  userAppAppId: string;
3818
- nextStorageId: string | null;
3819
3205
  sizeEncrypted: bigint | null;
3820
3206
  md5Encrypted: string | null;
3821
3207
  mime: string | null;
3822
3208
  ext: string | null;
3823
3209
  validatedAt: Date | null;
3824
3210
  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
- };
3859
3211
  access: {
3860
3212
  key: string | null;
3861
3213
  sharedByPubKey: string;
3862
3214
  };
3863
- }) | null;
3864
- history: ({
3215
+ } | null;
3216
+ history: {
3865
3217
  id: string;
3866
3218
  createdAt: Date;
3219
+ storageType: "s3" | "cold" | "lite";
3867
3220
  size: bigint;
3868
3221
  md5: string;
3869
3222
  userAppUserId: string;
3870
3223
  userAppAppId: string;
3871
- nextStorageId: string | null;
3872
3224
  sizeEncrypted: bigint | null;
3873
3225
  md5Encrypted: string | null;
3874
3226
  mime: string | null;
3875
3227
  ext: string | null;
3876
3228
  validatedAt: Date | null;
3877
3229
  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
- };
3912
3230
  access: {
3913
3231
  key: string | null;
3914
3232
  sharedByPubKey: string;
3915
3233
  };
3916
- })[];
3234
+ }[];
3917
3235
  parent: ({
3918
3236
  name: string;
3919
3237
  id: string;
@@ -4086,8 +3404,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4086
3404
  history: {
4087
3405
  createdAt: Date;
4088
3406
  dataId: string;
3407
+ storageType: "s3" | "cold" | "lite";
4089
3408
  size: bigint;
4090
- storageType: "s3" | "mongo";
4091
3409
  }[];
4092
3410
  access: {
4093
3411
  appId: string;
@@ -4127,8 +3445,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4127
3445
  history: {
4128
3446
  createdAt: Date;
4129
3447
  dataId: string;
3448
+ storageType: "s3" | "cold" | "lite";
4130
3449
  size: bigint;
4131
- storageType: "s3" | "mongo";
4132
3450
  }[];
4133
3451
  access: {
4134
3452
  appId: string;
@@ -4277,18 +3595,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4277
3595
  md5: string;
4278
3596
  sizeEncrypted: bigint;
4279
3597
  md5Encrypted: string;
4280
- mode?: "standard" | "glacier" | undefined;
4281
- provider?: "scaleway" | "ovh" | undefined;
4282
- region?: string | undefined;
4283
3598
  mime?: string | undefined;
4284
3599
  ext?: string | undefined;
4285
3600
  } | {
4286
3601
  type: "unencrypted";
4287
3602
  size: bigint;
4288
3603
  md5: string;
4289
- mode?: "standard" | "glacier" | undefined;
4290
- provider?: "scaleway" | "ovh" | undefined;
4291
- region?: string | undefined;
4292
3604
  mime?: string | undefined;
4293
3605
  ext?: string | undefined;
4294
3606
  };
@@ -4296,21 +3608,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4296
3608
  type: "encrypted";
4297
3609
  key: string;
4298
3610
  size: bigint;
4299
- mode: "standard" | "glacier";
4300
3611
  md5: string;
4301
- provider: "scaleway" | "ovh";
4302
3612
  sizeEncrypted: bigint;
4303
3613
  md5Encrypted: string;
4304
- region?: string | undefined;
4305
3614
  mime?: string | undefined;
4306
3615
  ext?: string | undefined;
4307
3616
  } | {
4308
3617
  type: "unencrypted";
4309
3618
  size: bigint;
4310
- mode: "standard" | "glacier";
4311
3619
  md5: string;
4312
- provider: "scaleway" | "ovh";
4313
- region?: string | undefined;
4314
3620
  mime?: string | undefined;
4315
3621
  ext?: string | undefined;
4316
3622
  };
@@ -4375,18 +3681,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4375
3681
  md5: string;
4376
3682
  sizeEncrypted: bigint;
4377
3683
  md5Encrypted: string;
4378
- mode?: "standard" | "glacier" | undefined;
4379
- provider?: "scaleway" | "ovh" | undefined;
4380
- region?: string | undefined;
4381
3684
  mime?: string | undefined;
4382
3685
  ext?: string | undefined;
4383
3686
  } | {
4384
3687
  type: "unencrypted";
4385
3688
  size: bigint;
4386
3689
  md5: string;
4387
- mode?: "standard" | "glacier" | undefined;
4388
- provider?: "scaleway" | "ovh" | undefined;
4389
- region?: string | undefined;
4390
3690
  mime?: string | undefined;
4391
3691
  ext?: string | undefined;
4392
3692
  };
@@ -4394,21 +3694,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4394
3694
  type: "encrypted";
4395
3695
  key: string;
4396
3696
  size: bigint;
4397
- mode: "standard" | "glacier";
4398
3697
  md5: string;
4399
- provider: "scaleway" | "ovh";
4400
3698
  sizeEncrypted: bigint;
4401
3699
  md5Encrypted: string;
4402
- region?: string | undefined;
4403
3700
  mime?: string | undefined;
4404
3701
  ext?: string | undefined;
4405
3702
  } | {
4406
3703
  type: "unencrypted";
4407
3704
  size: bigint;
4408
- mode: "standard" | "glacier";
4409
3705
  md5: string;
4410
- provider: "scaleway" | "ovh";
4411
- region?: string | undefined;
4412
3706
  mime?: string | undefined;
4413
3707
  ext?: string | undefined;
4414
3708
  };
@@ -4442,7 +3736,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4442
3736
  };
4443
3737
  }, unknown>>;
4444
3738
  };
4445
- uploadMongoData: {
3739
+ uploadLiteData: {
4446
3740
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
4447
3741
  _config: import("@trpc/server").RootConfig<{
4448
3742
  ctx: {};
@@ -4473,14 +3767,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4473
3767
  md5: string;
4474
3768
  sizeEncrypted: bigint;
4475
3769
  md5Encrypted: string;
4476
- bytes: Buffer;
3770
+ content: Buffer;
4477
3771
  mime?: string | undefined;
4478
3772
  ext?: string | undefined;
4479
3773
  } | {
4480
3774
  type: "unencrypted";
4481
3775
  size: bigint;
4482
3776
  md5: string;
4483
- bytes: Buffer;
3777
+ content: Buffer;
4484
3778
  mime?: string | undefined;
4485
3779
  ext?: string | undefined;
4486
3780
  };
@@ -4491,14 +3785,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4491
3785
  md5: string;
4492
3786
  sizeEncrypted: bigint;
4493
3787
  md5Encrypted: string;
4494
- bytes: Buffer;
3788
+ content: Buffer;
4495
3789
  mime?: string | undefined;
4496
3790
  ext?: string | undefined;
4497
3791
  } | {
4498
3792
  type: "unencrypted";
4499
3793
  size: bigint;
4500
3794
  md5: string;
4501
- bytes: Buffer;
3795
+ content: Buffer;
4502
3796
  mime?: string | undefined;
4503
3797
  ext?: string | undefined;
4504
3798
  };
@@ -4562,140 +3856,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4562
3856
  };
4563
3857
  }, unknown>>;
4564
3858
  };
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
- };
4699
3859
  dataLink: {
4700
3860
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
4701
3861
  _config: import("@trpc/server").RootConfig<{
@@ -4942,6 +4102,100 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4942
4102
  };
4943
4103
  }, unknown>>;
4944
4104
  };
4105
+ checkAccesses: {
4106
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
4107
+ _config: import("@trpc/server").RootConfig<{
4108
+ ctx: {};
4109
+ meta: object;
4110
+ errorShape: {
4111
+ message: string;
4112
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4113
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4114
+ } | {
4115
+ data: {
4116
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
4117
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
4118
+ httpStatus: number;
4119
+ path?: string;
4120
+ stack?: string;
4121
+ };
4122
+ message: string;
4123
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
4124
+ };
4125
+ transformer: typeof superjson;
4126
+ }>;
4127
+ _meta: object;
4128
+ _ctx_out: {};
4129
+ _input_in: {
4130
+ userId: string;
4131
+ rights: "admin" | "write" | "read";
4132
+ nodes: {
4133
+ data: {
4134
+ id: string;
4135
+ key: string | null;
4136
+ }[];
4137
+ id: string;
4138
+ nameKey: string | null;
4139
+ }[];
4140
+ }[];
4141
+ _input_out: {
4142
+ userId: string;
4143
+ rights: "admin" | "write" | "read";
4144
+ nodes: {
4145
+ data: {
4146
+ id: string;
4147
+ key: string | null;
4148
+ }[];
4149
+ id: string;
4150
+ nameKey: string | null;
4151
+ }[];
4152
+ }[];
4153
+ _output_in: {
4154
+ isMatching: true;
4155
+ } | {
4156
+ details: {
4157
+ missingNodeAccesses: {
4158
+ userId: string;
4159
+ nodeId: string;
4160
+ }[];
4161
+ missingDataAccesses: {
4162
+ userId: string;
4163
+ dataId: string;
4164
+ nodeId: string;
4165
+ }[];
4166
+ invalidRightsAccesses: {
4167
+ userId: string;
4168
+ current: "admin" | "write" | "read";
4169
+ nodeId: string;
4170
+ expect: "admin" | "write" | "read";
4171
+ }[];
4172
+ };
4173
+ isMatching: false;
4174
+ };
4175
+ _output_out: {
4176
+ isMatching: true;
4177
+ } | {
4178
+ details: {
4179
+ missingNodeAccesses: {
4180
+ userId: string;
4181
+ nodeId: string;
4182
+ }[];
4183
+ missingDataAccesses: {
4184
+ userId: string;
4185
+ dataId: string;
4186
+ nodeId: string;
4187
+ }[];
4188
+ invalidRightsAccesses: {
4189
+ userId: string;
4190
+ current: "admin" | "write" | "read";
4191
+ nodeId: string;
4192
+ expect: "admin" | "write" | "read";
4193
+ }[];
4194
+ };
4195
+ isMatching: false;
4196
+ };
4197
+ }, unknown>>;
4198
+ };
4945
4199
  createFolder: {
4946
4200
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
4947
4201
  _config: import("@trpc/server").RootConfig<{
@@ -5013,112 +4267,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5013
4267
  sizeEncrypted: bigint;
5014
4268
  };
5015
4269
  } & {
5016
- current: ({
4270
+ current: {
5017
4271
  id: string;
5018
- createdAt: Date;
5019
- size: bigint;
5020
- md5: string;
5021
- userAppUserId: string;
5022
- userAppAppId: string;
5023
- nextStorageId: string | null;
5024
- sizeEncrypted: bigint | null;
5025
- md5Encrypted: string | null;
5026
- mime: string | null;
5027
- ext: string | null;
5028
- validatedAt: Date | null;
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
- };
4272
+ createdAt: Date;
4273
+ storageType: "s3" | "cold" | "lite";
4274
+ size: bigint;
4275
+ md5: string;
4276
+ userAppUserId: string;
4277
+ userAppAppId: string;
4278
+ sizeEncrypted: bigint | null;
4279
+ md5Encrypted: string | null;
4280
+ mime: string | null;
4281
+ ext: string | null;
4282
+ validatedAt: Date | null;
4283
+ restoreSince: Date | null;
5064
4284
  access: {
5065
4285
  key: string | null;
5066
4286
  sharedByPubKey: string;
5067
4287
  };
5068
- }) | null;
5069
- history: ({
4288
+ } | null;
4289
+ history: {
5070
4290
  id: string;
5071
4291
  createdAt: Date;
4292
+ storageType: "s3" | "cold" | "lite";
5072
4293
  size: bigint;
5073
4294
  md5: string;
5074
4295
  userAppUserId: string;
5075
4296
  userAppAppId: string;
5076
- nextStorageId: string | null;
5077
4297
  sizeEncrypted: bigint | null;
5078
4298
  md5Encrypted: string | null;
5079
4299
  mime: string | null;
5080
4300
  ext: string | null;
5081
4301
  validatedAt: Date | null;
5082
4302
  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
- };
5117
4303
  access: {
5118
4304
  key: string | null;
5119
4305
  sharedByPubKey: string;
5120
4306
  };
5121
- })[];
4307
+ }[];
5122
4308
  parent: ({
5123
4309
  name: string;
5124
4310
  id: string;
@@ -5232,112 +4418,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5232
4418
  sizeEncrypted: bigint;
5233
4419
  };
5234
4420
  } & {
5235
- current: ({
4421
+ current: {
5236
4422
  id: string;
5237
4423
  createdAt: Date;
4424
+ storageType: "s3" | "cold" | "lite";
5238
4425
  size: bigint;
5239
4426
  md5: string;
5240
4427
  userAppUserId: string;
5241
4428
  userAppAppId: string;
5242
- nextStorageId: string | null;
5243
4429
  sizeEncrypted: bigint | null;
5244
4430
  md5Encrypted: string | null;
5245
4431
  mime: string | null;
5246
4432
  ext: string | null;
5247
4433
  validatedAt: Date | null;
5248
4434
  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
- };
5283
4435
  access: {
5284
4436
  key: string | null;
5285
4437
  sharedByPubKey: string;
5286
4438
  };
5287
- }) | null;
5288
- history: ({
4439
+ } | null;
4440
+ history: {
5289
4441
  id: string;
5290
4442
  createdAt: Date;
4443
+ storageType: "s3" | "cold" | "lite";
5291
4444
  size: bigint;
5292
4445
  md5: string;
5293
4446
  userAppUserId: string;
5294
4447
  userAppAppId: string;
5295
- nextStorageId: string | null;
5296
4448
  sizeEncrypted: bigint | null;
5297
4449
  md5Encrypted: string | null;
5298
4450
  mime: string | null;
5299
4451
  ext: string | null;
5300
4452
  validatedAt: Date | null;
5301
4453
  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
- };
5336
4454
  access: {
5337
4455
  key: string | null;
5338
4456
  sharedByPubKey: string;
5339
4457
  };
5340
- })[];
4458
+ }[];
5341
4459
  parent: ({
5342
4460
  name: string;
5343
4461
  id: string;
@@ -5969,112 +5087,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5969
5087
  sizeEncrypted: bigint;
5970
5088
  };
5971
5089
  } & {
5972
- current: ({
5090
+ current: {
5973
5091
  id: string;
5974
5092
  createdAt: Date;
5093
+ storageType: "s3" | "cold" | "lite";
5975
5094
  size: bigint;
5976
5095
  md5: string;
5977
5096
  userAppUserId: string;
5978
5097
  userAppAppId: string;
5979
- nextStorageId: string | null;
5980
5098
  sizeEncrypted: bigint | null;
5981
5099
  md5Encrypted: string | null;
5982
5100
  mime: string | null;
5983
5101
  ext: string | null;
5984
5102
  validatedAt: Date | null;
5985
5103
  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
- };
6020
5104
  access: {
6021
5105
  key: string | null;
6022
5106
  sharedByPubKey: string;
6023
5107
  };
6024
- }) | null;
6025
- history: ({
5108
+ } | null;
5109
+ history: {
6026
5110
  id: string;
6027
5111
  createdAt: Date;
5112
+ storageType: "s3" | "cold" | "lite";
6028
5113
  size: bigint;
6029
5114
  md5: string;
6030
5115
  userAppUserId: string;
6031
5116
  userAppAppId: string;
6032
- nextStorageId: string | null;
6033
5117
  sizeEncrypted: bigint | null;
6034
5118
  md5Encrypted: string | null;
6035
5119
  mime: string | null;
6036
5120
  ext: string | null;
6037
5121
  validatedAt: Date | null;
6038
5122
  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
- };
6073
5123
  access: {
6074
5124
  key: string | null;
6075
5125
  sharedByPubKey: string;
6076
5126
  };
6077
- })[];
5127
+ }[];
6078
5128
  parent: ({
6079
5129
  name: string;
6080
5130
  id: string;
@@ -6188,112 +5238,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6188
5238
  sizeEncrypted: bigint;
6189
5239
  };
6190
5240
  } & {
6191
- current: ({
5241
+ current: {
6192
5242
  id: string;
6193
5243
  createdAt: Date;
5244
+ storageType: "s3" | "cold" | "lite";
6194
5245
  size: bigint;
6195
5246
  md5: string;
6196
5247
  userAppUserId: string;
6197
5248
  userAppAppId: string;
6198
- nextStorageId: string | null;
6199
5249
  sizeEncrypted: bigint | null;
6200
5250
  md5Encrypted: string | null;
6201
5251
  mime: string | null;
6202
5252
  ext: string | null;
6203
5253
  validatedAt: Date | null;
6204
5254
  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
- };
6239
5255
  access: {
6240
5256
  key: string | null;
6241
5257
  sharedByPubKey: string;
6242
5258
  };
6243
- }) | null;
6244
- history: ({
5259
+ } | null;
5260
+ history: {
6245
5261
  id: string;
6246
5262
  createdAt: Date;
5263
+ storageType: "s3" | "cold" | "lite";
6247
5264
  size: bigint;
6248
5265
  md5: string;
6249
5266
  userAppUserId: string;
6250
5267
  userAppAppId: string;
6251
- nextStorageId: string | null;
6252
5268
  sizeEncrypted: bigint | null;
6253
5269
  md5Encrypted: string | null;
6254
5270
  mime: string | null;
6255
5271
  ext: string | null;
6256
5272
  validatedAt: Date | null;
6257
5273
  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
- };
6292
5274
  access: {
6293
5275
  key: string | null;
6294
5276
  sharedByPubKey: string;
6295
5277
  };
6296
- })[];
5278
+ }[];
6297
5279
  parent: ({
6298
5280
  name: string;
6299
5281
  id: string;
@@ -6372,6 +5354,66 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6372
5354
  };
6373
5355
  }, unknown>>;
6374
5356
  };
5357
+ nodesForEncryption: {
5358
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
5359
+ _config: import("@trpc/server").RootConfig<{
5360
+ ctx: {};
5361
+ meta: object;
5362
+ errorShape: {
5363
+ message: string;
5364
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
5365
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5366
+ } | {
5367
+ data: {
5368
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
5369
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
5370
+ httpStatus: number;
5371
+ path?: string;
5372
+ stack?: string;
5373
+ };
5374
+ message: string;
5375
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
5376
+ };
5377
+ transformer: typeof superjson;
5378
+ }>;
5379
+ _meta: object;
5380
+ _ctx_out: {};
5381
+ _input_in: {
5382
+ ids: string[];
5383
+ };
5384
+ _input_out: {
5385
+ ids: string[];
5386
+ };
5387
+ _output_in: {
5388
+ name: string;
5389
+ id: string;
5390
+ type: "FILE" | "FOLDER";
5391
+ history: {
5392
+ id: string;
5393
+ access: {
5394
+ key: string;
5395
+ };
5396
+ }[];
5397
+ access: {
5398
+ nameKey: string;
5399
+ };
5400
+ }[];
5401
+ _output_out: {
5402
+ name: string;
5403
+ id: string;
5404
+ type: "FILE" | "FOLDER";
5405
+ history: {
5406
+ id: string;
5407
+ access: {
5408
+ key: string;
5409
+ };
5410
+ }[];
5411
+ access: {
5412
+ nameKey: string;
5413
+ };
5414
+ }[];
5415
+ }, unknown>>;
5416
+ };
6375
5417
  nodeSizeById: {
6376
5418
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
6377
5419
  _config: import("@trpc/server").RootConfig<{
@@ -6765,7 +5807,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6765
5807
  id: string;
6766
5808
  nameKey: string | null;
6767
5809
  }[];
6768
- };
5810
+ }[];
6769
5811
  _input_out: {
6770
5812
  userId: string;
6771
5813
  rights: "admin" | "write" | "read";
@@ -6777,12 +5819,50 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6777
5819
  id: string;
6778
5820
  nameKey: string | null;
6779
5821
  }[];
6780
- };
5822
+ }[];
6781
5823
  _output_in: {
6782
- isFinished: boolean;
5824
+ isFinished: true;
5825
+ } | {
5826
+ isFinished: false;
5827
+ details: {
5828
+ missingNodeAccesses: {
5829
+ userId: string;
5830
+ nodeId: string;
5831
+ }[];
5832
+ missingDataAccesses: {
5833
+ userId: string;
5834
+ dataId: string;
5835
+ nodeId: string;
5836
+ }[];
5837
+ invalidRightsAccesses: {
5838
+ userId: string;
5839
+ current: "admin" | "write" | "read";
5840
+ nodeId: string;
5841
+ expect: "admin" | "write" | "read";
5842
+ }[];
5843
+ };
6783
5844
  };
6784
5845
  _output_out: {
6785
- isFinished: boolean;
5846
+ isFinished: true;
5847
+ } | {
5848
+ isFinished: false;
5849
+ details: {
5850
+ missingNodeAccesses: {
5851
+ userId: string;
5852
+ nodeId: string;
5853
+ }[];
5854
+ missingDataAccesses: {
5855
+ userId: string;
5856
+ dataId: string;
5857
+ nodeId: string;
5858
+ }[];
5859
+ invalidRightsAccesses: {
5860
+ userId: string;
5861
+ current: "admin" | "write" | "read";
5862
+ nodeId: string;
5863
+ expect: "admin" | "write" | "read";
5864
+ }[];
5865
+ };
6786
5866
  };
6787
5867
  }, unknown>>;
6788
5868
  };
@@ -6813,17 +5893,31 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6813
5893
  _input_in: {
6814
5894
  userId: string;
6815
5895
  nodeId: string;
5896
+ }[] | {
5897
+ nodeIds: string[];
5898
+ userIds: string[];
5899
+ } | {
5900
+ nodeId: string;
5901
+ userIds: string[];
5902
+ } | {
5903
+ userId: string;
5904
+ nodeIds: string[];
6816
5905
  };
6817
5906
  _input_out: {
6818
5907
  userId: string;
6819
5908
  nodeId: string;
5909
+ }[] | {
5910
+ nodeIds: string[];
5911
+ userIds: string[];
5912
+ } | {
5913
+ nodeId: string;
5914
+ userIds: string[];
5915
+ } | {
5916
+ userId: string;
5917
+ nodeIds: string[];
6820
5918
  };
6821
- _output_in: {
6822
- ids: string[];
6823
- };
6824
- _output_out: {
6825
- ids: string[];
6826
- };
5919
+ _output_in: Record<string, string[]>;
5920
+ _output_out: Record<string, string[]>;
6827
5921
  }, unknown>>;
6828
5922
  };
6829
5923
  updateNode: {
@@ -6899,112 +5993,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6899
5993
  sizeEncrypted: bigint;
6900
5994
  };
6901
5995
  } & {
6902
- current: ({
5996
+ current: {
6903
5997
  id: string;
6904
5998
  createdAt: Date;
5999
+ storageType: "s3" | "cold" | "lite";
6905
6000
  size: bigint;
6906
6001
  md5: string;
6907
6002
  userAppUserId: string;
6908
6003
  userAppAppId: string;
6909
- nextStorageId: string | null;
6910
6004
  sizeEncrypted: bigint | null;
6911
6005
  md5Encrypted: string | null;
6912
6006
  mime: string | null;
6913
6007
  ext: string | null;
6914
6008
  validatedAt: Date | null;
6915
6009
  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
- };
6950
6010
  access: {
6951
6011
  key: string | null;
6952
6012
  sharedByPubKey: string;
6953
6013
  };
6954
- }) | null;
6955
- history: ({
6014
+ } | null;
6015
+ history: {
6956
6016
  id: string;
6957
6017
  createdAt: Date;
6018
+ storageType: "s3" | "cold" | "lite";
6958
6019
  size: bigint;
6959
6020
  md5: string;
6960
6021
  userAppUserId: string;
6961
6022
  userAppAppId: string;
6962
- nextStorageId: string | null;
6963
6023
  sizeEncrypted: bigint | null;
6964
6024
  md5Encrypted: string | null;
6965
6025
  mime: string | null;
6966
6026
  ext: string | null;
6967
6027
  validatedAt: Date | null;
6968
6028
  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
- };
7003
6029
  access: {
7004
6030
  key: string | null;
7005
6031
  sharedByPubKey: string;
7006
6032
  };
7007
- })[];
6033
+ }[];
7008
6034
  parent: ({
7009
6035
  name: string;
7010
6036
  id: string;
@@ -7118,112 +6144,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7118
6144
  sizeEncrypted: bigint;
7119
6145
  };
7120
6146
  } & {
7121
- current: ({
6147
+ current: {
7122
6148
  id: string;
7123
6149
  createdAt: Date;
6150
+ storageType: "s3" | "cold" | "lite";
7124
6151
  size: bigint;
7125
6152
  md5: string;
7126
6153
  userAppUserId: string;
7127
6154
  userAppAppId: string;
7128
- nextStorageId: string | null;
7129
- sizeEncrypted: bigint | null;
7130
- md5Encrypted: string | null;
7131
- mime: string | null;
7132
- ext: string | null;
7133
- validatedAt: Date | null;
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
- };
6155
+ sizeEncrypted: bigint | null;
6156
+ md5Encrypted: string | null;
6157
+ mime: string | null;
6158
+ ext: string | null;
6159
+ validatedAt: Date | null;
6160
+ restoreSince: Date | null;
7169
6161
  access: {
7170
6162
  key: string | null;
7171
6163
  sharedByPubKey: string;
7172
6164
  };
7173
- }) | null;
7174
- history: ({
6165
+ } | null;
6166
+ history: {
7175
6167
  id: string;
7176
6168
  createdAt: Date;
6169
+ storageType: "s3" | "cold" | "lite";
7177
6170
  size: bigint;
7178
6171
  md5: string;
7179
6172
  userAppUserId: string;
7180
6173
  userAppAppId: string;
7181
- nextStorageId: string | null;
7182
6174
  sizeEncrypted: bigint | null;
7183
6175
  md5Encrypted: string | null;
7184
6176
  mime: string | null;
7185
6177
  ext: string | null;
7186
6178
  validatedAt: Date | null;
7187
6179
  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
- };
7222
6180
  access: {
7223
6181
  key: string | null;
7224
6182
  sharedByPubKey: string;
7225
6183
  };
7226
- })[];
6184
+ }[];
7227
6185
  parent: ({
7228
6186
  name: string;
7229
6187
  id: string;
@@ -8879,14 +7837,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8879
7837
  historyRetentionSeconds: number;
8880
7838
  pgVersion: number;
8881
7839
  platformId: string;
8882
- provisioner: "k8s-pod" | "k8s-neonvm";
7840
+ provisioner: string;
8883
7841
  proxyHost: string;
8884
7842
  regionId: string;
8885
7843
  storePasswords: boolean;
8886
7844
  owner?: {
8887
7845
  email: string;
8888
7846
  branchesLimit: number;
8889
- subscriptionType: "free" | "pro" | "UNKNOWN" | "direct_sales" | "aws_marketplace" | "free_v2" | "launch" | "scale";
7847
+ subscriptionType: _neondatabase_api_client.BillingSubscriptionType;
8890
7848
  } | undefined;
8891
7849
  settings?: {
8892
7850
  quota?: {
@@ -8898,7 +7856,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8898
7856
  } | undefined;
8899
7857
  allowedIps?: {
8900
7858
  ips?: string[] | undefined;
8901
- primaryBranchOnly?: boolean | undefined;
7859
+ protectedBranchesOnly?: boolean | undefined;
8902
7860
  } | undefined;
8903
7861
  enableLogicalReplication?: boolean | undefined;
8904
7862
  } | undefined;
@@ -8940,7 +7898,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8940
7898
  owner?: {
8941
7899
  email: string;
8942
7900
  branchesLimit: number;
8943
- subscriptionType: "free" | "pro" | "UNKNOWN" | "direct_sales" | "aws_marketplace" | "free_v2" | "launch" | "scale";
7901
+ subscriptionType: _neondatabase_api_client.BillingSubscriptionType;
8944
7902
  } | undefined;
8945
7903
  settings?: {
8946
7904
  quota?: {
@@ -8952,7 +7910,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8952
7910
  } | undefined;
8953
7911
  allowedIps?: {
8954
7912
  ips?: string[] | undefined;
8955
- primaryBranchOnly?: boolean | undefined;
7913
+ protectedBranchesOnly?: boolean | undefined;
8956
7914
  } | undefined;
8957
7915
  enableLogicalReplication?: boolean | undefined;
8958
7916
  } | undefined;
@@ -9116,7 +8074,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9116
8074
  };
9117
8075
  allowedIps: {
9118
8076
  ips?: string[] | undefined;
9119
- primaryBranchOnly?: boolean | undefined;
8077
+ protectedBranchesOnly?: boolean | undefined;
9120
8078
  };
9121
8079
  enableLogicalReplication: boolean;
9122
8080
  };
@@ -9142,7 +8100,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9142
8100
  };
9143
8101
  allowedIps: {
9144
8102
  ips?: string[] | undefined;
9145
- primaryBranchOnly?: boolean | undefined;
8103
+ protectedBranchesOnly?: boolean | undefined;
9146
8104
  };
9147
8105
  enableLogicalReplication: boolean;
9148
8106
  };
@@ -9175,14 +8133,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9175
8133
  historyRetentionSeconds: number;
9176
8134
  pgVersion: number;
9177
8135
  platformId: string;
9178
- provisioner: "k8s-pod" | "k8s-neonvm";
8136
+ provisioner: string;
9179
8137
  proxyHost: string;
9180
8138
  regionId: string;
9181
8139
  storePasswords: boolean;
9182
8140
  owner?: {
9183
8141
  email: string;
9184
8142
  branchesLimit: number;
9185
- subscriptionType: "free" | "pro" | "UNKNOWN" | "direct_sales" | "aws_marketplace" | "free_v2" | "launch" | "scale";
8143
+ subscriptionType: _neondatabase_api_client.BillingSubscriptionType;
9186
8144
  } | undefined;
9187
8145
  settings?: {
9188
8146
  quota?: {
@@ -9194,7 +8152,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9194
8152
  } | undefined;
9195
8153
  allowedIps?: {
9196
8154
  ips?: string[] | undefined;
9197
- primaryBranchOnly?: boolean | undefined;
8155
+ protectedBranchesOnly?: boolean | undefined;
9198
8156
  } | undefined;
9199
8157
  enableLogicalReplication?: boolean | undefined;
9200
8158
  } | undefined;
@@ -9236,7 +8194,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9236
8194
  owner?: {
9237
8195
  email: string;
9238
8196
  branchesLimit: number;
9239
- subscriptionType: "free" | "pro" | "UNKNOWN" | "direct_sales" | "aws_marketplace" | "free_v2" | "launch" | "scale";
8197
+ subscriptionType: _neondatabase_api_client.BillingSubscriptionType;
9240
8198
  } | undefined;
9241
8199
  settings?: {
9242
8200
  quota?: {
@@ -9248,7 +8206,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9248
8206
  } | undefined;
9249
8207
  allowedIps?: {
9250
8208
  ips?: string[] | undefined;
9251
- primaryBranchOnly?: boolean | undefined;
8209
+ protectedBranchesOnly?: boolean | undefined;
9252
8210
  } | undefined;
9253
8211
  enableLogicalReplication?: boolean | undefined;
9254
8212
  } | undefined;
@@ -9339,7 +8297,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9339
8297
  name: string;
9340
8298
  id: string;
9341
8299
  isPrimary: boolean;
9342
- currentState: "init" | "ready";
8300
+ currentState: string;
9343
8301
  parentId?: string | undefined;
9344
8302
  };
9345
8303
  _output_out: {
@@ -9495,7 +8453,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9495
8453
  name: string;
9496
8454
  id: string;
9497
8455
  isPrimary: boolean;
9498
- currentState: "init" | "ready";
8456
+ currentState: string;
9499
8457
  parentId?: string | undefined;
9500
8458
  };
9501
8459
  _output_out: {
@@ -9565,15 +8523,27 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9565
8523
  };
9566
8524
  _input_in: {
9567
8525
  appId?: string | undefined;
9568
- } & {};
8526
+ } & {
8527
+ cursor?: string | undefined;
8528
+ search?: string | undefined;
8529
+ limit?: number | undefined;
8530
+ sortBy?: "name" | "created_at" | "updated_at" | undefined;
8531
+ sortOrder?: "desc" | "asc" | undefined;
8532
+ };
9569
8533
  _input_out: {
9570
8534
  appId?: string | undefined;
9571
- } & {};
8535
+ } & {
8536
+ cursor?: string | undefined;
8537
+ search?: string | undefined;
8538
+ limit?: number | undefined;
8539
+ sortBy?: "name" | "created_at" | "updated_at" | undefined;
8540
+ sortOrder?: "desc" | "asc" | undefined;
8541
+ };
9572
8542
  _output_in: {
9573
8543
  name: string;
9574
8544
  id: string;
9575
8545
  isPrimary: boolean;
9576
- currentState: "init" | "ready";
8546
+ currentState: string;
9577
8547
  parentId?: string | undefined;
9578
8548
  }[];
9579
8549
  _output_out: {
@@ -9659,7 +8629,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9659
8629
  name: string;
9660
8630
  id: string;
9661
8631
  isPrimary: boolean;
9662
- currentState: "init" | "ready";
8632
+ currentState: string;
9663
8633
  parentId?: string | undefined;
9664
8634
  };
9665
8635
  _output_out: {
@@ -9819,7 +8789,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9819
8789
  name: string;
9820
8790
  id: string;
9821
8791
  isPrimary: boolean;
9822
- currentState: "init" | "ready";
8792
+ currentState: string;
9823
8793
  parentId?: string | undefined;
9824
8794
  };
9825
8795
  _output_out: {
@@ -9903,7 +8873,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9903
8873
  name: string;
9904
8874
  id: string;
9905
8875
  isPrimary: boolean;
9906
- currentState: "init" | "ready";
8876
+ currentState: string;
9907
8877
  parentId?: string | undefined;
9908
8878
  };
9909
8879
  _output_out: {
@@ -10487,7 +9457,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10487
9457
  branchId: string;
10488
9458
  suspendTimeoutSeconds: number;
10489
9459
  creationSource: string;
10490
- provisioner: _neondatabase_api_client.Provisioner;
9460
+ provisioner: string;
10491
9461
  proxyHost: string;
10492
9462
  regionId: string;
10493
9463
  currentState: _neondatabase_api_client.EndpointState;
@@ -10509,7 +9479,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10509
9479
  branchId: string;
10510
9480
  suspendTimeoutSeconds: number;
10511
9481
  creationSource: string;
10512
- provisioner: _neondatabase_api_client.Provisioner;
9482
+ provisioner: "k8s-pod" | "k8s-neonvm";
10513
9483
  proxyHost: string;
10514
9484
  regionId: string;
10515
9485
  currentState: _neondatabase_api_client.EndpointState;
@@ -10673,7 +9643,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10673
9643
  branchId: string;
10674
9644
  suspendTimeoutSeconds: number;
10675
9645
  creationSource: string;
10676
- provisioner: _neondatabase_api_client.Provisioner;
9646
+ provisioner: string;
10677
9647
  proxyHost: string;
10678
9648
  regionId: string;
10679
9649
  currentState: _neondatabase_api_client.EndpointState;
@@ -10695,7 +9665,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10695
9665
  branchId: string;
10696
9666
  suspendTimeoutSeconds: number;
10697
9667
  creationSource: string;
10698
- provisioner: _neondatabase_api_client.Provisioner;
9668
+ provisioner: "k8s-pod" | "k8s-neonvm";
10699
9669
  proxyHost: string;
10700
9670
  regionId: string;
10701
9671
  currentState: _neondatabase_api_client.EndpointState;
@@ -10785,7 +9755,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10785
9755
  branchId: string;
10786
9756
  suspendTimeoutSeconds: number;
10787
9757
  creationSource: string;
10788
- provisioner: _neondatabase_api_client.Provisioner;
9758
+ provisioner: string;
10789
9759
  proxyHost: string;
10790
9760
  regionId: string;
10791
9761
  currentState: _neondatabase_api_client.EndpointState;
@@ -10807,7 +9777,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10807
9777
  branchId: string;
10808
9778
  suspendTimeoutSeconds: number;
10809
9779
  creationSource: string;
10810
- provisioner: _neondatabase_api_client.Provisioner;
9780
+ provisioner: "k8s-pod" | "k8s-neonvm";
10811
9781
  proxyHost: string;
10812
9782
  regionId: string;
10813
9783
  currentState: _neondatabase_api_client.EndpointState;
@@ -10893,7 +9863,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10893
9863
  branchId: string;
10894
9864
  suspendTimeoutSeconds: number;
10895
9865
  creationSource: string;
10896
- provisioner: _neondatabase_api_client.Provisioner;
9866
+ provisioner: string;
10897
9867
  proxyHost: string;
10898
9868
  regionId: string;
10899
9869
  currentState: _neondatabase_api_client.EndpointState;
@@ -10915,7 +9885,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10915
9885
  branchId: string;
10916
9886
  suspendTimeoutSeconds: number;
10917
9887
  creationSource: string;
10918
- provisioner: _neondatabase_api_client.Provisioner;
9888
+ provisioner: "k8s-pod" | "k8s-neonvm";
10919
9889
  proxyHost: string;
10920
9890
  regionId: string;
10921
9891
  currentState: _neondatabase_api_client.EndpointState;
@@ -11005,7 +9975,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11005
9975
  branchId: string;
11006
9976
  suspendTimeoutSeconds: number;
11007
9977
  creationSource: string;
11008
- provisioner: _neondatabase_api_client.Provisioner;
9978
+ provisioner: string;
11009
9979
  proxyHost: string;
11010
9980
  regionId: string;
11011
9981
  currentState: _neondatabase_api_client.EndpointState;
@@ -11027,7 +9997,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11027
9997
  branchId: string;
11028
9998
  suspendTimeoutSeconds: number;
11029
9999
  creationSource: string;
11030
- provisioner: _neondatabase_api_client.Provisioner;
10000
+ provisioner: "k8s-pod" | "k8s-neonvm";
11031
10001
  proxyHost: string;
11032
10002
  regionId: string;
11033
10003
  currentState: _neondatabase_api_client.EndpointState;
@@ -11117,7 +10087,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11117
10087
  branchId: string;
11118
10088
  suspendTimeoutSeconds: number;
11119
10089
  creationSource: string;
11120
- provisioner: _neondatabase_api_client.Provisioner;
10090
+ provisioner: string;
11121
10091
  proxyHost: string;
11122
10092
  regionId: string;
11123
10093
  currentState: _neondatabase_api_client.EndpointState;
@@ -11139,7 +10109,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11139
10109
  branchId: string;
11140
10110
  suspendTimeoutSeconds: number;
11141
10111
  creationSource: string;
11142
- provisioner: _neondatabase_api_client.Provisioner;
10112
+ provisioner: "k8s-pod" | "k8s-neonvm";
11143
10113
  proxyHost: string;
11144
10114
  regionId: string;
11145
10115
  currentState: _neondatabase_api_client.EndpointState;
@@ -11229,7 +10199,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11229
10199
  branchId: string;
11230
10200
  suspendTimeoutSeconds: number;
11231
10201
  creationSource: string;
11232
- provisioner: _neondatabase_api_client.Provisioner;
10202
+ provisioner: string;
11233
10203
  proxyHost: string;
11234
10204
  regionId: string;
11235
10205
  currentState: _neondatabase_api_client.EndpointState;
@@ -11251,7 +10221,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11251
10221
  branchId: string;
11252
10222
  suspendTimeoutSeconds: number;
11253
10223
  creationSource: string;
11254
- provisioner: _neondatabase_api_client.Provisioner;
10224
+ provisioner: "k8s-pod" | "k8s-neonvm";
11255
10225
  proxyHost: string;
11256
10226
  regionId: string;
11257
10227
  currentState: _neondatabase_api_client.EndpointState;
@@ -11353,7 +10323,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11353
10323
  branchId: string;
11354
10324
  suspendTimeoutSeconds: number;
11355
10325
  creationSource: string;
11356
- provisioner: _neondatabase_api_client.Provisioner;
10326
+ provisioner: string;
11357
10327
  proxyHost: string;
11358
10328
  regionId: string;
11359
10329
  currentState: _neondatabase_api_client.EndpointState;
@@ -11375,7 +10345,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11375
10345
  branchId: string;
11376
10346
  suspendTimeoutSeconds: number;
11377
10347
  creationSource: string;
11378
- provisioner: _neondatabase_api_client.Provisioner;
10348
+ provisioner: "k8s-pod" | "k8s-neonvm";
11379
10349
  proxyHost: string;
11380
10350
  regionId: string;
11381
10351
  currentState: _neondatabase_api_client.EndpointState;
@@ -11484,6 +10454,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11484
10454
  replyTo: {
11485
10455
  id: string;
11486
10456
  } | null;
10457
+ temporaryRecipients: {
10458
+ email: string | null;
10459
+ }[];
11487
10460
  recipients: {
11488
10461
  id: string;
11489
10462
  lastname: string;
@@ -11491,9 +10464,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11491
10464
  avatar: string | null;
11492
10465
  isSearchable: boolean;
11493
10466
  }[];
11494
- temporaryRecipients: {
11495
- email: string | null;
11496
- }[];
11497
10467
  } | null;
11498
10468
  mailIntegrityDraft: {
11499
10469
  id: string;
@@ -11502,6 +10472,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11502
10472
  replyTo: {
11503
10473
  id: string;
11504
10474
  } | null;
10475
+ temporaryRecipients: {
10476
+ email: string | null;
10477
+ }[];
11505
10478
  recipients: {
11506
10479
  id: string;
11507
10480
  lastname: string;
@@ -11509,9 +10482,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11509
10482
  avatar: string | null;
11510
10483
  isSearchable: boolean;
11511
10484
  }[];
11512
- temporaryRecipients: {
11513
- email: string | null;
11514
- }[];
11515
10485
  } | null;
11516
10486
  sender: {
11517
10487
  id: string;
@@ -11542,6 +10512,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11542
10512
  replyTo: {
11543
10513
  id: string;
11544
10514
  } | null;
10515
+ temporaryRecipients: {
10516
+ email: string | null;
10517
+ }[];
11545
10518
  recipients: {
11546
10519
  id: string;
11547
10520
  lastname: string;
@@ -11549,9 +10522,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11549
10522
  avatar: string | null;
11550
10523
  isSearchable: boolean;
11551
10524
  }[];
11552
- temporaryRecipients: {
11553
- email: string | null;
11554
- }[];
11555
10525
  } | null;
11556
10526
  mailIntegrityDraft: {
11557
10527
  id: string;
@@ -11560,6 +10530,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11560
10530
  replyTo: {
11561
10531
  id: string;
11562
10532
  } | null;
10533
+ temporaryRecipients: {
10534
+ email: string | null;
10535
+ }[];
11563
10536
  recipients: {
11564
10537
  id: string;
11565
10538
  lastname: string;
@@ -11567,9 +10540,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11567
10540
  avatar: string | null;
11568
10541
  isSearchable: boolean;
11569
10542
  }[];
11570
- temporaryRecipients: {
11571
- email: string | null;
11572
- }[];
11573
10543
  } | null;
11574
10544
  sender: {
11575
10545
  id: string;
@@ -11654,6 +10624,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11654
10624
  replyTo: {
11655
10625
  id: string;
11656
10626
  } | null;
10627
+ temporaryRecipients: {
10628
+ email: string | null;
10629
+ }[];
11657
10630
  recipients: {
11658
10631
  id: string;
11659
10632
  lastname: string;
@@ -11661,9 +10634,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11661
10634
  avatar: string | null;
11662
10635
  isSearchable: boolean;
11663
10636
  }[];
11664
- temporaryRecipients: {
11665
- email: string | null;
11666
- }[];
11667
10637
  } | null;
11668
10638
  mailIntegrityDraft: {
11669
10639
  id: string;
@@ -11672,6 +10642,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11672
10642
  replyTo: {
11673
10643
  id: string;
11674
10644
  } | null;
10645
+ temporaryRecipients: {
10646
+ email: string | null;
10647
+ }[];
11675
10648
  recipients: {
11676
10649
  id: string;
11677
10650
  lastname: string;
@@ -11679,9 +10652,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11679
10652
  avatar: string | null;
11680
10653
  isSearchable: boolean;
11681
10654
  }[];
11682
- temporaryRecipients: {
11683
- email: string | null;
11684
- }[];
11685
10655
  } | null;
11686
10656
  sender: {
11687
10657
  id: string;
@@ -11712,6 +10682,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11712
10682
  replyTo: {
11713
10683
  id: string;
11714
10684
  } | null;
10685
+ temporaryRecipients: {
10686
+ email: string | null;
10687
+ }[];
11715
10688
  recipients: {
11716
10689
  id: string;
11717
10690
  lastname: string;
@@ -11719,9 +10692,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11719
10692
  avatar: string | null;
11720
10693
  isSearchable: boolean;
11721
10694
  }[];
11722
- temporaryRecipients: {
11723
- email: string | null;
11724
- }[];
11725
10695
  } | null;
11726
10696
  mailIntegrityDraft: {
11727
10697
  id: string;
@@ -11730,6 +10700,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11730
10700
  replyTo: {
11731
10701
  id: string;
11732
10702
  } | null;
10703
+ temporaryRecipients: {
10704
+ email: string | null;
10705
+ }[];
11733
10706
  recipients: {
11734
10707
  id: string;
11735
10708
  lastname: string;
@@ -11737,9 +10710,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11737
10710
  avatar: string | null;
11738
10711
  isSearchable: boolean;
11739
10712
  }[];
11740
- temporaryRecipients: {
11741
- email: string | null;
11742
- }[];
11743
10713
  } | null;
11744
10714
  sender: {
11745
10715
  id: string;
@@ -11916,6 +10886,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11916
10886
  replyTo: {
11917
10887
  id: string;
11918
10888
  } | null;
10889
+ temporaryRecipients: {
10890
+ email: string | null;
10891
+ }[];
11919
10892
  recipients: {
11920
10893
  id: string;
11921
10894
  lastname: string;
@@ -11923,9 +10896,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11923
10896
  avatar: string | null;
11924
10897
  isSearchable: boolean;
11925
10898
  }[];
11926
- temporaryRecipients: {
11927
- email: string | null;
11928
- }[];
11929
10899
  } | null;
11930
10900
  mailIntegrityDraft: {
11931
10901
  id: string;
@@ -11934,6 +10904,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11934
10904
  replyTo: {
11935
10905
  id: string;
11936
10906
  } | null;
10907
+ temporaryRecipients: {
10908
+ email: string | null;
10909
+ }[];
11937
10910
  recipients: {
11938
10911
  id: string;
11939
10912
  lastname: string;
@@ -11941,9 +10914,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11941
10914
  avatar: string | null;
11942
10915
  isSearchable: boolean;
11943
10916
  }[];
11944
- temporaryRecipients: {
11945
- email: string | null;
11946
- }[];
11947
10917
  } | null;
11948
10918
  sender: {
11949
10919
  id: string;
@@ -11974,6 +10944,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11974
10944
  replyTo: {
11975
10945
  id: string;
11976
10946
  } | null;
10947
+ temporaryRecipients: {
10948
+ email: string | null;
10949
+ }[];
11977
10950
  recipients: {
11978
10951
  id: string;
11979
10952
  lastname: string;
@@ -11981,9 +10954,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11981
10954
  avatar: string | null;
11982
10955
  isSearchable: boolean;
11983
10956
  }[];
11984
- temporaryRecipients: {
11985
- email: string | null;
11986
- }[];
11987
10957
  } | null;
11988
10958
  mailIntegrityDraft: {
11989
10959
  id: string;
@@ -11992,6 +10962,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11992
10962
  replyTo: {
11993
10963
  id: string;
11994
10964
  } | null;
10965
+ temporaryRecipients: {
10966
+ email: string | null;
10967
+ }[];
11995
10968
  recipients: {
11996
10969
  id: string;
11997
10970
  lastname: string;
@@ -11999,9 +10972,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11999
10972
  avatar: string | null;
12000
10973
  isSearchable: boolean;
12001
10974
  }[];
12002
- temporaryRecipients: {
12003
- email: string | null;
12004
- }[];
12005
10975
  } | null;
12006
10976
  sender: {
12007
10977
  id: string;
@@ -12042,8 +11012,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12042
11012
  }>;
12043
11013
  _meta: object;
12044
11014
  _ctx_out: {};
12045
- _input_in: {};
12046
- _input_out: {};
11015
+ _input_in: {} & {
11016
+ page?: number | undefined;
11017
+ perPage?: number | undefined;
11018
+ };
11019
+ _input_out: {} & {
11020
+ page: number;
11021
+ perPage: number;
11022
+ };
12047
11023
  _output_in: ({
12048
11024
  id: string;
12049
11025
  createdAt: Date;
@@ -12060,6 +11036,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12060
11036
  replyTo: {
12061
11037
  id: string;
12062
11038
  } | null;
11039
+ temporaryRecipients: {
11040
+ email: string | null;
11041
+ }[];
12063
11042
  recipients: {
12064
11043
  id: string;
12065
11044
  lastname: string;
@@ -12067,9 +11046,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12067
11046
  avatar: string | null;
12068
11047
  isSearchable: boolean;
12069
11048
  }[];
12070
- temporaryRecipients: {
12071
- email: string | null;
12072
- }[];
12073
11049
  } | null;
12074
11050
  mailIntegrityDraft: {
12075
11051
  id: string;
@@ -12078,6 +11054,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12078
11054
  replyTo: {
12079
11055
  id: string;
12080
11056
  } | null;
11057
+ temporaryRecipients: {
11058
+ email: string | null;
11059
+ }[];
12081
11060
  recipients: {
12082
11061
  id: string;
12083
11062
  lastname: string;
@@ -12085,9 +11064,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12085
11064
  avatar: string | null;
12086
11065
  isSearchable: boolean;
12087
11066
  }[];
12088
- temporaryRecipients: {
12089
- email: string | null;
12090
- }[];
12091
11067
  } | null;
12092
11068
  sender: {
12093
11069
  id: string;
@@ -12118,6 +11094,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12118
11094
  replyTo: {
12119
11095
  id: string;
12120
11096
  } | null;
11097
+ temporaryRecipients: {
11098
+ email: string | null;
11099
+ }[];
12121
11100
  recipients: {
12122
11101
  id: string;
12123
11102
  lastname: string;
@@ -12125,9 +11104,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12125
11104
  avatar: string | null;
12126
11105
  isSearchable: boolean;
12127
11106
  }[];
12128
- temporaryRecipients: {
12129
- email: string | null;
12130
- }[];
12131
11107
  } | null;
12132
11108
  mailIntegrityDraft: {
12133
11109
  id: string;
@@ -12136,6 +11112,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12136
11112
  replyTo: {
12137
11113
  id: string;
12138
11114
  } | null;
11115
+ temporaryRecipients: {
11116
+ email: string | null;
11117
+ }[];
12139
11118
  recipients: {
12140
11119
  id: string;
12141
11120
  lastname: string;
@@ -12143,9 +11122,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12143
11122
  avatar: string | null;
12144
11123
  isSearchable: boolean;
12145
11124
  }[];
12146
- temporaryRecipients: {
12147
- email: string | null;
12148
- }[];
12149
11125
  } | null;
12150
11126
  sender: {
12151
11127
  id: string;
@@ -12258,8 +11234,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12258
11234
  }>;
12259
11235
  _meta: object;
12260
11236
  _ctx_out: {};
12261
- _input_in: {};
12262
- _input_out: {};
11237
+ _input_in: {} & {
11238
+ page?: number | undefined;
11239
+ perPage?: number | undefined;
11240
+ };
11241
+ _input_out: {} & {
11242
+ page: number;
11243
+ perPage: number;
11244
+ };
12263
11245
  _output_in: ({
12264
11246
  id: string;
12265
11247
  createdAt: Date;
@@ -12276,6 +11258,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12276
11258
  replyTo: {
12277
11259
  id: string;
12278
11260
  } | null;
11261
+ temporaryRecipients: {
11262
+ email: string | null;
11263
+ }[];
12279
11264
  recipients: {
12280
11265
  id: string;
12281
11266
  lastname: string;
@@ -12283,9 +11268,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12283
11268
  avatar: string | null;
12284
11269
  isSearchable: boolean;
12285
11270
  }[];
12286
- temporaryRecipients: {
12287
- email: string | null;
12288
- }[];
12289
11271
  } | null;
12290
11272
  mailIntegrityDraft: {
12291
11273
  id: string;
@@ -12294,6 +11276,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12294
11276
  replyTo: {
12295
11277
  id: string;
12296
11278
  } | null;
11279
+ temporaryRecipients: {
11280
+ email: string | null;
11281
+ }[];
12297
11282
  recipients: {
12298
11283
  id: string;
12299
11284
  lastname: string;
@@ -12301,9 +11286,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12301
11286
  avatar: string | null;
12302
11287
  isSearchable: boolean;
12303
11288
  }[];
12304
- temporaryRecipients: {
12305
- email: string | null;
12306
- }[];
12307
11289
  } | null;
12308
11290
  sender: {
12309
11291
  id: string;
@@ -12334,6 +11316,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12334
11316
  replyTo: {
12335
11317
  id: string;
12336
11318
  } | null;
11319
+ temporaryRecipients: {
11320
+ email: string | null;
11321
+ }[];
12337
11322
  recipients: {
12338
11323
  id: string;
12339
11324
  lastname: string;
@@ -12341,9 +11326,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12341
11326
  avatar: string | null;
12342
11327
  isSearchable: boolean;
12343
11328
  }[];
12344
- temporaryRecipients: {
12345
- email: string | null;
12346
- }[];
12347
11329
  } | null;
12348
11330
  mailIntegrityDraft: {
12349
11331
  id: string;
@@ -12352,6 +11334,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12352
11334
  replyTo: {
12353
11335
  id: string;
12354
11336
  } | null;
11337
+ temporaryRecipients: {
11338
+ email: string | null;
11339
+ }[];
12355
11340
  recipients: {
12356
11341
  id: string;
12357
11342
  lastname: string;
@@ -12359,9 +11344,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12359
11344
  avatar: string | null;
12360
11345
  isSearchable: boolean;
12361
11346
  }[];
12362
- temporaryRecipients: {
12363
- email: string | null;
12364
- }[];
12365
11347
  } | null;
12366
11348
  sender: {
12367
11349
  id: string;
@@ -12517,6 +11499,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12517
11499
  _input_in: {
12518
11500
  id: string;
12519
11501
  customMessage: string | null;
11502
+ temporaryRecipients: string[];
12520
11503
  recipients: ({
12521
11504
  subject: string;
12522
11505
  body: string;
@@ -12528,11 +11511,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12528
11511
  dataId: string;
12529
11512
  }[];
12530
11513
  })[];
12531
- temporaryRecipients: string[];
12532
11514
  };
12533
11515
  _input_out: {
12534
11516
  id: string;
12535
11517
  customMessage: string | null;
11518
+ temporaryRecipients: string[];
12536
11519
  recipients: ({
12537
11520
  subject: string;
12538
11521
  body: string;
@@ -12544,7 +11527,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12544
11527
  dataId: string;
12545
11528
  }[];
12546
11529
  })[];
12547
- temporaryRecipients: string[];
12548
11530
  };
12549
11531
  _output_in: {
12550
11532
  isSent: boolean;
@@ -12638,8 +11620,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12638
11620
  }>;
12639
11621
  _meta: object;
12640
11622
  _ctx_out: {};
12641
- _input_in: {};
12642
- _input_out: {};
11623
+ _input_in: {} & {
11624
+ page?: number | undefined;
11625
+ perPage?: number | undefined;
11626
+ };
11627
+ _input_out: {} & {
11628
+ page: number;
11629
+ perPage: number;
11630
+ };
12643
11631
  _output_in: ({
12644
11632
  id: string;
12645
11633
  createdAt: Date;
@@ -12656,6 +11644,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12656
11644
  replyTo: {
12657
11645
  id: string;
12658
11646
  } | null;
11647
+ temporaryRecipients: {
11648
+ email: string | null;
11649
+ }[];
12659
11650
  recipients: {
12660
11651
  id: string;
12661
11652
  lastname: string;
@@ -12663,9 +11654,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12663
11654
  avatar: string | null;
12664
11655
  isSearchable: boolean;
12665
11656
  }[];
12666
- temporaryRecipients: {
12667
- email: string | null;
12668
- }[];
12669
11657
  } | null;
12670
11658
  mailIntegrityDraft: {
12671
11659
  id: string;
@@ -12674,6 +11662,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12674
11662
  replyTo: {
12675
11663
  id: string;
12676
11664
  } | null;
11665
+ temporaryRecipients: {
11666
+ email: string | null;
11667
+ }[];
12677
11668
  recipients: {
12678
11669
  id: string;
12679
11670
  lastname: string;
@@ -12681,9 +11672,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12681
11672
  avatar: string | null;
12682
11673
  isSearchable: boolean;
12683
11674
  }[];
12684
- temporaryRecipients: {
12685
- email: string | null;
12686
- }[];
12687
11675
  } | null;
12688
11676
  sender: {
12689
11677
  id: string;
@@ -12714,6 +11702,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12714
11702
  replyTo: {
12715
11703
  id: string;
12716
11704
  } | null;
11705
+ temporaryRecipients: {
11706
+ email: string | null;
11707
+ }[];
12717
11708
  recipients: {
12718
11709
  id: string;
12719
11710
  lastname: string;
@@ -12721,9 +11712,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12721
11712
  avatar: string | null;
12722
11713
  isSearchable: boolean;
12723
11714
  }[];
12724
- temporaryRecipients: {
12725
- email: string | null;
12726
- }[];
12727
11715
  } | null;
12728
11716
  mailIntegrityDraft: {
12729
11717
  id: string;
@@ -12732,6 +11720,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12732
11720
  replyTo: {
12733
11721
  id: string;
12734
11722
  } | null;
11723
+ temporaryRecipients: {
11724
+ email: string | null;
11725
+ }[];
12735
11726
  recipients: {
12736
11727
  id: string;
12737
11728
  lastname: string;
@@ -12739,9 +11730,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12739
11730
  avatar: string | null;
12740
11731
  isSearchable: boolean;
12741
11732
  }[];
12742
- temporaryRecipients: {
12743
- email: string | null;
12744
- }[];
12745
11733
  } | null;
12746
11734
  sender: {
12747
11735
  id: string;
@@ -12894,6 +11882,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12894
11882
  replyTo: {
12895
11883
  id: string;
12896
11884
  } | null;
11885
+ temporaryRecipients: {
11886
+ email: string | null;
11887
+ }[];
12897
11888
  recipients: {
12898
11889
  id: string;
12899
11890
  lastname: string;
@@ -12901,9 +11892,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12901
11892
  avatar: string | null;
12902
11893
  isSearchable: boolean;
12903
11894
  }[];
12904
- temporaryRecipients: {
12905
- email: string | null;
12906
- }[];
12907
11895
  } | null;
12908
11896
  mailIntegrityDraft: {
12909
11897
  id: string;
@@ -12912,6 +11900,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12912
11900
  replyTo: {
12913
11901
  id: string;
12914
11902
  } | null;
11903
+ temporaryRecipients: {
11904
+ email: string | null;
11905
+ }[];
12915
11906
  recipients: {
12916
11907
  id: string;
12917
11908
  lastname: string;
@@ -12919,9 +11910,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12919
11910
  avatar: string | null;
12920
11911
  isSearchable: boolean;
12921
11912
  }[];
12922
- temporaryRecipients: {
12923
- email: string | null;
12924
- }[];
12925
11913
  } | null;
12926
11914
  sender: {
12927
11915
  id: string;
@@ -12952,6 +11940,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12952
11940
  replyTo: {
12953
11941
  id: string;
12954
11942
  } | null;
11943
+ temporaryRecipients: {
11944
+ email: string | null;
11945
+ }[];
12955
11946
  recipients: {
12956
11947
  id: string;
12957
11948
  lastname: string;
@@ -12959,9 +11950,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12959
11950
  avatar: string | null;
12960
11951
  isSearchable: boolean;
12961
11952
  }[];
12962
- temporaryRecipients: {
12963
- email: string | null;
12964
- }[];
12965
11953
  } | null;
12966
11954
  mailIntegrityDraft: {
12967
11955
  id: string;
@@ -12970,6 +11958,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12970
11958
  replyTo: {
12971
11959
  id: string;
12972
11960
  } | null;
11961
+ temporaryRecipients: {
11962
+ email: string | null;
11963
+ }[];
12973
11964
  recipients: {
12974
11965
  id: string;
12975
11966
  lastname: string;
@@ -12977,9 +11968,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12977
11968
  avatar: string | null;
12978
11969
  isSearchable: boolean;
12979
11970
  }[];
12980
- temporaryRecipients: {
12981
- email: string | null;
12982
- }[];
12983
11971
  } | null;
12984
11972
  sender: {
12985
11973
  id: string;
@@ -13031,6 +12019,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13031
12019
  isSearchable: boolean;
13032
12020
  };
13033
12021
  date: Date;
12022
+ temporaryRecipients: {
12023
+ email: string | null;
12024
+ id: string;
12025
+ phone: string | null;
12026
+ }[];
13034
12027
  recipients: {
13035
12028
  id: string;
13036
12029
  lastname: string;
@@ -13038,11 +12031,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13038
12031
  avatar: string | null;
13039
12032
  isSearchable: boolean;
13040
12033
  }[];
13041
- temporaryRecipients: {
13042
- email: string | null;
13043
- id: string;
13044
- phone: string | null;
13045
- }[];
13046
12034
  attachmentsCount: number;
13047
12035
  }[];
13048
12036
  _output_out: {
@@ -13054,6 +12042,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13054
12042
  isSearchable: boolean;
13055
12043
  };
13056
12044
  date: Date;
12045
+ temporaryRecipients: {
12046
+ email: string | null;
12047
+ id: string;
12048
+ phone: string | null;
12049
+ }[];
13057
12050
  recipients: {
13058
12051
  id: string;
13059
12052
  lastname: string;
@@ -13061,11 +12054,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13061
12054
  avatar: string | null;
13062
12055
  isSearchable: boolean;
13063
12056
  }[];
13064
- temporaryRecipients: {
13065
- email: string | null;
13066
- id: string;
13067
- phone: string | null;
13068
- }[];
13069
12057
  attachmentsCount: number;
13070
12058
  }[];
13071
12059
  }, unknown>>;