@secrecy/trpc-api-types 1.3.0-integration-prisma-selectors.6 → 1.3.0

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 +394 -1301
  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';
2
1
  import type * as _trpc_server from '@trpc/server';
3
2
  import type * as superjson from 'superjson';
4
3
  import type * as zod from 'zod';
5
4
  import type * as _trpc_server_dist_error_formatter from '@trpc/server/dist/error/formatter';
6
5
  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,101 +30,6 @@ 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
- }>;
128
33
  application: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
129
34
  ctx: {};
130
35
  meta: object;
@@ -473,16 +378,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
473
378
  _meta: object;
474
379
  _ctx_out: {};
475
380
  _input_in: {
476
- mail?: boolean | undefined;
477
- cloud?: boolean | undefined;
478
- enableAll?: boolean | undefined;
479
- disableAllUntil?: Date | null | undefined;
381
+ mail: boolean;
382
+ cloud: boolean;
383
+ enableAll: boolean;
384
+ disableAllUntil: Date | null;
480
385
  };
481
386
  _input_out: {
482
- mail?: boolean | undefined;
483
- cloud?: boolean | undefined;
484
- enableAll?: boolean | undefined;
485
- disableAllUntil?: Date | null | undefined;
387
+ mail: boolean;
388
+ cloud: boolean;
389
+ enableAll: boolean;
390
+ disableAllUntil: Date | null;
486
391
  };
487
392
  _output_in: {
488
393
  mail: boolean;
@@ -586,6 +491,60 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
586
491
  };
587
492
  transformer: typeof superjson.default;
588
493
  }>, {
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>;
589
548
  deleteById: _trpc_server.BuildProcedure<"mutation", {
590
549
  _config: _trpc_server.RootConfig<{
591
550
  ctx: {};
@@ -622,6 +581,60 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
622
581
  isDeleted: boolean;
623
582
  };
624
583
  }, 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>;
625
638
  updatePlan: _trpc_server.BuildProcedure<"mutation", {
626
639
  _config: _trpc_server.RootConfig<{
627
640
  ctx: {};
@@ -658,28 +671,26 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
658
671
  _output_in: {
659
672
  id: string;
660
673
  createdAt: Date;
661
- updatedAt: Date;
662
- lastLogin: Date | null;
674
+ lastLogin: Date;
663
675
  deletedAt: Date | null;
664
- lastname: string;
665
- firstname: string;
666
- applications: {
667
- id: string;
668
- publicKey: string;
669
- }[];
676
+ infosId: string;
677
+ developerId: string | null;
678
+ role: "user" | "admin";
679
+ godFatherId: string | null;
680
+ lang: "fr" | "en";
681
+ autoDisconnectDelay: number | null;
670
682
  };
671
683
  _output_out: {
672
684
  id: string;
673
685
  createdAt: Date;
674
- updatedAt: Date;
675
- lastLogin: Date | null;
686
+ lastLogin: Date;
676
687
  deletedAt: Date | null;
677
- lastname: string;
678
- firstname: string;
679
- applications: {
680
- id: string;
681
- publicKey: string;
682
- }[];
688
+ infosId: string;
689
+ developerId: string | null;
690
+ role: "user" | "admin";
691
+ godFatherId: string | null;
692
+ lang: "fr" | "en";
693
+ autoDisconnectDelay: number | null;
683
694
  };
684
695
  }, unknown>;
685
696
  }>;
@@ -876,11 +887,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
876
887
  email: string;
877
888
  };
878
889
  _output_in: {
890
+ code: string;
879
891
  srpSalt: string;
880
892
  pub: string;
881
893
  loginId: string;
882
894
  };
883
895
  _output_out: {
896
+ code: string;
884
897
  srpSalt: string;
885
898
  pub: string;
886
899
  loginId: string;
@@ -918,20 +931,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
918
931
  to: string;
919
932
  };
920
933
  _output_in: {
921
- users: {
922
- id: string;
923
- lastname: string;
924
- firstname: string;
925
- }[];
926
- loginToken: string;
934
+ session: string;
935
+ masterKeySalt: string;
927
936
  };
928
937
  _output_out: {
929
- users: {
930
- id: string;
931
- lastname: string;
932
- firstname: string;
933
- }[];
934
- loginToken: string;
938
+ session: string;
939
+ masterKeySalt: string;
935
940
  };
936
941
  }, unknown>;
937
942
  logout: _trpc_server.BuildProcedure<"mutation", {
@@ -993,8 +998,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
993
998
  }>;
994
999
  _meta: object;
995
1000
  _ctx_out: {};
996
- _input_in: {};
997
- _input_out: {};
1001
+ _input_in: typeof _trpc_server.unsetMarker;
1002
+ _input_out: typeof _trpc_server.unsetMarker;
998
1003
  _output_in: {
999
1004
  masterKeySalt: string;
1000
1005
  keyPairs: {
@@ -1122,17 +1127,15 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1122
1127
  godFather?: string | undefined;
1123
1128
  };
1124
1129
  _output_in: {
1125
- sessionId: string;
1126
- } & {
1130
+ session: string;
1127
1131
  masterKeySalt: string;
1128
1132
  };
1129
1133
  _output_out: {
1130
- sessionId: string;
1131
- } & {
1134
+ session: string;
1132
1135
  masterKeySalt: string;
1133
1136
  };
1134
1137
  }, unknown>;
1135
- loginDeriveSession: _trpc_server.BuildProcedure<"mutation", {
1138
+ session: _trpc_server.BuildProcedure<"mutation", {
1136
1139
  _config: _trpc_server.RootConfig<{
1137
1140
  ctx: {};
1138
1141
  meta: object;
@@ -1174,7 +1177,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1174
1177
  proof: string;
1175
1178
  };
1176
1179
  }, unknown>;
1177
- loginUser: _trpc_server.BuildProcedure<"mutation", {
1180
+ signup: _trpc_server.BuildProcedure<"mutation", {
1178
1181
  _config: _trpc_server.RootConfig<{
1179
1182
  ctx: {};
1180
1183
  meta: object;
@@ -1198,69 +1201,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1198
1201
  _meta: object;
1199
1202
  _ctx_out: {};
1200
1203
  _input_in: {
1201
- userId: string;
1202
- loginToken: string;
1203
- };
1204
- _input_out: {
1205
- userId: string;
1206
- loginToken: string;
1207
- };
1208
- _output_in: {
1209
- session: string;
1204
+ email: string;
1205
+ firstname: string;
1206
+ lastname: string;
1207
+ phone: string;
1208
+ srpSalt: string;
1210
1209
  masterKeySalt: string;
1210
+ srpVerifier: string;
1211
+ token: string;
1211
1212
  };
1212
- _output_out: {
1213
- session: string;
1213
+ _input_out: {
1214
+ email: string;
1215
+ firstname: string;
1216
+ lastname: string;
1217
+ phone: string;
1218
+ srpSalt: string;
1214
1219
  masterKeySalt: string;
1220
+ srpVerifier: string;
1221
+ token: string;
1215
1222
  };
1216
- }, unknown>;
1217
- signup: _trpc_server.BuildProcedure<"mutation", {
1218
- _config: _trpc_server.RootConfig<{
1219
- ctx: {};
1220
- meta: object;
1221
- errorShape: {
1222
- message: string;
1223
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
1224
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
1225
- } | {
1226
- data: {
1227
- zodError: zod.typeToFlattenedError<any, string> | null;
1228
- 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";
1229
- httpStatus: number;
1230
- path?: string | undefined;
1231
- stack?: string | undefined;
1232
- };
1233
- message: string;
1234
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
1235
- };
1236
- transformer: typeof superjson.default;
1237
- }>;
1238
- _meta: object;
1239
- _ctx_out: {};
1240
- _input_in: {
1241
- email: string;
1242
- lastname: string;
1243
- firstname: string;
1244
- phone: string;
1245
- srpSalt: string;
1246
- masterKeySalt: string;
1247
- srpVerifier: string;
1248
- token: string;
1249
- };
1250
- _input_out: {
1251
- email: string;
1252
- lastname: string;
1253
- firstname: string;
1254
- phone: string;
1255
- srpSalt: string;
1256
- masterKeySalt: string;
1257
- srpVerifier: string;
1258
- token: string;
1259
- };
1260
- _output_in: {};
1261
- _output_out: {};
1262
- }, {}>;
1263
- validateLogin: _trpc_server.BuildProcedure<"mutation", {
1223
+ _output_in: {};
1224
+ _output_out: {};
1225
+ }, {}>;
1226
+ validateLogin: _trpc_server.BuildProcedure<"mutation", {
1264
1227
  _config: _trpc_server.RootConfig<{
1265
1228
  ctx: {};
1266
1229
  meta: object;
@@ -1291,9 +1254,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1291
1254
  email: string;
1292
1255
  loginId: string;
1293
1256
  };
1294
- _output_in: {};
1295
- _output_out: {};
1296
- }, {}>;
1257
+ _output_in: {
1258
+ code: string;
1259
+ };
1260
+ _output_out: {
1261
+ code: string;
1262
+ };
1263
+ }, unknown>;
1297
1264
  }>;
1298
1265
  blog: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
1299
1266
  ctx: {};
@@ -1436,10 +1403,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1436
1403
  deletedAt: Date | null;
1437
1404
  parentId: string | null;
1438
1405
  isFavorite: boolean;
1439
- createdBy: {
1440
- appId: string;
1441
- userId: string;
1442
- };
1406
+ createdByUserId: string;
1407
+ createdByAppId: string;
1408
+ currentFileId: string | null;
1443
1409
  };
1444
1410
  _output_out: {
1445
1411
  type: "FILE" | "FOLDER";
@@ -1450,10 +1416,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1450
1416
  deletedAt: Date | null;
1451
1417
  parentId: string | null;
1452
1418
  isFavorite: boolean;
1453
- createdBy: {
1454
- appId: string;
1455
- userId: string;
1456
- };
1419
+ createdByUserId: string;
1420
+ createdByAppId: string;
1421
+ currentFileId: string | null;
1457
1422
  };
1458
1423
  }, unknown>;
