@secrecy/trpc-api-types 1.33.0-feat-preview-restriction.1 → 1.33.0-feat-s3-cold-storage.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.cts +142 -24
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -2182,11 +2182,11 @@ 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;
@@ -2198,11 +2198,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2198
2198
  history: {
2199
2199
  id: string;
2200
2200
  createdAt: Date;
2201
+ storageType: "s3" | "cold" | "lite";
2201
2202
  size: bigint;
2202
2203
  md5: string;
2203
2204
  userAppUserId: string;
2204
2205
  userAppAppId: string;
2205
- storageType: "s3" | "lite";
2206
2206
  sizeEncrypted: bigint | null;
2207
2207
  md5Encrypted: string | null;
2208
2208
  validatedAt: Date | null;
@@ -2327,11 +2327,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2327
2327
  current: {
2328
2328
  id: string;
2329
2329
  createdAt: Date;
2330
+ storageType: "s3" | "cold" | "lite";
2330
2331
  size: bigint;
2331
2332
  md5: string;
2332
2333
  userAppUserId: string;
2333
2334
  userAppAppId: string;
2334
- storageType: "s3" | "lite";
2335
2335
  sizeEncrypted: bigint | null;
2336
2336
  md5Encrypted: string | null;
2337
2337
  validatedAt: Date | null;
@@ -2343,11 +2343,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2343
2343
  history: {
2344
2344
  id: string;
2345
2345
  createdAt: Date;
2346
+ storageType: "s3" | "cold" | "lite";
2346
2347
  size: bigint;
2347
2348
  md5: string;
2348
2349
  userAppUserId: string;
2349
2350
  userAppAppId: string;
2350
- storageType: "s3" | "lite";
2351
2351
  sizeEncrypted: bigint | null;
2352
2352
  md5Encrypted: string | null;
2353
2353
  validatedAt: Date | null;
@@ -2507,11 +2507,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2507
2507
  _output_in: {
2508
2508
  id: string;
2509
2509
  createdAt: Date;
2510
+ storageType: "s3" | "cold" | "lite";
2510
2511
  size: bigint;
2511
2512
  md5: string;
2512
2513
  userAppUserId: string;
2513
2514
  userAppAppId: string;
2514
- storageType: "s3" | "lite";
2515
2515
  sizeEncrypted: bigint | null;
2516
2516
  md5Encrypted: string | null;
2517
2517
  validatedAt: Date | null;
@@ -2523,11 +2523,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2523
2523
  _output_out: {
2524
2524
  id: string;
2525
2525
  createdAt: Date;
2526
+ storageType: "s3" | "cold" | "lite";
2526
2527
  size: bigint;
2527
2528
  md5: string;
2528
2529
  userAppUserId: string;
2529
2530
  userAppAppId: string;
2530
- storageType: "s3" | "lite";
2531
2531
  sizeEncrypted: bigint | null;
2532
2532
  md5Encrypted: string | null;
2533
2533
  validatedAt: Date | null;
@@ -2829,6 +2829,48 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2829
2829
  _output_in: any[];
2830
2830
  _output_out: any[];
2831
2831
  }, unknown>;
2832
+ moveToStorageType: _trpc_server.BuildProcedure<"mutation", {
2833
+ _config: _trpc_server.RootConfig<{
2834
+ ctx: {};
2835
+ meta: object;
2836
+ errorShape: {
2837
+ message: string;
2838
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2839
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2840
+ } | {
2841
+ data: {
2842
+ zodError: zod.typeToFlattenedError<any, string> | null;
2843
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2844
+ httpStatus: number;
2845
+ path?: string;
2846
+ stack?: string;
2847
+ };
2848
+ message: string;
2849
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2850
+ };
2851
+ transformer: typeof superjson.default;
2852
+ }>;
2853
+ _meta: object;
2854
+ _ctx_out: {};
2855
+ _input_in: {
2856
+ dataId: string;
2857
+ storageType: "s3" | "cold";
2858
+ };
2859
+ _input_out: {
2860
+ dataId: string;
2861
+ storageType: "s3" | "cold";
2862
+ };
2863
+ _output_in: {
2864
+ isMoved: boolean;
2865
+ fromType: "s3" | "cold";
2866
+ toType: "s3" | "cold";
2867
+ };
2868
+ _output_out: {
2869
+ isMoved: boolean;
2870
+ fromType: "s3" | "cold";
2871
+ toType: "s3" | "cold";
2872
+ };
2873
+ }, unknown>;
2832
2874
  saveInCloud: _trpc_server.BuildProcedure<"mutation", {
2833
2875
  _config: _trpc_server.RootConfig<{
2834
2876
  ctx: {};
@@ -2906,11 +2948,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2906
2948
  current: {
2907
2949
  id: string;
2908
2950
  createdAt: Date;
2951
+ storageType: "s3" | "cold" | "lite";
2909
2952
  size: bigint;
2910
2953
  md5: string;
2911
2954
  userAppUserId: string;
2912
2955
  userAppAppId: string;
2913
- storageType: "s3" | "lite";
2914
2956
  sizeEncrypted: bigint | null;
2915
2957
  md5Encrypted: string | null;
2916
2958
  validatedAt: Date | null;
@@ -2922,11 +2964,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2922
2964
  history: {
2923
2965
  id: string;
2924
2966
  createdAt: Date;
2967
+ storageType: "s3" | "cold" | "lite";
2925
2968
  size: bigint;
2926
2969
  md5: string;
2927
2970
  userAppUserId: string;
2928
2971
  userAppAppId: string;
2929
- storageType: "s3" | "lite";
2930
2972
  sizeEncrypted: bigint | null;
2931
2973
  md5Encrypted: string | null;
2932
2974
  validatedAt: Date | null;
@@ -3051,11 +3093,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3051
3093
  current: {
3052
3094
  id: string;
3053
3095
  createdAt: Date;
3096
+ storageType: "s3" | "cold" | "lite";
3054
3097
  size: bigint;
3055
3098
  md5: string;
3056
3099
  userAppUserId: string;
3057
3100
  userAppAppId: string;
3058
- storageType: "s3" | "lite";
3059
3101
  sizeEncrypted: bigint | null;
3060
3102
  md5Encrypted: string | null;
3061
3103
  validatedAt: Date | null;
@@ -3067,11 +3109,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3067
3109
  history: {
3068
3110
  id: string;
3069
3111
  createdAt: Date;
3112
+ storageType: "s3" | "cold" | "lite";
3070
3113
  size: bigint;
3071
3114
  md5: string;
3072
3115
  userAppUserId: string;
3073
3116
  userAppAppId: string;
3074
- storageType: "s3" | "lite";
3075
3117
  sizeEncrypted: bigint | null;
3076
3118
  md5Encrypted: string | null;
3077
3119
  validatedAt: Date | null;
@@ -3250,8 +3292,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3250
3292
  history: {
3251
3293
  createdAt: Date;
3252
3294
  dataId: string;
3295
+ storageType: "s3" | "cold" | "lite";
3253
3296
  size: bigint;
3254
- storageType: "s3" | "lite";
3255
3297
  }[];
3256
3298
  access: {
3257
3299
  appId: string;
@@ -3291,8 +3333,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3291
3333
  history: {
3292
3334
  createdAt: Date;
3293
3335
  dataId: string;
3336
+ storageType: "s3" | "cold" | "lite";
3294
3337
  size: bigint;
3295
- storageType: "s3" | "lite";
3296
3338
  }[];
3297
3339
  access: {
3298
3340
  appId: string;
@@ -3481,6 +3523,82 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3481
3523
  partSize: bigint;
3482
3524
  };
3483
3525
  }, unknown>;
3526
+ uploadColdData: _trpc_server.BuildProcedure<"mutation", {
3527
+ _config: _trpc_server.RootConfig<{
3528
+ ctx: {};
3529
+ meta: object;
3530
+ errorShape: {
3531
+ message: string;
3532
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3533
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3534
+ } | {
3535
+ data: {
3536
+ zodError: zod.typeToFlattenedError<any, string> | null;
3537
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3538
+ httpStatus: number;
3539
+ path?: string;
3540
+ stack?: string;
3541
+ };
3542
+ message: string;
3543
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3544
+ };
3545
+ transformer: typeof superjson.default;
3546
+ }>;
3547
+ _meta: object;
3548
+ _ctx_out: {};
3549
+ _input_in: {
3550
+ type: "encrypted";
3551
+ key: string;
3552
+ size: bigint;
3553
+ md5: string;
3554
+ sizeEncrypted: bigint;
3555
+ md5Encrypted: string;
3556
+ } | {
3557
+ type: "unencrypted";
3558
+ size: bigint;
3559
+ md5: string;
3560
+ };
3561
+ _input_out: {
3562
+ type: "encrypted";
3563
+ key: string;
3564
+ size: bigint;
3565
+ md5: string;
3566
+ sizeEncrypted: bigint;
3567
+ md5Encrypted: string;
3568
+ } | {
3569
+ type: "unencrypted";
3570
+ size: bigint;
3571
+ md5: string;
3572
+ };
3573
+ _output_in: {
3574
+ id: string;
3575
+ keyPair: {
3576
+ pub: string;
3577
+ encPriv: string;
3578
+ };
3579
+ key: string | null;
3580
+ parts: {
3581
+ fields: Record<string, string>;
3582
+ url: string;
3583
+ order: number;
3584
+ }[];
3585
+ partSize: bigint;
3586
+ };
3587
+ _output_out: {
3588
+ id: string;
3589
+ keyPair: {
3590
+ pub: string;
3591
+ encPriv: string;
3592
+ };
3593
+ key: string | null;
3594
+ parts: {
3595
+ fields: Record<string, string>;
3596
+ url: string;
3597
+ order: number;
3598
+ }[];
3599
+ partSize: bigint;
3600
+ };
3601
+ }, unknown>;
3484
3602
  uploadLiteData: _trpc_server.BuildProcedure<"mutation", {
3485
3603
  _config: _trpc_server.RootConfig<{
3486
3604
  ctx: {};
@@ -3662,11 +3780,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3662
3780
  current: {
3663
3781
  id: string;
3664
3782
  createdAt: Date;
3783
+ storageType: "s3" | "cold" | "lite";
3665
3784
  size: bigint;
3666
3785
  md5: string;
3667
3786
  userAppUserId: string;
3668
3787
  userAppAppId: string;
3669
- storageType: "s3" | "lite";
3670
3788
  sizeEncrypted: bigint | null;
3671
3789
  md5Encrypted: string | null;
3672
3790
  validatedAt: Date | null;
@@ -3678,11 +3796,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3678
3796
  history: {
3679
3797
  id: string;
3680
3798
  createdAt: Date;
3799
+ storageType: "s3" | "cold" | "lite";
3681
3800
  size: bigint;
3682
3801
  md5: string;
3683
3802
  userAppUserId: string;
3684
3803
  userAppAppId: string;
3685
- storageType: "s3" | "lite";
3686
3804
  sizeEncrypted: bigint | null;
3687
3805
  md5Encrypted: string | null;
3688
3806
  validatedAt: Date | null;
@@ -3807,11 +3925,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3807
3925
  current: {
3808
3926
  id: string;
3809
3927
  createdAt: Date;
3928
+ storageType: "s3" | "cold" | "lite";
3810
3929
  size: bigint;
3811
3930
  md5: string;
3812
3931
  userAppUserId: string;
3813
3932
  userAppAppId: string;
3814
- storageType: "s3" | "lite";
3815
3933
  sizeEncrypted: bigint | null;
3816
3934
  md5Encrypted: string | null;
3817
3935
  validatedAt: Date | null;
@@ -3823,11 +3941,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3823
3941
  history: {
3824
3942
  id: string;
3825
3943
  createdAt: Date;
3944
+ storageType: "s3" | "cold" | "lite";
3826
3945
  size: bigint;
3827
3946
  md5: string;
3828
3947
  userAppUserId: string;
3829
3948
  userAppAppId: string;
3830
- storageType: "s3" | "lite";
3831
3949
  sizeEncrypted: bigint | null;
3832
3950
  md5Encrypted: string | null;
3833
3951
  validatedAt: Date | null;
@@ -4448,11 +4566,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4448
4566
  current: {
4449
4567
  id: string;
4450
4568
  createdAt: Date;
4569
+ storageType: "s3" | "cold" | "lite";
4451
4570
  size: bigint;
4452
4571
  md5: string;
4453
4572
  userAppUserId: string;
4454
4573
  userAppAppId: string;
4455
- storageType: "s3" | "lite";
4456
4574
  sizeEncrypted: bigint | null;
4457
4575
  md5Encrypted: string | null;
4458
4576
  validatedAt: Date | null;
@@ -4464,11 +4582,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4464
4582
  history: {
4465
4583
  id: string;
4466
4584
  createdAt: Date;
4585
+ storageType: "s3" | "cold" | "lite";
4467
4586
  size: bigint;
4468
4587
  md5: string;
4469
4588
  userAppUserId: string;
4470
4589
  userAppAppId: string;
4471
- storageType: "s3" | "lite";
4472
4590
  sizeEncrypted: bigint | null;
4473
4591
  md5Encrypted: string | null;
4474
4592
  validatedAt: Date | null;
@@ -4593,11 +4711,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4593
4711
  current: {
4594
4712
  id: string;
4595
4713
  createdAt: Date;
4714
+ storageType: "s3" | "cold" | "lite";
4596
4715
  size: bigint;
4597
4716
  md5: string;
4598
4717
  userAppUserId: string;
4599
4718
  userAppAppId: string;
4600
- storageType: "s3" | "lite";
4601
4719
  sizeEncrypted: bigint | null;
4602
4720
  md5Encrypted: string | null;
4603
4721
  validatedAt: Date | null;
@@ -4609,11 +4727,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4609
4727
  history: {
4610
4728
  id: string;
4611
4729
  createdAt: Date;
4730
+ storageType: "s3" | "cold" | "lite";
4612
4731
  size: bigint;
4613
4732
  md5: string;
4614
4733
  userAppUserId: string;
4615
4734
  userAppAppId: string;
4616
- storageType: "s3" | "lite";
4617
4735
  sizeEncrypted: bigint | null;
4618
4736
  md5Encrypted: string | null;
4619
4737
  validatedAt: Date | null;
@@ -5214,11 +5332,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5214
5332
  current: {
5215
5333
  id: string;
5216
5334
  createdAt: Date;
5335
+ storageType: "s3" | "cold" | "lite";
5217
5336
  size: bigint;
5218
5337
  md5: string;
5219
5338
  userAppUserId: string;
5220
5339
  userAppAppId: string;
5221
- storageType: "s3" | "lite";
5222
5340
  sizeEncrypted: bigint | null;
5223
5341
  md5Encrypted: string | null;
5224
5342
  validatedAt: Date | null;
@@ -5230,11 +5348,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5230
5348
  history: {
5231
5349
  id: string;
5232
5350
  createdAt: Date;
5351
+ storageType: "s3" | "cold" | "lite";
5233
5352
  size: bigint;
5234
5353
  md5: string;
5235
5354
  userAppUserId: string;
5236
5355
  userAppAppId: string;
5237
- storageType: "s3" | "lite";
5238
5356
  sizeEncrypted: bigint | null;
5239
5357
  md5Encrypted: string | null;
5240
5358
  validatedAt: Date | null;
@@ -5359,11 +5477,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5359
5477
  current: {
5360
5478
  id: string;
5361
5479
  createdAt: Date;
5480
+ storageType: "s3" | "cold" | "lite";
5362
5481
  size: bigint;
5363
5482
  md5: string;
5364
5483
  userAppUserId: string;
5365
5484
  userAppAppId: string;
5366
- storageType: "s3" | "lite";
5367
5485
  sizeEncrypted: bigint | null;
5368
5486
  md5Encrypted: string | null;
5369
5487
  validatedAt: Date | null;
@@ -5375,11 +5493,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5375
5493
  history: {
5376
5494
  id: string;
5377
5495
  createdAt: Date;
5496
+ storageType: "s3" | "cold" | "lite";
5378
5497
  size: bigint;
5379
5498
  md5: string;
5380
5499
  userAppUserId: string;
5381
5500
  userAppAppId: string;
5382
- storageType: "s3" | "lite";
5383
5501
  sizeEncrypted: bigint | null;
5384
5502
  md5Encrypted: string | null;
5385
5503
  validatedAt: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-preview-restriction.1",
3
+ "version": "1.33.0-feat-s3-cold-storage.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"