@secrecy/trpc-api-types 1.33.8-dev.1 → 1.33.9-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +267 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -605,7 +605,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
605
605
|
encPriv: string;
|
|
606
606
|
}[];
|
|
607
607
|
};
|
|
608
|
-
output:
|
|
608
|
+
output: {};
|
|
609
609
|
meta: any;
|
|
610
610
|
}>;
|
|
611
611
|
changePassword: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -704,7 +704,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
704
704
|
email: string;
|
|
705
705
|
phone: string;
|
|
706
706
|
};
|
|
707
|
-
output:
|
|
707
|
+
output: {};
|
|
708
708
|
meta: any;
|
|
709
709
|
}>;
|
|
710
710
|
sendCodes: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2265,7 +2265,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2265
2265
|
}>;
|
|
2266
2266
|
emptyNodeCloudTrash: _trpc_server.TRPCMutationProcedure<{
|
|
2267
2267
|
input: {
|
|
2268
|
-
[x: string]: never;
|
|
2269
2268
|
fromIdentityPubKey?: string | null | undefined;
|
|
2270
2269
|
appId?: string | null | undefined;
|
|
2271
2270
|
};
|
|
@@ -2383,6 +2382,66 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2383
2382
|
};
|
|
2384
2383
|
meta: any;
|
|
2385
2384
|
}>;
|
|
2385
|
+
nodeByIds: _trpc_server.TRPCQueryProcedure<{
|
|
2386
|
+
input: {
|
|
2387
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
2388
|
+
appId?: string | null | undefined;
|
|
2389
|
+
ids: string[];
|
|
2390
|
+
deleted?: boolean | null | undefined;
|
|
2391
|
+
};
|
|
2392
|
+
output: {
|
|
2393
|
+
nodes: ({
|
|
2394
|
+
id: string;
|
|
2395
|
+
createdAt: Date;
|
|
2396
|
+
deletedAt: Date | null;
|
|
2397
|
+
name: string;
|
|
2398
|
+
type: "FILE" | "FOLDER";
|
|
2399
|
+
updatedAt: Date;
|
|
2400
|
+
isFavorite: boolean;
|
|
2401
|
+
parentId: string | null;
|
|
2402
|
+
currentDataId: string | null;
|
|
2403
|
+
} & {
|
|
2404
|
+
owner: {
|
|
2405
|
+
userId: string;
|
|
2406
|
+
orgId: string;
|
|
2407
|
+
appId: string;
|
|
2408
|
+
};
|
|
2409
|
+
accesses: {
|
|
2410
|
+
rights: "delete" | "read" | "write";
|
|
2411
|
+
nameKey: string | null;
|
|
2412
|
+
isRoot: boolean;
|
|
2413
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2414
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2415
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2416
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2417
|
+
sharedByPubKey: string;
|
|
2418
|
+
identityPubKey: string;
|
|
2419
|
+
}[];
|
|
2420
|
+
permissions: {
|
|
2421
|
+
rights: "delete" | "read" | "write";
|
|
2422
|
+
} & {
|
|
2423
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2424
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2425
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2426
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2427
|
+
};
|
|
2428
|
+
identities: Record<string, {
|
|
2429
|
+
rights: "delete" | "read" | "write";
|
|
2430
|
+
} & {
|
|
2431
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2432
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2433
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2434
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2435
|
+
}>;
|
|
2436
|
+
} & {
|
|
2437
|
+
sizes: {
|
|
2438
|
+
size: bigint;
|
|
2439
|
+
sizeEncrypted: bigint;
|
|
2440
|
+
};
|
|
2441
|
+
})[];
|
|
2442
|
+
};
|
|
2443
|
+
meta: any;
|
|
2444
|
+
}>;
|
|
2386
2445
|
nodeFullById: _trpc_server.TRPCQueryProcedure<{
|
|
2387
2446
|
input: {
|
|
2388
2447
|
fromIdentityPubKey?: string | null | undefined;
|
|
@@ -2586,6 +2645,211 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2586
2645
|
};
|
|
2587
2646
|
meta: any;
|
|
2588
2647
|
}>;
|
|
2648
|
+
nodeFullByIds: _trpc_server.TRPCQueryProcedure<{
|
|
2649
|
+
input: {
|
|
2650
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
2651
|
+
appId?: string | null | undefined;
|
|
2652
|
+
ids: string[];
|
|
2653
|
+
deleted?: boolean | null | undefined;
|
|
2654
|
+
};
|
|
2655
|
+
output: {
|
|
2656
|
+
nodes: ({
|
|
2657
|
+
id: string;
|
|
2658
|
+
createdAt: Date;
|
|
2659
|
+
deletedAt: Date | null;
|
|
2660
|
+
name: string;
|
|
2661
|
+
type: "FILE" | "FOLDER";
|
|
2662
|
+
updatedAt: Date;
|
|
2663
|
+
isFavorite: boolean;
|
|
2664
|
+
parentId: string | null;
|
|
2665
|
+
currentDataId: string | null;
|
|
2666
|
+
} & {
|
|
2667
|
+
owner: {
|
|
2668
|
+
userId: string;
|
|
2669
|
+
orgId: string;
|
|
2670
|
+
appId: string;
|
|
2671
|
+
};
|
|
2672
|
+
accesses: {
|
|
2673
|
+
rights: "delete" | "read" | "write";
|
|
2674
|
+
nameKey: string | null;
|
|
2675
|
+
isRoot: boolean;
|
|
2676
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2677
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2678
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2679
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2680
|
+
sharedByPubKey: string;
|
|
2681
|
+
identityPubKey: string;
|
|
2682
|
+
}[];
|
|
2683
|
+
permissions: {
|
|
2684
|
+
rights: "delete" | "read" | "write";
|
|
2685
|
+
} & {
|
|
2686
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2687
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2688
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2689
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2690
|
+
};
|
|
2691
|
+
identities: Record<string, {
|
|
2692
|
+
rights: "delete" | "read" | "write";
|
|
2693
|
+
} & {
|
|
2694
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2695
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2696
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2697
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2698
|
+
}>;
|
|
2699
|
+
} & {
|
|
2700
|
+
sizes: {
|
|
2701
|
+
size: bigint;
|
|
2702
|
+
sizeEncrypted: bigint;
|
|
2703
|
+
};
|
|
2704
|
+
} & {
|
|
2705
|
+
parent: ({
|
|
2706
|
+
id: string;
|
|
2707
|
+
createdAt: Date;
|
|
2708
|
+
deletedAt: Date | null;
|
|
2709
|
+
name: string;
|
|
2710
|
+
type: "FILE" | "FOLDER";
|
|
2711
|
+
updatedAt: Date;
|
|
2712
|
+
isFavorite: boolean;
|
|
2713
|
+
parentId: string | null;
|
|
2714
|
+
currentDataId: string | null;
|
|
2715
|
+
} & {
|
|
2716
|
+
owner: {
|
|
2717
|
+
userId: string;
|
|
2718
|
+
orgId: string;
|
|
2719
|
+
appId: string;
|
|
2720
|
+
};
|
|
2721
|
+
accesses: {
|
|
2722
|
+
rights: "delete" | "read" | "write";
|
|
2723
|
+
nameKey: string | null;
|
|
2724
|
+
isRoot: boolean;
|
|
2725
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2726
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2727
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2728
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2729
|
+
sharedByPubKey: string;
|
|
2730
|
+
identityPubKey: string;
|
|
2731
|
+
}[];
|
|
2732
|
+
permissions: {
|
|
2733
|
+
rights: "delete" | "read" | "write";
|
|
2734
|
+
} & {
|
|
2735
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2736
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2737
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2738
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2739
|
+
};
|
|
2740
|
+
identities: Record<string, {
|
|
2741
|
+
rights: "delete" | "read" | "write";
|
|
2742
|
+
} & {
|
|
2743
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2744
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2745
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2746
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2747
|
+
}>;
|
|
2748
|
+
}) | null;
|
|
2749
|
+
children: ({
|
|
2750
|
+
id: string;
|
|
2751
|
+
createdAt: Date;
|
|
2752
|
+
deletedAt: Date | null;
|
|
2753
|
+
name: string;
|
|
2754
|
+
type: "FILE" | "FOLDER";
|
|
2755
|
+
updatedAt: Date;
|
|
2756
|
+
isFavorite: boolean;
|
|
2757
|
+
parentId: string | null;
|
|
2758
|
+
currentDataId: string | null;
|
|
2759
|
+
} & {
|
|
2760
|
+
owner: {
|
|
2761
|
+
userId: string;
|
|
2762
|
+
orgId: string;
|
|
2763
|
+
appId: string;
|
|
2764
|
+
};
|
|
2765
|
+
accesses: {
|
|
2766
|
+
rights: "delete" | "read" | "write";
|
|
2767
|
+
nameKey: string | null;
|
|
2768
|
+
isRoot: boolean;
|
|
2769
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2770
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2771
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2772
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2773
|
+
sharedByPubKey: string;
|
|
2774
|
+
identityPubKey: string;
|
|
2775
|
+
}[];
|
|
2776
|
+
permissions: {
|
|
2777
|
+
rights: "delete" | "read" | "write";
|
|
2778
|
+
} & {
|
|
2779
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2780
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2781
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2782
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2783
|
+
};
|
|
2784
|
+
identities: Record<string, {
|
|
2785
|
+
rights: "delete" | "read" | "write";
|
|
2786
|
+
} & {
|
|
2787
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2788
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2789
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2790
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2791
|
+
}>;
|
|
2792
|
+
} & {
|
|
2793
|
+
sizes: {
|
|
2794
|
+
size: bigint;
|
|
2795
|
+
sizeEncrypted: bigint;
|
|
2796
|
+
};
|
|
2797
|
+
})[];
|
|
2798
|
+
current: {
|
|
2799
|
+
id: string;
|
|
2800
|
+
storageType: "s3" | "cold" | "lite";
|
|
2801
|
+
size: bigint;
|
|
2802
|
+
prefix: string;
|
|
2803
|
+
sizeEncrypted: bigint | null;
|
|
2804
|
+
md5: string;
|
|
2805
|
+
md5Encrypted: string | null;
|
|
2806
|
+
mime: string | null;
|
|
2807
|
+
ext: string | null;
|
|
2808
|
+
createdAt: Date;
|
|
2809
|
+
validatedAt: Date | null;
|
|
2810
|
+
restoreSince: Date | null;
|
|
2811
|
+
createdByUserId: string | null;
|
|
2812
|
+
createdByAppId: string | null;
|
|
2813
|
+
createdByOrgId: string | null;
|
|
2814
|
+
access: {
|
|
2815
|
+
key: string | null;
|
|
2816
|
+
identityPubKey: string;
|
|
2817
|
+
sharedByPubKey: string;
|
|
2818
|
+
};
|
|
2819
|
+
} | null;
|
|
2820
|
+
history: {
|
|
2821
|
+
id: string;
|
|
2822
|
+
storageType: "s3" | "cold" | "lite";
|
|
2823
|
+
size: bigint;
|
|
2824
|
+
prefix: string;
|
|
2825
|
+
sizeEncrypted: bigint | null;
|
|
2826
|
+
md5: string;
|
|
2827
|
+
md5Encrypted: string | null;
|
|
2828
|
+
mime: string | null;
|
|
2829
|
+
ext: string | null;
|
|
2830
|
+
createdAt: Date;
|
|
2831
|
+
validatedAt: Date | null;
|
|
2832
|
+
restoreSince: Date | null;
|
|
2833
|
+
createdByUserId: string | null;
|
|
2834
|
+
createdByAppId: string | null;
|
|
2835
|
+
createdByOrgId: string | null;
|
|
2836
|
+
access: {
|
|
2837
|
+
key: string | null;
|
|
2838
|
+
identityPubKey: string;
|
|
2839
|
+
sharedByPubKey: string;
|
|
2840
|
+
};
|
|
2841
|
+
}[];
|
|
2842
|
+
breadcrumb: {
|
|
2843
|
+
id: string;
|
|
2844
|
+
name: string;
|
|
2845
|
+
identityPubKey: string;
|
|
2846
|
+
sharedByPubKey: string;
|
|
2847
|
+
nameKey: string | null;
|
|
2848
|
+
}[];
|
|
2849
|
+
})[];
|
|
2850
|
+
};
|
|
2851
|
+
meta: any;
|
|
2852
|
+
}>;
|
|
2589
2853
|
nodesForEncryption: _trpc_server.TRPCQueryProcedure<{
|
|
2590
2854
|
input: {
|
|
2591
2855
|
fromIdentityPubKey?: string | null | undefined;
|
|
@@ -2626,7 +2890,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2626
2890
|
}>;
|
|
2627
2891
|
nodesDeleted: _trpc_server.TRPCQueryProcedure<{
|
|
2628
2892
|
input: {
|
|
2629
|
-
[x: string]: never;
|
|
2630
2893
|
fromIdentityPubKey?: string | null | undefined;
|
|
2631
2894
|
appId?: string | null | undefined;
|
|
2632
2895
|
};
|
|
@@ -4553,7 +4816,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4553
4816
|
}>;
|
|
4554
4817
|
emptyTrash: _trpc_server.TRPCMutationProcedure<{
|
|
4555
4818
|
input: {
|
|
4556
|
-
[x: string]: never;
|
|
4557
4819
|
fromIdentityPubKey?: string | null | undefined;
|
|
4558
4820
|
appId?: string | null | undefined;
|
|
4559
4821
|
};
|
|
@@ -4776,7 +5038,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4776
5038
|
}>;
|
|
4777
5039
|
unreadReceivedCount: _trpc_server.TRPCQueryProcedure<{
|
|
4778
5040
|
input: {
|
|
4779
|
-
[x: string]: never;
|
|
4780
5041
|
fromIdentityPubKey?: string | null | undefined;
|
|
4781
5042
|
appId?: string | null | undefined;
|
|
4782
5043
|
};
|