1459
1424
  deleteFile: _trpc_server.BuildProcedure<"mutation", {
@@ -1532,15 +1497,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1532
1497
  storageType: "scaleway" | "mongo";
1533
1498
  sizeBefore: bigint;
1534
1499
  md5Encrypted: string;
1535
- accesses: {
1536
- key: string;
1537
- sharedBy: {
1538
- keyPair: {
1539
- pub: string;
1540
- } | null;
1541
- };
1542
- }[];
1543
- };
1500
+ userAppUserId: string;
1501
+ userAppAppId: string;
1502
+ validatedAt: Date | null;
1503
+ } | null;
1544
1504
  _output_out: {
1545
1505
  id: string;
1546
1506
  createdAt: Date;
@@ -1550,15 +1510,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1550
1510
  storageType: "scaleway" | "mongo";
1551
1511
  sizeBefore: bigint;
1552
1512
  md5Encrypted: string;
1553
- accesses: {
1554
- key: string;
1555
- sharedBy: {
1556
- keyPair: {
1557
- pub: string;
1558
- } | null;
1559
- };
1560
- }[];
1561
- };
1513
+ userAppUserId: string;
1514
+ userAppAppId: string;
1515
+ validatedAt: Date | null;
1516
+ } | null;
1562
1517
  }, unknown>;
1563
1518
  fileContentById: _trpc_server.BuildProcedure<"query", {
1564
1519
  _config: _trpc_server.RootConfig<{
@@ -1840,76 +1795,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1840
1795
  name: string;
1841
1796
  updatedAt: Date;
1842
1797
  deletedAt: Date | null;
1843
- current: {
1844
- id: string;
1845
- createdAt: Date;
1846
- deletedAt: Date | null;
1847
- size: bigint;
1848
- md5: string;
1849
- storageType: "scaleway" | "mongo";
1850
- sizeBefore: bigint;
1851
- md5Encrypted: string;
1852
- accesses: {
1853
- key: string;
1854
- sharedBy: {
1855
- keyPair: {
1856
- pub: string;
1857
- } | null;
1858
- };
1859
- }[];
1860
- } | null;
1861
- history: {
1862
- id: string;
1863
- createdAt: Date;
1864
- deletedAt: Date | null;
1865
- size: bigint;
1866
- md5: string;
1867
- storageType: "scaleway" | "mongo";
1868
- sizeBefore: bigint;
1869
- md5Encrypted: string;
1870
- accesses: {
1871
- key: string;
1872
- sharedBy: {
1873
- keyPair: {
1874
- pub: string;
1875
- } | null;
1876
- };
1877
- }[];
1878
- }[];
1879
- parent: {
1880
- type: "FILE" | "FOLDER";
1881
- id: string;
1882
- createdAt: Date;
1883
- name: string;
1884
- updatedAt: Date;
1885
- deletedAt: Date | null;
1886
- parentId: string | null;
1887
- isFavorite: boolean;
1888
- createdBy: {
1889
- appId: string;
1890
- userId: string;
1891
- };
1892
- } | null;
1893
1798
  parentId: string | null;
1894
1799
  isFavorite: boolean;
1895
- createdBy: {
1896
- appId: string;
1897
- userId: string;
1898
- };
1899
- children: {
1900
- type: "FILE" | "FOLDER";
1901
- id: string;
1902
- createdAt: Date;
1903
- name: string;
1904
- updatedAt: Date;
1905
- deletedAt: Date | null;
1906
- parentId: string | null;
1907
- isFavorite: boolean;
1908
- createdBy: {
1909
- appId: string;
1910
- userId: string;
1911
- };
1912
- }[];
1800
+ createdByUserId: string;
1801
+ createdByAppId: string;
1802
+ currentFileId: string | null;
1913
1803
  };
1914
1804
  _output_out: {
1915
1805
  type: "FILE" | "FOLDER";
@@ -1918,76 +1808,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1918
1808
  name: string;
1919
1809
  updatedAt: Date;
1920
1810
  deletedAt: Date | null;
1921
- current: {
1922
- id: string;
1923
- createdAt: Date;
1924
- deletedAt: Date | null;
1925
- size: bigint;
1926
- md5: string;
1927
- storageType: "scaleway" | "mongo";
1928
- sizeBefore: bigint;
1929
- md5Encrypted: string;
1930
- accesses: {
1931
- key: string;
1932
- sharedBy: {
1933
- keyPair: {
1934
- pub: string;
1935
- } | null;
1936
- };
1937
- }[];
1938
- } | null;
1939
- history: {
1940
- id: string;
1941
- createdAt: Date;
1942
- deletedAt: Date | null;
1943
- size: bigint;
1944
- md5: string;
1945
- storageType: "scaleway" | "mongo";
1946
- sizeBefore: bigint;
1947
- md5Encrypted: string;
1948
- accesses: {
1949
- key: string;
1950
- sharedBy: {
1951
- keyPair: {
1952
- pub: string;
1953
- } | null;
1954
- };
1955
- }[];
1956
- }[];
1957
- parent: {
1958
- type: "FILE" | "FOLDER";
1959
- id: string;
1960
- createdAt: Date;
1961
- name: string;
1962
- updatedAt: Date;
1963
- deletedAt: Date | null;
1964
- parentId: string | null;
1965
- isFavorite: boolean;
1966
- createdBy: {
1967
- appId: string;
1968
- userId: string;
1969
- };
1970
- } | null;
1971
1811
  parentId: string | null;
1972
1812
  isFavorite: boolean;
1973
- createdBy: {
1974
- appId: string;
1975
- userId: string;
1976
- };
1977
- children: {
1978
- type: "FILE" | "FOLDER";
1979
- id: string;
1980
- createdAt: Date;
1981
- name: string;
1982
- updatedAt: Date;
1983
- deletedAt: Date | null;
1984
- parentId: string | null;
1985
- isFavorite: boolean;
1986
- createdBy: {
1987
- appId: string;
1988
- userId: string;
1989
- };
1990
- }[];
1813
+ createdByUserId: string;
1814
+ createdByAppId: string;
1815
+ currentFileId: string | null;
1991
1816
  };
1992
1817
  }, unknown>;
