@secrecy/trpc-api-types 1.33.0-dev.34 → 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.
Files changed (2) hide show
  1. package/dist/index.d.cts +214 -42
  2. 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,9 +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;
2582
+ sizeEncrypted: bigint | null;
2574
2583
  md5Encrypted: string | null;
2575
- totalSize: bigint;
2576
2584
  senderPublicKey: string;
2577
2585
  maybeParts: {
2578
2586
  md5: string;
@@ -2584,9 +2592,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2584
2592
  id: string;
2585
2593
  type: "sent_mail";
2586
2594
  key: string | null;
2595
+ storageType: "s3" | "cold" | "lite";
2596
+ size: bigint;
2587
2597
  md5: string;
2598
+ sizeEncrypted: bigint | null;
2588
2599
  md5Encrypted: string | null;
2589
- totalSize: bigint;
2590
2600
  maybeParts: {
2591
2601
  md5: string;
2592
2602
  order: number;
@@ -2597,7 +2607,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2597
2607
  id: string;
2598
2608
  type: "cloud";
2599
2609
  key: string | null;
2610
+ storageType: "s3" | "cold";
2611
+ size: bigint;
2600
2612
  md5: string;
2613
+ sizeEncrypted: bigint | null;
2601
2614
  md5Encrypted: string | null;
2602
2615
  parts: {
2603
2616
  md5: string;
@@ -2605,24 +2618,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2605
2618
  contentUrl: string;
2606
2619
  }[];
2607
2620
  publicKey: string;
2608
- totalSize: bigint;
2609
2621
  } | {
2610
2622
  id: string;
2611
2623
  type: "lite";
2612
2624
  key: string | null;
2625
+ storageType: "lite";
2626
+ size: bigint;
2613
2627
  md5: string;
2628
+ sizeEncrypted: bigint | null;
2614
2629
  md5Encrypted: string | null;
2615
2630
  content: Buffer;
2616
2631
  publicKey: string;
2617
- totalSize: bigint;
2618
2632
  };
2619
2633
  _output_out: {
2620
2634
  id: string;
2621
2635
  type: "received_mail";
2622
2636
  key: string | null;
2637
+ storageType: "s3" | "cold" | "lite";
2638
+ size: bigint;
2623
2639
  md5: string;
2640
+ sizeEncrypted: bigint | null;
2624
2641
  md5Encrypted: string | null;
2625
- totalSize: bigint;
2626
2642
  senderPublicKey: string;
2627
2643
  maybeParts: {
2628
2644
  md5: string;
@@ -2634,9 +2650,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2634
2650
  id: string;
2635
2651
  type: "sent_mail";
2636
2652
  key: string | null;
2653
+ storageType: "s3" | "cold" | "lite";
2654
+ size: bigint;
2637
2655
  md5: string;
2656
+ sizeEncrypted: bigint | null;
2638
2657
  md5Encrypted: string | null;
2639
- totalSize: bigint;
2640
2658
  maybeParts: {
2641
2659
  md5: string;
2642
2660
  order: number;
@@ -2647,7 +2665,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2647
2665
  id: string;
2648
2666
  type: "cloud";
2649
2667
  key: string | null;
2668
+ storageType: "s3" | "cold";
2669
+ size: bigint;
2650
2670
  md5: string;
2671
+ sizeEncrypted: bigint | null;
2651
2672
  md5Encrypted: string | null;
2652
2673
  parts: {
2653
2674
  md5: string;
@@ -2655,16 +2676,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2655
2676
  contentUrl: string;
2656
2677
  }[];
2657
2678
  publicKey: string;
2658
- totalSize: bigint;
2659
2679
  } | {
2660
2680
  id: string;
2661
2681
  type: "lite";
2662
2682
  key: string | null;
2683
+ storageType: "lite";
2684
+ size: bigint;
2663
2685
  md5: string;
2686
+ sizeEncrypted: bigint | null;
2664
2687
  md5Encrypted: string | null;
2665
2688
  content: Buffer;
2666
2689
  publicKey: string;
2667
- totalSize: bigint;
2668
2690
  };
2669
2691
  }, unknown>;
2670
2692
  dataContentByIds: _trpc_server.BuildProcedure<"query", {
@@ -2700,9 +2722,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2700
2722
  id: string;
2701
2723
  type: "received_mail";
2702
2724
  key: string | null;
2725
+ storageType: "s3" | "cold" | "lite";
2726
+ size: bigint;
2703
2727
  md5: string;
2728
+ sizeEncrypted: bigint | null;
2704
2729
  md5Encrypted: string | null;
2705
- totalSize: bigint;
2706
2730
  senderPublicKey: string;
2707
2731
  maybeParts: {
2708
2732
  md5: string;
@@ -2714,9 +2738,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2714
2738
  id: string;
2715
2739
  type: "sent_mail";
2716
2740
  key: string | null;
2741
+ storageType: "s3" | "cold" | "lite";
2742
+ size: bigint;
2717
2743
  md5: string;
2744
+ sizeEncrypted: bigint | null;
2718
2745
  md5Encrypted: string | null;
2719
- totalSize: bigint;
2720
2746
  maybeParts: {
2721
2747
  md5: string;
2722
2748
  order: number;
@@ -2727,7 +2753,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2727
2753
  id: string;
2728
2754
  type: "cloud";
2729
2755
  key: string | null;
2756
+ storageType: "s3" | "cold";
2757
+ size: bigint;
2730
2758
  md5: string;
2759
+ sizeEncrypted: bigint | null;
2731
2760
  md5Encrypted: string | null;
2732
2761
  parts: {
2733
2762
  md5: string;
@@ -2735,24 +2764,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2735
2764
  contentUrl: string;
2736
2765
  }[];
2737
2766
  publicKey: string;
2738
- totalSize: bigint;
2739
2767
  } | {
2740
2768
  id: string;
2741
2769
  type: "lite";
2742
2770
  key: string | null;
2771
+ storageType: "lite";
2772
+ size: bigint;
2743
2773
  md5: string;
2774
+ sizeEncrypted: bigint | null;
2744
2775
  md5Encrypted: string | null;
2745
2776
  content: Buffer;
2746
2777
  publicKey: string;
2747
- totalSize: bigint;
2748
2778
  })[];
2749
2779
  _output_out: ({
2750
2780
  id: string;
2751
2781
  type: "received_mail";
2752
2782
  key: string | null;
2783
+ storageType: "s3" | "cold" | "lite";
2784
+ size: bigint;
2753
2785
  md5: string;
2786
+ sizeEncrypted: bigint | null;
2754
2787
  md5Encrypted: string | null;
2755
- totalSize: bigint;
2756
2788
  senderPublicKey: string;
2757
2789
  maybeParts: {
2758
2790
  md5: string;
@@ -2764,9 +2796,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2764
2796
  id: string;
2765
2797
  type: "sent_mail";
2766
2798
  key: string | null;
2799
+ storageType: "s3" | "cold" | "lite";
2800
+ size: bigint;
2767
2801
  md5: string;
2802
+ sizeEncrypted: bigint | null;
2768
2803
  md5Encrypted: string | null;
2769
- totalSize: bigint;
2770
2804
  maybeParts: {
2771
2805
  md5: string;
2772
2806
  order: number;
@@ -2777,7 +2811,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2777
2811
  id: string;
2778
2812
  type: "cloud";
2779
2813
  key: string | null;
2814
+ storageType: "s3" | "cold";
2815
+ size: bigint;
2780
2816
  md5: string;
2817
+ sizeEncrypted: bigint | null;
2781
2818
  md5Encrypted: string | null;
2782
2819
  parts: {
2783
2820
  md5: string;
@@ -2785,16 +2822,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2785
2822
  contentUrl: string;
2786
2823
  }[];
2787
2824
  publicKey: string;
2788
- totalSize: bigint;
2789
2825
  } | {
2790
2826
  id: string;
2791
2827
  type: "lite";
2792
2828
  key: string | null;
2829
+ storageType: "lite";
2830
+ size: bigint;
2793
2831
  md5: string;
2832
+ sizeEncrypted: bigint | null;
2794
2833
  md5Encrypted: string | null;
2795
2834
  content: Buffer;
2796
2835
  publicKey: string;
2797
- totalSize: bigint;
2798
2836
  })[];
2799
2837
  }, unknown>;
2800
2838
  dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2829,6 +2867,48 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2829
2867
  _output_in: any[];
2830
2868
  _output_out: any[];
2831
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>;
2832
2912
  saveInCloud: _trpc_server.BuildProcedure<"mutation", {
2833
2913
  _config: _trpc_server.RootConfig<{
2834
2914
  ctx: {};
@@ -2906,14 +2986,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2906
2986
  current: {
2907
2987
  id: string;
2908
2988
  createdAt: Date;
2989
+ storageType: "s3" | "cold" | "lite";
2909
2990
  size: bigint;
2910
2991
  md5: string;
2911
2992
  userAppUserId: string;
2912
2993
  userAppAppId: string;
2913
- storageType: "s3" | "lite";
2914
2994
  sizeEncrypted: bigint | null;
2915
2995
  md5Encrypted: string | null;
2916
2996
  validatedAt: Date | null;
2997
+ restoreSince: Date | null;
2917
2998
  access: {
2918
2999
  key: string | null;
2919
3000
  sharedByPubKey: string;
@@ -2922,14 +3003,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2922
3003
  history: {
2923
3004
  id: string;
2924
3005
  createdAt: Date;
3006
+ storageType: "s3" | "cold" | "lite";
2925
3007
  size: bigint;
2926
3008
  md5: string;
2927
3009
  userAppUserId: string;
2928
3010
  userAppAppId: string;
2929
- storageType: "s3" | "lite";
2930
3011
  sizeEncrypted: bigint | null;
2931
3012
  md5Encrypted: string | null;
2932
3013
  validatedAt: Date | null;
3014
+ restoreSince: Date | null;
2933
3015
  access: {
2934
3016
  key: string | null;
2935
3017
  sharedByPubKey: string;
@@ -3051,14 +3133,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3051
3133
  current: {
3052
3134
  id: string;
3053
3135
  createdAt: Date;
3136
+ storageType: "s3" | "cold" | "lite";
3054
3137
  size: bigint;
3055
3138
  md5: string;
3056
3139
  userAppUserId: string;
3057
3140
  userAppAppId: string;
3058
- storageType: "s3" | "lite";
3059
3141
  sizeEncrypted: bigint | null;
3060
3142
  md5Encrypted: string | null;
3061
3143
  validatedAt: Date | null;
3144
+ restoreSince: Date | null;
3062
3145
  access: {
3063
3146
  key: string | null;
3064
3147
  sharedByPubKey: string;
@@ -3067,14 +3150,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3067
3150
  history: {
3068
3151
  id: string;
3069
3152
  createdAt: Date;
3153
+ storageType: "s3" | "cold" | "lite";
3070
3154
  size: bigint;
3071
3155
  md5: string;
3072
3156
  userAppUserId: string;
3073
3157
  userAppAppId: string;
3074
- storageType: "s3" | "lite";
3075
3158
  sizeEncrypted: bigint | null;
3076
3159
  md5Encrypted: string | null;
3077
3160
  validatedAt: Date | null;
3161
+ restoreSince: Date | null;
3078
3162
  access: {
3079
3163
  key: string | null;
3080
3164
  sharedByPubKey: string;
@@ -3250,14 +3334,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3250
3334
  history: {
3251
3335
  createdAt: Date;
3252
3336
  dataId: string;
3337
+ storageType: "s3" | "cold" | "lite";
3253
3338
  size: bigint;
3254
- storageType: "s3" | "lite";
3255
3339
  }[];
3256
3340
  access: {
3257
3341
  appId: string;
3258
3342
  nameKey: string;
3259
3343
  };
3260
- totalSize: bigint;
3261
3344
  breadcrumb: {
3262
3345
  name: string;
3263
3346
  id: string;
@@ -3265,6 +3348,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3265
3348
  pubKey: string;
3266
3349
  }[];
3267
3350
  sharedCount: number;
3351
+ totalSize: bigint;
3268
3352
  }[];
3269
3353
  };
3270
3354
  pagination: {
@@ -3291,14 +3375,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3291
3375
  history: {
3292
3376
  createdAt: Date;
3293
3377
  dataId: string;
3378
+ storageType: "s3" | "cold" | "lite";
3294
3379
  size: bigint;
3295
- storageType: "s3" | "lite";
3296
3380
  }[];
3297
3381
  access: {
3298
3382
  appId: string;
3299
3383
  nameKey: string;
3300
3384
  };
3301
- totalSize: bigint;
3302
3385
  breadcrumb: {
3303
3386
  name: string;
3304
3387
  id: string;
@@ -3306,6 +3389,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3306
3389
  pubKey: string;
3307
3390
  }[];
3308
3391
  sharedCount: number;
3392
+ totalSize: bigint;
3309
3393
  }[];
3310
3394
  };
3311
3395
  pagination: {
@@ -3481,6 +3565,82 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3481
3565
  partSize: bigint;
3482
3566
  };
3483
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>;
3484
3644
  uploadLiteData: _trpc_server.BuildProcedure<"mutation", {
3485
3645
  _config: _trpc_server.RootConfig<{
3486
3646
  ctx: {};
@@ -3662,14 +3822,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3662
3822
  current: {
3663
3823
  id: string;
3664
3824
  createdAt: Date;
3825
+ storageType: "s3" | "cold" | "lite";
3665
3826
  size: bigint;
3666
3827
  md5: string;
3667
3828
  userAppUserId: string;
3668
3829
  userAppAppId: string;
3669
- storageType: "s3" | "lite";
3670
3830
  sizeEncrypted: bigint | null;
3671
3831
  md5Encrypted: string | null;
3672
3832
  validatedAt: Date | null;
3833
+ restoreSince: Date | null;
3673
3834
  access: {
3674
3835
  key: string | null;
3675
3836
  sharedByPubKey: string;
@@ -3678,14 +3839,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3678
3839
  history: {
3679
3840
  id: string;
3680
3841
  createdAt: Date;
3842
+ storageType: "s3" | "cold" | "lite";
3681
3843
  size: bigint;
3682
3844
  md5: string;
3683
3845
  userAppUserId: string;
3684
3846
  userAppAppId: string;
3685
- storageType: "s3" | "lite";
3686
3847
  sizeEncrypted: bigint | null;
3687
3848
  md5Encrypted: string | null;
3688
3849
  validatedAt: Date | null;
3850
+ restoreSince: Date | null;
3689
3851
  access: {
3690
3852
  key: string | null;
3691
3853
  sharedByPubKey: string;
@@ -3807,14 +3969,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3807
3969
  current: {
3808
3970
  id: string;
3809
3971
  createdAt: Date;
3972
+ storageType: "s3" | "cold" | "lite";
3810
3973
  size: bigint;
3811
3974
  md5: string;
3812
3975
  userAppUserId: string;
3813
3976
  userAppAppId: string;
3814
- storageType: "s3" | "lite";
3815
3977
  sizeEncrypted: bigint | null;
3816
3978
  md5Encrypted: string | null;
3817
3979
  validatedAt: Date | null;
3980
+ restoreSince: Date | null;
3818
3981
  access: {
3819
3982
  key: string | null;
3820
3983
  sharedByPubKey: string;
@@ -3823,14 +3986,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3823
3986
  history: {
3824
3987
  id: string;
3825
3988
  createdAt: Date;
3989
+ storageType: "s3" | "cold" | "lite";
3826
3990
  size: bigint;
3827
3991
  md5: string;
3828
3992
  userAppUserId: string;
3829
3993
  userAppAppId: string;
3830
- storageType: "s3" | "lite";
3831
3994
  sizeEncrypted: bigint | null;
3832
3995
  md5Encrypted: string | null;
3833
3996
  validatedAt: Date | null;
3997
+ restoreSince: Date | null;
3834
3998
  access: {
3835
3999
  key: string | null;
3836
4000
  sharedByPubKey: string;
@@ -4448,14 +4612,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4448
4612
  current: {
4449
4613
  id: string;
4450
4614
  createdAt: Date;
4615
+ storageType: "s3" | "cold" | "lite";
4451
4616
  size: bigint;
4452
4617
  md5: string;
4453
4618
  userAppUserId: string;
4454
4619
  userAppAppId: string;
4455
- storageType: "s3" | "lite";
4456
4620
  sizeEncrypted: bigint | null;
4457
4621
  md5Encrypted: string | null;
4458
4622
  validatedAt: Date | null;
4623
+ restoreSince: Date | null;
4459
4624
  access: {
4460
4625
  key: string | null;
4461
4626
  sharedByPubKey: string;
@@ -4464,14 +4629,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4464
4629
  history: {
4465
4630
  id: string;
4466
4631
  createdAt: Date;
4632
+ storageType: "s3" | "cold" | "lite";
4467
4633
  size: bigint;
4468
4634
  md5: string;
4469
4635
  userAppUserId: string;
4470
4636
  userAppAppId: string;
4471
- storageType: "s3" | "lite";
4472
4637
  sizeEncrypted: bigint | null;
4473
4638
  md5Encrypted: string | null;
4474
4639
  validatedAt: Date | null;
4640
+ restoreSince: Date | null;
4475
4641
  access: {
4476
4642
  key: string | null;
4477
4643
  sharedByPubKey: string;
@@ -4593,14 +4759,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4593
4759
  current: {
4594
4760
  id: string;
4595
4761
  createdAt: Date;
4762
+ storageType: "s3" | "cold" | "lite";
4596
4763
  size: bigint;
4597
4764
  md5: string;
4598
4765
  userAppUserId: string;
4599
4766
  userAppAppId: string;
4600
- storageType: "s3" | "lite";
4601
4767
  sizeEncrypted: bigint | null;
4602
4768
  md5Encrypted: string | null;
4603
4769
  validatedAt: Date | null;
4770
+ restoreSince: Date | null;
4604
4771
  access: {
4605
4772
  key: string | null;
4606
4773
  sharedByPubKey: string;
@@ -4609,14 +4776,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4609
4776
  history: {
4610
4777
  id: string;
4611
4778
  createdAt: Date;
4779
+ storageType: "s3" | "cold" | "lite";
4612
4780
  size: bigint;
4613
4781
  md5: string;
4614
4782
  userAppUserId: string;
4615
4783
  userAppAppId: string;
4616
- storageType: "s3" | "lite";
4617
4784
  sizeEncrypted: bigint | null;
4618
4785
  md5Encrypted: string | null;
4619
4786
  validatedAt: Date | null;
4787
+ restoreSince: Date | null;
4620
4788
  access: {
4621
4789
  key: string | null;
4622
4790
  sharedByPubKey: string;
@@ -5214,14 +5382,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5214
5382
  current: {
5215
5383
  id: string;
5216
5384
  createdAt: Date;
5385
+ storageType: "s3" | "cold" | "lite";
5217
5386
  size: bigint;
5218
5387
  md5: string;
5219
5388
  userAppUserId: string;
5220
5389
  userAppAppId: string;
5221
- storageType: "s3" | "lite";
5222
5390
  sizeEncrypted: bigint | null;
5223
5391
  md5Encrypted: string | null;
5224
5392
  validatedAt: Date | null;
5393
+ restoreSince: Date | null;
5225
5394
  access: {
5226
5395
  key: string | null;
5227
5396
  sharedByPubKey: string;
@@ -5230,14 +5399,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5230
5399
  history: {
5231
5400
  id: string;
5232
5401
  createdAt: Date;
5402
+ storageType: "s3" | "cold" | "lite";
5233
5403
  size: bigint;
5234
5404
  md5: string;
5235
5405
  userAppUserId: string;
5236
5406
  userAppAppId: string;
5237
- storageType: "s3" | "lite";
5238
5407
  sizeEncrypted: bigint | null;
5239
5408
  md5Encrypted: string | null;
5240
5409
  validatedAt: Date | null;
5410
+ restoreSince: Date | null;
5241
5411
  access: {
5242
5412
  key: string | null;
5243
5413
  sharedByPubKey: string;
@@ -5359,14 +5529,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5359
5529
  current: {
5360
5530
  id: string;
5361
5531
  createdAt: Date;
5532
+ storageType: "s3" | "cold" | "lite";
5362
5533
  size: bigint;
5363
5534
  md5: string;
5364
5535
  userAppUserId: string;
5365
5536
  userAppAppId: string;
5366
- storageType: "s3" | "lite";
5367
5537
  sizeEncrypted: bigint | null;
5368
5538
  md5Encrypted: string | null;
5369
5539
  validatedAt: Date | null;
5540
+ restoreSince: Date | null;
5370
5541
  access: {
5371
5542
  key: string | null;
5372
5543
  sharedByPubKey: string;
@@ -5375,14 +5546,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5375
5546
  history: {
5376
5547
  id: string;
5377
5548
  createdAt: Date;
5549
+ storageType: "s3" | "cold" | "lite";
5378
5550
  size: bigint;
5379
5551
  md5: string;
5380
5552
  userAppUserId: string;
5381
5553
  userAppAppId: string;
5382
- storageType: "s3" | "lite";
5383
5554
  sizeEncrypted: bigint | null;
5384
5555
  md5Encrypted: string | null;
5385
5556
  validatedAt: Date | null;
5557
+ restoreSince: Date | null;
5386
5558
  access: {
5387
5559
  key: string | null;
5388
5560
  sharedByPubKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-dev.34",
3
+ "version": "1.33.0-dev.36",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"