@secrecy/trpc-api-types 1.5.0 → 1.6.0-integration-prisma-selectors.2

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.ts +1371 -384
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
+ import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
1
2
  import type * as _trpc_server from '@trpc/server';
2
3
  import type * as superjson from 'superjson';
3
4
  import type * as zod from 'zod';
4
5
  import type * as _trpc_server_dist_error_formatter from '@trpc/server/dist/error/formatter';
5
6
  import type * as _trpc_server_dist_rpc from '@trpc/server/dist/rpc';
6
- import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
7
7
 
8
8
  declare enum MongoDbEnv {
9
9
  prod = "prod",
@@ -30,6 +30,101 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
30
30
  };
31
31
  transformer: typeof superjson.default;
32
32
  }>, {
33
+ account: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
34
+ ctx: {};
35
+ meta: object;
36
+ errorShape: {
37
+ message: string;
38
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
39
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
40
+ } | {
41
+ data: {
42
+ zodError: zod.typeToFlattenedError<any, string> | null;
43
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
44
+ httpStatus: number;
45
+ path?: string | undefined;
46
+ stack?: string | undefined;
47
+ };
48
+ message: string;
49
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
50
+ };
51
+ transformer: typeof superjson.default;
52
+ }>, {
53
+ createUser: _trpc_server.BuildProcedure<"mutation", {
54
+ _config: _trpc_server.RootConfig<{
55
+ ctx: {};
56
+ meta: object;
57
+ errorShape: {
58
+ message: string;
59
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
60
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
61
+ } | {
62
+ data: {
63
+ zodError: zod.typeToFlattenedError<any, string> | null;
64
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
65
+ httpStatus: number;
66
+ path?: string | undefined;
67
+ stack?: string | undefined;
68
+ };
69
+ message: string;
70
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
71
+ };
72
+ transformer: typeof superjson.default;
73
+ }>;
74
+ _meta: object;
75
+ _ctx_out: {};
76
+ _input_in: {
77
+ lastname: string;
78
+ firstname: string;
79
+ };
80
+ _input_out: {
81
+ lastname: string;
82
+ firstname: string;
83
+ };
84
+ _output_in: {
85
+ id: string;
86
+ };
87
+ _output_out: {
88
+ id: string;
89
+ };
90
+ }, unknown>;
91
+ deleteUser: _trpc_server.BuildProcedure<"mutation", {
92
+ _config: _trpc_server.RootConfig<{
93
+ ctx: {};
94
+ meta: object;
95
+ errorShape: {
96
+ message: string;
97
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
98
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
99
+ } | {
100
+ data: {
101
+ zodError: zod.typeToFlattenedError<any, string> | null;
102
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
103
+ httpStatus: number;
104
+ path?: string | undefined;
105
+ stack?: string | undefined;
106
+ };
107
+ message: string;
108
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
109
+ };
110
+ transformer: typeof superjson.default;
111
+ }>;
112
+ _meta: object;
113
+ _ctx_out: {};
114
+ _input_in: {
115
+ userId: string;
116
+ };
117
+ _input_out: {
118
+ userId: string;
119
+ };
120
+ _output_in: {
121
+ isDeleted: boolean;
122
+ };
123
+ _output_out: {
124
+ isDeleted: boolean;
125
+ };
126
+ }, unknown>;
127
+ }>;
33
128
  application: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
34
129
  ctx: {};
35
130
  meta: object;
@@ -378,16 +473,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
378
473
  _meta: object;
379
474
  _ctx_out: {};
380
475
  _input_in: {
381
- mail: boolean;
382
- cloud: boolean;
383
- enableAll: boolean;
384
- disableAllUntil: Date | null;
476
+ mail?: boolean | undefined;
477
+ cloud?: boolean | undefined;
478
+ enableAll?: boolean | undefined;
479
+ disableAllUntil?: Date | null | undefined;
385
480
  };
386
481
  _input_out: {
387
- mail: boolean;
388
- cloud: boolean;
389
- enableAll: boolean;
390
- disableAllUntil: Date | null;
482
+ mail?: boolean | undefined;
483
+ cloud?: boolean | undefined;
484
+ enableAll?: boolean | undefined;
485
+ disableAllUntil?: Date | null | undefined;
391
486
  };
392
487
  _output_in: {
393
488
  mail: boolean;
@@ -450,6 +545,42 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
450
545
  historyFileDaysForDelete: number | null;
451
546
  };
452
547
  }, unknown>;
548
+ userPublicKey: _trpc_server.BuildProcedure<"query", {
549
+ _config: _trpc_server.RootConfig<{
550
+ ctx: {};
551
+ meta: object;
552
+ errorShape: {
553
+ message: string;
554
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
555
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
556
+ } | {
557
+ data: {
558
+ zodError: zod.typeToFlattenedError<any, string> | null;
559
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
560
+ httpStatus: number;
561
+ path?: string | undefined;
562
+ stack?: string | undefined;
563
+ };
564
+ message: string;
565
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
566
+ };
567
+ transformer: typeof superjson.default;
568
+ }>;
569
+ _meta: object;
570
+ _ctx_out: {};
571
+ _input_in: {
572
+ userId: string;
573
+ };
574
+ _input_out: {
575
+ userId: string;
576
+ };
577
+ _output_in: {
578
+ publicKey: string;
579
+ };
580
+ _output_out: {
581
+ publicKey: string;
582
+ };
583
+ }, unknown>;
453
584
  }>;
454
585
  admin: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
455
586
  ctx: {};
@@ -491,60 +622,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
491
622
  };
492
623
  transformer: typeof superjson.default;
493
624
  }>, {
494
- byId: _trpc_server.BuildProcedure<"query", {
495
- _config: _trpc_server.RootConfig<{
496
- ctx: {};
497
- meta: object;
498
- errorShape: {
499
- message: string;
500
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
501
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
502
- } | {
503
- data: {
504
- zodError: zod.typeToFlattenedError<any, string> | null;
505
- code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
506
- httpStatus: number;
507
- path?: string | undefined;
508
- stack?: string | undefined;
509
- };
510
- message: string;
511
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
512
- };
513
- transformer: typeof superjson.default;
514
- }>;
515
- _meta: object;
516
- _ctx_out: {};
517
- _input_in: {
518
- id: string;
519
- };
520
- _input_out: {
521
- id: string;
522
- };
523
- _output_in: {
524
- id: string;
525
- createdAt: Date;
526
- lastLogin: Date;
527
- deletedAt: Date | null;
528
- infosId: string;
529
- developerId: string | null;
530
- role: "user" | "admin";
531
- godFatherId: string | null;
532
- lang: "fr" | "en";
533
- autoDisconnectDelay: number | null;
534
- };
535
- _output_out: {
536
- id: string;
537
- createdAt: Date;
538
- lastLogin: Date;
539
- deletedAt: Date | null;
540
- infosId: string;
541
- developerId: string | null;
542
- role: "user" | "admin";
543
- godFatherId: string | null;
544
- lang: "fr" | "en";
545
- autoDisconnectDelay: number | null;
546
- };
547
- }, unknown>;
548
625
  deleteById: _trpc_server.BuildProcedure<"mutation", {
549
626
  _config: _trpc_server.RootConfig<{
550
627
  ctx: {};
@@ -581,60 +658,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
581
658
  isDeleted: boolean;
582
659
  };
583
660
  }, unknown>;
584
- searchMany: _trpc_server.BuildProcedure<"query", {
585
- _config: _trpc_server.RootConfig<{
586
- ctx: {};
587
- meta: object;
588
- errorShape: {
589
- message: string;
590
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
591
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
592
- } | {
593
- data: {
594
- zodError: zod.typeToFlattenedError<any, string> | null;
595
- code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
596
- httpStatus: number;
597
- path?: string | undefined;
598
- stack?: string | undefined;
599
- };
600
- message: string;
601
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
602
- };
603
- transformer: typeof superjson.default;
604
- }>;
605
- _meta: object;
606
- _ctx_out: {};
607
- _input_in: {
608
- search: string;
609
- };
610
- _input_out: {
611
- search: string;
612
- };
613
- _output_in: {
614
- id: string;
615
- createdAt: Date;
616
- lastLogin: Date;
617
- deletedAt: Date | null;
618
- infosId: string;
619
- developerId: string | null;
620
- role: "user" | "admin";
621
- godFatherId: string | null;
622
- lang: "fr" | "en";
623
- autoDisconnectDelay: number | null;
624
- }[];
625
- _output_out: {
626
- id: string;
627
- createdAt: Date;
628
- lastLogin: Date;
629
- deletedAt: Date | null;
630
- infosId: string;
631
- developerId: string | null;
632
- role: "user" | "admin";
633
- godFatherId: string | null;
634
- lang: "fr" | "en";
635
- autoDisconnectDelay: number | null;
636
- }[];
637
- }, unknown>;
638
661
  updatePlan: _trpc_server.BuildProcedure<"mutation", {
639
662
  _config: _trpc_server.RootConfig<{
640
663
  ctx: {};
@@ -671,26 +694,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
671
694
  _output_in: {
672
695
  id: string;
673
696
  createdAt: Date;
674
- lastLogin: Date;
697
+ updatedAt: Date;
698
+ lastLogin: Date | null;
675
699
  deletedAt: Date | null;
676
- infosId: string;
677
- developerId: string | null;
678
- role: "user" | "admin";
679
- godFatherId: string | null;
680
- lang: "fr" | "en";
681
- autoDisconnectDelay: number | null;
700
+ lastname: string;
701
+ firstname: string;
682
702
  };
683
703
  _output_out: {
684
704
  id: string;
685
705
  createdAt: Date;
686
- lastLogin: Date;
706
+ updatedAt: Date;
707
+ lastLogin: Date | null;
687
708
  deletedAt: Date | null;
688
- infosId: string;
689
- developerId: string | null;
690
- role: "user" | "admin";
691
- godFatherId: string | null;
692
- lang: "fr" | "en";
693
- autoDisconnectDelay: number | null;
709
+ lastname: string;
710
+ firstname: string;
694
711
  };
695
712
  }, unknown>;
696
713
  }>;
@@ -887,13 +904,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
887
904
  email: string;
888
905
  };