1993
1818
  shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
@@ -2254,76 +2079,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2254
2079
  name: string;
2255
2080
  updatedAt: Date;
2256
2081
  deletedAt: Date | null;
2257
- current: {
2258
- id: string;
2259
- createdAt: Date;
2260
- deletedAt: Date | null;
2261
- size: bigint;
2262
- md5: string;
2263
- storageType: "scaleway" | "mongo";
2264
- sizeBefore: bigint;
2265
- md5Encrypted: string;
2266
- accesses: {
2267
- key: string;
2268
- sharedBy: {
2269
- keyPair: {
2270
- pub: string;
2271
- } | null;
2272
- };
2273
- }[];
2274
- } | null;
2275
- history: {
2276
- id: string;
2277
- createdAt: Date;
2278
- deletedAt: Date | null;
2279
- size: bigint;
2280
- md5: string;
2281
- storageType: "scaleway" | "mongo";
2282
- sizeBefore: bigint;
2283
- md5Encrypted: string;
2284
- accesses: {
2285
- key: string;
2286
- sharedBy: {
2287
- keyPair: {
2288
- pub: string;
2289
- } | null;
2290
- };
2291
- }[];
2292
- }[];
2293
- parent: {
2294
- type: "FILE" | "FOLDER";
2295
- id: string;
2296
- createdAt: Date;
2297
- name: string;
2298
- updatedAt: Date;
2299
- deletedAt: Date | null;
2300
- parentId: string | null;
2301
- isFavorite: boolean;
2302
- createdBy: {
2303
- appId: string;
2304
- userId: string;
2305
- };
2306
- } | null;
2307
2082
  parentId: string | null;
2308
2083
  isFavorite: boolean;
2309
- createdBy: {
2310
- appId: string;
2311
- userId: string;
2312
- };
2313
- children: {
2314
- type: "FILE" | "FOLDER";
2315
- id: string;
2316
- createdAt: Date;
2317
- name: string;
2318
- updatedAt: Date;
2319
- deletedAt: Date | null;
2320
- parentId: string | null;
2321
- isFavorite: boolean;
2322
- createdBy: {
2323
- appId: string;
2324
- userId: string;
2325
- };
2326
- }[];
2084
+ createdByUserId: string;
2085
+ createdByAppId: string;
2086
+ currentFileId: string | null;
2327
2087
  };
2328
2088
  _output_out: {
2329
2089
  type: "FILE" | "FOLDER";
@@ -2332,76 +2092,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2332
2092
  name: string;
2333
2093
  updatedAt: Date;
2334
2094
  deletedAt: Date | null;
2335
- current: {
2336
- id: string;
2337
- createdAt: Date;
2338
- deletedAt: Date | null;
2339
- size: bigint;
2340
- md5: string;
2341
- storageType: "scaleway" | "mongo";
2342
- sizeBefore: bigint;
2343
- md5Encrypted: string;
2344
- accesses: {
2345
- key: string;
2346
- sharedBy: {
2347
- keyPair: {
2348
- pub: string;
2349
- } | null;
2350
- };
2351
- }[];
2352
- } | null;
2353
- history: {
2354
- id: string;
2355
- createdAt: Date;
2356
- deletedAt: Date | null;
2357
- size: bigint;
2358
- md5: string;
2359
- storageType: "scaleway" | "mongo";
2360
- sizeBefore: bigint;
2361
- md5Encrypted: string;
2362
- accesses: {
2363
- key: string;
2364
- sharedBy: {
2365
- keyPair: {
2366
- pub: string;
2367
- } | null;
2368
- };
2369
- }[];
2370
- }[];
2371
- parent: {
2372
- type: "FILE" | "FOLDER";
2373
- id: string;
2374
- createdAt: Date;
2375
- name: string;
2376
- updatedAt: Date;
2377
- deletedAt: Date | null;
2378
- parentId: string | null;
2379
- isFavorite: boolean;
2380
- createdBy: {
2381
- appId: string;
2382
- userId: string;
2383
- };
2384
- } | null;
2385
2095
  parentId: string | null;
2386
2096
  isFavorite: boolean;
2387
- createdBy: {
2388
- appId: string;
2389
- userId: string;
2390
- };
2391
- children: {
2392
- type: "FILE" | "FOLDER";
2393
- id: string;
2394
- createdAt: Date;
2395
- name: string;
2396
- updatedAt: Date;
2397
- deletedAt: Date | null;
2398
- parentId: string | null;
2399
- isFavorite: boolean;
2400
- createdBy: {
2401
- appId: string;
2402
- userId: string;
2403
- };
2404
- }[];
2097
+ createdByUserId: string;
2098
+ createdByAppId: string;
2099
+ currentFileId: string | null;
2405
2100
  };
2406
2101
  }, unknown>;
2407
2102
  deleteNodeCloudTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -2648,116 +2343,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2648
2343
  _meta: object;
2649
2344
  _ctx_out: {};
