@secrecy/trpc-api-types 1.33.0-dev.72 → 1.33.0-dev.74

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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.cts +352 -116
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @secrecy/trpc-api-types
2
2
 
3
- > Types description of Secrecy tRPC API
3
+ > Types description of Secrecy tRPC API.
package/dist/index.d.cts CHANGED
@@ -864,15 +864,31 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
864
864
  _ctx_out: {};
865
865
  _input_in: {
866
866
  userId: string;
867
+ appId?: string | undefined;
868
+ } | {
869
+ userIds: string[];
870
+ appId?: string | undefined;
867
871
  };
868
872
  _input_out: {
869
873
  userId: string;
874
+ appId?: string | undefined;
875
+ } | {
876
+ userIds: string[];
877
+ appId?: string | undefined;
870
878
  };
871
879
  _output_in: {
880
+ appId: string;
872
881
  publicKey: string;
882
+ } | {
883
+ appId: string;
884
+ publicKeys: Record<string, string>;
873
885
  };
874
886
  _output_out: {
887
+ appId: string;
875
888
  publicKey: string;
889
+ } | {
890
+ appId: string;
891
+ publicKeys: Record<string, string>;
876
892
  };
877
893
  }, unknown>;
878
894
  isApplicationUser: _trpc_server.BuildProcedure<"query", {
@@ -3484,13 +3500,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3484
3500
  access: {
3485
3501
  appId: string;
3486
3502
  nameKey: string;
3487
- };
3503
+ } | null;
3488
3504
  breadcrumb: {
3489
3505
  name: string;
3490
3506
  id: string;
3491
3507
  nameKey: string | null;
3492
3508
  pubKey: string;
3493
- }[];
3509
+ }[] | null;
3494
3510
  sharedCount: number;
3495
3511
  totalSize: bigint;
3496
3512
  }[];
@@ -3525,13 +3541,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3525
3541
  access: {
3526
3542
  appId: string;
3527
3543
  nameKey: string;
3528
- };
3544
+ } | null;
3529
3545
  breadcrumb: {
3530
3546
  name: string;
3531
3547
  id: string;
3532
3548
  nameKey: string | null;
3533
3549
  pubKey: string;
3534
- }[];
3550
+ }[] | null;
3535
3551
  sharedCount: number;
3536
3552
  totalSize: bigint;
3537
3553
  }[];
@@ -4153,6 +4169,98 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4153
4169
  slug: string;
4154
4170
  };
4155
4171
  }, unknown>;
4172
+ checkAccesses: _trpc_server.BuildProcedure<"query", {
4173
+ _config: _trpc_server.RootConfig<{
4174
+ ctx: {};
4175
+ meta: object;
4176
+ errorShape: {
4177
+ message: string;
4178
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4179
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4180
+ } | {
4181
+ data: {
4182
+ zodError: zod.typeToFlattenedError<any, string> | null;
4183
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4184
+ httpStatus: number;
4185
+ path?: string;
4186
+ stack?: string;
4187
+ };
4188
+ message: string;
4189
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4190
+ };
4191
+ transformer: typeof superjson.default;
4192
+ }>;
4193
+ _meta: object;
4194
+ _ctx_out: {};
4195
+ _input_in: {
4196
+ userId: string;
4197
+ nodes: {
4198
+ data: {
4199
+ id: string;
4200
+ key?: string | null | undefined;
4201
+ }[];
4202
+ id: string;
4203
+ rights: "admin" | "write" | "read";
4204
+ nameKey?: string | null | undefined;
4205
+ }[];
4206
+ }[];
4207
+ _input_out: {
4208
+ userId: string;
4209
+ nodes: {
4210
+ data: {
4211
+ id: string;
4212
+ key?: string | null | undefined;
4213
+ }[];
4214
+ id: string;
4215
+ rights: "admin" | "write" | "read";
4216
+ nameKey?: string | null | undefined;
4217
+ }[];
4218
+ }[];
4219
+ _output_in: {
4220
+ isMatching: true;
4221
+ } | {
4222
+ details: {
4223
+ missingNodeAccesses: {
4224
+ userId: string;
4225
+ nodeId: string;
4226
+ }[];
4227
+ missingDataAccesses: {
4228
+ userId: string;
4229
+ dataId: string;
4230
+ nodeId: string;
4231
+ }[];
4232
+ invalidRightsAccesses: {
4233
+ userId: string;
4234
+ current: "admin" | "write" | "read";
4235
+ nodeId: string;
4236
+ expect: "admin" | "write" | "read";
4237
+ }[];
4238
+ };
4239
+ isMatching: false;
4240
+ };
4241
+ _output_out: {
4242
+ isMatching: true;
4243
+ } | {
4244
+ details: {
4245
+ missingNodeAccesses: {
4246
+ userId: string;
4247
+ nodeId: string;
4248
+ }[];
4249
+ missingDataAccesses: {
4250
+ userId: string;
4251
+ dataId: string;
4252
+ nodeId: string;
4253
+ }[];
4254
+ invalidRightsAccesses: {
4255
+ userId: string;
4256
+ current: "admin" | "write" | "read";
4257
+ nodeId: string;
4258
+ expect: "admin" | "write" | "read";
4259
+ }[];
4260
+ };
4261
+ isMatching: false;
4262
+ };
4263
+ }, unknown>;
4156
4264
  createFolder: _trpc_server.BuildProcedure<"mutation", {
4157
4265
  _config: _trpc_server.RootConfig<{
4158
4266
  ctx: {};
@@ -5287,6 +5395,68 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5287
5395
  }[];
5288
5396
  };
