@secrecy/lib 1.51.0 → 1.52.0-feat-public-data-link.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.
|
@@ -555,6 +555,36 @@ export class SecrecyCloudClient {
|
|
|
555
555
|
: null,
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
|
+
async updateDataStorageType(input) {
|
|
559
|
+
const data = dataContentCache.get(input.dataId);
|
|
560
|
+
if (data) {
|
|
561
|
+
if (data.storageType === input.storageType) {
|
|
562
|
+
throw new Error(`The data is already on "${data.storageType}`);
|
|
563
|
+
}
|
|
564
|
+
if (data.storageType === 'cold' && input.storageType === 'lite') {
|
|
565
|
+
throw new Error("It's not possible to transfer a cold stored data to a lite storage!");
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return this.#apiClient.cloud.moveToStorageType.mutate(input);
|
|
569
|
+
}
|
|
570
|
+
getPublicDataLink(input) {
|
|
571
|
+
return this.#apiClient.cloud.dataLink.query(input);
|
|
572
|
+
}
|
|
573
|
+
getPublicDataLinks(input) {
|
|
574
|
+
return this.#apiClient.cloud.dataLinks.query(input);
|
|
575
|
+
}
|
|
576
|
+
createPublicDataLink(input) {
|
|
577
|
+
if (input.expireAt && input.expireAt <= new Date()) {
|
|
578
|
+
throw new Error('Unable to create public link using a past expireAt date!');
|
|
579
|
+
}
|
|
580
|
+
return this.#apiClient.cloud.createDataLink.mutate(input);
|
|
581
|
+
}
|
|
582
|
+
updatePublicDataLink(input) {
|
|
583
|
+
return this.#apiClient.cloud.updateDataLink.mutate(input);
|
|
584
|
+
}
|
|
585
|
+
deletePublicDataLink(input) {
|
|
586
|
+
return this.#apiClient.cloud.deleteDataLink.mutate(input);
|
|
587
|
+
}
|
|
558
588
|
async _handleDataContent({ dataContent, totalBytes, progressParts, onDownloadProgress, progressDecrypt, signal, }) {
|
|
559
589
|
const onProgress = (key, progressEvent) => {
|
|
560
590
|
progressParts[key] = progressEvent;
|
|
@@ -103,5 +103,45 @@ export declare class SecrecyCloudClient {
|
|
|
103
103
|
}): Promise<NodeFull>;
|
|
104
104
|
private readonly perNode;
|
|
105
105
|
reportData({ id, reasons, }: Omit<RouterInputs['cloud']['reportData'], 'encryptedDataKey'>): Promise<RouterOutputs['cloud']['reportData']>;
|
|
106
|
+
updateDataStorageType(input: RouterInputs['cloud']['moveToStorageType']): Promise<{
|
|
107
|
+
isMoved: boolean;
|
|
108
|
+
fromType: "s3" | "cold" | "lite";
|
|
109
|
+
toType: "s3" | "cold" | "lite";
|
|
110
|
+
}>;
|
|
111
|
+
getPublicDataLink(input: RouterInputs['cloud']['dataLink']): Promise<{
|
|
112
|
+
name: string;
|
|
113
|
+
id: string;
|
|
114
|
+
dataId: string;
|
|
115
|
+
expireAt: Date | null;
|
|
116
|
+
slug: string;
|
|
117
|
+
}>;
|
|
118
|
+
getPublicDataLinks(input: RouterInputs['cloud']['dataLinks']): Promise<{
|
|
119
|
+
name: string;
|
|
120
|
+
id: string;
|
|
121
|
+
dataId: string;
|
|
122
|
+
expireAt: Date | null;
|
|
123
|
+
slug: string;
|
|
124
|
+
}[]>;
|
|
125
|
+
createPublicDataLink(input: RouterInputs['cloud']['createDataLink']): Promise<{
|
|
126
|
+
name: string;
|
|
127
|
+
id: string;
|
|
128
|
+
dataId: string;
|
|
129
|
+
expireAt: Date | null;
|
|
130
|
+
slug: string;
|
|
131
|
+
}>;
|
|
132
|
+
updatePublicDataLink(input: RouterInputs['cloud']['updateDataLink']): Promise<{
|
|
133
|
+
name: string;
|
|
134
|
+
id: string;
|
|
135
|
+
dataId: string;
|
|
136
|
+
expireAt: Date | null;
|
|
137
|
+
slug: string;
|
|
138
|
+
}>;
|
|
139
|
+
deletePublicDataLink(input: RouterInputs['cloud']['deleteDataLink']): Promise<{
|
|
140
|
+
name: string;
|
|
141
|
+
id: string;
|
|
142
|
+
dataId: string;
|
|
143
|
+
expireAt: Date | null;
|
|
144
|
+
slug: string;
|
|
145
|
+
}>;
|
|
106
146
|
private _handleDataContent;
|
|
107
147
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2094,6 +2094,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2094
2094
|
sizeEncrypted: bigint | null;
|
|
2095
2095
|
md5Encrypted: string | null;
|
|
2096
2096
|
validatedAt: Date | null;
|
|
2097
|
+
restoreSince: Date | null;
|
|
2097
2098
|
access: {
|
|
2098
2099
|
key: string | null;
|
|
2099
2100
|
sharedByPubKey: string;
|
|
@@ -2110,6 +2111,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2110
2111
|
sizeEncrypted: bigint | null;
|
|
2111
2112
|
md5Encrypted: string | null;
|
|
2112
2113
|
validatedAt: Date | null;
|
|
2114
|
+
restoreSince: Date | null;
|
|
2113
2115
|
access: {
|
|
2114
2116
|
key: string | null;
|
|
2115
2117
|
sharedByPubKey: string;
|
|
@@ -2239,6 +2241,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2239
2241
|
sizeEncrypted: bigint | null;
|
|
2240
2242
|
md5Encrypted: string | null;
|
|
2241
2243
|
validatedAt: Date | null;
|
|
2244
|
+
restoreSince: Date | null;
|
|
2242
2245
|
access: {
|
|
2243
2246
|
key: string | null;
|
|
2244
2247
|
sharedByPubKey: string;
|
|
@@ -2255,6 +2258,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2255
2258
|
sizeEncrypted: bigint | null;
|
|
2256
2259
|
md5Encrypted: string | null;
|
|
2257
2260
|
validatedAt: Date | null;
|
|
2261
|
+
restoreSince: Date | null;
|
|
2258
2262
|
access: {
|
|
2259
2263
|
key: string | null;
|
|
2260
2264
|
sharedByPubKey: string;
|
|
@@ -2423,6 +2427,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2423
2427
|
sizeEncrypted: bigint | null;
|
|
2424
2428
|
md5Encrypted: string | null;
|
|
2425
2429
|
validatedAt: Date | null;
|
|
2430
|
+
restoreSince: Date | null;
|
|
2426
2431
|
access: {
|
|
2427
2432
|
key: string | null;
|
|
2428
2433
|
sharedByPubKey: string;
|
|
@@ -2439,6 +2444,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2439
2444
|
sizeEncrypted: bigint | null;
|
|
2440
2445
|
md5Encrypted: string | null;
|
|
2441
2446
|
validatedAt: Date | null;
|
|
2447
|
+
restoreSince: Date | null;
|
|
2442
2448
|
access: {
|
|
2443
2449
|
key: string | null;
|
|
2444
2450
|
sharedByPubKey: string;
|
|
@@ -2802,21 +2808,21 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2802
2808
|
_ctx_out: {};
|
|
2803
2809
|
_input_in: {
|
|
2804
2810
|
dataId: string;
|
|
2805
|
-
storageType: "s3" | "cold";
|
|
2811
|
+
storageType: "s3" | "cold" | "lite";
|
|
2806
2812
|
};
|
|
2807
2813
|
_input_out: {
|
|
2808
2814
|
dataId: string;
|
|
2809
|
-
storageType: "s3" | "cold";
|
|
2815
|
+
storageType: "s3" | "cold" | "lite";
|
|
2810
2816
|
};
|
|
2811
2817
|
_output_in: {
|
|
2812
2818
|
isMoved: boolean;
|
|
2813
|
-
fromType: "s3" | "cold";
|
|
2814
|
-
toType: "s3" | "cold";
|
|
2819
|
+
fromType: "s3" | "cold" | "lite";
|
|
2820
|
+
toType: "s3" | "cold" | "lite";
|
|
2815
2821
|
};
|
|
2816
2822
|
_output_out: {
|
|
2817
2823
|
isMoved: boolean;
|
|
2818
|
-
fromType: "s3" | "cold";
|
|
2819
|
-
toType: "s3" | "cold";
|
|
2824
|
+
fromType: "s3" | "cold" | "lite";
|
|
2825
|
+
toType: "s3" | "cold" | "lite";
|
|
2820
2826
|
};
|
|
2821
2827
|
}, unknown>>;
|
|
2822
2828
|
};
|
|
@@ -2906,6 +2912,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2906
2912
|
sizeEncrypted: bigint | null;
|
|
2907
2913
|
md5Encrypted: string | null;
|
|
2908
2914
|
validatedAt: Date | null;
|
|
2915
|
+
restoreSince: Date | null;
|
|
2909
2916
|
access: {
|
|
2910
2917
|
key: string | null;
|
|
2911
2918
|
sharedByPubKey: string;
|
|
@@ -2922,6 +2929,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2922
2929
|
sizeEncrypted: bigint | null;
|
|
2923
2930
|
md5Encrypted: string | null;
|
|
2924
2931
|
validatedAt: Date | null;
|
|
2932
|
+
restoreSince: Date | null;
|
|
2925
2933
|
access: {
|
|
2926
2934
|
key: string | null;
|
|
2927
2935
|
sharedByPubKey: string;
|
|
@@ -3051,6 +3059,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3051
3059
|
sizeEncrypted: bigint | null;
|
|
3052
3060
|
md5Encrypted: string | null;
|
|
3053
3061
|
validatedAt: Date | null;
|
|
3062
|
+
restoreSince: Date | null;
|
|
3054
3063
|
access: {
|
|
3055
3064
|
key: string | null;
|
|
3056
3065
|
sharedByPubKey: string;
|
|
@@ -3067,6 +3076,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3067
3076
|
sizeEncrypted: bigint | null;
|
|
3068
3077
|
md5Encrypted: string | null;
|
|
3069
3078
|
validatedAt: Date | null;
|
|
3079
|
+
restoreSince: Date | null;
|
|
3070
3080
|
access: {
|
|
3071
3081
|
key: string | null;
|
|
3072
3082
|
sharedByPubKey: string;
|
|
@@ -3672,6 +3682,248 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3672
3682
|
};
|
|
3673
3683
|
}, unknown>>;
|
|
3674
3684
|
};
|
|
3685
|
+
dataLink: {
|
|
3686
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
3687
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3688
|
+
ctx: {};
|
|
3689
|
+
meta: object;
|
|
3690
|
+
errorShape: {
|
|
3691
|
+
message: string;
|
|
3692
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3693
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3694
|
+
} | {
|
|
3695
|
+
data: {
|
|
3696
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3697
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3698
|
+
httpStatus: number;
|
|
3699
|
+
path?: string;
|
|
3700
|
+
stack?: string;
|
|
3701
|
+
};
|
|
3702
|
+
message: string;
|
|
3703
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3704
|
+
};
|
|
3705
|
+
transformer: typeof superjson;
|
|
3706
|
+
}>;
|
|
3707
|
+
_meta: object;
|
|
3708
|
+
_ctx_out: {};
|
|
3709
|
+
_input_in: {
|
|
3710
|
+
id: string;
|
|
3711
|
+
};
|
|
3712
|
+
_input_out: {
|
|
3713
|
+
id: string;
|
|
3714
|
+
};
|
|
3715
|
+
_output_in: {
|
|
3716
|
+
name: string;
|
|
3717
|
+
id: string;
|
|
3718
|
+
dataId: string;
|
|
3719
|
+
expireAt: Date | null;
|
|
3720
|
+
slug: string;
|
|
3721
|
+
};
|
|
3722
|
+
_output_out: {
|
|
3723
|
+
name: string;
|
|
3724
|
+
id: string;
|
|
3725
|
+
dataId: string;
|
|
3726
|
+
expireAt: Date | null;
|
|
3727
|
+
slug: string;
|
|
3728
|
+
};
|
|
3729
|
+
}, unknown>>;
|
|
3730
|
+
};
|
|
3731
|
+
dataLinks: {
|
|
3732
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
3733
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3734
|
+
ctx: {};
|
|
3735
|
+
meta: object;
|
|
3736
|
+
errorShape: {
|
|
3737
|
+
message: string;
|
|
3738
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3739
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3740
|
+
} | {
|
|
3741
|
+
data: {
|
|
3742
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3743
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3744
|
+
httpStatus: number;
|
|
3745
|
+
path?: string;
|
|
3746
|
+
stack?: string;
|
|
3747
|
+
};
|
|
3748
|
+
message: string;
|
|
3749
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3750
|
+
};
|
|
3751
|
+
transformer: typeof superjson;
|
|
3752
|
+
}>;
|
|
3753
|
+
_meta: object;
|
|
3754
|
+
_ctx_out: {};
|
|
3755
|
+
_input_in: {
|
|
3756
|
+
dataIds?: string[] | undefined;
|
|
3757
|
+
};
|
|
3758
|
+
_input_out: {
|
|
3759
|
+
dataIds?: string[] | undefined;
|
|
3760
|
+
};
|
|
3761
|
+
_output_in: {
|
|
3762
|
+
name: string;
|
|
3763
|
+
id: string;
|
|
3764
|
+
dataId: string;
|
|
3765
|
+
expireAt: Date | null;
|
|
3766
|
+
slug: string;
|
|
3767
|
+
}[];
|
|
3768
|
+
_output_out: {
|
|
3769
|
+
name: string;
|
|
3770
|
+
id: string;
|
|
3771
|
+
dataId: string;
|
|
3772
|
+
expireAt: Date | null;
|
|
3773
|
+
slug: string;
|
|
3774
|
+
}[];
|
|
3775
|
+
}, unknown>>;
|
|
3776
|
+
};
|
|
3777
|
+
createDataLink: {
|
|
3778
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
3779
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3780
|
+
ctx: {};
|
|
3781
|
+
meta: object;
|
|
3782
|
+
errorShape: {
|
|
3783
|
+
message: string;
|
|
3784
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3785
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3786
|
+
} | {
|
|
3787
|
+
data: {
|
|
3788
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3789
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3790
|
+
httpStatus: number;
|
|
3791
|
+
path?: string;
|
|
3792
|
+
stack?: string;
|
|
3793
|
+
};
|
|
3794
|
+
message: string;
|
|
3795
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3796
|
+
};
|
|
3797
|
+
transformer: typeof superjson;
|
|
3798
|
+
}>;
|
|
3799
|
+
_meta: object;
|
|
3800
|
+
_ctx_out: {};
|
|
3801
|
+
_input_in: {
|
|
3802
|
+
name: string;
|
|
3803
|
+
dataId: string;
|
|
3804
|
+
expireAt: Date | null;
|
|
3805
|
+
};
|
|
3806
|
+
_input_out: {
|
|
3807
|
+
name: string;
|
|
3808
|
+
dataId: string;
|
|
3809
|
+
expireAt: Date | null;
|
|
3810
|
+
};
|
|
3811
|
+
_output_in: {
|
|
3812
|
+
name: string;
|
|
3813
|
+
id: string;
|
|
3814
|
+
dataId: string;
|
|
3815
|
+
expireAt: Date | null;
|
|
3816
|
+
slug: string;
|
|
3817
|
+
};
|
|
3818
|
+
_output_out: {
|
|
3819
|
+
name: string;
|
|
3820
|
+
id: string;
|
|
3821
|
+
dataId: string;
|
|
3822
|
+
expireAt: Date | null;
|
|
3823
|
+
slug: string;
|
|
3824
|
+
};
|
|
3825
|
+
}, unknown>>;
|
|
3826
|
+
};
|
|
3827
|
+
updateDataLink: {
|
|
3828
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
3829
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3830
|
+
ctx: {};
|
|
3831
|
+
meta: object;
|
|
3832
|
+
errorShape: {
|
|
3833
|
+
message: string;
|
|
3834
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3835
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3836
|
+
} | {
|
|
3837
|
+
data: {
|
|
3838
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3839
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3840
|
+
httpStatus: number;
|
|
3841
|
+
path?: string;
|
|
3842
|
+
stack?: string;
|
|
3843
|
+
};
|
|
3844
|
+
message: string;
|
|
3845
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3846
|
+
};
|
|
3847
|
+
transformer: typeof superjson;
|
|
3848
|
+
}>;
|
|
3849
|
+
_meta: object;
|
|
3850
|
+
_ctx_out: {};
|
|
3851
|
+
_input_in: {
|
|
3852
|
+
id: string;
|
|
3853
|
+
} & {
|
|
3854
|
+
name?: string | undefined;
|
|
3855
|
+
expireAt?: Date | null | undefined;
|
|
3856
|
+
slug?: string | undefined;
|
|
3857
|
+
};
|
|
3858
|
+
_input_out: {
|
|
3859
|
+
id: string;
|
|
3860
|
+
} & {
|
|
3861
|
+
name?: string | undefined;
|
|
3862
|
+
expireAt?: Date | null | undefined;
|
|
3863
|
+
slug?: string | undefined;
|
|
3864
|
+
};
|
|
3865
|
+
_output_in: {
|
|
3866
|
+
name: string;
|
|
3867
|
+
id: string;
|
|
3868
|
+
dataId: string;
|
|
3869
|
+
expireAt: Date | null;
|
|
3870
|
+
slug: string;
|
|
3871
|
+
};
|
|
3872
|
+
_output_out: {
|
|
3873
|
+
name: string;
|
|
3874
|
+
id: string;
|
|
3875
|
+
dataId: string;
|
|
3876
|
+
expireAt: Date | null;
|
|
3877
|
+
slug: string;
|
|
3878
|
+
};
|
|
3879
|
+
}, unknown>>;
|
|
3880
|
+
};
|
|
3881
|
+
deleteDataLink: {
|
|
3882
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
3883
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3884
|
+
ctx: {};
|
|
3885
|
+
meta: object;
|
|
3886
|
+
errorShape: {
|
|
3887
|
+
message: string;
|
|
3888
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3889
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3890
|
+
} | {
|
|
3891
|
+
data: {
|
|
3892
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3893
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3894
|
+
httpStatus: number;
|
|
3895
|
+
path?: string;
|
|
3896
|
+
stack?: string;
|
|
3897
|
+
};
|
|
3898
|
+
message: string;
|
|
3899
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3900
|
+
};
|
|
3901
|
+
transformer: typeof superjson;
|
|
3902
|
+
}>;
|
|
3903
|
+
_meta: object;
|
|
3904
|
+
_ctx_out: {};
|
|
3905
|
+
_input_in: {
|
|
3906
|
+
id: string;
|
|
3907
|
+
};
|
|
3908
|
+
_input_out: {
|
|
3909
|
+
id: string;
|
|
3910
|
+
};
|
|
3911
|
+
_output_in: {
|
|
3912
|
+
name: string;
|
|
3913
|
+
id: string;
|
|
3914
|
+
dataId: string;
|
|
3915
|
+
expireAt: Date | null;
|
|
3916
|
+
slug: string;
|
|
3917
|
+
};
|
|
3918
|
+
_output_out: {
|
|
3919
|
+
name: string;
|
|
3920
|
+
id: string;
|
|
3921
|
+
dataId: string;
|
|
3922
|
+
expireAt: Date | null;
|
|
3923
|
+
slug: string;
|
|
3924
|
+
};
|
|
3925
|
+
}, unknown>>;
|
|
3926
|
+
};
|
|
3675
3927
|
createFolder: {
|
|
3676
3928
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
3677
3929
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -3754,6 +4006,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3754
4006
|
sizeEncrypted: bigint | null;
|
|
3755
4007
|
md5Encrypted: string | null;
|
|
3756
4008
|
validatedAt: Date | null;
|
|
4009
|
+
restoreSince: Date | null;
|
|
3757
4010
|
access: {
|
|
3758
4011
|
key: string | null;
|
|
3759
4012
|
sharedByPubKey: string;
|
|
@@ -3770,6 +4023,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3770
4023
|
sizeEncrypted: bigint | null;
|
|
3771
4024
|
md5Encrypted: string | null;
|
|
3772
4025
|
validatedAt: Date | null;
|
|
4026
|
+
restoreSince: Date | null;
|
|
3773
4027
|
access: {
|
|
3774
4028
|
key: string | null;
|
|
3775
4029
|
sharedByPubKey: string;
|
|
@@ -3899,6 +4153,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3899
4153
|
sizeEncrypted: bigint | null;
|
|
3900
4154
|
md5Encrypted: string | null;
|
|
3901
4155
|
validatedAt: Date | null;
|
|
4156
|
+
restoreSince: Date | null;
|
|
3902
4157
|
access: {
|
|
3903
4158
|
key: string | null;
|
|
3904
4159
|
sharedByPubKey: string;
|
|
@@ -3915,6 +4170,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3915
4170
|
sizeEncrypted: bigint | null;
|
|
3916
4171
|
md5Encrypted: string | null;
|
|
3917
4172
|
validatedAt: Date | null;
|
|
4173
|
+
restoreSince: Date | null;
|
|
3918
4174
|
access: {
|
|
3919
4175
|
key: string | null;
|
|
3920
4176
|
sharedByPubKey: string;
|
|
@@ -4562,6 +4818,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
4562
4818
|
sizeEncrypted: bigint | null;
|
|
4563
4819
|
md5Encrypted: string | null;
|
|
4564
4820
|
validatedAt: Date | null;
|
|
4821
|
+
restoreSince: Date | null;
|
|
4565
4822
|
access: {
|
|
4566
4823
|
key: string | null;
|
|
4567
4824
|
sharedByPubKey: string;
|
|
@@ -4578,6 +4835,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
4578
4835
|
sizeEncrypted: bigint | null;
|
|
4579
4836
|
md5Encrypted: string | null;
|
|
4580
4837
|
validatedAt: Date | null;
|
|
4838
|
+
restoreSince: Date | null;
|
|
4581
4839
|
access: {
|
|
4582
4840
|
key: string | null;
|
|
4583
4841
|
sharedByPubKey: string;
|
|
@@ -4707,6 +4965,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
4707
4965
|
sizeEncrypted: bigint | null;
|
|
4708
4966
|
md5Encrypted: string | null;
|
|
4709
4967
|
validatedAt: Date | null;
|
|
4968
|
+
restoreSince: Date | null;
|
|
4710
4969
|
access: {
|
|
4711
4970
|
key: string | null;
|
|
4712
4971
|
sharedByPubKey: string;
|
|
@@ -4723,6 +4982,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
4723
4982
|
sizeEncrypted: bigint | null;
|
|
4724
4983
|
md5Encrypted: string | null;
|
|
4725
4984
|
validatedAt: Date | null;
|
|
4985
|
+
restoreSince: Date | null;
|
|
4726
4986
|
access: {
|
|
4727
4987
|
key: string | null;
|
|
4728
4988
|
sharedByPubKey: string;
|
|
@@ -5344,6 +5604,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5344
5604
|
sizeEncrypted: bigint | null;
|
|
5345
5605
|
md5Encrypted: string | null;
|
|
5346
5606
|
validatedAt: Date | null;
|
|
5607
|
+
restoreSince: Date | null;
|
|
5347
5608
|
access: {
|
|
5348
5609
|
key: string | null;
|
|
5349
5610
|
sharedByPubKey: string;
|
|
@@ -5360,6 +5621,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5360
5621
|
sizeEncrypted: bigint | null;
|
|
5361
5622
|
md5Encrypted: string | null;
|
|
5362
5623
|
validatedAt: Date | null;
|
|
5624
|
+
restoreSince: Date | null;
|
|
5363
5625
|
access: {
|
|
5364
5626
|
key: string | null;
|
|
5365
5627
|
sharedByPubKey: string;
|
|
@@ -5489,6 +5751,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5489
5751
|
sizeEncrypted: bigint | null;
|
|
5490
5752
|
md5Encrypted: string | null;
|
|
5491
5753
|
validatedAt: Date | null;
|
|
5754
|
+
restoreSince: Date | null;
|
|
5492
5755
|
access: {
|
|
5493
5756
|
key: string | null;
|
|
5494
5757
|
sharedByPubKey: string;
|
|
@@ -5505,6 +5768,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5505
5768
|
sizeEncrypted: bigint | null;
|
|
5506
5769
|
md5Encrypted: string | null;
|
|
5507
5770
|
validatedAt: Date | null;
|
|
5771
|
+
restoreSince: Date | null;
|
|
5508
5772
|
access: {
|
|
5509
5773
|
key: string | null;
|
|
5510
5774
|
sharedByPubKey: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.52.0-feat-public-data-link.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.6.2"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0-feat-
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-unencrypted-pub-link.3",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|