2650
2345
  _input_in: {
2651
- type: "FILE" | "FOLDER";
2652
- createdAt: Date;
2653
- name: string;
2654
- updatedAt: Date;
2655
- deletedAt: Date | null;
2656
- parentId: string | null;
2657
- isFavorite: boolean;
2658
- createdBy: {
2659
- appId: string;
2660
- userId: string;
2661
- };
2662
- deleted?: boolean | undefined;
2663
- id?: string | undefined;
2664
- };
2665
- _input_out: {
2666
- type: "FILE" | "FOLDER";
2667
- createdAt: Date;
2668
- name: string;
2669
- updatedAt: Date;
2670
- deletedAt: Date | null;
2671
- parentId: string | null;
2672
- isFavorite: boolean;
2673
- createdBy: {
2674
- appId: string;
2675
- userId: string;
2676
- };
2677
- deleted?: boolean | undefined;
2678
- id?: string | undefined;
2679
- };
2680
- _output_in: {
2681
- type: "FILE" | "FOLDER";
2682
- id: string;
2683
- createdAt: Date;
2684
- name: string;
2685
- updatedAt: Date;
2686
- deletedAt: Date | null;
2687
- parentId: string | null;
2688
- isFavorite: boolean;
2689
- createdBy: {
2690
- appId: string;
2691
- userId: string;
2692
- };
2693
- };
2694
- _output_out: {
2695
- type: "FILE" | "FOLDER";
2696
2346
  id: string;
2697
- createdAt: Date;
2698
- name: string;
2699
- updatedAt: Date;
2700
- deletedAt: Date | null;
2701
- parentId: string | null;
2702
- isFavorite: boolean;
2703
- createdBy: {
2704
- appId: string;
2705
- userId: string;
2706
- };
2707
- };
2708
- }, unknown>;
2709
- nodeFullById: _trpc_server.BuildProcedure<"query", {
2710
- _config: _trpc_server.RootConfig<{
2711
- ctx: {};
2712
- meta: object;
2713
- errorShape: {
2714
- message: string;
2715
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2716
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2717
- } | {
2718
- data: {
2719
- zodError: zod.typeToFlattenedError<any, string> | null;
2720
- 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";
2721
- httpStatus: number;
2722
- path?: string | undefined;
2723
- stack?: string | undefined;
2724
- };
2725
- message: string;
2726
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
2727
- };
2728
- transformer: typeof superjson.default;
2729
- }>;
2730
- _meta: object;
2731
- _ctx_out: {};
2732
- _input_in: {
2733
- type: "FILE" | "FOLDER";
2734
- createdAt: Date;
2735
- name: string;
2736
- updatedAt: Date;
2737
- deletedAt: Date | null;
2738
- parentId: string | null;
2739
- isFavorite: boolean;
2740
- createdBy: {
2741
- appId: string;
2742
- userId: string;
2743
- };
2744
2347
  deleted?: boolean | undefined;
2745
- id?: string | undefined;
2746
2348
  };
2747
2349
  _input_out: {
2748
- type: "FILE" | "FOLDER";
2749
- createdAt: Date;
2750
- name: string;
2751
- updatedAt: Date;
2752
- deletedAt: Date | null;
2753
- parentId: string | null;
2754
- isFavorite: boolean;
2755
- createdBy: {
2756
- appId: string;
2757
- userId: string;
2758
- };
2350
+ id: string;
2759
2351
  deleted?: boolean | undefined;
2760
- id?: string | undefined;
2761
2352
  };
2762
2353
  _output_in: {
2763
2354
  type: "FILE" | "FOLDER";
@@ -2766,77 +2357,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2766
2357
  name: string;
2767
2358
  updatedAt: Date;
2768
2359
  deletedAt: Date | null;
2769
- current: {
2770
- id: string;
2771
- createdAt: Date;
2772
- deletedAt: Date | null;
2773
- size: bigint;
2774
- md5: string;
2775
- storageType: "scaleway" | "mongo";
2776
- sizeBefore: bigint;
2777
- md5Encrypted: string;
2778
- accesses: {
2779
- key: string;
2780
- sharedBy: {
2781
- keyPair: {
2782
- pub: string;
2783
- } | null;
2784
- };
2785
- }[];
2786
- } | null;
2787
- history: {
2788
- id: string;
2789
- createdAt: Date;
2790
- deletedAt: Date | null;
2791
- size: bigint;
2792
- md5: string;
2793
- storageType: "scaleway" | "mongo";
2794
- sizeBefore: bigint;
2795
- md5Encrypted: string;
2796
- accesses: {
2797
- key: string;
2798
- sharedBy: {
2799
- keyPair: {
2800
- pub: string;
2801
- } | null;
2802
- };
2803
- }[];
2804
- }[];
2805
- parent: {
2806
- type: "FILE" | "FOLDER";
2807
- id: string;
2808
- createdAt: Date;
2809
- name: string;
2810
- updatedAt: Date;
2811
- deletedAt: Date | null;
2812
- parentId: string | null;
2813
- isFavorite: boolean;
2814
- createdBy: {
2815
- appId: string;
2816
- userId: string;
2817
- };
2818
- } | null;
2819
2360
  parentId: string | null;
2820
2361
  isFavorite: boolean;
2821
- createdBy: {
2822
- appId: string;
2823
- userId: string;
2824
- };
2825
- children: {
2826
- type: "FILE" | "FOLDER";
2827
- id: string;
2828
- createdAt: Date;
2829
- name: string;
2830
- updatedAt: Date;
2831
- deletedAt: Date | null;
2832
- parentId: string | null;
2833
- isFavorite: boolean;
2834
- createdBy: {
2835
- appId: string;
2836
- userId: string;
2837
- };
2838
- }[];
2839
- };
2362
+ createdByUserId: string;
2363
+ createdByAppId: string;
2364
+ currentFileId: string | null;
2365
+ } | null;
2840
2366
  _output_out: {
2841
2367
  type: "FILE" | "FOLDER";
2842
2368
  id: string;
@@ -2844,77 +2370,12 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2844
2370
  name: string;
2845
2371
  updatedAt: Date;
2846
2372
  deletedAt: Date | null;
2847
- current: {
2848
- id: string;
2849
- createdAt: Date;
2850
- deletedAt: Date | null;
2851
- size: bigint;
2852
- md5: string;
2853
- storageType: "scaleway" | "mongo";
2854
- sizeBefore: bigint;
2855
- md5Encrypted: string;
2856
- accesses: {
2857
- key: string;
2858
- sharedBy: {
2859
- keyPair: {
2860
- pub: string;
2861
- } | null;
2862
- };
2863
- }[];
2864
- } | null;
2865
- history: {
2866
- id: string;
2867
- createdAt: Date;
2868
- deletedAt: Date | null;
2869
- size: bigint;
2870
- md5: string;
2871
- storageType: "scaleway" | "mongo";
2872
- sizeBefore: bigint;
2873
- md5Encrypted: string;
2874
- accesses: {
2875
- key: string;
2876
- sharedBy: {
2877
- keyPair: {
2878
- pub: string;
2879
- } | null;
2880
- };
2881
- }[];
2882
- }[];
2883
- parent: {
2884
- type: "FILE" | "FOLDER";
2885
- id: string;
2886
- createdAt: Date;
2887
- name: string;
2888
- updatedAt: Date;
2889
- deletedAt: Date | null;
2890
- parentId: string | null;
2891
- isFavorite: boolean;
2892
- createdBy: {
2893
- appId: string;
2894
- userId: string;
2895
- };
2896
- } | null;
2897
2373
  parentId: string | null;
2898
2374
  isFavorite: boolean;
2899
- createdBy: {
2900
- appId: string;
2901
- userId: string;
2902
- };
2903
- children: {
2904
- type: "FILE" | "FOLDER";
2905
- id: string;
2906
- createdAt: Date;
2907
- name: string;
2908
- updatedAt: Date;
2909
- deletedAt: Date | null;
2910
- parentId: string | null;
2911
- isFavorite: boolean;
2912
- createdBy: {
2913
- appId: string;
2914
- userId: string;
2915
- };
2916
- }[];
2917
- };
2375
+ createdByUserId: string;
2376
+ createdByAppId: string;
2377
+ currentFileId: string | null;
2378
+ } | null;
2918
2379
  }, unknown>;
2919
2380
  nodesDeleted: _trpc_server.BuildProcedure<"query", {
2920
2381
  _config: _trpc_server.RootConfig<{
@@ -2950,10 +2411,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2950
2411
  deletedAt: Date | null;
2951
2412
  parentId: string | null;
2952
2413
  isFavorite: boolean;
2953
- createdBy: {
2954
- appId: string;
2955
- userId: string;
2956
- };
2414
+ createdByUserId: string;
2415
+ createdByAppId: string;
2416
+ currentFileId: string | null;
2957
2417
  }[];
2958
2418
  _output_out: {
2959
2419
  type: "FILE" | "FOLDER";
@@ -2964,10 +2424,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2964
2424
  deletedAt: Date | null;
2965
2425
  parentId: string | null;
2966
2426
  isFavorite: boolean;
2967
- createdBy: {
2968
- appId: string;
2969
- userId: string;
2970
- };
2427
+ createdByUserId: string;
2428
+ createdByAppId: string;
2429
+ currentFileId: string | null;
2971
2430
  }[];
2972
2431
  }, unknown>;
2973
2432
  nodesSharedWithMe: _trpc_server.BuildProcedure<"query", {
@@ -3008,10 +2467,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3008
2467
  deletedAt: Date | null;
3009
2468
  parentId: string | null;
3010
2469
  isFavorite: boolean;
3011
- createdBy: {
3012
- appId: string;
3013
- userId: string;
3014
- };
2470
+ createdByUserId: string;
2471
+ createdByAppId: string;
2472
+ currentFileId: string | null;
3015
2473
  } | null)[];
3016
2474
  _output_out: ({
3017
2475
  type: "FILE" | "FOLDER";
@@ -3022,10 +2480,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3022
2480
  deletedAt: Date | null;
3023
2481
  parentId: string | null;
3024
2482
  isFavorite: boolean;
3025
- createdBy: {
3026
- appId: string;
3027
- userId: string;
3028
- };
2483
+ createdByUserId: string;
2484
+ createdByAppId: string;
2485
+ currentFileId: string | null;
3029
2486
  } | null)[];
3030
2487
  }, unknown>;
3031
2488
  nodesShared: _trpc_server.BuildProcedure<"query", {
@@ -3062,10 +2519,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3062
2519
  deletedAt: Date | null;
3063
2520
  parentId: string | null;
3064
2521
  isFavorite: boolean;
3065
- createdBy: {
3066
- appId: string;
3067
- userId: string;
3068
- };
2522
+ createdByUserId: string;
2523
+ createdByAppId: string;
2524
+ currentFileId: string | null;
3069
2525
  } | null)[];
