@secrecy/trpc-api-types 1.33.0-dev.35 → 1.33.0-dev.37

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 +446 -58
  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,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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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
- storageType: "s3" | "lite";
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" | "lite";
2896
+ };
2897
+ _input_out: {
2898
+ dataId: string;
2899
+ storageType: "s3" | "cold" | "lite";
2900
+ };
2901
+ _output_in: {
2902
+ isMoved: boolean;
2903
+ fromType: "s3" | "cold" | "lite";
2904
+ toType: "s3" | "cold" | "lite";
2905
+ };
2906
+ _output_out: {
2907
+ isMoved: boolean;
2908
+ fromType: "s3" | "cold" | "lite";
2909
+ toType: "s3" | "cold" | "lite";
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: {};
@@ -3605,6 +3749,238 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3605
3749
  isReported: boolean;
3606
3750
  };
3607
3751
  }, unknown>;
3752
+ dataLink: _trpc_server.BuildProcedure<"query", {
3753
+ _config: _trpc_server.RootConfig<{
3754
+ ctx: {};
3755
+ meta: object;
3756
+ errorShape: {
3757
+ message: string;
3758
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3759
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3760
+ } | {
3761
+ data: {
3762
+ zodError: zod.typeToFlattenedError<any, string> | null;
3763
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3764
+ httpStatus: number;
3765
+ path?: string;
3766
+ stack?: string;
3767
+ };
3768
+ message: string;
3769
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3770
+ };
3771
+ transformer: typeof superjson.default;
3772
+ }>;
3773
+ _meta: object;
3774
+ _ctx_out: {};
3775
+ _input_in: {
3776
+ id: string;
3777
+ };
3778
+ _input_out: {
3779
+ id: string;
3780
+ };
3781
+ _output_in: {
3782
+ name: string;
3783
+ id: string;
3784
+ dataId: string;
3785
+ expireAt: Date | null;
3786
+ slug: string;
3787
+ };
3788
+ _output_out: {
3789
+ name: string;
3790
+ id: string;
3791
+ dataId: string;
3792
+ expireAt: Date | null;
3793
+ slug: string;
3794
+ };
3795
+ }, unknown>;
3796
+ dataLinks: _trpc_server.BuildProcedure<"query", {
3797
+ _config: _trpc_server.RootConfig<{
3798
+ ctx: {};
3799
+ meta: object;
3800
+ errorShape: {
3801
+ message: string;
3802
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3803
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3804
+ } | {
3805
+ data: {
3806
+ zodError: zod.typeToFlattenedError<any, string> | null;
3807
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3808
+ httpStatus: number;
3809
+ path?: string;
3810
+ stack?: string;
3811
+ };
3812
+ message: string;
3813
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3814
+ };
3815
+ transformer: typeof superjson.default;
3816
+ }>;
3817
+ _meta: object;
3818
+ _ctx_out: {};
3819
+ _input_in: {
3820
+ dataIds?: string[] | undefined;
3821
+ };
3822
+ _input_out: {
3823
+ dataIds?: string[] | undefined;
3824
+ };
3825
+ _output_in: {
3826
+ name: string;
3827
+ id: string;
3828
+ dataId: string;
3829
+ expireAt: Date | null;
3830
+ slug: string;
3831
+ }[];
3832
+ _output_out: {
3833
+ name: string;
3834
+ id: string;
3835
+ dataId: string;
3836
+ expireAt: Date | null;
3837
+ slug: string;
3838
+ }[];
3839
+ }, unknown>;
3840
+ createDataLink: _trpc_server.BuildProcedure<"mutation", {
3841
+ _config: _trpc_server.RootConfig<{
3842
+ ctx: {};
3843
+ meta: object;
3844
+ errorShape: {
3845
+ message: string;
3846
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3847
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3848
+ } | {
3849
+ data: {
3850
+ zodError: zod.typeToFlattenedError<any, string> | null;
3851
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3852
+ httpStatus: number;
3853
+ path?: string;
3854
+ stack?: string;
3855
+ };
3856
+ message: string;
3857
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3858
+ };
3859
+ transformer: typeof superjson.default;
3860
+ }>;
3861
+ _meta: object;
3862
+ _ctx_out: {};
3863
+ _input_in: {
3864
+ name: string;
3865
+ dataId: string;
3866
+ expireAt: Date | null;
3867
+ };
3868
+ _input_out: {
3869
+ name: string;
3870
+ dataId: string;
3871
+ expireAt: Date | null;
3872
+ };
3873
+ _output_in: {
3874
+ name: string;
3875
+ id: string;
3876
+ dataId: string;
3877
+ expireAt: Date | null;
3878
+ slug: string;
3879
+ };
3880
+ _output_out: {
3881
+ name: string;
3882
+ id: string;
3883
+ dataId: string;
3884
+ expireAt: Date | null;
3885
+ slug: string;
3886
+ };
3887
+ }, unknown>;
3888
+ updateDataLink: _trpc_server.BuildProcedure<"mutation", {
3889
+ _config: _trpc_server.RootConfig<{
3890
+ ctx: {};
3891
+ meta: object;
3892
+ errorShape: {
3893
+ message: string;
3894
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3895
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3896
+ } | {
3897
+ data: {
3898
+ zodError: zod.typeToFlattenedError<any, string> | null;
3899
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3900
+ httpStatus: number;
3901
+ path?: string;
3902
+ stack?: string;
3903
+ };
3904
+ message: string;
3905
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3906
+ };
3907
+ transformer: typeof superjson.default;
3908
+ }>;
3909
+ _meta: object;
3910
+ _ctx_out: {};
3911
+ _input_in: {
3912
+ id: string;
3913
+ } & {
3914
+ name?: string | undefined;
3915
+ expireAt?: Date | null | undefined;
3916
+ slug?: string | undefined;
3917
+ };
3918
+ _input_out: {
3919
+ id: string;
3920
+ } & {
3921
+ name?: string | undefined;
3922
+ expireAt?: Date | null | undefined;
3923
+ slug?: string | undefined;
3924
+ };
3925
+ _output_in: {
3926
+ name: string;
3927
+ id: string;
3928
+ dataId: string;
3929
+ expireAt: Date | null;
3930
+ slug: string;
3931
+ };
3932
+ _output_out: {
3933
+ name: string;
3934
+ id: string;
3935
+ dataId: string;
3936
+ expireAt: Date | null;
3937
+ slug: string;
3938
+ };
3939
+ }, unknown>;
3940
+ deleteDataLink: _trpc_server.BuildProcedure<"mutation", {
3941
+ _config: _trpc_server.RootConfig<{
3942
+ ctx: {};
3943
+ meta: object;
3944
+ errorShape: {
3945
+ message: string;
3946
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3947
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3948
+ } | {
3949
+ data: {
3950
+ zodError: zod.typeToFlattenedError<any, string> | null;
3951
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3952
+ httpStatus: number;
3953
+ path?: string;
3954
+ stack?: string;
3955
+ };
3956
+ message: string;
3957
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3958
+ };
3959
+ transformer: typeof superjson.default;
3960
+ }>;
3961
+ _meta: object;
3962
+ _ctx_out: {};
3963
+ _input_in: {
3964
+ id: string;
3965
+ };
3966
+ _input_out: {
3967
+ id: string;
3968
+ };
3969
+ _output_in: {
3970
+ name: string;
3971
+ id: string;
3972
+ dataId: string;
3973
+ expireAt: Date | null;
3974
+ slug: string;
3975
+ };
3976
+ _output_out: {
3977
+ name: string;
3978
+ id: string;
3979
+ dataId: string;
3980
+ expireAt: Date | null;
3981
+ slug: string;
3982
+ };
3983
+ }, unknown>;
3608
3984
  createFolder: _trpc_server.BuildProcedure<"mutation", {
3609
3985
  _config: _trpc_server.RootConfig<{
3610
3986
  ctx: {};
@@ -3678,14 +4054,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3678
4054
  current: {
3679
4055
  id: string;
3680
4056
  createdAt: Date;
4057
+ storageType: "s3" | "cold" | "lite";
3681
4058
  size: bigint;
3682
4059
  md5: string;
3683
4060
  userAppUserId: string;
3684
4061
  userAppAppId: string;
3685
- storageType: "s3" | "lite";
3686
4062
  sizeEncrypted: bigint | null;
3687
4063
  md5Encrypted: string | null;
3688
4064
  validatedAt: Date | null;
4065
+ restoreSince: Date | null;
3689
4066
  access: {
3690
4067
  key: string | null;
3691
4068
  sharedByPubKey: string;
@@ -3694,14 +4071,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3694
4071
  history: {
3695
4072
  id: string;
3696
4073
  createdAt: Date;
4074
+ storageType: "s3" | "cold" | "lite";
3697
4075
  size: bigint;
3698
4076
  md5: string;
3699
4077
  userAppUserId: string;
3700
4078
  userAppAppId: string;
3701
- storageType: "s3" | "lite";
3702
4079
  sizeEncrypted: bigint | null;
3703
4080
  md5Encrypted: string | null;
3704
4081
  validatedAt: Date | null;
4082
+ restoreSince: Date | null;
3705
4083
  access: {
3706
4084
  key: string | null;
3707
4085
  sharedByPubKey: string;
@@ -3823,14 +4201,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3823
4201
  current: {
3824
4202
  id: string;
3825
4203
  createdAt: Date;
4204
+ storageType: "s3" | "cold" | "lite";
3826
4205
  size: bigint;
3827
4206
  md5: string;
3828
4207
  userAppUserId: string;
3829
4208
  userAppAppId: string;
3830
- storageType: "s3" | "lite";
3831
4209
  sizeEncrypted: bigint | null;
3832
4210
  md5Encrypted: string | null;
3833
4211
  validatedAt: Date | null;
4212
+ restoreSince: Date | null;
3834
4213
  access: {
3835
4214
  key: string | null;
3836
4215
  sharedByPubKey: string;
@@ -3839,14 +4218,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3839
4218
  history: {
3840
4219
  id: string;
3841
4220
  createdAt: Date;
4221
+ storageType: "s3" | "cold" | "lite";
3842
4222
  size: bigint;
3843
4223
  md5: string;
3844
4224
  userAppUserId: string;
3845
4225
  userAppAppId: string;
3846
- storageType: "s3" | "lite";
3847
4226
  sizeEncrypted: bigint | null;
3848
4227
  md5Encrypted: string | null;
3849
4228
  validatedAt: Date | null;
4229
+ restoreSince: Date | null;
3850
4230
  access: {
3851
4231
  key: string | null;
3852
4232
  sharedByPubKey: string;
@@ -4464,14 +4844,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4464
4844
  current: {
4465
4845
  id: string;
4466
4846
  createdAt: Date;
4847
+ storageType: "s3" | "cold" | "lite";
4467
4848
  size: bigint;
4468
4849
  md5: string;
4469
4850
  userAppUserId: string;
4470
4851
  userAppAppId: string;
4471
- storageType: "s3" | "lite";
4472
4852
  sizeEncrypted: bigint | null;
4473
4853
  md5Encrypted: string | null;
4474
4854
  validatedAt: Date | null;
4855
+ restoreSince: Date | null;
4475
4856
  access: {
4476
4857
  key: string | null;
4477
4858
  sharedByPubKey: string;
@@ -4480,14 +4861,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4480
4861
  history: {
4481
4862
  id: string;
4482
4863
  createdAt: Date;
4864
+ storageType: "s3" | "cold" | "lite";
4483
4865
  size: bigint;
4484
4866
  md5: string;
4485
4867
  userAppUserId: string;
4486
4868
  userAppAppId: string;
4487
- storageType: "s3" | "lite";
4488
4869
  sizeEncrypted: bigint | null;
4489
4870
  md5Encrypted: string | null;
4490
4871
  validatedAt: Date | null;
4872
+ restoreSince: Date | null;
4491
4873
  access: {
4492
4874
  key: string | null;
4493
4875
  sharedByPubKey: string;
@@ -4609,14 +4991,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4609
4991
  current: {
4610
4992
  id: string;
4611
4993
  createdAt: Date;
4994
+ storageType: "s3" | "cold" | "lite";
4612
4995
  size: bigint;
4613
4996
  md5: string;
4614
4997
  userAppUserId: string;
4615
4998
  userAppAppId: string;
4616
- storageType: "s3" | "lite";
4617
4999
  sizeEncrypted: bigint | null;
4618
5000
  md5Encrypted: string | null;
4619
5001
  validatedAt: Date | null;
5002
+ restoreSince: Date | null;
4620
5003
  access: {
4621
5004
  key: string | null;
4622
5005
  sharedByPubKey: string;
@@ -4625,14 +5008,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4625
5008
  history: {
4626
5009
  id: string;
4627
5010
  createdAt: Date;
5011
+ storageType: "s3" | "cold" | "lite";
4628
5012
  size: bigint;
4629
5013
  md5: string;
4630
5014
  userAppUserId: string;
4631
5015
  userAppAppId: string;
4632
- storageType: "s3" | "lite";
4633
5016
  sizeEncrypted: bigint | null;
4634
5017
  md5Encrypted: string | null;
4635
5018
  validatedAt: Date | null;
5019
+ restoreSince: Date | null;
4636
5020
  access: {
4637
5021
  key: string | null;
4638
5022
  sharedByPubKey: string;
@@ -5230,14 +5614,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5230
5614
  current: {
5231
5615
  id: string;
5232
5616
  createdAt: Date;
5617
+ storageType: "s3" | "cold" | "lite";
5233
5618
  size: bigint;
5234
5619
  md5: string;
5235
5620
  userAppUserId: string;
5236
5621
  userAppAppId: string;
5237
- storageType: "s3" | "lite";
5238
5622
  sizeEncrypted: bigint | null;
5239
5623
  md5Encrypted: string | null;
5240
5624
  validatedAt: Date | null;
5625
+ restoreSince: Date | null;
5241
5626
  access: {
5242
5627
  key: string | null;
5243
5628
  sharedByPubKey: string;
@@ -5246,14 +5631,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5246
5631
  history: {
5247
5632
  id: string;
5248
5633
  createdAt: Date;
5634
+ storageType: "s3" | "cold" | "lite";
5249
5635
  size: bigint;
5250
5636
  md5: string;
5251
5637
  userAppUserId: string;
5252
5638
  userAppAppId: string;
5253
- storageType: "s3" | "lite";
5254
5639
  sizeEncrypted: bigint | null;
5255
5640
  md5Encrypted: string | null;
5256
5641
  validatedAt: Date | null;
5642
+ restoreSince: Date | null;
5257
5643
  access: {
5258
5644
  key: string | null;
5259
5645
  sharedByPubKey: string;
@@ -5375,14 +5761,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5375
5761
  current: {
5376
5762
  id: string;
5377
5763
  createdAt: Date;
5764
+ storageType: "s3" | "cold" | "lite";
5378
5765
  size: bigint;
5379
5766
  md5: string;
5380
5767
  userAppUserId: string;
5381
5768
  userAppAppId: string;
5382
- storageType: "s3" | "lite";
5383
5769
  sizeEncrypted: bigint | null;
5384
5770
  md5Encrypted: string | null;
5385
5771
  validatedAt: Date | null;
5772
+ restoreSince: Date | null;
5386
5773
  access: {
5387
5774
  key: string | null;
5388
5775
  sharedByPubKey: string;
@@ -5391,14 +5778,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5391
5778
  history: {
5392
5779
  id: string;
5393
5780
  createdAt: Date;
5781
+ storageType: "s3" | "cold" | "lite";
5394
5782
  size: bigint;
5395
5783
  md5: string;
5396
5784
  userAppUserId: string;
5397
5785
  userAppAppId: string;
5398
- storageType: "s3" | "lite";
5399
5786
  sizeEncrypted: bigint | null;
5400
5787
  md5Encrypted: string | null;
5401
5788
  validatedAt: Date | null;
5789
+ restoreSince: Date | null;
5402
5790
  access: {
5403
5791
  key: string | null;
5404
5792
  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.35",
3
+ "version": "1.33.0-dev.37",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"