889
906
  _output_in: {
890
- code: string;
891
907
  srpSalt: string;
892
908
  pub: string;
893
909
  loginId: string;
894
910
  };
895
911
  _output_out: {
896
- code: string;
897
912
  srpSalt: string;
898
913
  pub: string;
899
914
  loginId: string;
@@ -931,12 +946,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
931
946
  to: string;
932
947
  };
933
948
  _output_in: {
934
- session: string;
935
- masterKeySalt: string;
949
+ users: {
950
+ id: string;
951
+ lastname: string;
952
+ firstname: string;
953
+ }[];
954
+ loginToken: string;
936
955
  };
937
956
  _output_out: {
938
- session: string;
939
- masterKeySalt: string;
957
+ users: {
958
+ id: string;
959
+ lastname: string;
960
+ firstname: string;
961
+ }[];
962
+ loginToken: string;
940
963
  };
941
964
  }, unknown>;
942
965
  logout: _trpc_server.BuildProcedure<"mutation", {
@@ -998,8 +1021,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
998
1021
  }>;
999
1022
  _meta: object;
1000
1023
  _ctx_out: {};
1001
- _input_in: typeof _trpc_server.unsetMarker;
1002
- _input_out: typeof _trpc_server.unsetMarker;
1024
+ _input_in: {};
1025
+ _input_out: {};
1003
1026
  _output_in: {
1004
1027
  masterKeySalt: string;
1005
1028
  keyPairs: {
@@ -1127,15 +1150,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1127
1150
  godFather?: string | undefined;
1128
1151
  };
1129
1152
  _output_in: {
1130
- session: string;
1153
+ sessionId: string;
1154
+ } & {
1131
1155
  masterKeySalt: string;
1132
1156
  };
1133
1157
  _output_out: {
1134
- session: string;
1158
+ sessionId: string;
1159
+ } & {
1135
1160
  masterKeySalt: string;
1136
1161
  };
1137
1162
  }, unknown>;
1138
- session: _trpc_server.BuildProcedure<"mutation", {
1163
+ loginDeriveSession: _trpc_server.BuildProcedure<"mutation", {
1139
1164
  _config: _trpc_server.RootConfig<{
1140
1165
  ctx: {};
1141
1166
  meta: object;
@@ -1177,6 +1202,46 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1177
1202
  proof: string;
1178
1203
  };
1179
1204
  }, unknown>;
1205
+ loginUser: _trpc_server.BuildProcedure<"mutation", {
1206
+ _config: _trpc_server.RootConfig<{
1207
+ ctx: {};
1208
+ meta: object;
1209
+ errorShape: {
1210
+ message: string;
1211
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
1212
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
1213
+ } | {
1214
+ data: {
1215
+ zodError: zod.typeToFlattenedError<any, string> | null;
1216
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
1217
+ httpStatus: number;
1218
+ path?: string | undefined;
1219
+ stack?: string | undefined;
1220
+ };
1221
+ message: string;
1222
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
1223
+ };
1224
+ transformer: typeof superjson.default;
1225
+ }>;
1226
+ _meta: object;
1227
+ _ctx_out: {};
1228
+ _input_in: {
1229
+ userId: string;
1230
+ loginToken: string;
1231
+ };
1232
+ _input_out: {
1233
+ userId: string;
1234
+ loginToken: string;
1235
+ };
1236
+ _output_in: {
1237
+ session: string;
1238
+ masterKeySalt: string;
1239
+ };
1240
+ _output_out: {
1241
+ session: string;
1242
+ masterKeySalt: string;
1243
+ };
1244
+ }, unknown>;
1180
1245
  signup: _trpc_server.BuildProcedure<"mutation", {
1181
1246
  _config: _trpc_server.RootConfig<{
1182
1247
  ctx: {};
@@ -1202,8 +1267,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1202
1267
  _ctx_out: {};
1203
1268
  _input_in: {
1204
1269
  email: string;
1205
- firstname: string;
1206
1270
  lastname: string;
1271
+ firstname: string;
1207
1272
  phone: string;
1208
1273
  srpSalt: string;
1209
1274
  masterKeySalt: string;
@@ -1212,8 +1277,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1212
1277
  };
1213
1278
  _input_out: {
1214
1279
  email: string;
1215
- firstname: string;
1216
1280
  lastname: string;
1281
+ firstname: string;
1217
1282
  phone: string;
1218
1283
  srpSalt: string;
1219
1284
  masterKeySalt: string;
@@ -1254,13 +1319,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1254
1319
  email: string;
1255
1320
  loginId: string;
1256
1321
  };
1257
- _output_in: {
1258
- code: string;
1259
- };
1260
- _output_out: {
1261
- code: string;
1262
- };
1263
- }, unknown>;
1322
+ _output_in: {};
1323
+ _output_out: {};
1324
+ }, {}>;
1264
1325
  }>;
1265
1326
  blog: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
1266
1327
  ctx: {};
@@ -1401,11 +1462,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1401
1462
  name: string;
1402
1463
  updatedAt: Date;
1403
1464
  deletedAt: Date | null;
1465
+ current: {
1466
+ id: string;
1467
+ createdAt: Date;
1468
+ deletedAt: Date | null;
1469
+ size: bigint;
1470
+ md5: string;
1471
+ storageType: "scaleway" | "mongo";
1472
+ sizeBefore: bigint;
1473
+ md5Encrypted: string;
1474
+ accesses: {
1475
+ key: string;
1476
+ sharedBy: {
1477
+ keyPair: {
1478
+ pub: string;
1479
+ } | null;
1480
+ };
1481
+ }[];
1482
+ } | null;
1483
+ history: {
1484
+ id: string;
1485
+ createdAt: Date;
1486
+ deletedAt: Date | null;
1487
+ size: bigint;
1488
+ md5: string;
1489
+ storageType: "scaleway" | "mongo";
1490
+ sizeBefore: bigint;
1491
+ md5Encrypted: string;
1492
+ accesses: {
1493
+ key: string;
1494
+ sharedBy: {
1495
+ keyPair: {
1496
+ pub: string;
1497
+ } | null;
1498
+ };
1499
+ }[];
1500
+ }[];
1501
+ parent: {
1502
+ type: "FILE" | "FOLDER";
1503
+ id: string;
1504
+ createdAt: Date;
1505
+ name: string;
1506
+ updatedAt: Date;
1507
+ deletedAt: Date | null;
1508
+ parentId: string | null;
1509
+ isFavorite: boolean;
1510
+ createdBy: {
1511
+ appId: string;
1512
+ userId: string;
1513
+ };
1514
+ } | null;
1404
1515
  parentId: string | null;
1405
1516
  isFavorite: boolean;
1406
- createdByUserId: string;
1407
- createdByAppId: string;
1408
- currentFileId: string | null;
1517
+ createdBy: {
1518
+ appId: string;
1519
+ userId: string;
1520
+ };
1521
+ children: {
1522
+ type: "FILE" | "FOLDER";
1523
+ id: string;
1524
+ createdAt: Date;
1525
+ name: string;
1526
+ updatedAt: Date;
1527
+ deletedAt: Date | null;
1528
+ parentId: string | null;
1529
+ isFavorite: boolean;
1530
+ createdBy: {
1531
+ appId: string;
1532
+ userId: string;
1533
+ };
1534
+ }[];
1409
1535
  };
1410
1536
  _output_out: {
1411
1537
  type: "FILE" | "FOLDER";
@@ -1414,11 +1540,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1414
1540
  name: string;
1415
1541
  updatedAt: Date;
1416
1542
  deletedAt: Date | null;
1543
+ current: {
1544
+ id: string;
1545
+ createdAt: Date;
1546
+ deletedAt: Date | null;
1547
+ size: bigint;
1548
+ md5: string;
1549
+ storageType: "scaleway" | "mongo";
1550
+ sizeBefore: bigint;
1551
+ md5Encrypted: string;
1552
+ accesses: {
1553
+ key: string;
1554
+ sharedBy: {
1555
+ keyPair: {
1556
+ pub: string;
1557
+ } | null;
1558
+ };
1559
+ }[];
1560
+ } | null;
1561
+ history: {
1562
+ id: string;
1563
+ createdAt: Date;
1564
+ deletedAt: Date | null;
1565
+ size: bigint;
1566
+ md5: string;
1567
+ storageType: "scaleway" | "mongo";
1568
+ sizeBefore: bigint;
1569
+ md5Encrypted: string;
1570
+ accesses: {
1571
+ key: string;
1572
+ sharedBy: {
1573
+ keyPair: {
1574
+ pub: string;
1575
+ } | null;
1576
+ };
1577
+ }[];
1578
+ }[];
1579
+ parent: {
1580
+ type: "FILE" | "FOLDER";
1581
+ id: string;
1582
+ createdAt: Date;
1583
+ name: string;
1584
+ updatedAt: Date;
1585
+ deletedAt: Date | null;
1586
+ parentId: string | null;
1587
+ isFavorite: boolean;
1588
+ createdBy: {
1589
+ appId: string;
1590
+ userId: string;
1591
+ };
1592
+ } | null;
1417
1593
  parentId: string | null;
1418
1594
  isFavorite: boolean;
1419
- createdByUserId: string;
1420
- createdByAppId: string;
1421
- currentFileId: string | null;
1595
+ createdBy: {
1596
+ appId: string;
1597
+ userId: string;
1598
+ };
1599
+ children: {
1600
+ type: "FILE" | "FOLDER";
1601
+ id: string;
1602
+ createdAt: Date;
1603
+ name: string;
1604
+ updatedAt: Date;
1605
+ deletedAt: Date | null;
1606
+ parentId: string | null;
1607
+ isFavorite: boolean;
1608
+ createdBy: {
1609
+ appId: string;
1610
+ userId: string;
1611
+ };
1612
+ }[];
1422
1613
  };
