@secrecy/trpc-api-types 1.33.0-dev.35 → 1.33.0-dev.36
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.
- package/dist/index.d.cts +214 -58
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2182,14 +2182,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2182
2182
|
current: {
|
|
2183
2183
|
id: string;
|
|
2184
2184
|
createdAt: Date;
|
|
2185
|
+
storageType: "s3" | "cold" | "lite";
|
|
2185
2186
|
size: bigint;
|
|
2186
2187
|
md5: string;
|
|
2187
2188
|
userAppUserId: string;
|
|
2188
2189
|
userAppAppId: string;
|
|
2189
|
-
storageType: "s3" | "lite";
|
|
2190
2190
|
sizeEncrypted: bigint | null;
|
|
2191
2191
|
md5Encrypted: string | null;
|
|
2192
2192
|
validatedAt: Date | null;
|
|
2193
|
+
restoreSince: Date | null;
|
|
2193
2194
|
access: {
|
|
2194
2195
|
key: string | null;
|
|
2195
2196
|
sharedByPubKey: string;
|
|
@@ -2198,14 +2199,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2198
2199
|
history: {
|
|
2199
2200
|
id: string;
|
|
2200
2201
|
createdAt: Date;
|
|
2202
|
+
storageType: "s3" | "cold" | "lite";
|
|
2201
2203
|
size: bigint;
|
|
2202
2204
|
md5: string;
|
|
2203
2205
|
userAppUserId: string;
|
|
2204
2206
|
userAppAppId: string;
|
|
2205
|
-
storageType: "s3" | "lite";
|
|
2206
2207
|
sizeEncrypted: bigint | null;
|
|
2207
2208
|
md5Encrypted: string | null;
|
|
2208
2209
|
validatedAt: Date | null;
|
|
2210
|
+
restoreSince: Date | null;
|
|
2209
2211
|
access: {
|
|
2210
2212
|
key: string | null;
|
|
2211
2213
|
sharedByPubKey: string;
|
|
@@ -2327,14 +2329,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2327
2329
|
current: {
|
|
2328
2330
|
id: string;
|
|
2329
2331
|
createdAt: Date;
|
|
2332
|
+
storageType: "s3" | "cold" | "lite";
|
|
2330
2333
|
size: bigint;
|
|
2331
2334
|
md5: string;
|
|
2332
2335
|
userAppUserId: string;
|
|
2333
2336
|
userAppAppId: string;
|
|
2334
|
-
storageType: "s3" | "lite";
|
|
2335
2337
|
sizeEncrypted: bigint | null;
|
|
2336
2338
|
md5Encrypted: string | null;
|
|
2337
2339
|
validatedAt: Date | null;
|
|
2340
|
+
restoreSince: Date | null;
|
|
2338
2341
|
access: {
|
|
2339
2342
|
key: string | null;
|
|
2340
2343
|
sharedByPubKey: string;
|
|
@@ -2343,14 +2346,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2343
2346
|
history: {
|
|
2344
2347
|
id: string;
|
|
2345
2348
|
createdAt: Date;
|
|
2349
|
+
storageType: "s3" | "cold" | "lite";
|
|
2346
2350
|
size: bigint;
|
|
2347
2351
|
md5: string;
|
|
2348
2352
|
userAppUserId: string;
|
|
2349
2353
|
userAppAppId: string;
|
|
2350
|
-
storageType: "s3" | "lite";
|
|
2351
2354
|
sizeEncrypted: bigint | null;
|
|
2352
2355
|
md5Encrypted: string | null;
|
|
2353
2356
|
validatedAt: Date | null;
|
|
2357
|
+
restoreSince: Date | null;
|
|
2354
2358
|
access: {
|
|
2355
2359
|
key: string | null;
|
|
2356
2360
|
sharedByPubKey: string;
|
|
@@ -2507,14 +2511,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2507
2511
|
_output_in: {
|
|
2508
2512
|
id: string;
|
|
2509
2513
|
createdAt: Date;
|
|
2514
|
+
storageType: "s3" | "cold" | "lite";
|
|
2510
2515
|
size: bigint;
|
|
2511
2516
|
md5: string;
|
|
2512
2517
|
userAppUserId: string;
|
|
2513
2518
|
userAppAppId: string;
|
|
2514
|
-
storageType: "s3" | "lite";
|
|
2515
2519
|
sizeEncrypted: bigint | null;
|
|
2516
2520
|
md5Encrypted: string | null;
|
|
2517
2521
|
validatedAt: Date | null;
|
|
2522
|
+
restoreSince: Date | null;
|
|
2518
2523
|
access: {
|
|
2519
2524
|
key: string | null;
|
|
2520
2525
|
sharedByPubKey: string;
|
|
@@ -2523,14 +2528,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2523
2528
|
_output_out: {
|
|
2524
2529
|
id: string;
|
|
2525
2530
|
createdAt: Date;
|
|
2531
|
+
storageType: "s3" | "cold" | "lite";
|
|
2526
2532
|
size: bigint;
|
|
2527
2533
|
md5: string;
|
|
2528
2534
|
userAppUserId: string;
|
|
2529
2535
|
userAppAppId: string;
|
|
2530
|
-
storageType: "s3" | "lite";
|
|
2531
2536
|
sizeEncrypted: bigint | null;
|
|
2532
2537
|
md5Encrypted: string | null;
|
|
2533
2538
|
validatedAt: Date | null;
|
|
2539
|
+
restoreSince: Date | null;
|
|
2534
2540
|
access: {
|
|
2535
2541
|
key: string | null;
|
|
2536
2542
|
sharedByPubKey: string;
|
|
@@ -2570,10 +2576,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2570
2576
|
id: string;
|
|
2571
2577
|
type: "received_mail";
|
|
2572
2578
|
key: string | null;
|
|
2579
|
+
storageType: "s3" | "cold" | "lite";
|
|
2580
|
+
size: bigint;
|
|
2573
2581
|
md5: string;
|
|
2574
|
-
|
|
2582
|
+
sizeEncrypted: bigint | null;
|
|
2575
2583
|
md5Encrypted: string | null;
|
|
2576
|
-
totalSize: bigint;
|
|
2577
2584
|
senderPublicKey: string;
|
|
2578
2585
|
maybeParts: {
|
|
2579
2586
|
md5: string;
|
|
@@ -2585,10 +2592,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2585
2592
|
id: string;
|
|
2586
2593
|
type: "sent_mail";
|
|
2587
2594
|
key: string | null;
|
|
2595
|
+
storageType: "s3" | "cold" | "lite";
|
|
2596
|
+
size: bigint;
|
|
2588
2597
|
md5: string;
|
|
2589
|
-
|
|
2598
|
+
sizeEncrypted: bigint | null;
|
|
2590
2599
|
md5Encrypted: string | null;
|
|
2591
|
-
totalSize: bigint;
|
|
2592
2600
|
maybeParts: {
|
|
2593
2601
|
md5: string;
|
|
2594
2602
|
order: number;
|
|
@@ -2599,8 +2607,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2599
2607
|
id: string;
|
|
2600
2608
|
type: "cloud";
|
|
2601
2609
|
key: string | null;
|
|
2610
|
+
storageType: "s3" | "cold";
|
|
2611
|
+
size: bigint;
|
|
2602
2612
|
md5: string;
|
|
2603
|
-
|
|
2613
|
+
sizeEncrypted: bigint | null;
|
|
2604
2614
|
md5Encrypted: string | null;
|
|
2605
2615
|
parts: {
|
|
2606
2616
|
md5: string;
|
|
@@ -2608,26 +2618,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2608
2618
|
contentUrl: string;
|
|
2609
2619
|
}[];
|
|
2610
2620
|
publicKey: string;
|
|
2611
|
-
totalSize: bigint;
|
|
2612
2621
|
} | {
|
|
2613
2622
|
id: string;
|
|
2614
2623
|
type: "lite";
|
|
2615
2624
|
key: string | null;
|
|
2625
|
+
storageType: "lite";
|
|
2626
|
+
size: bigint;
|
|
2616
2627
|
md5: string;
|
|
2617
|
-
|
|
2628
|
+
sizeEncrypted: bigint | null;
|
|
2618
2629
|
md5Encrypted: string | null;
|
|
2619
2630
|
content: Buffer;
|
|
2620
2631
|
publicKey: string;
|
|
2621
|
-
totalSize: bigint;
|
|
2622
2632
|
};
|
|
2623
2633
|
_output_out: {
|
|
2624
2634
|
id: string;
|
|
2625
2635
|
type: "received_mail";
|
|
2626
2636
|
key: string | null;
|
|
2637
|
+
storageType: "s3" | "cold" | "lite";
|
|
2638
|
+
size: bigint;
|
|
2627
2639
|
md5: string;
|
|
2628
|
-
|
|
2640
|
+
sizeEncrypted: bigint | null;
|
|
2629
2641
|
md5Encrypted: string | null;
|
|
2630
|
-
totalSize: bigint;
|
|
2631
2642
|
senderPublicKey: string;
|
|
2632
2643
|
maybeParts: {
|
|
2633
2644
|
md5: string;
|
|
@@ -2639,10 +2650,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2639
2650
|
id: string;
|
|
2640
2651
|
type: "sent_mail";
|
|
2641
2652
|
key: string | null;
|
|
2653
|
+
storageType: "s3" | "cold" | "lite";
|
|
2654
|
+
size: bigint;
|
|
2642
2655
|
md5: string;
|
|
2643
|
-
|
|
2656
|
+
sizeEncrypted: bigint | null;
|
|
2644
2657
|
md5Encrypted: string | null;
|
|
2645
|
-
totalSize: bigint;
|
|
2646
2658
|
maybeParts: {
|
|
2647
2659
|
md5: string;
|
|
2648
2660
|
order: number;
|
|
@@ -2653,8 +2665,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2653
2665
|
id: string;
|
|
2654
2666
|
type: "cloud";
|
|
2655
2667
|
key: string | null;
|
|
2668
|
+
storageType: "s3" | "cold";
|
|
2669
|
+
size: bigint;
|
|
2656
2670
|
md5: string;
|
|
2657
|
-
|
|
2671
|
+
sizeEncrypted: bigint | null;
|
|
2658
2672
|
md5Encrypted: string | null;
|
|
2659
2673
|
parts: {
|
|
2660
2674
|
md5: string;
|
|
@@ -2662,17 +2676,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2662
2676
|
contentUrl: string;
|
|
2663
2677
|
}[];
|
|
2664
2678
|
publicKey: string;
|
|
2665
|
-
totalSize: bigint;
|
|
2666
2679
|
} | {
|
|
2667
2680
|
id: string;
|
|
2668
2681
|
type: "lite";
|
|
2669
2682
|
key: string | null;
|
|
2683
|
+
storageType: "lite";
|
|
2684
|
+
size: bigint;
|
|
2670
2685
|
md5: string;
|
|
2671
|
-
|
|
2686
|
+
sizeEncrypted: bigint | null;
|
|
2672
2687
|
md5Encrypted: string | null;
|
|
2673
2688
|
content: Buffer;
|
|
2674
2689
|
publicKey: string;
|
|
2675
|
-
totalSize: bigint;
|
|
2676
2690
|
};
|
|
2677
2691
|
}, unknown>;
|
|
2678
2692
|
dataContentByIds: _trpc_server.BuildProcedure<"query", {
|
|
@@ -2708,10 +2722,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2708
2722
|
id: string;
|
|
2709
2723
|
type: "received_mail";
|
|
2710
2724
|
key: string | null;
|
|
2725
|
+
storageType: "s3" | "cold" | "lite";
|
|
2726
|
+
size: bigint;
|
|
2711
2727
|
md5: string;
|
|
2712
|
-
|
|
2728
|
+
sizeEncrypted: bigint | null;
|
|
2713
2729
|
md5Encrypted: string | null;
|
|
2714
|
-
totalSize: bigint;
|
|
2715
2730
|
senderPublicKey: string;
|
|
2716
2731
|
maybeParts: {
|
|
2717
2732
|
md5: string;
|
|
@@ -2723,10 +2738,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2723
2738
|
id: string;
|
|
2724
2739
|
type: "sent_mail";
|
|
2725
2740
|
key: string | null;
|
|
2741
|
+
storageType: "s3" | "cold" | "lite";
|
|
2742
|
+
size: bigint;
|
|
2726
2743
|
md5: string;
|
|
2727
|
-
|
|
2744
|
+
sizeEncrypted: bigint | null;
|
|
2728
2745
|
md5Encrypted: string | null;
|
|
2729
|
-
totalSize: bigint;
|
|
2730
2746
|
maybeParts: {
|
|
2731
2747
|
md5: string;
|
|
2732
2748
|
order: number;
|
|
@@ -2737,8 +2753,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2737
2753
|
id: string;
|
|
2738
2754
|
type: "cloud";
|
|
2739
2755
|
key: string | null;
|
|
2756
|
+
storageType: "s3" | "cold";
|
|
2757
|
+
size: bigint;
|
|
2740
2758
|
md5: string;
|
|
2741
|
-
|
|
2759
|
+
sizeEncrypted: bigint | null;
|
|
2742
2760
|
md5Encrypted: string | null;
|
|
2743
2761
|
parts: {
|
|
2744
2762
|
md5: string;
|
|
@@ -2746,26 +2764,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2746
2764
|
contentUrl: string;
|
|
2747
2765
|
}[];
|
|
2748
2766
|
publicKey: string;
|
|
2749
|
-
totalSize: bigint;
|
|
2750
2767
|
} | {
|
|
2751
2768
|
id: string;
|
|
2752
2769
|
type: "lite";
|
|
2753
2770
|
key: string | null;
|
|
2771
|
+
storageType: "lite";
|
|
2772
|
+
size: bigint;
|
|
2754
2773
|
md5: string;
|
|
2755
|
-
|
|
2774
|
+
sizeEncrypted: bigint | null;
|
|
2756
2775
|
md5Encrypted: string | null;
|
|
2757
2776
|
content: Buffer;
|
|
2758
2777
|
publicKey: string;
|
|
2759
|
-
totalSize: bigint;
|
|
2760
2778
|
})[];
|
|
2761
2779
|
_output_out: ({
|
|
2762
2780
|
id: string;
|
|
2763
2781
|
type: "received_mail";
|
|
2764
2782
|
key: string | null;
|
|
2783
|
+
storageType: "s3" | "cold" | "lite";
|
|
2784
|
+
size: bigint;
|
|
2765
2785
|
md5: string;
|
|
2766
|
-
|
|
2786
|
+
sizeEncrypted: bigint | null;
|
|
2767
2787
|
md5Encrypted: string | null;
|
|
2768
|
-
totalSize: bigint;
|
|
2769
2788
|
senderPublicKey: string;
|
|
2770
2789
|
maybeParts: {
|
|
2771
2790
|
md5: string;
|
|
@@ -2777,10 +2796,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2777
2796
|
id: string;
|
|
2778
2797
|
type: "sent_mail";
|
|
2779
2798
|
key: string | null;
|
|
2799
|
+
storageType: "s3" | "cold" | "lite";
|
|
2800
|
+
size: bigint;
|
|
2780
2801
|
md5: string;
|
|
2781
|
-
|
|
2802
|
+
sizeEncrypted: bigint | null;
|
|
2782
2803
|
md5Encrypted: string | null;
|
|
2783
|
-
totalSize: bigint;
|
|
2784
2804
|
maybeParts: {
|
|
2785
2805
|
md5: string;
|
|
2786
2806
|
order: number;
|
|
@@ -2791,8 +2811,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2791
2811
|
id: string;
|
|
2792
2812
|
type: "cloud";
|
|
2793
2813
|
key: string | null;
|
|
2814
|
+
storageType: "s3" | "cold";
|
|
2815
|
+
size: bigint;
|
|
2794
2816
|
md5: string;
|
|
2795
|
-
|
|
2817
|
+
sizeEncrypted: bigint | null;
|
|
2796
2818
|
md5Encrypted: string | null;
|
|
2797
2819
|
parts: {
|
|
2798
2820
|
md5: string;
|
|
@@ -2800,17 +2822,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2800
2822
|
contentUrl: string;
|
|
2801
2823
|
}[];
|
|
2802
2824
|
publicKey: string;
|
|
2803
|
-
totalSize: bigint;
|
|
2804
2825
|
} | {
|
|
2805
2826
|
id: string;
|
|
2806
2827
|
type: "lite";
|
|
2807
2828
|
key: string | null;
|
|
2829
|
+
storageType: "lite";
|
|
2830
|
+
size: bigint;
|
|
2808
2831
|
md5: string;
|
|
2809
|
-
|
|
2832
|
+
sizeEncrypted: bigint | null;
|
|
2810
2833
|
md5Encrypted: string | null;
|
|
2811
2834
|
content: Buffer;
|
|
2812
2835
|
publicKey: string;
|
|
2813
|
-
totalSize: bigint;
|
|
2814
2836
|
})[];
|
|
2815
2837
|
}, unknown>;
|
|
2816
2838
|
dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
|
|
@@ -2845,6 +2867,48 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2845
2867
|
_output_in: any[];
|
|
2846
2868
|
_output_out: any[];
|
|
2847
2869
|
}, unknown>;
|
|
2870
|
+
moveToStorageType: _trpc_server.BuildProcedure<"mutation", {
|
|
2871
|
+
_config: _trpc_server.RootConfig<{
|
|
2872
|
+
ctx: {};
|
|
2873
|
+
meta: object;
|
|
2874
|
+
errorShape: {
|
|
2875
|
+
message: string;
|
|
2876
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2877
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2878
|
+
} | {
|
|
2879
|
+
data: {
|
|
2880
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
2881
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2882
|
+
httpStatus: number;
|
|
2883
|
+
path?: string;
|
|
2884
|
+
stack?: string;
|
|
2885
|
+
};
|
|
2886
|
+
message: string;
|
|
2887
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2888
|
+
};
|
|
2889
|
+
transformer: typeof superjson.default;
|
|
2890
|
+
}>;
|
|
2891
|
+
_meta: object;
|
|
2892
|
+
_ctx_out: {};
|
|
2893
|
+
_input_in: {
|
|
2894
|
+
dataId: string;
|
|
2895
|
+
storageType: "s3" | "cold";
|
|
2896
|
+
};
|
|
2897
|
+
_input_out: {
|
|
2898
|
+
dataId: string;
|
|
2899
|
+
storageType: "s3" | "cold";
|
|
2900
|
+
};
|
|
2901
|
+
_output_in: {
|
|
2902
|
+
isMoved: boolean;
|
|
2903
|
+
fromType: "s3" | "cold";
|
|
2904
|
+
toType: "s3" | "cold";
|
|
2905
|
+
};
|
|
2906
|
+
_output_out: {
|
|
2907
|
+
isMoved: boolean;
|
|
2908
|
+
fromType: "s3" | "cold";
|
|
2909
|
+
toType: "s3" | "cold";
|
|
2910
|
+
};
|
|
2911
|
+
}, unknown>;
|
|
2848
2912
|
saveInCloud: _trpc_server.BuildProcedure<"mutation", {
|
|
2849
2913
|
_config: _trpc_server.RootConfig<{
|
|
2850
2914
|
ctx: {};
|
|
@@ -2922,14 +2986,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2922
2986
|
current: {
|
|
2923
2987
|
id: string;
|
|
2924
2988
|
createdAt: Date;
|
|
2989
|
+
storageType: "s3" | "cold" | "lite";
|
|
2925
2990
|
size: bigint;
|
|
2926
2991
|
md5: string;
|
|
2927
2992
|
userAppUserId: string;
|
|
2928
2993
|
userAppAppId: string;
|
|
2929
|
-
storageType: "s3" | "lite";
|
|
2930
2994
|
sizeEncrypted: bigint | null;
|
|
2931
2995
|
md5Encrypted: string | null;
|
|
2932
2996
|
validatedAt: Date | null;
|
|
2997
|
+
restoreSince: Date | null;
|
|
2933
2998
|
access: {
|
|
2934
2999
|
key: string | null;
|
|
2935
3000
|
sharedByPubKey: string;
|
|
@@ -2938,14 +3003,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2938
3003
|
history: {
|
|
2939
3004
|
id: string;
|
|
2940
3005
|
createdAt: Date;
|
|
3006
|
+
storageType: "s3" | "cold" | "lite";
|
|
2941
3007
|
size: bigint;
|
|
2942
3008
|
md5: string;
|
|
2943
3009
|
userAppUserId: string;
|
|
2944
3010
|
userAppAppId: string;
|
|
2945
|
-
storageType: "s3" | "lite";
|
|
2946
3011
|
sizeEncrypted: bigint | null;
|
|
2947
3012
|
md5Encrypted: string | null;
|
|
2948
3013
|
validatedAt: Date | null;
|
|
3014
|
+
restoreSince: Date | null;
|
|
2949
3015
|
access: {
|
|
2950
3016
|
key: string | null;
|
|
2951
3017
|
sharedByPubKey: string;
|
|
@@ -3067,14 +3133,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3067
3133
|
current: {
|
|
3068
3134
|
id: string;
|
|
3069
3135
|
createdAt: Date;
|
|
3136
|
+
storageType: "s3" | "cold" | "lite";
|
|
3070
3137
|
size: bigint;
|
|
3071
3138
|
md5: string;
|
|
3072
3139
|
userAppUserId: string;
|
|
3073
3140
|
userAppAppId: string;
|
|
3074
|
-
storageType: "s3" | "lite";
|
|
3075
3141
|
sizeEncrypted: bigint | null;
|
|
3076
3142
|
md5Encrypted: string | null;
|
|
3077
3143
|
validatedAt: Date | null;
|
|
3144
|
+
restoreSince: Date | null;
|
|
3078
3145
|
access: {
|
|
3079
3146
|
key: string | null;
|
|
3080
3147
|
sharedByPubKey: string;
|
|
@@ -3083,14 +3150,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3083
3150
|
history: {
|
|
3084
3151
|
id: string;
|
|
3085
3152
|
createdAt: Date;
|
|
3153
|
+
storageType: "s3" | "cold" | "lite";
|
|
3086
3154
|
size: bigint;
|
|
3087
3155
|
md5: string;
|
|
3088
3156
|
userAppUserId: string;
|
|
3089
3157
|
userAppAppId: string;
|
|
3090
|
-
storageType: "s3" | "lite";
|
|
3091
3158
|
sizeEncrypted: bigint | null;
|
|
3092
3159
|
md5Encrypted: string | null;
|
|
3093
3160
|
validatedAt: Date | null;
|
|
3161
|
+
restoreSince: Date | null;
|
|
3094
3162
|
access: {
|
|
3095
3163
|
key: string | null;
|
|
3096
3164
|
sharedByPubKey: string;
|
|
@@ -3266,14 +3334,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3266
3334
|
history: {
|
|
3267
3335
|
createdAt: Date;
|
|
3268
3336
|
dataId: string;
|
|
3337
|
+
storageType: "s3" | "cold" | "lite";
|
|
3269
3338
|
size: bigint;
|
|
3270
|
-
storageType: "s3" | "lite";
|
|
3271
3339
|
}[];
|
|
3272
3340
|
access: {
|
|
3273
3341
|
appId: string;
|
|
3274
3342
|
nameKey: string;
|
|
3275
3343
|
};
|
|
3276
|
-
totalSize: bigint;
|
|
3277
3344
|
breadcrumb: {
|
|
3278
3345
|
name: string;
|
|
3279
3346
|
id: string;
|
|
@@ -3281,6 +3348,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3281
3348
|
pubKey: string;
|
|
3282
3349
|
}[];
|
|
3283
3350
|
sharedCount: number;
|
|
3351
|
+
totalSize: bigint;
|
|
3284
3352
|
}[];
|
|
3285
3353
|
};
|
|
3286
3354
|
pagination: {
|
|
@@ -3307,14 +3375,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3307
3375
|
history: {
|
|
3308
3376
|
createdAt: Date;
|
|
3309
3377
|
dataId: string;
|
|
3378
|
+
storageType: "s3" | "cold" | "lite";
|
|
3310
3379
|
size: bigint;
|
|
3311
|
-
storageType: "s3" | "lite";
|
|
3312
3380
|
}[];
|
|
3313
3381
|
access: {
|
|
3314
3382
|
appId: string;
|
|
3315
3383
|
nameKey: string;
|
|
3316
3384
|
};
|
|
3317
|
-
totalSize: bigint;
|
|
3318
3385
|
breadcrumb: {
|
|
3319
3386
|
name: string;
|
|
3320
3387
|
id: string;
|
|
@@ -3322,6 +3389,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3322
3389
|
pubKey: string;
|
|
3323
3390
|
}[];
|
|
3324
3391
|
sharedCount: number;
|
|
3392
|
+
totalSize: bigint;
|
|
3325
3393
|
}[];
|
|
3326
3394
|
};
|
|
3327
3395
|
pagination: {
|
|
@@ -3497,6 +3565,82 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3497
3565
|
partSize: bigint;
|
|
3498
3566
|
};
|
|
3499
3567
|
}, unknown>;
|
|
3568
|
+
uploadColdData: _trpc_server.BuildProcedure<"mutation", {
|
|
3569
|
+
_config: _trpc_server.RootConfig<{
|
|
3570
|
+
ctx: {};
|
|
3571
|
+
meta: object;
|
|
3572
|
+
errorShape: {
|
|
3573
|
+
message: string;
|
|
3574
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
3575
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3576
|
+
} | {
|
|
3577
|
+
data: {
|
|
3578
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
3579
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
3580
|
+
httpStatus: number;
|
|
3581
|
+
path?: string;
|
|
3582
|
+
stack?: string;
|
|
3583
|
+
};
|
|
3584
|
+
message: string;
|
|
3585
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
3586
|
+
};
|
|
3587
|
+
transformer: typeof superjson.default;
|
|
3588
|
+
}>;
|
|
3589
|
+
_meta: object;
|
|
3590
|
+
_ctx_out: {};
|
|
3591
|
+
_input_in: {
|
|
3592
|
+
type: "encrypted";
|
|
3593
|
+
key: string;
|
|
3594
|
+
size: bigint;
|
|
3595
|
+
md5: string;
|
|
3596
|
+
sizeEncrypted: bigint;
|
|
3597
|
+
md5Encrypted: string;
|
|
3598
|
+
} | {
|
|
3599
|
+
type: "unencrypted";
|
|
3600
|
+
size: bigint;
|
|
3601
|
+
md5: string;
|
|
3602
|
+
};
|
|
3603
|
+
_input_out: {
|
|
3604
|
+
type: "encrypted";
|
|
3605
|
+
key: string;
|
|
3606
|
+
size: bigint;
|
|
3607
|
+
md5: string;
|
|
3608
|
+
sizeEncrypted: bigint;
|
|
3609
|
+
md5Encrypted: string;
|
|
3610
|
+
} | {
|
|
3611
|
+
type: "unencrypted";
|
|
3612
|
+
size: bigint;
|
|
3613
|
+
md5: string;
|
|
3614
|
+
};
|
|
3615
|
+
_output_in: {
|
|
3616
|
+
id: string;
|
|
3617
|
+
keyPair: {
|
|
3618
|
+
pub: string;
|
|
3619
|
+
encPriv: string;
|
|
3620
|
+
};
|
|
3621
|
+
key: string | null;
|
|
3622
|
+
parts: {
|
|
3623
|
+
fields: Record<string, string>;
|
|
3624
|
+
url: string;
|
|
3625
|
+
order: number;
|
|
3626
|
+
}[];
|
|
3627
|
+
partSize: bigint;
|
|
3628
|
+
};
|
|
3629
|
+
_output_out: {
|
|
3630
|
+
id: string;
|
|
3631
|
+
keyPair: {
|
|
3632
|
+
pub: string;
|
|
3633
|
+
encPriv: string;
|
|
3634
|
+
};
|
|
3635
|
+
key: string | null;
|
|
3636
|
+
parts: {
|
|
3637
|
+
fields: Record<string, string>;
|
|
3638
|
+
url: string;
|
|
3639
|
+
order: number;
|
|
3640
|
+
}[];
|
|
3641
|
+
partSize: bigint;
|
|
3642
|
+
};
|
|
3643
|
+
}, unknown>;
|
|
3500
3644
|
uploadLiteData: _trpc_server.BuildProcedure<"mutation", {
|
|
3501
3645
|
_config: _trpc_server.RootConfig<{
|
|
3502
3646
|
ctx: {};
|
|
@@ -3678,14 +3822,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3678
3822
|
current: {
|
|
3679
3823
|
id: string;
|
|
3680
3824
|
createdAt: Date;
|
|
3825
|
+
storageType: "s3" | "cold" | "lite";
|
|
3681
3826
|
size: bigint;
|
|
3682
3827
|
md5: string;
|
|
3683
3828
|
userAppUserId: string;
|
|
3684
3829
|
userAppAppId: string;
|
|
3685
|
-
storageType: "s3" | "lite";
|
|
3686
3830
|
sizeEncrypted: bigint | null;
|
|
3687
3831
|
md5Encrypted: string | null;
|
|
3688
3832
|
validatedAt: Date | null;
|
|
3833
|
+
restoreSince: Date | null;
|
|
3689
3834
|
access: {
|
|
3690
3835
|
key: string | null;
|
|
3691
3836
|
sharedByPubKey: string;
|
|
@@ -3694,14 +3839,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3694
3839
|
history: {
|
|
3695
3840
|
id: string;
|
|
3696
3841
|
createdAt: Date;
|
|
3842
|
+
storageType: "s3" | "cold" | "lite";
|
|
3697
3843
|
size: bigint;
|
|
3698
3844
|
md5: string;
|
|
3699
3845
|
userAppUserId: string;
|
|
3700
3846
|
userAppAppId: string;
|
|
3701
|
-
storageType: "s3" | "lite";
|
|
3702
3847
|
sizeEncrypted: bigint | null;
|
|
3703
3848
|
md5Encrypted: string | null;
|
|
3704
3849
|
validatedAt: Date | null;
|
|
3850
|
+
restoreSince: Date | null;
|
|
3705
3851
|
access: {
|
|
3706
3852
|
key: string | null;
|
|
3707
3853
|
sharedByPubKey: string;
|
|
@@ -3823,14 +3969,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3823
3969
|
current: {
|
|
3824
3970
|
id: string;
|
|
3825
3971
|
createdAt: Date;
|
|
3972
|
+
storageType: "s3" | "cold" | "lite";
|
|
3826
3973
|
size: bigint;
|
|
3827
3974
|
md5: string;
|
|
3828
3975
|
userAppUserId: string;
|
|
3829
3976
|
userAppAppId: string;
|
|
3830
|
-
storageType: "s3" | "lite";
|
|
3831
3977
|
sizeEncrypted: bigint | null;
|
|
3832
3978
|
md5Encrypted: string | null;
|
|
3833
3979
|
validatedAt: Date | null;
|
|
3980
|
+
restoreSince: Date | null;
|
|
3834
3981
|
access: {
|
|
3835
3982
|
key: string | null;
|
|
3836
3983
|
sharedByPubKey: string;
|
|
@@ -3839,14 +3986,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
3839
3986
|
history: {
|
|
3840
3987
|
id: string;
|
|
3841
3988
|
createdAt: Date;
|
|
3989
|
+
storageType: "s3" | "cold" | "lite";
|
|
3842
3990
|
size: bigint;
|
|
3843
3991
|
md5: string;
|
|
3844
3992
|
userAppUserId: string;
|
|
3845
3993
|
userAppAppId: string;
|
|
3846
|
-
storageType: "s3" | "lite";
|
|
3847
3994
|
sizeEncrypted: bigint | null;
|
|
3848
3995
|
md5Encrypted: string | null;
|
|
3849
3996
|
validatedAt: Date | null;
|
|
3997
|
+
restoreSince: Date | null;
|
|
3850
3998
|
access: {
|
|
3851
3999
|
key: string | null;
|
|
3852
4000
|
sharedByPubKey: string;
|
|
@@ -4464,14 +4612,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4464
4612
|
current: {
|
|
4465
4613
|
id: string;
|
|
4466
4614
|
createdAt: Date;
|
|
4615
|
+
storageType: "s3" | "cold" | "lite";
|
|
4467
4616
|
size: bigint;
|
|
4468
4617
|
md5: string;
|
|
4469
4618
|
userAppUserId: string;
|
|
4470
4619
|
userAppAppId: string;
|
|
4471
|
-
storageType: "s3" | "lite";
|
|
4472
4620
|
sizeEncrypted: bigint | null;
|
|
4473
4621
|
md5Encrypted: string | null;
|
|
4474
4622
|
validatedAt: Date | null;
|
|
4623
|
+
restoreSince: Date | null;
|
|
4475
4624
|
access: {
|
|
4476
4625
|
key: string | null;
|
|
4477
4626
|
sharedByPubKey: string;
|
|
@@ -4480,14 +4629,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4480
4629
|
history: {
|
|
4481
4630
|
id: string;
|
|
4482
4631
|
createdAt: Date;
|
|
4632
|
+
storageType: "s3" | "cold" | "lite";
|
|
4483
4633
|
size: bigint;
|
|
4484
4634
|
md5: string;
|
|
4485
4635
|
userAppUserId: string;
|
|
4486
4636
|
userAppAppId: string;
|
|
4487
|
-
storageType: "s3" | "lite";
|
|
4488
4637
|
sizeEncrypted: bigint | null;
|
|
4489
4638
|
md5Encrypted: string | null;
|
|
4490
4639
|
validatedAt: Date | null;
|
|
4640
|
+
restoreSince: Date | null;
|
|
4491
4641
|
access: {
|
|
4492
4642
|
key: string | null;
|
|
4493
4643
|
sharedByPubKey: string;
|
|
@@ -4609,14 +4759,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4609
4759
|
current: {
|
|
4610
4760
|
id: string;
|
|
4611
4761
|
createdAt: Date;
|
|
4762
|
+
storageType: "s3" | "cold" | "lite";
|
|
4612
4763
|
size: bigint;
|
|
4613
4764
|
md5: string;
|
|
4614
4765
|
userAppUserId: string;
|
|
4615
4766
|
userAppAppId: string;
|
|
4616
|
-
storageType: "s3" | "lite";
|
|
4617
4767
|
sizeEncrypted: bigint | null;
|
|
4618
4768
|
md5Encrypted: string | null;
|
|
4619
4769
|
validatedAt: Date | null;
|
|
4770
|
+
restoreSince: Date | null;
|
|
4620
4771
|
access: {
|
|
4621
4772
|
key: string | null;
|
|
4622
4773
|
sharedByPubKey: string;
|
|
@@ -4625,14 +4776,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4625
4776
|
history: {
|
|
4626
4777
|
id: string;
|
|
4627
4778
|
createdAt: Date;
|
|
4779
|
+
storageType: "s3" | "cold" | "lite";
|
|
4628
4780
|
size: bigint;
|
|
4629
4781
|
md5: string;
|
|
4630
4782
|
userAppUserId: string;
|
|
4631
4783
|
userAppAppId: string;
|
|
4632
|
-
storageType: "s3" | "lite";
|
|
4633
4784
|
sizeEncrypted: bigint | null;
|
|
4634
4785
|
md5Encrypted: string | null;
|
|
4635
4786
|
validatedAt: Date | null;
|
|
4787
|
+
restoreSince: Date | null;
|
|
4636
4788
|
access: {
|
|
4637
4789
|
key: string | null;
|
|
4638
4790
|
sharedByPubKey: string;
|
|
@@ -5230,14 +5382,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5230
5382
|
current: {
|
|
5231
5383
|
id: string;
|
|
5232
5384
|
createdAt: Date;
|
|
5385
|
+
storageType: "s3" | "cold" | "lite";
|
|
5233
5386
|
size: bigint;
|
|
5234
5387
|
md5: string;
|
|
5235
5388
|
userAppUserId: string;
|
|
5236
5389
|
userAppAppId: string;
|
|
5237
|
-
storageType: "s3" | "lite";
|
|
5238
5390
|
sizeEncrypted: bigint | null;
|
|
5239
5391
|
md5Encrypted: string | null;
|
|
5240
5392
|
validatedAt: Date | null;
|
|
5393
|
+
restoreSince: Date | null;
|
|
5241
5394
|
access: {
|
|
5242
5395
|
key: string | null;
|
|
5243
5396
|
sharedByPubKey: string;
|
|
@@ -5246,14 +5399,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5246
5399
|
history: {
|
|
5247
5400
|
id: string;
|
|
5248
5401
|
createdAt: Date;
|
|
5402
|
+
storageType: "s3" | "cold" | "lite";
|
|
5249
5403
|
size: bigint;
|
|
5250
5404
|
md5: string;
|
|
5251
5405
|
userAppUserId: string;
|
|
5252
5406
|
userAppAppId: string;
|
|
5253
|
-
storageType: "s3" | "lite";
|
|
5254
5407
|
sizeEncrypted: bigint | null;
|
|
5255
5408
|
md5Encrypted: string | null;
|
|
5256
5409
|
validatedAt: Date | null;
|
|
5410
|
+
restoreSince: Date | null;
|
|
5257
5411
|
access: {
|
|
5258
5412
|
key: string | null;
|
|
5259
5413
|
sharedByPubKey: string;
|
|
@@ -5375,14 +5529,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5375
5529
|
current: {
|
|
5376
5530
|
id: string;
|
|
5377
5531
|
createdAt: Date;
|
|
5532
|
+
storageType: "s3" | "cold" | "lite";
|
|
5378
5533
|
size: bigint;
|
|
5379
5534
|
md5: string;
|
|
5380
5535
|
userAppUserId: string;
|
|
5381
5536
|
userAppAppId: string;
|
|
5382
|
-
storageType: "s3" | "lite";
|
|
5383
5537
|
sizeEncrypted: bigint | null;
|
|
5384
5538
|
md5Encrypted: string | null;
|
|
5385
5539
|
validatedAt: Date | null;
|
|
5540
|
+
restoreSince: Date | null;
|
|
5386
5541
|
access: {
|
|
5387
5542
|
key: string | null;
|
|
5388
5543
|
sharedByPubKey: string;
|
|
@@ -5391,14 +5546,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5391
5546
|
history: {
|
|
5392
5547
|
id: string;
|
|
5393
5548
|
createdAt: Date;
|
|
5549
|
+
storageType: "s3" | "cold" | "lite";
|
|
5394
5550
|
size: bigint;
|
|
5395
5551
|
md5: string;
|
|
5396
5552
|
userAppUserId: string;
|
|
5397
5553
|
userAppAppId: string;
|
|
5398
|
-
storageType: "s3" | "lite";
|
|
5399
5554
|
sizeEncrypted: bigint | null;
|
|
5400
5555
|
md5Encrypted: string | null;
|
|
5401
5556
|
validatedAt: Date | null;
|
|
5557
|
+
restoreSince: Date | null;
|
|
5402
5558
|
access: {
|
|
5403
5559
|
key: string | null;
|
|
5404
5560
|
sharedByPubKey: string;
|