3070
2526
  _output_out: ({
3071
2527
  type: "FILE" | "FOLDER";
@@ -3076,10 +2532,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3076
2532
  deletedAt: Date | null;
3077
2533
  parentId: string | null;
3078
2534
  isFavorite: boolean;
3079
- createdBy: {
3080
- appId: string;
3081
- userId: string;
3082
- };
2535
+ createdByUserId: string;
2536
+ createdByAppId: string;
2537
+ currentFileId: string | null;
3083
2538
  } | null)[];
3084
2539
  }, unknown>;
3085
2540
  recoverNode: _trpc_server.BuildProcedure<"mutation", {
@@ -3252,154 +2707,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3252
2707
  name: string;
3253
2708
  updatedAt: Date;
3254
2709
  deletedAt: Date | null;
3255
- current: {
3256
- id: string;
3257
- createdAt: Date;
3258
- deletedAt: Date | null;
3259
- size: bigint;
3260
- md5: string;
3261
- storageType: "scaleway" | "mongo";
3262
- sizeBefore: bigint;
3263
- md5Encrypted: string;
3264
- accesses: {
3265
- key: string;
3266
- sharedBy: {
3267
- keyPair: {
3268
- pub: string;
3269
- } | null;
3270
- };
3271
- }[];
3272
- } | null;
3273
- history: {
3274
- id: string;
3275
- createdAt: Date;
3276
- deletedAt: Date | null;
3277
- size: bigint;
3278
- md5: string;
3279
- storageType: "scaleway" | "mongo";
3280
- sizeBefore: bigint;
3281
- md5Encrypted: string;
3282
- accesses: {
3283
- key: string;
3284
- sharedBy: {
3285
- keyPair: {
3286
- pub: string;
3287
- } | null;
3288
- };
3289
- }[];
3290
- }[];
3291
- parent: {
3292
- type: "FILE" | "FOLDER";
3293
- id: string;
3294
- createdAt: Date;
3295
- name: string;
3296
- updatedAt: Date;
3297
- deletedAt: Date | null;
3298
- parentId: string | null;
3299
- isFavorite: boolean;
3300
- createdBy: {
3301
- appId: string;
3302
- userId: string;
3303
- };
3304
- } | null;
3305
2710
  parentId: string | null;
3306
2711
  isFavorite: boolean;
3307
- createdBy: {
3308
- appId: string;
3309
- userId: string;
3310
- };
3311
- children: {
3312
- type: "FILE" | "FOLDER";
3313
- id: string;
3314
- createdAt: Date;
3315
- name: string;
3316
- updatedAt: Date;
3317
- deletedAt: Date | null;
3318
- parentId: string | null;
3319
- isFavorite: boolean;
3320
- createdBy: {
3321
- appId: string;
3322
- userId: string;
3323
- };
3324
- }[];
2712
+ createdByUserId: string;
2713
+ createdByAppId: string;
2714
+ currentFileId: string | null;
3325
2715
  };
3326
2716
  _output_out: {
3327
2717
  type: "FILE" | "FOLDER";
3328
2718
  id: string;
3329
2719
  createdAt: Date;
3330
2720
  name: string;
3331
- updatedAt: Date;
3332
- deletedAt: Date | null;
3333
- current: {
3334
- id: string;
3335
- createdAt: Date;
3336
- deletedAt: Date | null;
3337
- size: bigint;
3338
- md5: string;
3339
- storageType: "scaleway" | "mongo";
3340
- sizeBefore: bigint;
3341
- md5Encrypted: string;
3342
- accesses: {
3343
- key: string;
3344
- sharedBy: {
3345
- keyPair: {
3346
- pub: string;
3347
- } | null;
3348
- };
3349
- }[];
3350
- } | null;
3351
- history: {
3352
- id: string;
3353
- createdAt: Date;
3354
- deletedAt: Date | null;
3355
- size: bigint;
3356
- md5: string;
3357
- storageType: "scaleway" | "mongo";
3358
- sizeBefore: bigint;
3359
- md5Encrypted: string;
3360
- accesses: {
3361
- key: string;
3362
- sharedBy: {
3363
- keyPair: {
3364
- pub: string;
3365
- } | null;
3366
- };
3367
- }[];
3368
- }[];
3369
- parent: {
3370
- type: "FILE" | "FOLDER";
3371
- id: string;
3372
- createdAt: Date;
3373
- name: string;
3374
- updatedAt: Date;
3375
- deletedAt: Date | null;
3376
- parentId: string | null;
3377
- isFavorite: boolean;
3378
- createdBy: {
3379
- appId: string;
3380
- userId: string;
3381
- };
3382
- } | null;
3383
- parentId: string | null;
3384
- isFavorite: boolean;
3385
- createdBy: {
3386
- appId: string;
3387
- userId: string;
3388
- };
3389
- children: {
3390
- type: "FILE" | "FOLDER";
3391
- id: string;
3392
- createdAt: Date;
3393
- name: string;
3394
- updatedAt: Date;
3395
- deletedAt: Date | null;
3396
- parentId: string | null;
3397
- isFavorite: boolean;
3398
- createdBy: {
3399
- appId: string;
3400
- userId: string;
3401
- };
3402
- }[];
2721
+ updatedAt: Date;
2722
+ deletedAt: Date | null;
2723
+ parentId: string | null;
2724
+ isFavorite: boolean;
2725
+ createdByUserId: string;
2726
+ createdByAppId: string;
2727
+ currentFileId: string | null;
3403
2728
  };
3404
2729
  }, unknown>;
3405
2730
  }>;
@@ -3448,23 +2773,23 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3448
2773
  _ctx_out: {};
3449
2774
  _input_in: {
3450
2775
  address: string;
3451
- encryptedKeystore: string;
2776
+ privateKeyEncrypted: string;
3452
2777
  };
3453
2778
  _input_out: {
3454
2779
  address: string;
3455
- encryptedKeystore: string;
2780
+ privateKeyEncrypted: string;
3456
2781
  };
3457
2782
  _output_in: {
3458
2783
  userId: string;
3459
2784
  createdAt: Date;
3460
2785
  address: string;
3461
- encryptedKeystore: string;
2786
+ privateKeyEncrypted: string;
3462
2787
  };
3463
2788
  _output_out: {
3464
2789
  userId: string;
3465
2790
  createdAt: Date;
3466
2791
  address: string;
3467
- encryptedKeystore: string;
2792
+ privateKeyEncrypted: string;
3468
2793
  };
3469
2794
  }, unknown>;
3470
2795
  isTransactionDone: _trpc_server.BuildProcedure<"query", {
@@ -4227,75 +3552,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4227
3552
  };
4228
3553
  _output_in: {
4229
3554
  type: "received" | "sent";
4230
- mailIntegrity: {
4231
- id: string;
4232
- replyTo: {
4233
- id: string;
4234
- } | null;
4235
- hashKey: string;
4236
- hash: string;
4237
- temporaryRecipients: {
4238
- email: string | null;
4239
- }[];
4240
- } | null;
4241
- mailIntegrityDraft: {
4242
- id: string;
4243
- replyTo: {
4244
- id: string;
4245
- } | null;
4246
- hashKey: string;
4247
- hash: string;
4248
- temporaryRecipients: {
4249
- email: string | null;
4250
- }[];
4251
- } | null;
3555
+ appId: string;
4252
3556
  id: string;
4253
3557
  createdAt: Date;
4254
3558
  deletedAt: Date | null;
4255
3559
  subject: string;
4256
3560
  body: string;
3561
+ senderId: string;
3562
+ recipientId: string;
4257
3563
  openedAt: Date | null;
4258
- files: {
4259
- fileId: string;
4260
- filename: string;
4261
- fileKey: string;
4262
- }[];
3564
+ mailIntegrityId: string | null;
4263
3565
  };