1423
1614
  }, unknown>;
1424
1615
  deleteFile: _trpc_server.BuildProcedure<"mutation", {
@@ -1497,10 +1688,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1497
1688
  storageType: "scaleway" | "mongo";
1498
1689
  sizeBefore: bigint;
1499
1690
  md5Encrypted: string;
1500
- userAppUserId: string;
1501
- userAppAppId: string;
1502
- validatedAt: Date | null;
1503
- } | null;
1691
+ accesses: {
1692
+ key: string;
1693
+ sharedBy: {
1694
+ keyPair: {
1695
+ pub: string;
1696
+ } | null;
1697
+ };
1698
+ }[];
1699
+ };
1504
1700
  _output_out: {
1505
1701
  id: string;
1506
1702
  createdAt: Date;
@@ -1510,10 +1706,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1510
1706
  storageType: "scaleway" | "mongo";
1511
1707
  sizeBefore: bigint;
1512
1708
  md5Encrypted: string;
1513
- userAppUserId: string;
1514
- userAppAppId: string;
1515
- validatedAt: Date | null;
1516
- } | null;
1709
+ accesses: {
1710
+ key: string;
1711
+ sharedBy: {
1712
+ keyPair: {
1713
+ pub: string;
1714
+ } | null;
1715
+ };
1716
+ }[];
1717
+ };
1517
1718
  }, unknown>;
1518
1719
  fileContentById: _trpc_server.BuildProcedure<"query", {
1519
1720
  _config: _trpc_server.RootConfig<{
@@ -1795,11 +1996,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1795
1996
  name: string;
1796
1997
  updatedAt: Date;
1797
1998
  deletedAt: Date | null;
1999
+ current: {
2000
+ id: string;
2001
+ createdAt: Date;
2002
+ deletedAt: Date | null;
2003
+ size: bigint;
2004
+ md5: string;
2005
+ storageType: "scaleway" | "mongo";
2006
+ sizeBefore: bigint;
2007
+ md5Encrypted: string;
2008
+ accesses: {
2009
+ key: string;
2010
+ sharedBy: {
2011
+ keyPair: {
2012
+ pub: string;
2013
+ } | null;
2014
+ };
2015
+ }[];
2016
+ } | null;
2017
+ history: {
2018
+ id: string;
2019
+ createdAt: Date;
2020
+ deletedAt: Date | null;
2021
+ size: bigint;
2022
+ md5: string;
2023
+ storageType: "scaleway" | "mongo";
2024
+ sizeBefore: bigint;
2025
+ md5Encrypted: string;
2026
+ accesses: {
2027
+ key: string;
2028
+ sharedBy: {
2029
+ keyPair: {
2030
+ pub: string;
2031
+ } | null;
2032
+ };
2033
+ }[];
2034
+ }[];
2035
+ parent: {
2036
+ type: "FILE" | "FOLDER";
2037
+ id: string;
2038
+ createdAt: Date;
2039
+ name: string;
2040
+ updatedAt: Date;
2041
+ deletedAt: Date | null;
2042
+ parentId: string | null;
2043
+ isFavorite: boolean;
2044
+ createdBy: {
2045
+ appId: string;
2046
+ userId: string;
2047
+ };
2048
+ } | null;
1798
2049
  parentId: string | null;
1799
2050
  isFavorite: boolean;
1800
- createdByUserId: string;
1801
- createdByAppId: string;
1802
- currentFileId: string | null;
2051
+ createdBy: {
2052
+ appId: string;
2053
+ userId: string;
2054
+ };
2055
+ children: {
2056
+ type: "FILE" | "FOLDER";
2057
+ id: string;
2058
+ createdAt: Date;
2059
+ name: string;
2060
+ updatedAt: Date;
2061
+ deletedAt: Date | null;
2062
+ parentId: string | null;
2063
+ isFavorite: boolean;
2064
+ createdBy: {
2065
+ appId: string;
2066
+ userId: string;
2067
+ };
2068
+ }[];
1803
2069
  };
1804
2070
  _output_out: {
1805
2071
  type: "FILE" | "FOLDER";
@@ -1808,11 +2074,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1808
2074
  name: string;
1809
2075
  updatedAt: Date;
1810
2076
  deletedAt: Date | null;
2077
+ current: {
2078
+ id: string;
2079
+ createdAt: Date;
2080
+ deletedAt: Date | null;
2081
+ size: bigint;
2082
+ md5: string;
2083
+ storageType: "scaleway" | "mongo";
2084
+ sizeBefore: bigint;
2085
+ md5Encrypted: string;
2086
+ accesses: {
2087
+ key: string;
2088
+ sharedBy: {
2089
+ keyPair: {
2090
+ pub: string;
2091
+ } | null;
2092
+ };
2093
+ }[];
2094
+ } | null;
2095
+ history: {
2096
+ id: string;
2097
+ createdAt: Date;
2098
+ deletedAt: Date | null;
2099
+ size: bigint;
2100
+ md5: string;
2101
+ storageType: "scaleway" | "mongo";
2102
+ sizeBefore: bigint;
2103
+ md5Encrypted: string;
2104
+ accesses: {
2105
+ key: string;
2106
+ sharedBy: {
2107
+ keyPair: {
2108
+ pub: string;
2109
+ } | null;
2110
+ };
2111
+ }[];
2112
+ }[];
2113
+ parent: {
2114
+ type: "FILE" | "FOLDER";
2115
+ id: string;
2116
+ createdAt: Date;
2117
+ name: string;
2118
+ updatedAt: Date;
2119
+ deletedAt: Date | null;
2120
+ parentId: string | null;
2121
+ isFavorite: boolean;
2122
+ createdBy: {
2123
+ appId: string;
2124
+ userId: string;
2125
+ };
2126
+ } | null;
1811
2127
  parentId: string | null;
1812
2128
  isFavorite: boolean;
1813
- createdByUserId: string;
1814
- createdByAppId: string;
1815
- currentFileId: string | null;
2129
+ createdBy: {
2130
+ appId: string;
2131
+ userId: string;
2132
+ };
2133
+ children: {
2134
+ type: "FILE" | "FOLDER";
2135
+ id: string;
2136
+ createdAt: Date;
2137
+ name: string;
2138
+ updatedAt: Date;
2139
+ deletedAt: Date | null;
2140
+ parentId: string | null;
2141
+ isFavorite: boolean;
2142
+ createdBy: {
2143
+ appId: string;
2144
+ userId: string;
2145
+ };
2146
+ }[];
1816
2147
  };
1817
2148
  }, unknown>;
1818
2149
  shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
@@ -2079,11 +2410,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2079
2410
  name: string;
2080
2411
  updatedAt: Date;
2081
2412
  deletedAt: Date | null;
2413
+ current: {
2414
+ id: string;
2415
+ createdAt: Date;
2416
+ deletedAt: Date | null;
2417
+ size: bigint;
2418
+ md5: string;
2419
+ storageType: "scaleway" | "mongo";
2420
+ sizeBefore: bigint;
2421
+ md5Encrypted: string;
2422
+ accesses: {
2423
+ key: string;
2424
+ sharedBy: {
2425
+ keyPair: {
2426
+ pub: string;
2427
+ } | null;
2428
+ };
2429
+ }[];
2430
+ } | null;
2431
+ history: {
2432
+ id: string;
2433
+ createdAt: Date;
2434
+ deletedAt: Date | null;
2435
+ size: bigint;
2436
+ md5: string;
2437
+ storageType: "scaleway" | "mongo";
2438
+ sizeBefore: bigint;
2439
+ md5Encrypted: string;
2440
+ accesses: {
2441
+ key: string;
2442
+ sharedBy: {
2443
+ keyPair: {
2444
+ pub: string;
2445
+ } | null;
2446
+ };
2447
+ }[];
2448
+ }[];
2449
+ parent: {
2450
+ type: "FILE" | "FOLDER";
2451
+ id: string;
2452
+ createdAt: Date;
2453
+ name: string;
2454
+ updatedAt: Date;
2455
+ deletedAt: Date | null;
2456
+ parentId: string | null;
2457
+ isFavorite: boolean;
2458
+ createdBy: {
2459
+ appId: string;
2460
+ userId: string;
2461
+ };
2462
+ } | null;
2082
2463
  parentId: string | null;