5289
5397
  }, unknown>;
5398
+ nodesForEncryption: _trpc_server.BuildProcedure<"query", {
5399
+ _config: _trpc_server.RootConfig<{
5400
+ ctx: {};
5401
+ meta: object;
5402
+ errorShape: {
5403
+ message: string;
5404
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
5405
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5406
+ } | {
5407
+ data: {
5408
+ zodError: zod.typeToFlattenedError<any, string> | null;
5409
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
5410
+ httpStatus: number;
5411
+ path?: string;
5412
+ stack?: string;
5413
+ };
5414
+ message: string;
5415
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
5416
+ };
5417
+ transformer: typeof superjson.default;
5418
+ }>;
5419
+ _meta: object;
5420
+ _ctx_out: {};
5421
+ _input_in: {
5422
+ ids: string[];
5423
+ };
5424
+ _input_out: {
5425
+ ids: string[];
5426
+ };
5427
+ _output_in: {
5428
+ name: string;
5429
+ id: string;
5430
+ type: "FILE" | "FOLDER";
5431
+ history: {
5432
+ id: string;
5433
+ access: {
5434
+ key: string;
5435
+ sharedByPublicKey: string;
5436
+ };
5437
+ }[];
5438
+ access: {
5439
+ nameKey: string;
5440
+ sharedByPublicKey: string;
5441
+ };
5442
+ }[];
5443
+ _output_out: {
5444
+ name: string;
5445
+ id: string;
5446
+ type: "FILE" | "FOLDER";
5447
+ history: {
5448
+ id: string;
5449
+ access: {
5450
+ key: string;
5451
+ sharedByPublicKey: string;
5452
+ };
5453
+ }[];
5454
+ access: {
5455
+ nameKey: string;
5456
+ sharedByPublicKey: string;
5457
+ };
5458
+ }[];
5459
+ }, unknown>;
5290
5460
  nodeSizeById: _trpc_server.BuildProcedure<"query", {
5291
5461
  _config: _trpc_server.RootConfig<{
5292
5462
  ctx: {};
@@ -5660,33 +5830,71 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5660
5830
  _ctx_out: {};
5661
5831
  _input_in: {
5662
5832
  userId: string;
5663
- rights: "admin" | "write" | "read";
5664
5833
  nodes: {
5665
5834
  data: {
5666
5835
  id: string;
5667
- key: string | null;
5836
+ key?: string | null | undefined;
5668
5837
  }[];
5669
5838
  id: string;
5670
- nameKey: string | null;
5839
+ rights: "admin" | "write" | "read";
5840
+ nameKey?: string | null | undefined;
5671
5841
  }[];
5672
- };
5842
+ }[];
5673
5843
  _input_out: {
5674
5844
  userId: string;
5675
- rights: "admin" | "write" | "read";
5676
5845
  nodes: {
5677
5846
  data: {
5678
5847
  id: string;
5679
- key: string | null;
5848
+ key?: string | null | undefined;
5680
5849
  }[];
5681
5850
  id: string;
5682
- nameKey: string | null;
5851
+ rights: "admin" | "write" | "read";
5852
+ nameKey?: string | null | undefined;
5683
5853
  }[];
5684
- };
5854
+ }[];
5685
5855
  _output_in: {
5686
- isFinished: boolean;
5856
+ isFinished: true;
5857
+ } | {
5858
+ isFinished: false;
5859
+ details: {
5860
+ missingNodeAccesses: {
5861
+ userId: string;
5862
+ nodeId: string;
5863
+ }[];
5864
+ missingDataAccesses: {
5865
+ userId: string;
5866
+ dataId: string;
5867
+ nodeId: string;
5868
+ }[];
5869
+ invalidRightsAccesses: {
5870
+ userId: string;
5871
+ current: "admin" | "write" | "read";
5872
+ nodeId: string;
5873
+ expect: "admin" | "write" | "read";
5874
+ }[];
5875
+ };
5687
5876
  };