4264
3566
  _output_out: {
4265
3567
  type: "received" | "sent";
4266
- mailIntegrity: {
4267
- id: string;
4268
- replyTo: {
4269
- id: string;
4270
- } | null;
4271
- hashKey: string;
4272
- hash: string;
4273
- temporaryRecipients: {
4274
- email: string | null;
4275
- }[];
4276
- } | null;
4277
- mailIntegrityDraft: {
4278
- id: string;
4279
- replyTo: {
4280
- id: string;
4281
- } | null;
4282
- hashKey: string;
4283
- hash: string;
4284
- temporaryRecipients: {
4285
- email: string | null;
4286
- }[];
4287
- } | null;
3568
+ appId: string;
4288
3569
  id: string;
4289
3570
  createdAt: Date;
4290
3571
  deletedAt: Date | null;
4291
3572
  subject: string;
4292
3573
  body: string;
3574
+ senderId: string;
3575
+ recipientId: string;
4293
3576
  openedAt: Date | null;
4294
- files: {
4295
- fileId: string;
4296
- filename: string;
4297
- fileKey: string;
4298
- }[];
3577
+ mailIntegrityId: string | null;
4299
3578
  };
4300
3579
  }, unknown>;
4301
3580
  createDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -4351,39 +3630,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4351
3630
  };
4352
3631
  _output_in: {
4353
3632
  type: "received" | "sent";
4354
- mailIntegrity: {
4355
- id: string;
4356
- replyTo: {
4357
- id: string;
4358
- } | null;
4359
- hashKey: string;
4360
- hash: string;
4361
- temporaryRecipients: {
4362
- email: string | null;
4363
- }[];
4364
- } | null;
4365
- mailIntegrityDraft: {
4366
- id: string;
4367
- replyTo: {
4368
- id: string;
4369
- } | null;
4370
- hashKey: string;
4371
- hash: string;
4372
- temporaryRecipients: {
4373
- email: string | null;
4374
- }[];
4375
- } | null;
3633
+ appId: string;
4376
3634
  id: string;
4377
3635
  createdAt: Date;
4378
3636
  deletedAt: Date | null;
4379
3637
  subject: string;
4380
3638
  body: string;
3639
+ senderId: string;
3640
+ recipientId: string;
4381
3641
  openedAt: Date | null;
4382
- files: {
4383
- fileId: string;
4384
- filename: string;
4385
- fileKey: string;
4386
- }[];
3642
+ mailIntegrityId: string | null;
4387
3643
  } & {
4388
3644
  mailIntegrityDraft: {
4389
3645
  id: string;
@@ -4391,39 +3647,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4391
3647
  };
4392
3648
  _output_out: {
4393
3649
  type: "received" | "sent";
4394
- mailIntegrity: {
4395
- id: string;
4396
- replyTo: {
4397
- id: string;
4398
- } | null;
4399
- hashKey: string;
4400
- hash: string;
4401
- temporaryRecipients: {
4402
- email: string | null;
4403
- }[];
4404
- } | null;
4405
- mailIntegrityDraft: {
4406
- id: string;
4407
- replyTo: {
4408
- id: string;
4409
- } | null;
4410
- hashKey: string;
4411
- hash: string;
4412
- temporaryRecipients: {
4413
- email: string | null;
4414
- }[];
4415
- } | null;
3650
+ appId: string;
4416
3651
  id: string;
4417
3652
  createdAt: Date;
4418
3653
  deletedAt: Date | null;
4419
3654
  subject: string;
4420
3655
  body: string;
3656
+ senderId: string;
3657
+ recipientId: string;
4421
3658
  openedAt: Date | null;
4422
- files: {
4423
- fileId: string;
4424
- filename: string;
4425
- fileKey: string;
4426
- }[];
3659
+ mailIntegrityId: string | null;
4427
3660
  } & {
4428
3661
  mailIntegrityDraft: {
4429
3662
  id: string;
@@ -4569,75 +3802,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4569
3802
  };
4570
3803
  _output_in: {
4571
3804
  type: "received" | "sent";
4572
- mailIntegrity: {
4573
- id: string;
4574
- replyTo: {
4575
- id: string;
4576
- } | null;
4577
- hashKey: string;
4578
- hash: string;
4579
- temporaryRecipients: {
4580
- email: string | null;
4581
- }[];
4582
- } | null;
4583
- mailIntegrityDraft: {
4584
- id: string;
4585
- replyTo: {
4586
- id: string;
4587
- } | null;
4588
- hashKey: string;
4589
- hash: string;
4590
- temporaryRecipients: {
4591
- email: string | null;
4592
- }[];
4593
- } | null;
3805
+ appId: string;
4594
3806
  id: string;
4595
3807
  createdAt: Date;
4596
3808
  deletedAt: Date | null;
4597
3809
  subject: string;
4598
3810
  body: string;
3811
+ senderId: string;
3812
+ recipientId: string;
4599
3813
  openedAt: Date | null;
4600
- files: {
4601
- fileId: string;
4602
- filename: string;
4603
- fileKey: string;
4604
- }[];
3814
+ mailIntegrityId: string | null;
4605
3815
  }[];
4606
3816
  _output_out: {
4607
3817
  type: "received" | "sent";
4608
- mailIntegrity: {
4609
- id: string;
4610
- replyTo: {
4611
- id: string;
4612
- } | null;
4613
- hashKey: string;
4614
- hash: string;
4615
- temporaryRecipients: {
4616
- email: string | null;
4617
- }[];
4618
- } | null;
4619
- mailIntegrityDraft: {
4620
- id: string;
4621
- replyTo: {
4622
- id: string;
4623
- } | null;
4624
- hashKey: string;
4625
- hash: string;
4626
- temporaryRecipients: {
4627
- email: string | null;
4628
- }[];
4629
- } | null;
3818
+ appId: string;
4630
3819
  id: string;
4631
3820
  createdAt: Date;
4632
3821
  deletedAt: Date | null;
4633
3822
  subject: string;
4634
3823
  body: string;
3824
+ senderId: string;
3825
+ recipientId: string;
4635
3826
  openedAt: Date | null;
4636
- files: {
4637
- fileId: string;
4638
- filename: string;
4639
- fileKey: string;
4640
- }[];
3827
+ mailIntegrityId: string | null;
4641
3828
  }[];
4642
3829
  }, unknown>;
4643
3830
  emptyTrash: _trpc_server.BuildProcedure<"mutation", {
@@ -4702,10 +3889,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4702
3889
  id: string;
4703
3890
  };
4704
3891
  _output_in: {
4705
- isRead: boolean;
3892
+ isReaded: boolean;
4706
3893
  };
4707
3894
  _output_out: {
4708
- isRead: boolean;
3895
+ isReaded: boolean;
4709
3896
  };
4710
3897
  }, unknown>;