2083
2464
  isFavorite: boolean;
2084
- createdByUserId: string;
2085
- createdByAppId: string;
2086
- currentFileId: string | null;
2465
+ createdBy: {
2466
+ appId: string;
2467
+ userId: string;
2468
+ };
2469
+ children: {
2470
+ type: "FILE" | "FOLDER";
2471
+ id: string;
2472
+ createdAt: Date;
2473
+ name: string;
2474
+ updatedAt: Date;
2475
+ deletedAt: Date | null;
2476
+ parentId: string | null;
2477
+ isFavorite: boolean;
2478
+ createdBy: {
2479
+ appId: string;
2480
+ userId: string;
2481
+ };
2482
+ }[];
2087
2483
  };
2088
2484
  _output_out: {
2089
2485
  type: "FILE" | "FOLDER";
@@ -2092,11 +2488,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2092
2488
  name: string;
2093
2489
  updatedAt: Date;
2094
2490
  deletedAt: Date | null;
2491
+ current: {
2492
+ id: string;
2493
+ createdAt: Date;
2494
+ deletedAt: Date | null;
2495
+ size: bigint;
2496
+ md5: string;
2497
+ storageType: "scaleway" | "mongo";
2498
+ sizeBefore: bigint;
2499
+ md5Encrypted: string;
2500
+ accesses: {
2501
+ key: string;
2502
+ sharedBy: {
2503
+ keyPair: {
2504
+ pub: string;
2505
+ } | null;
2506
+ };
2507
+ }[];
2508
+ } | null;
2509
+ history: {
2510
+ id: string;
2511
+ createdAt: Date;
2512
+ deletedAt: Date | null;
2513
+ size: bigint;
2514
+ md5: string;
2515
+ storageType: "scaleway" | "mongo";
2516
+ sizeBefore: bigint;
2517
+ md5Encrypted: string;
2518
+ accesses: {
2519
+ key: string;
2520
+ sharedBy: {
2521
+ keyPair: {
2522
+ pub: string;
2523
+ } | null;
2524
+ };
2525
+ }[];
2526
+ }[];
2527
+ parent: {
2528
+ type: "FILE" | "FOLDER";
2529
+ id: string;
2530
+ createdAt: Date;
2531
+ name: string;
2532
+ updatedAt: Date;
2533
+ deletedAt: Date | null;
2534
+ parentId: string | null;
2535
+ isFavorite: boolean;
2536
+ createdBy: {
2537
+ appId: string;
2538
+ userId: string;
2539
+ };
2540
+ } | null;
2095
2541
  parentId: string | null;
2096
2542
  isFavorite: boolean;
2097
- createdByUserId: string;
2098
- createdByAppId: string;
2099
- currentFileId: string | null;
2543
+ createdBy: {
2544
+ appId: string;
2545
+ userId: string;
2546
+ };
2547
+ children: {
2548
+ type: "FILE" | "FOLDER";
2549
+ id: string;
2550
+ createdAt: Date;
2551
+ name: string;
2552
+ updatedAt: Date;
2553
+ deletedAt: Date | null;
2554
+ parentId: string | null;
2555
+ isFavorite: boolean;
2556
+ createdBy: {
2557
+ appId: string;
2558
+ userId: string;
2559
+ };
2560
+ }[];
2100
2561
  };
2101
2562
  }, unknown>;
2102
2563
  deleteNodeCloudTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -2343,12 +2804,72 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2343
2804
  _meta: object;
2344
2805
  _ctx_out: {};
2345
2806
  _input_in: {
2346
- id: string;
2347
- deleted?: boolean | undefined;
2807
+ id?: string | null | undefined;
2808
+ deleted?: boolean | null | undefined;
2348
2809
  };
2349
2810
  _input_out: {
2811
+ id?: string | null | undefined;
2812
+ deleted?: boolean | null | undefined;
2813
+ };
2814
+ _output_in: {
2815
+ type: "FILE" | "FOLDER";
2816
+ id: string;
2817
+ createdAt: Date;
2818
+ name: string;
2819
+ updatedAt: Date;
2820
+ deletedAt: Date | null;
2821
+ parentId: string | null;
2822
+ isFavorite: boolean;
2823
+ createdBy: {
2824
+ appId: string;
2825
+ userId: string;
2826
+ };
2827
+ };
2828
+ _output_out: {
2829
+ type: "FILE" | "FOLDER";
2350
2830
  id: string;
2351
- deleted?: boolean | undefined;
2831
+ createdAt: Date;
2832
+ name: string;
2833
+ updatedAt: Date;
2834
+ deletedAt: Date | null;
2835
+ parentId: string | null;
2836
+ isFavorite: boolean;
2837
+ createdBy: {
2838
+ appId: string;
2839
+ userId: string;
2840
+ };
2841
+ };
2842
+ }, unknown>;
2843
+ nodeFullById: _trpc_server.BuildProcedure<"query", {
2844
+ _config: _trpc_server.RootConfig<{
2845
+ ctx: {};
2846
+ meta: object;
2847
+ errorShape: {
2848
+ message: string;
2849
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2850
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2851
+ } | {
2852
+ data: {
2853
+ zodError: zod.typeToFlattenedError<any, string> | null;
2854
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
2855
+ httpStatus: number;
2856
+ path?: string | undefined;
2857
+ stack?: string | undefined;
2858
+ };
2859
+ message: string;
2860
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2861
+ };
2862
+ transformer: typeof superjson.default;
2863
+ }>;
2864
+ _meta: object;
2865
+ _ctx_out: {};
2866
+ _input_in: {
2867
+ id?: string | null | undefined;
2868
+ deleted?: boolean | null | undefined;
2869
+ };
2870
+ _input_out: {
2871
+ id?: string | null | undefined;
2872
+ deleted?: boolean | null | undefined;
2352
2873
  };
2353
2874
  _output_in: {
2354
2875
  type: "FILE" | "FOLDER";
@@ -2357,12 +2878,77 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2357
2878
  name: string;
2358
2879
  updatedAt: Date;
2359
2880
  deletedAt: Date | null;
2881
+ current: {
2882
+ id: string;
2883
+ createdAt: Date;
2884
+ deletedAt: Date | null;
2885
+ size: bigint;
2886
+ md5: string;
2887
+ storageType: "scaleway" | "mongo";
2888
+ sizeBefore: bigint;
2889
+ md5Encrypted: string;
2890
+ accesses: {
2891
+ key: string;
2892
+ sharedBy: {
2893
+ keyPair: {
2894
+ pub: string;
2895
+ } | null;
2896
+ };
2897
+ }[];
2898
+ } | null;
2899
+ history: {
2900
+ id: string;
2901
+ createdAt: Date;
2902
+ deletedAt: Date | null;
2903
+ size: bigint;
2904
+ md5: string;
2905
+ storageType: "scaleway" | "mongo";
2906
+ sizeBefore: bigint;
2907
+ md5Encrypted: string;
2908
+ accesses: {
2909
+ key: string;
2910
+ sharedBy: {
2911
+ keyPair: {
2912
+ pub: string;
2913
+ } | null;
2914
+ };
2915
+ }[];
2916
+ }[];
2917
+ parent: {
2918
+ type: "FILE" | "FOLDER";
2919
+ id: string;
2920
+ createdAt: Date;
2921
+ name: string;
2922
+ updatedAt: Date;
2923
+ deletedAt: Date | null;
2924
+ parentId: string | null;
2925
+ isFavorite: boolean;
2926
+ createdBy: {
2927
+ appId: string;
2928
+ userId: string;
2929
+ };
2930
+ } | null;
2360
2931
  parentId: string | null;
2361
2932
  isFavorite: boolean;
2362
- createdByUserId: string;
2363
- createdByAppId: string;
2364
- currentFileId: string | null;
2365
- } | null;
2933
+ createdBy: {
2934
+ appId: string;
2935
+ userId: string;
2936
+ };
2937
+ children: {
2938
+ type: "FILE" | "FOLDER";
2939
+ id: string;
2940
+ createdAt: Date;
2941
+ name: string;
2942
+ updatedAt: Date;
2943
+ deletedAt: Date | null;
2944
+ parentId: string | null;
2945
+ isFavorite: boolean;
2946
+ createdBy: {
2947
+ appId: string;
2948
+ userId: string;
2949
+ };
2950
+ }[];
2951
+ };
2366
2952
  _output_out: {
2367
2953
  type: "FILE" | "FOLDER";
2368
2954
  id: string;
@@ -2370,12 +2956,77 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2370
2956
  name: string;
2371
2957
  updatedAt: Date;
2372
2958
  deletedAt: Date | null;
2959
+ current: {
2960
+ id: string;
2961
+ createdAt: Date;
2962
+ deletedAt: Date | null;
2963
+ size: bigint;
2964
+ md5: string;
2965
+ storageType: "scaleway" | "mongo";
2966
+ sizeBefore: bigint;
2967
+ md5Encrypted: string;
2968
+ accesses: {
2969
+ key: string;
2970
+ sharedBy: {
2971
+ keyPair: {
2972
+ pub: string;
2973
+ } | null;
2974
+ };
2975
+ }[];
2976
+ } | null;
2977
+ history: {
2978
+ id: string;
2979
+ createdAt: Date;
2980
+ deletedAt: Date | null;
2981
+ size: bigint;
2982
+ md5: string;
2983
+ storageType: "scaleway" | "mongo";
2984
+ sizeBefore: bigint;
2985
+ md5Encrypted: string;
2986
+ accesses: {
2987
+ key: string;
2988
+ sharedBy: {
2989
+ keyPair: {
2990
+ pub: string;
2991
+ } | null;
2992
+ };
2993
+ }[];
2994
+ }[];
2995
+ parent: {
2996
+ type: "FILE" | "FOLDER";
2997
+ id: string;
2998
+ createdAt: Date;
2999
+ name: string;
3000
+ updatedAt: Date;
3001
+ deletedAt: Date | null;
3002
+ parentId: string | null;
3003
+ isFavorite: boolean;
3004
+ createdBy: {
3005
+ appId: string;
3006
+ userId: string;
3007
+ };
3008
+ } | null;
2373
3009
  parentId: string | null;
2374
3010
  isFavorite: boolean;
2375
- createdByUserId: string;
2376
- createdByAppId: string;
2377
- currentFileId: string | null;
2378
- } | null;
3011
+ createdBy: {
3012
+ appId: string;
3013
+ userId: string;
3014
+ };
3015
+ children: {
3016
+ type: "FILE" | "FOLDER";
3017
+ id: string;
3018
+ createdAt: Date;
3019
+ name: string;
3020
+ updatedAt: Date;
3021
+ deletedAt: Date | null;
3022
+ parentId: string | null;
3023
+ isFavorite: boolean;
3024
+ createdBy: {
3025
+ appId: string;
3026
+ userId: string;
3027
+ };
3028
+ }[];
3029
+ };
2379
3030
  }, unknown>;