5688
5877
  _output_out: {
5689
- isFinished: boolean;
5878
+ isFinished: true;
5879
+ } | {
5880
+ isFinished: false;
5881
+ details: {
5882
+ missingNodeAccesses: {
5883
+ userId: string;
5884
+ nodeId: string;
5885
+ }[];
5886
+ missingDataAccesses: {
5887
+ userId: string;
5888
+ dataId: string;
5889
+ nodeId: string;
5890
+ }[];
5891
+ invalidRightsAccesses: {
5892
+ userId: string;
5893
+ current: "admin" | "write" | "read";
5894
+ nodeId: string;
5895
+ expect: "admin" | "write" | "read";
5896
+ }[];
5897
+ };
5690
5898
  };
5691
5899
  }, unknown>;
5692
5900
  shareNode: _trpc_server.BuildProcedure<"mutation", {
@@ -5714,18 +5922,46 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5714
5922
  _ctx_out: {};
5715
5923
  _input_in: {
5716
5924
  userId: string;
5925
+ rights: "admin" | "write" | "read";
5717
5926
  nodeId: string;
5927
+ }[] | {
5928
+ rights: "admin" | "write" | "read";
5929
+ userIds: string[];
5930
+ nodeIds: string[];
5931
+ } | {
5932
+ rights: "admin" | "write" | "read";
5933
+ nodeId: string;
5934
+ userIds: string[];
5935
+ } | {
5936
+ userId: string;
5937
+ rights: "admin" | "write" | "read";
5938
+ nodeIds: string[];
5718
5939
  };
5719
5940
  _input_out: {
5720
5941
  userId: string;
5942
+ rights: "admin" | "write" | "read";
5721
5943
  nodeId: string;
5944
+ }[] | {
5945
+ rights: "admin" | "write" | "read";
5946
+ userIds: string[];
5947
+ nodeIds: string[];
5948
+ } | {
5949
+ rights: "admin" | "write" | "read";
5950
+ nodeId: string;
5951
+ userIds: string[];
5952
+ } | {
5953
+ userId: string;
5954
+ rights: "admin" | "write" | "read";
5955
+ nodeIds: string[];
5722
5956
  };
5723
- _output_in: {
5724
- ids: string[];
5725
- };
5726
- _output_out: {
5727
- ids: string[];
5728
- };
5957
+ _output_in: Record<string, {
5958
+ nodeId: string;
5959
+ includeKeys: boolean;
5960
+ }[]>;
5961
+ _output_out: Record<string, {
5962
+ nodeId: string;
5963
+ includeKeys: boolean;
5964
+ }[]>;
5729
5965
  }, unknown>;