4711
3898
  recover: _trpc_server.BuildProcedure<"mutation", {
@@ -4813,8 +4000,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4813
4000
  recipients: ({
4814
4001
  subject: string;
4815
4002
  body: string;
4816
- } & {
4817
4003
  recipientId: string;
4004
+ } & {
4818
4005
  files: {
4819
4006
  id: string;
4820
4007
  filename: string;
@@ -4829,8 +4016,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4829
4016
  recipients: ({
4830
4017
  subject: string;
4831
4018
  body: string;
4832
- } & {
4833
4019
  recipientId: string;
4020
+ } & {
4834
4021
  files: {
4835
4022
  id: string;
4836
4023
  filename: string;
@@ -4840,10 +4027,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4840
4027
  temporaryRecipients: string[];
4841
4028
  };
4842
4029
  _output_in: {
4843
- isSent: boolean;
4030
+ isSended: boolean;
4844
4031
  };
4845
4032
  _output_out: {
4846
- isSent: boolean;
4033
+ isSended: boolean;
4847
4034
  };
4848
4035
  }, unknown>;
4849
4036
  sendOne: _trpc_server.BuildProcedure<"mutation", {
@@ -4874,8 +4061,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4874
4061
  recipient: {
4875
4062
  subject: string;
4876
4063
  body: string;
4877
- } & {
4878
4064
  recipientId: string;
4065
+ } & {
4879
4066
  files: {
4880
4067
  id: string;
4881
4068
  filename: string;
@@ -4888,8 +4075,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4888
4075
  recipient: {
4889
4076
  subject: string;
4890
4077
  body: string;
4891
- } & {
4892
4078
  recipientId: string;
4079
+ } & {
4893
4080
  files: {
4894
4081
  id: string;
4895
4082
  filename: string;
@@ -4962,10 +4149,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4962
4149
  id: string;
4963
4150
  };
4964
4151
  _output_in: {
4965
- isUnread: boolean;
4152
+ isUnreaded: boolean;
4966
4153
  };
4967
4154
  _output_out: {
4968
- isUnread: boolean;
4155
+ isUnreaded: boolean;
4969
4156
  };
4970
4157
  }, unknown>;
4971
4158
  updateDraft: _trpc_server.BuildProcedure<"mutation", {
@@ -5021,75 +4208,29 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5021
4208
  };
5022
4209
  _output_in: {
5023
4210
  type: "received" | "sent";
5024
- mailIntegrity: {
5025
- id: string;
5026
- replyTo: {
5027
- id: string;
5028
- } | null;
5029
- hashKey: string;
5030
- hash: string;
5031
- temporaryRecipients: {
5032
- email: string | null;
5033
- }[];
5034
- } | null;
5035
- mailIntegrityDraft: {
5036
- id: string;
5037
- replyTo: {
5038
- id: string;
5039
- } | null;
5040
- hashKey: string;
5041
- hash: string;
5042
- temporaryRecipients: {
5043
- email: string | null;
5044
- }[];
5045
- } | null;
4211
+ appId: string;
5046
4212
  id: string;
5047
4213
  createdAt: Date;
5048
4214
  deletedAt: Date | null;
5049
4215
  subject: string;
5050
4216
  body: string;
4217
+ senderId: string;
4218
+ recipientId: string;
5051
4219
  openedAt: Date | null;
5052
- files: {
5053
- fileId: string;
5054
- filename: string;
5055
- fileKey: string;
5056
- }[];
4220
+ mailIntegrityId: string | null;
5057
4221
  };
5058
4222
  _output_out: {
5059
4223
  type: "received" | "sent";
5060
- mailIntegrity: {
5061
- id: string;
5062
- replyTo: {
5063
- id: string;
5064
- } | null;
5065
- hashKey: string;
5066
- hash: string;
5067
- temporaryRecipients: {
5068
- email: string | null;
5069
- }[];
5070
- } | null;
5071
- mailIntegrityDraft: {
5072
- id: string;
5073
- replyTo: {
5074
- id: string;
5075
- } | null;
5076
- hashKey: string;
5077
- hash: string;
5078
- temporaryRecipients: {
5079
- email: string | null;
5080
- }[];
5081
- } | null;
4224
+ appId: string;
5082
4225
  id: string;
5083
4226
  createdAt: Date;
5084
4227
  deletedAt: Date | null;
5085
4228
  subject: string;
5086
4229
  body: string;
4230
+ senderId: string;
4231
+ recipientId: string;
5087
4232
  openedAt: Date | null;
5088
- files: {
5089
- fileId: string;
5090
- filename: string;
5091
- fileKey: string;
5092
- }[];
4233
+ mailIntegrityId: string | null;
5093
4234
  };
5094
4235
  }, unknown>;
5095
4236
  }>;
@@ -5476,20 +4617,16 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5476
4617
  uaEncPriv: string;
5477
4618
  };
5478
4619
  _output_in: {
5479
- keyPair: {
5480
- uaPub: string;
5481
- uaEncPriv: string;
5482
- };
5483
4620
  jwt: string;
5484
4621
  uaSession: string;
4622
+ uaPub: string;
4623
+ uaEncPriv: string;
5485
4624
  };
5486
4625
  _output_out: {
5487
- keyPair: {
5488
- uaPub: string;
5489
- uaEncPriv: string;
5490
- };
5491
4626
  jwt: string;
5492
4627
  uaSession: string;
4628
+ uaPub: string;
4629
+ uaEncPriv: string;
5493
4630
  };
5494
4631
  }, unknown>;
5495
4632
  login: _trpc_server.BuildProcedure<"mutation", {
@@ -5532,18 +4669,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5532
4669
  _output_in: {
5533
4670
  jwt: string;
5534
4671
  uaSession: string;
5535
- keyPair?: {
5536
- uaPub: string;
5537
- uaEncPriv: string;
5538
- } | undefined;
4672
+ uaPub: string;
4673
+ uaEncPriv: string;
5539
4674
  };
5540
4675
  _output_out: {
5541
4676
  jwt: string;
5542
4677
  uaSession: string;
5543
- keyPair?: {
5544
- uaPub: string;
5545
- uaEncPriv: string;
5546
- } | undefined;
4678
+ uaPub: string;
4679
+ uaEncPriv: string;
5547
4680
  };
5548
4681
  }, unknown>;
5549
4682
  }>;
@@ -6784,13 +5917,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6784
5917
  _meta: object;
6785
5918
  _ctx_out: {};
6786
5919
  _input_in: {
6787
- userId: string;
5920
+ email: string;
6788
5921
  userRole: "user" | "admin";
6789
5922
  appCode: string;
6790
5923
  userRights: "admin" | "write" | "read";
6791
5924
  };
6792
5925
  _input_out: {
6793
- userId: string;
5926
+ email: string;
6794
5927
  userRole: "user" | "admin";
6795
5928
  appCode: string;
6796
5929
  userRights: "admin" | "write" | "read";
@@ -6951,7 +6084,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6951
6084
  logo: string | null;
6952
6085
  origin: string;
6953
6086
  collaborators: {
6954
- userId: string;
6087
+ email: string;
6955
6088
  role: "user" | "admin";
6956
6089
  }[];
6957
6090
  };
@@ -6961,7 +6094,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6961
6094
  logo: string | null;
6962
6095
  origin: string;
6963
6096
  collaborators: {
6964
- userId: string;
6097
+ email: string;
6965
6098
  role: "user" | "admin";
6966
6099
  }[];
6967
6100
  };
@@ -7081,15 +6214,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7081
6214
  developer: {
7082
6215
  user: {
7083
6216
  id: string;
7084
- lastname: string;
7085
- firstname: string;
7086
- accounts: {
7087
- account: {
7088
- infos: {
7089
- emails: string[];
7090
- };
7091
- };
7092
- }[];
6217
+ infos: {
6218
+ firstname: string;
6219
+ lastname: string;
6220
+ emails: string[];
6221
+ };
7093
6222
  };
7094
6223
  id: string;
7095
6224
  };
@@ -7100,15 +6229,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7100
6229
  developer: {
7101
6230
  user: {
7102
6231
  id: string;
7103
- lastname: string;
7104
- firstname: string;
7105
- accounts: {
7106
- account: {
7107
- infos: {
7108
- emails: string[];
7109
- };
7110
- };
7111
- }[];
6232
+ infos: {
6233
+ firstname: string;
6234
+ lastname: string;
6235
+ emails: string[];
6236
+ };
7112
6237
  };
7113
6238
  id: string;
7114
6239
  };
@@ -7149,15 +6274,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7149
6274
  developer: {
7150
6275
  user: {
7151
6276
  id: string;
7152
- lastname: string;
7153
- firstname: string;
7154
- accounts: {
7155
- account: {
7156
- infos: {
7157
- emails: string[];
7158
- };
7159
- };
7160
- }[];
6277
+ infos: {
6278
+ firstname: string;
6279
+ lastname: string;
6280
+ emails: string[];
6281
+ };
7161
6282
  };
7162
6283
  id: string;
7163
6284
  };
@@ -7168,15 +6289,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7168
6289
  developer: {
7169
6290
  user: {
7170
6291
  id: string;
7171
- lastname: string;
7172
- firstname: string;
7173
- accounts: {
7174
- account: {
7175
- infos: {
7176
- emails: string[];
7177
- };
7178
- };
7179
- }[];
6292
+ infos: {
6293
+ firstname: string;
6294
+ lastname: string;
6295
+ emails: string[];
6296
+ };
7180
6297
  };
7181
6298
  id: string;
7182
6299
  };
@@ -7401,7 +6518,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7401
6518
  };
7402
6519
  transformer: typeof superjson.default;
7403
6520
  }>, {
7404
- byId: _trpc_server.BuildProcedure<"query", {
6521
+ byEmail: _trpc_server.BuildProcedure<"query", {
7405
6522
  _config: _trpc_server.RootConfig<{
7406
6523
  ctx: {};
7407
6524
  meta: object;
@@ -7425,77 +6542,35 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7425
6542
  _meta: object;
7426
6543
  _ctx_out: {};
7427
6544
  _input_in: {
7428
- id: string;
6545
+ email: string;
7429
6546
  };
7430
6547
  _input_out: {
7431
- id: string;
6548
+ email: string;
7432
6549
  };
7433
6550
  _output_in: {
7434
6551
  id: string;
7435
- lastname: string;
7436
- firstname: string;
7437
- applications: {
7438
- id: string;
7439
- publicKey: string;
7440
- }[];
6552
+ createdAt: Date;
6553
+ lastLogin: Date;
6554
+ deletedAt: Date | null;
6555
+ infosId: string;
6556
+ developerId: string | null;
6557
+ role: "user" | "admin";
6558
+ godFatherId: string | null;
6559
+ lang: "fr" | "en";
6560
+ autoDisconnectDelay: number | null;
7441
6561
  };
7442
6562
  _output_out: {
7443
6563
  id: string;
7444
- lastname: string;
7445
- firstname: string;
7446
- applications: {
7447
- id: string;
7448
- publicKey: string;
7449
- }[];
7450
- };
7451
- }, unknown>;
7452
- searchMany: _trpc_server.BuildProcedure<"query", {
7453
- _config: _trpc_server.RootConfig<{
7454
- ctx: {};
7455
- meta: object;
7456
- errorShape: {
7457
- message: string;
7458
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7459
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
7460
- } | {
7461
- data: {
7462
- zodError: zod.typeToFlattenedError<any, string> | null;
7463
- 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";
7464
- httpStatus: number;
7465
- path?: string | undefined;
7466
- stack?: string | undefined;
7467
- };
7468
- message: string;
7469
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
7470
- };
7471
- transformer: typeof superjson.default;
7472
- }>;
7473
- _meta: object;
7474
- _ctx_out: {};
7475
- _input_in: {
7476
- search: string;
7477
- };
7478
- _input_out: {
7479
- search: string;
6564
+ createdAt: Date;
6565
+ lastLogin: Date;
6566
+ deletedAt: Date | null;
6567
+ infosId: string;
6568
+ developerId: string | null;
6569
+ role: "user" | "admin";
6570
+ godFatherId: string | null;
6571
+ lang: "fr" | "en";
6572
+ autoDisconnectDelay: number | null;
7480
6573
  };
7481
- _output_in: {
7482
- id: string;
7483
- lastname: string;
7484
- firstname: string;
7485
- applications: {
7486
- id: string;
7487
- publicKey: string;
7488
- }[];
7489
- }[];
7490
- _output_out: {
7491
- id: string;
7492
- lastname: string;
7493
- firstname: string;
7494
- applications: {
7495
- id: string;
7496
- publicKey: string;
7497
- }[];
7498
- }[];
7499
6574
  }, unknown>;
7500
6575
  deleteSelfData: _trpc_server.BuildProcedure<"mutation", {
7501
6576
  _config: _trpc_server.RootConfig<{
@@ -7587,56 +6662,52 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7587
6662
  _input_in: {} | undefined;
7588
6663
  _input_out: {} | undefined;
7589
6664
  _output_in: {
7590
- account: {
6665
+ id: string;
6666
+ createdAt: Date;
6667
+ lastLogin: Date;
6668
+ deletedAt: Date | null;
6669
+ infosId: string;
6670
+ developerId: string | null;
6671
+ role: "user" | "admin";
6672
+ godFatherId: string | null;
6673
+ lang: "fr" | "en";
6674
+ autoDisconnectDelay: number | null;
6675
+ } & {
6676
+ infos: {
7591
6677
  id: string;
7592
- createdAt: Date;
7593
- role: "user" | "admin";
7594
6678
  updatedAt: Date;
7595
- deletedAt: Date | null;
6679
+ firstname: string;
6680
+ lastname: string;
7596
6681
  emails: string[];
7597
6682
  phones: string[];
7598
- infosId: string;
7599
6683
  srpSalt: string;
7600
6684
  masterKeySalt: string;
7601
6685
  srpVerifier: string;
7602
6686
  };
6687
+ };
6688
+ _output_out: {
7603
6689
  id: string;
7604
6690
  createdAt: Date;
7605
- updatedAt: Date;
7606
- lastLogin: Date | null;
6691
+ lastLogin: Date;
7607
6692
  deletedAt: Date | null;
7608
- lastname: string;
7609
- firstname: string;
7610
- applications: {
7611
- id: string;
7612
- publicKey: string;
7613
- }[];
7614
- };
7615
- _output_out: {
7616
- account: {
6693
+ infosId: string;
6694
+ developerId: string | null;
6695
+ role: "user" | "admin";
6696
+ godFatherId: string | null;
6697
+ lang: "fr" | "en";
6698
+ autoDisconnectDelay: number | null;
6699
+ } & {
6700
+ infos: {
7617
6701
  id: string;
7618
- createdAt: Date;
7619
- role: "user" | "admin";
7620
6702
  updatedAt: Date;
7621
- deletedAt: Date | null;
6703
+ firstname: string;
6704
+ lastname: string;
7622
6705
  emails: string[];
7623
6706
  phones: string[];
7624
- infosId: string;
7625
6707
  srpSalt: string;
7626
6708
  masterKeySalt: string;
7627
6709
  srpVerifier: string;
7628
6710
  };
7629
- id: string;
7630
- createdAt: Date;
7631
- updatedAt: Date;
7632
- lastLogin: Date | null;
7633
- deletedAt: Date | null;
7634
- lastname: string;
7635
- firstname: string;
7636
- applications: {
7637
- id: string;
7638
- publicKey: string;
7639
- }[];
7640
6711
  };
7641
6712
  }, unknown>;
7642
6713
  updateAutoDisconnectDelay: _trpc_server.BuildProcedure<"mutation", {
@@ -7711,28 +6782,50 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7711
6782
  _output_in: {
7712
6783
  id: string;
7713
6784
  createdAt: Date;
7714
- updatedAt: Date;
7715
- lastLogin: Date | null;
6785
+ lastLogin: Date;
7716
6786
  deletedAt: Date | null;
7717
- lastname: string;
7718
- firstname: string;
7719
- applications: {
6787
+ infosId: string;
6788
+ developerId: string | null;
6789
+ role: "user" | "admin";
6790
+ godFatherId: string | null;
6791
+ lang: "fr" | "en";
6792
+ autoDisconnectDelay: number | null;
6793
+ } & {
6794
+ infos: {
7720
6795
  id: string;
7721
- publicKey: string;
7722
- }[];
6796
+ updatedAt: Date;
6797
+ firstname: string;
6798
+ lastname: string;
6799
+ emails: string[];
6800
+ phones: string[];
6801
+ srpSalt: string;
6802
+ masterKeySalt: string;
6803
+ srpVerifier: string;
6804
+ };
7723
6805
  };
7724
6806
  _output_out: {
7725
6807
  id: string;
7726
6808
  createdAt: Date;
7727
- updatedAt: Date;
7728
- lastLogin: Date | null;
6809
+ lastLogin: Date;
7729
6810
  deletedAt: Date | null;
7730
- lastname: string;
7731
- firstname: string;
7732
- applications: {
6811
+ infosId: string;
6812
+ developerId: string | null;
6813
+ role: "user" | "admin";
6814
+ godFatherId: string | null;
6815
+ lang: "fr" | "en";
6816
+ autoDisconnectDelay: number | null;
6817
+ } & {
6818
+ infos: {
7733
6819
  id: string;
7734
- publicKey: string;
7735
- }[];
6820
+ updatedAt: Date;
6821
+ firstname: string;
6822
+ lastname: string;
6823
+ emails: string[];
6824
+ phones: string[];
6825
+ srpSalt: string;
6826
+ masterKeySalt: string;
6827
+ srpVerifier: string;
6828
+ };
7736
6829
  };
7737
6830
  }, unknown>;
7738
6831
  }>;