2380
3031
  nodesDeleted: _trpc_server.BuildProcedure<"query", {
2381
3032
  _config: _trpc_server.RootConfig<{
@@ -2411,9 +3062,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2411
3062
  deletedAt: Date | null;
2412
3063
  parentId: string | null;
2413
3064
  isFavorite: boolean;
2414
- createdByUserId: string;
2415
- createdByAppId: string;
2416
- currentFileId: string | null;
3065
+ createdBy: {
3066
+ appId: string;
3067
+ userId: string;
3068
+ };
2417
3069
  }[];
2418
3070
  _output_out: {
2419
3071
  type: "FILE" | "FOLDER";
@@ -2424,9 +3076,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2424
3076
  deletedAt: Date | null;
2425
3077
  parentId: string | null;
2426
3078
  isFavorite: boolean;
2427
- createdByUserId: string;
2428
- createdByAppId: string;
2429
- currentFileId: string | null;
3079
+ createdBy: {
3080
+ appId: string;
3081
+ userId: string;
3082
+ };
2430
3083
  }[];
2431
3084
  }, unknown>;
2432
3085
  nodesSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -2458,7 +3111,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2458
3111
  _input_out: {
2459
3112
  type: "FILE" | "FOLDER";
2460
3113
  };
2461
- _output_in: ({
3114
+ _output_in: {
2462
3115
  type: "FILE" | "FOLDER";
2463
3116
  id: string;
2464
3117
  createdAt: Date;
@@ -2467,11 +3120,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2467
3120
  deletedAt: Date | null;
2468
3121
  parentId: string | null;
2469
3122
  isFavorite: boolean;
2470
- createdByUserId: string;
2471
- createdByAppId: string;
2472
- currentFileId: string | null;
2473
- } | null)[];
2474
- _output_out: ({
3123
+ createdBy: {
3124
+ appId: string;
3125
+ userId: string;
3126
+ };
3127
+ }[];
3128
+ _output_out: {
2475
3129
  type: "FILE" | "FOLDER";
2476
3130
  id: string;
2477
3131
  createdAt: Date;
@@ -2480,10 +3134,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2480
3134
  deletedAt: Date | null;
2481
3135
  parentId: string | null;
2482
3136
  isFavorite: boolean;
2483
- createdByUserId: string;
2484
- createdByAppId: string;
2485
- currentFileId: string | null;
2486
- } | null)[];
3137
+ createdBy: {
3138
+ appId: string;
3139
+ userId: string;
3140
+ };
3141
+ }[];
2487
3142
  }, unknown>;
2488
3143
  nodesShared: _trpc_server.BuildProcedure<"query", {
2489
3144
  _config: _trpc_server.RootConfig<{
@@ -2510,7 +3165,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2510
3165
  _ctx_out: {};
2511
3166
  _input_in: typeof _trpc_server.unsetMarker;
2512
3167
  _input_out: typeof _trpc_server.unsetMarker;
2513
- _output_in: ({
3168
+ _output_in: {
2514
3169
  type: "FILE" | "FOLDER";
2515
3170
  id: string;
2516
3171
  createdAt: Date;
@@ -2519,11 +3174,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2519
3174
  deletedAt: Date | null;
2520
3175
  parentId: string | null;
2521
3176
  isFavorite: boolean;
2522
- createdByUserId: string;
2523
- createdByAppId: string;
2524
- currentFileId: string | null;
2525
- } | null)[];
2526
- _output_out: ({
3177
+ createdBy: {
3178
+ appId: string;
3179
+ userId: string;
3180
+ };
3181
+ }[];
3182
+ _output_out: {
2527
3183
  type: "FILE" | "FOLDER";
2528
3184
  id: string;
2529
3185
  createdAt: Date;
@@ -2532,10 +3188,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2532
3188
  deletedAt: Date | null;
2533
3189
  parentId: string | null;
2534
3190
  isFavorite: boolean;
2535
- createdByUserId: string;
2536
- createdByAppId: string;
2537
- currentFileId: string | null;
2538
- } | null)[];
3191
+ createdBy: {
3192
+ appId: string;
3193
+ userId: string;
3194
+ };
3195
+ }[];
2539
3196
  }, unknown>;
2540
3197
  recoverNode: _trpc_server.BuildProcedure<"mutation", {
2541
3198
  _config: _trpc_server.RootConfig<{
@@ -2707,11 +3364,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2707
3364
  name: string;
2708
3365
  updatedAt: Date;
2709
3366
  deletedAt: Date | null;
3367
+ current: {
3368
+ id: string;
3369
+ createdAt: Date;
3370
+ deletedAt: Date | null;
3371
+ size: bigint;
3372
+ md5: string;
3373
+ storageType: "scaleway" | "mongo";
3374
+ sizeBefore: bigint;
3375
+ md5Encrypted: string;
3376
+ accesses: {
3377
+ key: string;
3378
+ sharedBy: {
3379
+ keyPair: {
3380
+ pub: string;
3381
+ } | null;
3382
+ };
3383
+ }[];
3384
+ } | null;
3385
+ history: {
3386
+ id: string;
3387
+ createdAt: Date;
3388
+ deletedAt: Date | null;
3389
+ size: bigint;
3390
+ md5: string;
3391
+ storageType: "scaleway" | "mongo";
3392
+ sizeBefore: bigint;
3393
+ md5Encrypted: string;
3394
+ accesses: {
3395
+ key: string;
3396
+ sharedBy: {
3397
+ keyPair: {
3398
+ pub: string;
3399
+ } | null;
3400
+ };
3401
+ }[];
3402
+ }[];
3403
+ parent: {
3404
+ type: "FILE" | "FOLDER";
3405
+ id: string;
3406
+ createdAt: Date;
3407
+ name: string;
3408
+ updatedAt: Date;
3409
+ deletedAt: Date | null;
3410
+ parentId: string | null;
3411
+ isFavorite: boolean;
3412
+ createdBy: {
3413
+ appId: string;
3414
+ userId: string;
3415
+ };
3416
+ } | null;
2710
3417
  parentId: string | null;
2711
3418
  isFavorite: boolean;
2712
- createdByUserId: string;
2713
- createdByAppId: string;
2714
- currentFileId: string | null;
3419
+ createdBy: {
3420
+ appId: string;
3421
+ userId: string;
3422
+ };
3423
+ children: {
3424
+ type: "FILE" | "FOLDER";
3425
+ id: string;
3426
+ createdAt: Date;
3427
+ name: string;
3428
+ updatedAt: Date;
3429
+ deletedAt: Date | null;
3430
+ parentId: string | null;
3431
+ isFavorite: boolean;
3432
+ createdBy: {
3433
+ appId: string;
3434
+ userId: string;
3435
+ };
3436
+ }[];
2715
3437
  };
2716
3438
  _output_out: {
2717
3439
  type: "FILE" | "FOLDER";
@@ -2720,11 +3442,76 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2720
3442
  name: string;
2721
3443
  updatedAt: Date;
2722
3444
  deletedAt: Date | null;
3445
+ current: {
3446
+ id: string;
3447
+ createdAt: Date;
3448
+ deletedAt: Date | null;
3449
+ size: bigint;
3450
+ md5: string;
3451
+ storageType: "scaleway" | "mongo";
3452
+ sizeBefore: bigint;
3453
+ md5Encrypted: string;
3454
+ accesses: {
3455
+ key: string;
3456
+ sharedBy: {
3457
+ keyPair: {
3458
+ pub: string;
3459
+ } | null;
3460
+ };
3461
+ }[];
3462
+ } | null;
3463
+ history: {
3464
+ id: string;
3465
+ createdAt: Date;
3466
+ deletedAt: Date | null;
3467
+ size: bigint;
3468
+ md5: string;
3469
+ storageType: "scaleway" | "mongo";
3470
+ sizeBefore: bigint;
3471
+ md5Encrypted: string;
3472
+ accesses: {
3473
+ key: string;
3474
+ sharedBy: {
3475
+ keyPair: {
3476
+ pub: string;
3477
+ } | null;
3478
+ };
3479
+ }[];
3480
+ }[];
3481
+ parent: {
3482
+ type: "FILE" | "FOLDER";
3483
+ id: string;
3484
+ createdAt: Date;
3485
+ name: string;
3486
+ updatedAt: Date;
3487
+ deletedAt: Date | null;
3488
+ parentId: string | null;
3489
+ isFavorite: boolean;
3490
+ createdBy: {
3491
+ appId: string;
3492
+ userId: string;
3493
+ };
3494
+ } | null;
2723
3495
  parentId: string | null;
2724
3496
  isFavorite: boolean;
2725
- createdByUserId: string;
2726
- createdByAppId: string;
2727
- currentFileId: string | null;
3497
+ createdBy: {
3498
+ appId: string;
3499
+ userId: string;
3500
+ };
3501
+ children: {
3502
+ type: "FILE" | "FOLDER";
3503
+ id: string;
3504
+ createdAt: Date;
3505
+ name: string;
3506
+ updatedAt: Date;
3507
+ deletedAt: Date | null;
3508
+ parentId: string | null;
3509
+ isFavorite: boolean;
3510
+ createdBy: {
3511
+ appId: string;
3512
+ userId: string;
3513
+ };
3514
+ }[];
2728
3515
  };
2729
3516
  }, unknown>;
2730
3517
  }>;