5730
5966
  updateNode: _trpc_server.BuildProcedure<"mutation", {
5731
5967
  _config: _trpc_server.RootConfig<{
@@ -10344,9 +10580,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10344
10580
  replyTo: {
10345
10581
  id: string;
10346
10582
  } | null;
10347
- temporaryRecipients: {
10348
- email: string | null;
10349
- }[];
10350
10583
  recipients: {
10351
10584
  id: string;
10352
10585
  lastname: string;
@@ -10354,6 +10587,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10354
10587
  avatar: string | null;
10355
10588
  isSearchable: boolean;
10356
10589
  }[];
10590
+ temporaryRecipients: {
10591
+ email: string | null;
10592
+ }[];
10357
10593
  } | null;
10358
10594
  mailIntegrityDraft: {
10359
10595
  id: string;
@@ -10362,9 +10598,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10362
10598
  replyTo: {
10363
10599
  id: string;
10364
10600
  } | null;
10365
- temporaryRecipients: {
10366
- email: string | null;
10367
- }[];
10368
10601
  recipients: {
10369
10602
  id: string;
10370
10603
  lastname: string;
@@ -10372,6 +10605,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10372
10605
  avatar: string | null;
10373
10606
  isSearchable: boolean;
10374
10607
  }[];
10608
+ temporaryRecipients: {
10609
+ email: string | null;
10610
+ }[];
10375
10611
  } | null;
10376
10612
  sender: {
10377
10613
  id: string;
@@ -10402,9 +10638,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10402
10638
  replyTo: {
10403
10639
  id: string;
10404
10640
  } | null;
10405
- temporaryRecipients: {
10406
- email: string | null;
10407
- }[];
10408
10641
  recipients: {
10409
10642
  id: string;
10410
10643
  lastname: string;
@@ -10412,6 +10645,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10412
10645
  avatar: string | null;
10413
10646
  isSearchable: boolean;
10414
10647
  }[];
10648
+ temporaryRecipients: {
10649
+ email: string | null;
10650
+ }[];
10415
10651
  } | null;
10416
10652
  mailIntegrityDraft: {
10417
10653
  id: string;
@@ -10420,9 +10656,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10420
10656
  replyTo: {
10421
10657
  id: string;
10422
10658
  } | null;
10423
- temporaryRecipients: {
10424
- email: string | null;
10425
- }[];
10426
10659
  recipients: {
10427
10660
  id: string;
10428
10661
  lastname: string;
@@ -10430,6 +10663,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10430
10663
  avatar: string | null;
10431
10664
  isSearchable: boolean;
10432
10665
  }[];
10666
+ temporaryRecipients: {
10667
+ email: string | null;
10668
+ }[];
10433
10669
  } | null;
10434
10670
  sender: {
10435
10671
  id: string;
@@ -10512,9 +10748,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10512
10748
  replyTo: {
10513
10749
  id: string;
10514
10750
  } | null;
10515
- temporaryRecipients: {
10516
- email: string | null;
10517
- }[];
10518
10751
  recipients: {
10519
10752
  id: string;
10520
10753
  lastname: string;
@@ -10522,6 +10755,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10522
10755
  avatar: string | null;
10523
10756
  isSearchable: boolean;
10524
10757
  }[];
10758
+ temporaryRecipients: {
10759
+ email: string | null;
10760
+ }[];
10525
10761
  } | null;
10526
10762
  mailIntegrityDraft: {
10527
10763
  id: string;
@@ -10530,9 +10766,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10530
10766
  replyTo: {
10531
10767
  id: string;
10532
10768
  } | null;
10533
- temporaryRecipients: {
10534
- email: string | null;
10535
- }[];
10536
10769
  recipients: {
10537
10770
  id: string;
10538
10771
  lastname: string;
@@ -10540,6 +10773,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10540
10773
  avatar: string | null;
10541
10774
  isSearchable: boolean;
10542
10775
  }[];
10776
+ temporaryRecipients: {
10777
+ email: string | null;
10778
+ }[];
10543
10779
  } | null;
10544
10780
  sender: {
10545
10781
  id: string;
@@ -10570,9 +10806,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10570
10806
  replyTo: {
10571
10807
  id: string;
10572
10808
  } | null;
10573
- temporaryRecipients: {
10574
- email: string | null;
10575
- }[];
10576
10809
  recipients: {
10577
10810
  id: string;
10578
10811
  lastname: string;
@@ -10580,6 +10813,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10580
10813
  avatar: string | null;
10581
10814
  isSearchable: boolean;
10582
10815
  }[];
10816
+ temporaryRecipients: {
10817
+ email: string | null;
10818
+ }[];
10583
10819
  } | null;
10584
10820
  mailIntegrityDraft: {
10585
10821
  id: string;
@@ -10588,9 +10824,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10588
10824
  replyTo: {
10589
10825
  id: string;
10590
10826
  } | null;
10591
- temporaryRecipients: {
10592
- email: string | null;
10593
- }[];
10594
10827
  recipients: {
10595
10828
  id: string;
10596
10829
  lastname: string;
@@ -10598,6 +10831,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10598
10831
  avatar: string | null;
10599
10832
  isSearchable: boolean;
10600
10833
  }[];
10834
+ temporaryRecipients: {
10835
+ email: string | null;
10836
+ }[];
10601
10837
  } | null;
10602
10838
  sender: {
10603
10839
  id: string;
@@ -10766,9 +11002,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10766
11002
  replyTo: {
10767
11003
  id: string;
10768
11004
  } | null;
10769
- temporaryRecipients: {
10770
- email: string | null;
10771
- }[];
10772
11005
  recipients: {
10773
11006
  id: string;
10774
11007
  lastname: string;
@@ -10776,6 +11009,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10776
11009
  avatar: string | null;
10777
11010
  isSearchable: boolean;
10778
11011
  }[];
11012
+ temporaryRecipients: {
11013
+ email: string | null;
11014
+ }[];
10779
11015
  } | null;
10780
11016
  mailIntegrityDraft: {
10781
11017
  id: string;
@@ -10784,9 +11020,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10784
11020
  replyTo: {
10785
11021
  id: string;
10786
11022
  } | null;
10787
- temporaryRecipients: {
10788
- email: string | null;
10789
- }[];
10790
11023
  recipients: {
10791
11024
  id: string;
10792
11025
  lastname: string;
@@ -10794,6 +11027,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10794
11027
  avatar: string | null;
10795
11028
  isSearchable: boolean;
10796
11029
  }[];
11030
+ temporaryRecipients: {
11031
+ email: string | null;
11032
+ }[];
10797
11033
  } | null;
10798
11034
  sender: {
10799
11035
  id: string;
@@ -10824,9 +11060,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10824
11060
  replyTo: {
10825
11061
  id: string;
10826
11062
  } | null;
10827
- temporaryRecipients: {
10828
- email: string | null;
10829
- }[];
10830
11063
  recipients: {
10831
11064
  id: string;
10832
11065
  lastname: string;
@@ -10834,6 +11067,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10834
11067
  avatar: string | null;
10835
11068
  isSearchable: boolean;
10836
11069
  }[];
11070
+ temporaryRecipients: {
11071
+ email: string | null;
11072
+ }[];
10837
11073
  } | null;
10838
11074
  mailIntegrityDraft: {
10839
11075
  id: string;
@@ -10842,9 +11078,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10842
11078
  replyTo: {
10843
11079
  id: string;
10844
11080
  } | null;
10845
- temporaryRecipients: {
10846
- email: string | null;
10847
- }[];
10848
11081
  recipients: {
10849
11082
  id: string;
10850
11083
  lastname: string;
@@ -10852,6 +11085,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10852
11085
  avatar: string | null;
10853
11086
  isSearchable: boolean;
10854
11087
  }[];
11088
+ temporaryRecipients: {
11089
+ email: string | null;
11090
+ }[];
10855
11091
  } | null;
10856
11092
  sender: {
10857
11093
  id: string;
@@ -10914,9 +11150,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10914
11150
  replyTo: {
10915
11151
  id: string;
10916
11152
  } | null;
10917
- temporaryRecipients: {
10918
- email: string | null;
10919
- }[];
10920
11153
  recipients: {
10921
11154
  id: string;
10922
11155
  lastname: string;
@@ -10924,6 +11157,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10924
11157
  avatar: string | null;
10925
11158
  isSearchable: boolean;
10926
11159
  }[];
11160
+ temporaryRecipients: {
11161
+ email: string | null;
11162
+ }[];
10927
11163
  } | null;
10928
11164
  mailIntegrityDraft: {
10929
11165
  id: string;
@@ -10932,9 +11168,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10932
11168
  replyTo: {
10933
11169
  id: string;
10934
11170
  } | null;
10935
- temporaryRecipients: {
10936
- email: string | null;
10937
- }[];
10938
11171
  recipients: {
10939
11172
  id: string;
10940
11173
  lastname: string;
@@ -10942,6 +11175,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10942
11175
  avatar: string | null;
10943
11176
  isSearchable: boolean;
10944
11177
  }[];
11178
+ temporaryRecipients: {
11179
+ email: string | null;
11180
+ }[];
10945
11181
  } | null;
10946
11182
  sender: {
10947
11183
  id: string;
@@ -10972,9 +11208,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10972
11208
  replyTo: {
10973
11209
  id: string;
10974
11210
  } | null;
10975
- temporaryRecipients: {
10976
- email: string | null;
10977
- }[];
10978
11211
  recipients: {
10979
11212
  id: string;
10980
11213
  lastname: string;
@@ -10982,6 +11215,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10982
11215
  avatar: string | null;
10983
11216
  isSearchable: boolean;
10984
11217
  }[];
11218
+ temporaryRecipients: {
11219
+ email: string | null;
11220
+ }[];
10985
11221
  } | null;
10986
11222
  mailIntegrityDraft: {
10987
11223
  id: string;
@@ -10990,9 +11226,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10990
11226
  replyTo: {
10991
11227
  id: string;
10992
11228
  } | null;
10993
- temporaryRecipients: {
10994
- email: string | null;
10995
- }[];
10996
11229
  recipients: {
10997
11230
  id: string;
10998
11231
  lastname: string;
@@ -11000,6 +11233,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11000
11233
  avatar: string | null;
11001
11234
  isSearchable: boolean;
11002
11235
  }[];
11236
+ temporaryRecipients: {
11237
+ email: string | null;
11238
+ }[];
11003
11239
  } | null;
11004
11240
  sender: {
11005
11241
  id: string;
@@ -11130,9 +11366,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11130
11366
  replyTo: {
11131
11367
  id: string;
11132
11368
  } | null;
11133
- temporaryRecipients: {
11134
- email: string | null;
11135
- }[];
11136
11369
  recipients: {
11137
11370
  id: string;
11138
11371
  lastname: string;
@@ -11140,6 +11373,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11140
11373
  avatar: string | null;
11141
11374
  isSearchable: boolean;
11142
11375
  }[];
11376
+ temporaryRecipients: {
11377
+ email: string | null;
11378
+ }[];
11143
11379
  } | null;
11144
11380
  mailIntegrityDraft: {
11145
11381
  id: string;
@@ -11148,9 +11384,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11148
11384
  replyTo: {
11149
11385
  id: string;
11150
11386
  } | null;
11151
- temporaryRecipients: {
11152
- email: string | null;
11153
- }[];
11154
11387
  recipients: {
11155
11388
  id: string;
11156
11389
  lastname: string;
@@ -11158,6 +11391,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11158
11391
  avatar: string | null;
11159
11392
  isSearchable: boolean;
11160
11393
  }[];
11394
+ temporaryRecipients: {
11395
+ email: string | null;
11396
+ }[];
11161
11397
  } | null;
11162
11398
  sender: {
11163
11399
  id: string;
@@ -11188,9 +11424,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11188
11424
  replyTo: {
11189
11425
  id: string;
11190
11426
  } | null;
11191
- temporaryRecipients: {
11192
- email: string | null;
11193
- }[];
11194
11427
  recipients: {
11195
11428
  id: string;
11196
11429
  lastname: string;
@@ -11198,6 +11431,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11198
11431
  avatar: string | null;
11199
11432
  isSearchable: boolean;
11200
11433
  }[];
11434
+ temporaryRecipients: {
11435
+ email: string | null;
11436
+ }[];
11201
11437
  } | null;
11202
11438
  mailIntegrityDraft: {
11203
11439
  id: string;
@@ -11206,9 +11442,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11206
11442
  replyTo: {
11207
11443
  id: string;
11208
11444
  } | null;
11209
- temporaryRecipients: {
11210
- email: string | null;
11211
- }[];
11212
11445
  recipients: {
11213
11446
  id: string;
11214
11447
  lastname: string;
@@ -11216,6 +11449,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11216
11449
  avatar: string | null;
11217
11450
  isSearchable: boolean;
11218
11451
  }[];
11452
+ temporaryRecipients: {
11453
+ email: string | null;
11454
+ }[];
11219
11455
  } | null;
11220
11456
  sender: {
11221
11457
  id: string;
@@ -11365,7 +11601,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11365
11601
  _input_in: {
11366
11602
  id: string;
11367
11603
  customMessage: string | null;
11368
- temporaryRecipients: string[];
11369
11604
  recipients: ({
11370
11605
  subject: string;
11371
11606
  body: string;
@@ -11377,11 +11612,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11377
11612
  dataId: string;
11378
11613
  }[];
11379
11614
  })[];
11615
+ temporaryRecipients: string[];
11380
11616
  };
11381
11617
  _input_out: {
11382
11618
  id: string;
11383
11619
  customMessage: string | null;
11384
- temporaryRecipients: string[];
11385
11620
  recipients: ({
11386
11621
  subject: string;
11387
11622
  body: string;
@@ -11393,6 +11628,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11393
11628
  dataId: string;
11394
11629
  }[];
11395
11630
  })[];
11631
+ temporaryRecipients: string[];
11396
11632
  };
11397
11633
  _output_in: {
11398
11634
  isSent: boolean;
@@ -11506,9 +11742,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11506
11742
  replyTo: {
11507
11743
  id: string;
11508
11744
  } | null;
11509
- temporaryRecipients: {
11510
- email: string | null;
11511
- }[];
11512
11745
  recipients: {
11513
11746
  id: string;
11514
11747
  lastname: string;
@@ -11516,6 +11749,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11516
11749
  avatar: string | null;
11517
11750
  isSearchable: boolean;
11518
11751
  }[];
11752
+ temporaryRecipients: {
11753
+ email: string | null;
11754
+ }[];
11519
11755
  } | null;
11520
11756
  mailIntegrityDraft: {
11521
11757
  id: string;
@@ -11524,9 +11760,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11524
11760
  replyTo: {
11525
11761
  id: string;
11526
11762
  } | null;
11527
- temporaryRecipients: {
11528
- email: string | null;
11529
- }[];
11530
11763
  recipients: {
11531
11764
  id: string;
11532
11765
  lastname: string;
@@ -11534,6 +11767,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11534
11767
  avatar: string | null;
11535
11768
  isSearchable: boolean;
11536
11769
  }[];
11770
+ temporaryRecipients: {
11771
+ email: string | null;
11772
+ }[];
11537
11773
  } | null;