@@ -2773,23 +3560,23 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2773
3560
  _ctx_out: {};
2774
3561
  _input_in: {
2775
3562
  address: string;
2776
- privateKeyEncrypted: string;
3563
+ encryptedKeystore: string;
2777
3564
  };
2778
3565
  _input_out: {
2779
3566
  address: string;
2780
- privateKeyEncrypted: string;
3567
+ encryptedKeystore: string;
2781
3568
  };
2782
3569
  _output_in: {
2783
3570
  userId: string;
2784
3571
  createdAt: Date;
2785
3572
  address: string;
2786
- privateKeyEncrypted: string;
3573
+ encryptedKeystore: string;
2787
3574
  };
2788
3575
  _output_out: {
2789
3576
  userId: string;
2790
3577
  createdAt: Date;
2791
3578
  address: string;
2792
- privateKeyEncrypted: string;
3579
+ encryptedKeystore: string;
2793
3580
  };
2794
3581
  }, unknown>;
2795
3582
  isTransactionDone: _trpc_server.BuildProcedure<"query", {
@@ -3552,29 +4339,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3552
4339
  };
3553
4340
  _output_in: {
3554
4341
  type: "received" | "sent";
3555
- appId: string;
4342
+ mailIntegrity: {
4343
+ id: string;
4344
+ replyTo: {
4345
+ id: string;
4346
+ } | null;
4347
+ hashKey: string;
4348
+ hash: string;
4349
+ temporaryRecipients: {
4350
+ email: string | null;
4351
+ }[];
4352
+ } | null;
4353
+ mailIntegrityDraft: {
4354
+ id: string;
4355
+ replyTo: {
4356
+ id: string;
4357
+ } | null;
4358
+ hashKey: string;
4359
+ hash: string;
4360
+ temporaryRecipients: {
4361
+ email: string | null;
4362
+ }[];
4363
+ } | null;
3556
4364
  id: string;
3557
4365
  createdAt: Date;
3558
4366
  deletedAt: Date | null;
3559
4367
  subject: string;
3560
4368
  body: string;
3561
- senderId: string;
3562
- recipientId: string;
3563
4369
  openedAt: Date | null;
3564
- mailIntegrityId: string | null;
4370
+ files: {
4371
+ fileId: string;
4372
+ filename: string;
4373
+ fileKey: string;
4374
+ }[];
3565
4375
  };
3566
4376
  _output_out: {
3567
4377
  type: "received" | "sent";
3568
- appId: string;
4378
+ mailIntegrity: {
4379
+ id: string;
4380
+ replyTo: {
4381
+ id: string;
4382
+ } | null;
4383
+ hashKey: string;
4384
+ hash: string;
4385
+ temporaryRecipients: {
4386
+ email: string | null;
4387
+ }[];
4388
+ } | null;
4389
+ mailIntegrityDraft: {
4390
+ id: string;
4391
+ replyTo: {
4392
+ id: string;
4393
+ } | null;
4394
+ hashKey: string;
4395
+ hash: string;
4396
+ temporaryRecipients: {
4397
+ email: string | null;
4398
+ }[];
4399
+ } | null;
3569
4400
  id: string;
3570
4401
  createdAt: Date;
3571
4402
  deletedAt: Date | null;
3572
4403
  subject: string;
3573
4404
  body: string;
3574
- senderId: string;
3575
- recipientId: string;
3576
4405
  openedAt: Date | null;
3577
- mailIntegrityId: string | null;
4406
+ files: {
4407
+ fileId: string;
4408
+ filename: string;
4409
+ fileKey: string;
4410
+ }[];
3578
4411
  };
3579
4412
  }, unknown>;
3580
4413
  createDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -3630,16 +4463,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3630
4463
  };
3631
4464
  _output_in: {
3632
4465
  type: "received" | "sent";
3633
- appId: string;
4466
+ mailIntegrity: {
4467
+ id: string;
4468
+ replyTo: {
4469
+ id: string;
4470
+ } | null;
4471
+ hashKey: string;
4472
+ hash: string;
4473
+ temporaryRecipients: {
4474
+ email: string | null;
4475
+ }[];
4476
+ } | null;
4477
+ mailIntegrityDraft: {
4478
+ id: string;
4479
+ replyTo: {
4480
+ id: string;
4481
+ } | null;
4482
+ hashKey: string;
4483
+ hash: string;
4484
+ temporaryRecipients: {
4485
+ email: string | null;
4486
+ }[];
4487
+ } | null;
3634
4488
  id: string;
3635
4489
  createdAt: Date;
3636
4490
  deletedAt: Date | null;
3637
4491
  subject: string;
3638
4492
  body: string;
3639
- senderId: string;
3640
- recipientId: string;
3641
4493
  openedAt: Date | null;
3642
- mailIntegrityId: string | null;
4494
+ files: {
4495
+ fileId: string;
4496
+ filename: string;
4497
+ fileKey: string;
4498
+ }[];
3643
4499
  } & {
3644
4500
  mailIntegrityDraft: {
3645
4501
  id: string;
@@ -3647,16 +4503,39 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3647
4503
  };
3648
4504
  _output_out: {
3649
4505
  type: "received" | "sent";
3650
- appId: string;
4506
+ mailIntegrity: {
4507
+ id: string;
4508
+ replyTo: {
4509
+ id: string;
4510
+ } | null;
4511
+ hashKey: string;
4512
+ hash: string;
4513
+ temporaryRecipients: {
4514
+ email: string | null;
4515
+ }[];
4516
+ } | null;
4517
+ mailIntegrityDraft: {
4518
+ id: string;
4519
+ replyTo: {
4520
+ id: string;
4521
+ } | null;
4522
+ hashKey: string;
4523
+ hash: string;
4524
+ temporaryRecipients: {
4525
+ email: string | null;
4526
+ }[];
4527
+ } | null;
3651
4528
  id: string;
3652
4529
  createdAt: Date;
3653
4530
  deletedAt: Date | null;
3654
4531
  subject: string;
3655
4532
  body: string;
3656
- senderId: string;
3657
- recipientId: string;
3658
4533
  openedAt: Date | null;
3659
- mailIntegrityId: string | null;
4534
+ files: {
4535
+ fileId: string;
4536
+ filename: string;
4537
+ fileKey: string;
4538
+ }[];
3660
4539
  } & {
3661
4540
  mailIntegrityDraft: {
3662
4541
  id: string;
@@ -3802,29 +4681,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3802
4681
  };
3803
4682
  _output_in: {
3804
4683
  type: "received" | "sent";
3805
- appId: string;
4684
+ mailIntegrity: {
4685
+ id: string;
4686
+ replyTo: {
4687
+ id: string;
4688
+ } | null;
4689
+ hashKey: string;
4690
+ hash: string;
4691
+ temporaryRecipients: {
4692
+ email: string | null;
4693
+ }[];
4694
+ } | null;
4695
+ mailIntegrityDraft: {
4696
+ id: string;
4697
+ replyTo: {
4698
+ id: string;
4699
+ } | null;
4700
+ hashKey: string;
4701
+ hash: string;
4702
+ temporaryRecipients: {
4703
+ email: string | null;
4704
+ }[];
4705
+ } | null;
3806
4706
  id: string;
3807
4707
  createdAt: Date;
3808
4708
  deletedAt: Date | null;
3809
4709
  subject: string;
3810
4710
  body: string;
3811
- senderId: string;
3812
- recipientId: string;
3813
4711
  openedAt: Date | null;
3814
- mailIntegrityId: string | null;
4712
+ files: {
4713
+ fileId: string;
4714
+ filename: string;
4715
+ fileKey: string;
4716
+ }[];
3815
4717
  }[];
3816
4718
  _output_out: {
3817
4719
  type: "received" | "sent";
3818
- appId: string;
4720
+ mailIntegrity: {
4721
+ id: string;
4722
+ replyTo: {
4723
+ id: string;
4724
+ } | null;
4725
+ hashKey: string;
4726
+ hash: string;
4727
+ temporaryRecipients: {
4728
+ email: string | null;
4729
+ }[];
4730
+ } | null;
4731
+ mailIntegrityDraft: {
4732
+ id: string;
4733
+ replyTo: {
4734
+ id: string;
4735
+ } | null;
4736
+ hashKey: string;
4737
+ hash: string;
4738
+ temporaryRecipients: {
4739
+ email: string | null;
4740
+ }[];
4741
+ } | null;
3819
4742
  id: string;
3820
4743
  createdAt: Date;
3821
4744
  deletedAt: Date | null;
3822
4745
  subject: string;
3823
4746
  body: string;
3824
- senderId: string;
3825
- recipientId: string;
3826
4747
  openedAt: Date | null;
3827
- mailIntegrityId: string | null;
4748
+ files: {
4749
+ fileId: string;
4750
+ filename: string;
4751
+ fileKey: string;
4752
+ }[];
3828
4753
  }[];
3829
4754
  }, unknown>;
3830
4755
  emptyTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -3889,10 +4814,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3889
4814
  id: string;
3890
4815
  };