11538
11774
  sender: {
11539
11775
  id: string;
@@ -11564,9 +11800,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11564
11800
  replyTo: {
11565
11801
  id: string;
11566
11802
  } | null;
11567
- temporaryRecipients: {
11568
- email: string | null;
11569
- }[];
11570
11803
  recipients: {
11571
11804
  id: string;
11572
11805
  lastname: string;
@@ -11574,6 +11807,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11574
11807
  avatar: string | null;
11575
11808
  isSearchable: boolean;
11576
11809
  }[];
11810
+ temporaryRecipients: {
11811
+ email: string | null;
11812
+ }[];
11577
11813
  } | null;
11578
11814
  mailIntegrityDraft: {
11579
11815
  id: string;
@@ -11582,9 +11818,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11582
11818
  replyTo: {
11583
11819
  id: string;
11584
11820
  } | null;
11585
- temporaryRecipients: {
11586
- email: string | null;
11587
- }[];
11588
11821
  recipients: {
11589
11822
  id: string;
11590
11823
  lastname: string;
@@ -11592,6 +11825,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11592
11825
  avatar: string | null;
11593
11826
  isSearchable: boolean;
11594
11827
  }[];
11828
+ temporaryRecipients: {
11829
+ email: string | null;
11830
+ }[];
11595
11831
  } | null;
11596
11832
  sender: {
11597
11833
  id: string;
@@ -11738,9 +11974,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11738
11974
  replyTo: {
11739
11975
  id: string;
11740
11976
  } | null;
11741
- temporaryRecipients: {
11742
- email: string | null;
11743
- }[];
11744
11977
  recipients: {
11745
11978
  id: string;
11746
11979
  lastname: string;
@@ -11748,6 +11981,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11748
11981
  avatar: string | null;
11749
11982
  isSearchable: boolean;
11750
11983
  }[];
11984
+ temporaryRecipients: {
11985
+ email: string | null;
11986
+ }[];
11751
11987
  } | null;
11752
11988
  mailIntegrityDraft: {
11753
11989
  id: string;
@@ -11756,9 +11992,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11756
11992
  replyTo: {
11757
11993
  id: string;
11758
11994
  } | null;
11759
- temporaryRecipients: {
11760
- email: string | null;
11761
- }[];
11762
11995
  recipients: {
11763
11996
  id: string;
11764
11997
  lastname: string;
@@ -11766,6 +11999,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11766
11999
  avatar: string | null;
11767
12000
  isSearchable: boolean;
11768
12001
  }[];
12002
+ temporaryRecipients: {
12003
+ email: string | null;
12004
+ }[];
11769
12005
  } | null;