3891
4816
  _output_in: {
3892
- isReaded: boolean;
4817
+ isRead: boolean;
3893
4818
  };
3894
4819
  _output_out: {
3895
- isReaded: boolean;
4820
+ isRead: boolean;
3896
4821
  };
3897
4822
  }, unknown>;
3898
4823
  recover: _trpc_server.BuildProcedure<"mutation", {
@@ -4000,8 +4925,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4000
4925
  recipients: ({
4001
4926
  subject: string;
4002
4927
  body: string;
4003
- recipientId: string;
4004
4928
  } & {
4929
+ recipientId: string;
4005
4930
  files: {
4006
4931
  id: string;
4007
4932
  filename: string;
@@ -4016,8 +4941,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4016
4941
  recipients: ({
4017
4942
  subject: string;
4018
4943
  body: string;
4019
- recipientId: string;
4020
4944
  } & {
4945
+ recipientId: string;
4021
4946
  files: {
4022
4947
  id: string;
4023
4948
  filename: string;
@@ -4027,10 +4952,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4027
4952
  temporaryRecipients: string[];
4028
4953
  };
4029
4954
  _output_in: {
4030
- isSended: boolean;
4955
+ isSent: boolean;
4031
4956
  };
4032
4957
  _output_out: {
4033
- isSended: boolean;
4958
+ isSent: boolean;
4034
4959
  };
4035
4960
  }, unknown>;
4036
4961
  sendOne: _trpc_server.BuildProcedure<"mutation", {
@@ -4061,8 +4986,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4061
4986
  recipient: {
4062
4987
  subject: string;
4063
4988
  body: string;
4064
- recipientId: string;
4065
4989
  } & {
4990
+ recipientId: string;
4066
4991
  files: {
4067
4992
  id: string;
4068
4993
  filename: string;
@@ -4075,8 +5000,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4075
5000
  recipient: {
4076
5001
  subject: string;
4077
5002
  body: string;
4078
- recipientId: string;
4079
5003
  } & {
5004
+ recipientId: string;
4080
5005
  files: {
4081
5006
  id: string;
4082
5007
  filename: string;
@@ -4149,10 +5074,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4149
5074
  id: string;
4150
5075
  };
4151
5076
  _output_in: {
4152
- isUnreaded: boolean;
5077
+ isUnread: boolean;
4153
5078
  };
4154
5079
  _output_out: {
4155
- isUnreaded: boolean;
5080
+ isUnread: boolean;
4156
5081
  };
4157
5082
  }, unknown>;
4158
5083
  updateDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -4208,29 +5133,75 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4208
5133
  };
4209
5134
  _output_in: {
4210
5135
  type: "received" | "sent";
4211
- appId: string;
5136
+ mailIntegrity: {
5137
+ id: string;
5138
+ replyTo: {
5139
+ id: string;
5140
+ } | null;
5141
+ hashKey: string;
5142
+ hash: string;
5143
+ temporaryRecipients: {
5144
+ email: string | null;
5145
+ }[];
5146
+ } | null;
5147
+ mailIntegrityDraft: {
5148
+ id: string;
5149
+ replyTo: {
5150
+ id: string;
5151
+ } | null;
5152
+ hashKey: string;
5153
+ hash: string;
5154
+ temporaryRecipients: {
5155
+ email: string | null;
5156
+ }[];
5157
+ } | null;
4212
5158
  id: string;
4213
5159
  createdAt: Date;
4214
5160
  deletedAt: Date | null;
4215
5161
  subject: string;
4216
5162
  body: string;
4217
- senderId: string;
4218
- recipientId: string;
4219
5163
  openedAt: Date | null;
4220
- mailIntegrityId: string | null;
5164
+ files: {
5165
+ fileId: string;
5166
+ filename: string;
5167
+ fileKey: string;
5168
+ }[];
4221
5169
  };
4222
5170
  _output_out: {
4223
5171
  type: "received" | "sent";
4224
- appId: string;
5172
+ mailIntegrity: {
5173
+ id: string;
5174
+ replyTo: {
5175
+ id: string;
5176
+ } | null;
5177
+ hashKey: string;
5178
+ hash: string;
5179
+ temporaryRecipients: {
5180
+ email: string | null;
5181
+ }[];
5182
+ } | null;
5183
+ mailIntegrityDraft: {
5184
+ id: string;
5185
+ replyTo: {
5186
+ id: string;
5187
+ } | null;
5188
+ hashKey: string;
5189
+ hash: string;
5190
+ temporaryRecipients: {
5191
+ email: string | null;
5192
+ }[];
5193
+ } | null;
4225
5194
  id: string;
4226
5195
  createdAt: Date;
4227
5196
  deletedAt: Date | null;
4228
5197
  subject: string;
4229
5198
  body: string;
4230
- senderId: string;
4231
- recipientId: string;
4232
5199
  openedAt: Date | null;
4233
- mailIntegrityId: string | null;
5200
+ files: {
5201
+ fileId: string;
5202
+ filename: string;
5203
+ fileKey: string;
5204
+ }[];
4234
5205
  };
4235
5206
  }, unknown>;
4236
5207
  }>;
@@ -4617,16 +5588,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4617
5588
  uaEncPriv: string;
4618
5589
  };
4619
5590
  _output_in: {
5591
+ keyPair: {
5592
+ uaPub: string;
5593
+ uaEncPriv: string;
5594
+ };
4620
5595
  jwt: string;
4621
5596
  uaSession: string;
4622
- uaPub: string;
4623
- uaEncPriv: string;
4624
5597
  };
4625
5598
  _output_out: {
5599
+ keyPair: {
5600
+ uaPub: string;
5601
+ uaEncPriv: string;
5602
+ };
4626
5603
  jwt: string;
4627
5604
  uaSession: string;
4628
- uaPub: string;
4629
- uaEncPriv: string;
4630
5605
  };
4631
5606
  }, unknown>;
4632
5607
  login: _trpc_server.BuildProcedure<"mutation", {
@@ -4669,14 +5644,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4669
5644
  _output_in: {
4670
5645
  jwt: string;
4671
5646
  uaSession: string;
4672
- uaPub: string;
4673
- uaEncPriv: string;
5647
+ keyPair?: {
5648
+ uaPub: string;
5649
+ uaEncPriv: string;
5650
+ } | undefined;
4674
5651
  };
4675
5652
  _output_out: {
4676
5653
  jwt: string;
4677
5654
  uaSession: string;
4678
- uaPub: string;
4679
- uaEncPriv: string;
5655
+ keyPair?: {
5656
+ uaPub: string;
5657
+ uaEncPriv: string;
5658
+ } | undefined;
4680
5659
  };
4681
5660
  }, unknown>;
4682
5661
  }>;
@@ -5917,13 +6896,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5917
6896
  _meta: object;
5918
6897
  _ctx_out: {};
5919
6898
  _input_in: {
5920
- email: string;
6899
+ userId: string;
5921
6900
  userRole: "user" | "admin";
5922
6901
  appCode: string;
5923
6902
  userRights: "admin" | "write" | "read";
5924
6903
  };
5925
6904
  _input_out: {
5926
- email: string;
6905
+ userId: string;
5927
6906
  userRole: "user" | "admin";
5928
6907
  appCode: string;
5929
6908
  userRights: "admin" | "write" | "read";
@@ -6308,7 +7287,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6308
7287
  logo: string | null;
6309
7288
  origin: string;
6310
7289
  collaborators: {
6311
- email: string;
7290
+ userId: string;
6312
7291
  role: "user" | "admin";
6313
7292
  }[];
6314
7293
  };
@@ -6318,7 +7297,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6318
7297
  logo: string | null;
6319
7298
  origin: string;
6320
7299
  collaborators: {
6321
- email: string;
7300
+ userId: string;
6322
7301
  role: "user" | "admin";
6323
7302
  }[];
6324
7303
  };
@@ -6438,11 +7417,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6438
7417
  developer: {
6439
7418
  user: {
6440
7419
  id: string;
6441
- infos: {
6442
- firstname: string;
6443
- lastname: string;
6444
- emails: string[];
6445
- };
7420
+ lastname: string;
7421
+ firstname: string;
7422
+ accounts: {
7423
+ account: {
7424
+ infos: {
7425
+ emails: string[];
7426
+ };
7427
+ };
7428
+ }[];
6446
7429
  };
6447
7430
  id: string;
6448
7431
  };
@@ -6453,11 +7436,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6453
7436
  developer: {
6454
7437
  user: {
6455
7438
  id: string;
6456
- infos: {
6457
- firstname: string;
6458
- lastname: string;
6459
- emails: string[];
6460
- };
7439
+ lastname: string;
7440
+ firstname: string;
7441
+ accounts: {
7442
+ account: {
7443
+ infos: {
7444
+ emails: string[];
7445
+ };
7446
+ };
7447
+ }[];
6461
7448
  };
6462
7449
  id: string;
6463
7450
  };
@@ -6498,11 +7485,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6498
7485
  developer: {
6499
7486
  user: {
6500
7487
  id: string;
6501
- infos: {
6502
- firstname: string;
6503
- lastname: string;
6504
- emails: string[];
6505
- };
7488
+ lastname: string;
7489
+ firstname: string;
7490
+ accounts: {
7491
+ account: {
7492
+ infos: {
7493
+ emails: string[];
7494
+ };
7495
+ };
7496
+ }[];
6506
7497
  };
6507
7498
  id: string;
6508
7499
  };
@@ -6513,11 +7504,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6513
7504
  developer: {
6514
7505
  user: {
6515
7506
  id: string;
6516
- infos: {
6517
- firstname: string;
6518
- lastname: string;
6519
- emails: string[];
6520
- };
7507
+ lastname: string;
7508
+ firstname: string;
7509
+ accounts: {
7510
+ account: {
7511
+ infos: {
7512
+ emails: string[];
7513
+ };
7514
+ };
7515
+ }[];
6521
7516
  };
6522
7517
  id: string;
6523
7518
  };
@@ -6742,7 +7737,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6742
7737
  };