11770
12006
  sender: {
11771
12007
  id: string;
@@ -11796,9 +12032,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11796
12032
  replyTo: {
11797
12033
  id: string;
11798
12034
  } | null;
11799
- temporaryRecipients: {
11800
- email: string | null;
11801
- }[];
11802
12035
  recipients: {
11803
12036
  id: string;
11804
12037
  lastname: string;
@@ -11806,6 +12039,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11806
12039
  avatar: string | null;
11807
12040
  isSearchable: boolean;
11808
12041
  }[];
12042
+ temporaryRecipients: {
12043
+ email: string | null;
12044
+ }[];
11809
12045
  } | null;
11810
12046
  mailIntegrityDraft: {
11811
12047
  id: string;
@@ -11814,9 +12050,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11814
12050
  replyTo: {
11815
12051
  id: string;
11816
12052
  } | null;
11817
- temporaryRecipients: {
11818
- email: string | null;
11819
- }[];
11820
12053
  recipients: {
11821
12054
  id: string;
11822
12055
  lastname: string;
@@ -11824,6 +12057,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11824
12057
  avatar: string | null;
11825
12058
  isSearchable: boolean;
11826
12059
  }[];
12060
+ temporaryRecipients: {
12061
+ email: string | null;
12062
+ }[];
11827
12063
  } | null;
11828
12064
  sender: {
11829
12065
  id: string;
@@ -11873,11 +12109,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11873
12109
  isSearchable: boolean;
11874
12110
  };
11875
12111
  date: Date;
11876
- temporaryRecipients: {
11877
- email: string | null;
11878
- id: string;
11879
- phone: string | null;
11880
- }[];
11881
12112
  recipients: {
11882
12113
  id: string;
11883
12114
  lastname: string;
@@ -11885,6 +12116,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11885
12116
  avatar: string | null;
11886
12117
  isSearchable: boolean;
11887
12118
  }[];
12119
+ temporaryRecipients: {
12120
+ email: string | null;
12121
+ id: string;
12122
+ phone: string | null;
12123
+ }[];
11888
12124
  attachmentsCount: number;
11889
12125
  }[];
11890
12126
  _output_out: {
@@ -11896,11 +12132,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11896
12132
  isSearchable: boolean;
11897
12133
  };
11898
12134
  date: Date;
11899
- temporaryRecipients: {
11900
- email: string | null;
11901
- id: string;
11902
- phone: string | null;
11903
- }[];
11904
12135
  recipients: {
11905
12136
  id: string;
11906
12137
  lastname: string;
@@ -11908,6 +12139,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11908
12139
  avatar: string | null;
11909
12140
  isSearchable: boolean;
11910
12141
  }[];
12142
+ temporaryRecipients: {
12143
+ email: string | null;
12144
+ id: string;
12145
+ phone: string | null;
12146
+ }[];
11911
12147
  attachmentsCount: number;
11912
12148
  }[];
11913
12149
  }, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-dev.72",
3
+ "version": "1.33.0-dev.74",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"