6743
7738
  transformer: typeof superjson.default;
6744
7739
  }>, {
6745
- byEmail: _trpc_server.BuildProcedure<"query", {
7740
+ byId: _trpc_server.BuildProcedure<"query", {
6746
7741
  _config: _trpc_server.RootConfig<{
6747
7742
  ctx: {};
6748
7743
  meta: object;
@@ -6766,35 +7761,61 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6766
7761
  _meta: object;
6767
7762
  _ctx_out: {};
6768
7763
  _input_in: {
6769
- email: string;
7764
+ id: string;
6770
7765
  };
6771
7766
  _input_out: {
6772
- email: string;
7767
+ id: string;
6773
7768
  };
6774
7769
  _output_in: {
6775
7770
  id: string;
6776
- createdAt: Date;
6777
- lastLogin: Date;
6778
- deletedAt: Date | null;
6779
- infosId: string;
6780
- developerId: string | null;
6781
- role: "user" | "admin";
6782
- godFatherId: string | null;
6783
- lang: "fr" | "en";
6784
- autoDisconnectDelay: number | null;
7771
+ lastname: string;
7772
+ firstname: string;
6785
7773
  };
6786
7774
  _output_out: {
6787
7775
  id: string;
6788
- createdAt: Date;
6789
- lastLogin: Date;
6790
- deletedAt: Date | null;
6791
- infosId: string;
6792
- developerId: string | null;
6793
- role: "user" | "admin";
6794
- godFatherId: string | null;
6795
- lang: "fr" | "en";
6796
- autoDisconnectDelay: number | null;
7776
+ lastname: string;
7777
+ firstname: string;
7778
+ };
7779
+ }, unknown>;
7780
+ searchMany: _trpc_server.BuildProcedure<"query", {
7781
+ _config: _trpc_server.RootConfig<{
7782
+ ctx: {};
7783
+ meta: object;
7784
+ errorShape: {
7785
+ message: string;
7786
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7787
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
7788
+ } | {
7789
+ data: {
7790
+ zodError: zod.typeToFlattenedError<any, string> | null;
7791
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
7792
+ httpStatus: number;
7793
+ path?: string | undefined;
7794
+ stack?: string | undefined;
7795
+ };
7796
+ message: string;
7797
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7798
+ };
7799
+ transformer: typeof superjson.default;
7800
+ }>;
7801
+ _meta: object;
7802
+ _ctx_out: {};
7803
+ _input_in: {
7804
+ search: string;
7805
+ };
7806
+ _input_out: {
7807
+ search: string;
6797
7808
  };
7809
+ _output_in: {
7810
+ id: string;
7811
+ lastname: string;
7812
+ firstname: string;
7813
+ }[];
7814
+ _output_out: {
7815
+ id: string;
7816
+ lastname: string;
7817
+ firstname: string;
7818
+ }[];
6798
7819
  }, unknown>;
6799
7820
  deleteSelfData: _trpc_server.BuildProcedure<"mutation", {
6800
7821
  _config: _trpc_server.RootConfig<{
@@ -6886,52 +7907,48 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6886
7907
  _input_in: {} | undefined;
6887
7908
  _input_out: {} | undefined;
6888
7909
  _output_in: {
6889
- id: string;
6890
- createdAt: Date;
6891
- lastLogin: Date;
6892
- deletedAt: Date | null;
6893
- infosId: string;
6894
- developerId: string | null;
6895
- role: "user" | "admin";
6896
- godFatherId: string | null;
6897
- lang: "fr" | "en";
6898
- autoDisconnectDelay: number | null;
6899
- } & {
6900
- infos: {
7910
+ account: {
6901
7911
  id: string;
7912
+ createdAt: Date;
7913
+ role: "user" | "admin";
6902
7914
  updatedAt: Date;
6903
- firstname: string;
6904
- lastname: string;
7915
+ deletedAt: Date | null;
6905
7916
  emails: string[];
6906
7917
  phones: string[];
7918
+ infosId: string;
6907
7919
  srpSalt: string;
6908
7920
  masterKeySalt: string;
6909
7921
  srpVerifier: string;
6910
7922
  };
6911
- };
6912
- _output_out: {
6913
7923
  id: string;
6914
7924
  createdAt: Date;
6915
- lastLogin: Date;
7925
+ updatedAt: Date;
7926
+ lastLogin: Date | null;
6916
7927
  deletedAt: Date | null;
6917
- infosId: string;
6918
- developerId: string | null;
6919
- role: "user" | "admin";
6920
- godFatherId: string | null;
6921
- lang: "fr" | "en";
6922
- autoDisconnectDelay: number | null;
6923
- } & {
6924
- infos: {
7928
+ lastname: string;
7929
+ firstname: string;
7930
+ };
7931
+ _output_out: {
7932
+ account: {
6925
7933
  id: string;
7934
+ createdAt: Date;
7935
+ role: "user" | "admin";
6926
7936
  updatedAt: Date;
6927
- firstname: string;
6928
- lastname: string;
7937
+ deletedAt: Date | null;
6929
7938
  emails: string[];
6930
7939
  phones: string[];
7940
+ infosId: string;
6931
7941
  srpSalt: string;
6932
7942
  masterKeySalt: string;
6933
7943
  srpVerifier: string;
6934
7944
  };
7945
+ id: string;
7946
+ createdAt: Date;
7947
+ updatedAt: Date;
7948
+ lastLogin: Date | null;
7949
+ deletedAt: Date | null;
7950
+ lastname: string;
7951
+ firstname: string;
6935
7952
  };
6936
7953
  }, unknown>;
6937
7954
  updateAutoDisconnectDelay: _trpc_server.BuildProcedure<"mutation", {
@@ -7006,50 +8023,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7006
8023
  _output_in: {
7007
8024
  id: string;
7008
8025
  createdAt: Date;
7009
- lastLogin: Date;
8026
+ updatedAt: Date;
8027
+ lastLogin: Date | null;
7010
8028
  deletedAt: Date | null;
7011
- infosId: string;
7012
- developerId: string | null;
7013
- role: "user" | "admin";
7014
- godFatherId: string | null;
7015
- lang: "fr" | "en";
7016
- autoDisconnectDelay: number | null;
7017
- } & {
7018
- infos: {
7019
- id: string;
7020
- updatedAt: Date;
7021
- firstname: string;
7022
- lastname: string;
7023
- emails: string[];
7024
- phones: string[];
7025
- srpSalt: string;
7026
- masterKeySalt: string;
7027
- srpVerifier: string;
7028
- };
8029
+ lastname: string;
8030
+ firstname: string;
7029
8031
  };
7030
8032
  _output_out: {
7031
8033
  id: string;
7032
8034
  createdAt: Date;
7033
- lastLogin: Date;
8035
+ updatedAt: Date;
8036
+ lastLogin: Date | null;
7034
8037
  deletedAt: Date | null;
7035
- infosId: string;
7036
- developerId: string | null;
7037
- role: "user" | "admin";
7038
- godFatherId: string | null;
7039
- lang: "fr" | "en";
7040
- autoDisconnectDelay: number | null;
7041
- } & {
7042
- infos: {
7043
- id: string;
7044
- updatedAt: Date;
7045
- firstname: string;
7046
- lastname: string;
7047
- emails: string[];
7048
- phones: string[];
7049
- srpSalt: string;
7050
- masterKeySalt: string;
7051
- srpVerifier: string;
7052
- };
8038
+ lastname: string;
8039
+ firstname: string;
7053
8040
  };
7054
8041
  }, unknown>;
7055
8042
  }>;