@secrecy/lib 1.40.0-fix-dashboard-lp-tech-fixes.1 → 1.41.0-feat-remove-app-metrics.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/lib/client/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { SecrecyWalletClient } from './SecrecyWalletClient.js';
|
|
|
10
10
|
import { SecrecyPayClient } from './SecrecyPayClient.js';
|
|
11
11
|
import { SecrecyUserClient } from './SecrecyUserClient.js';
|
|
12
12
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
13
|
+
import { decryptAnonymous } from '../crypto/index.js';
|
|
13
14
|
export const encryptName = async (name, nameKey) => {
|
|
14
15
|
const { data } = await encryptSecretStream(sodium.from_hex(nameKey), sodium.from_string(name));
|
|
15
16
|
const nameEncrypted = sodium.to_hex(data);
|
|
@@ -48,6 +49,9 @@ export class SecrecyClient extends BaseClient {
|
|
|
48
49
|
get publicKey() {
|
|
49
50
|
return this.#keys.publicKey;
|
|
50
51
|
}
|
|
52
|
+
decryptAnonymous(data) {
|
|
53
|
+
return decryptAnonymous(data, this.#keys);
|
|
54
|
+
}
|
|
51
55
|
async logout(sessionId) {
|
|
52
56
|
nodesCache.clear();
|
|
53
57
|
dataCache.clear();
|
|
@@ -25,5 +25,6 @@ export declare class SecrecyClient extends BaseClient {
|
|
|
25
25
|
pseudonym: SecrecyPseudonymClient;
|
|
26
26
|
constructor(uaSession: string, uaKeys: KeyPair, uaJwt: string);
|
|
27
27
|
get publicKey(): string;
|
|
28
|
+
decryptAnonymous(data: Uint8Array): Uint8Array;
|
|
28
29
|
logout(sessionId?: string | null | undefined): Promise<void>;
|
|
29
30
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -273,8 +273,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
273
273
|
uploadCount: bigint;
|
|
274
274
|
downloadCount: bigint;
|
|
275
275
|
size: bigint;
|
|
276
|
-
uploadBandwidth: bigint;
|
|
277
276
|
downloadBandwidth: bigint;
|
|
277
|
+
uploadBandwidth: bigint;
|
|
278
278
|
maxCount: bigint | null;
|
|
279
279
|
maxSize: bigint | null;
|
|
280
280
|
maxDownloadBandwidth: bigint | null;
|
|
@@ -307,8 +307,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
307
307
|
uploadCount: bigint;
|
|
308
308
|
downloadCount: bigint;
|
|
309
309
|
size: bigint;
|
|
310
|
-
uploadBandwidth: bigint;
|
|
311
310
|
downloadBandwidth: bigint;
|
|
311
|
+
uploadBandwidth: bigint;
|
|
312
312
|
maxCount: bigint | null;
|
|
313
313
|
maxSize: bigint | null;
|
|
314
314
|
maxDownloadBandwidth: bigint | null;
|
|
@@ -384,24 +384,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
384
384
|
appId?: string | undefined;
|
|
385
385
|
} | undefined;
|
|
386
386
|
_output_in: {
|
|
387
|
-
id: string;
|
|
388
387
|
users: number;
|
|
389
388
|
developers: number;
|
|
390
|
-
lastReset: Date;
|
|
391
|
-
uploadBandwidth: bigint;
|
|
392
|
-
downloadBandwidth: bigint;
|
|
393
389
|
hasDatabase: boolean;
|
|
394
390
|
storageUsage: number;
|
|
391
|
+
downloadBandwidthUsage: number;
|
|
392
|
+
uploadBandwidthUsage: number;
|
|
395
393
|
};
|
|
396
394
|
_output_out: {
|
|
397
|
-
id: string;
|
|
398
395
|
users: number;
|
|
399
396
|
developers: number;
|
|
400
|
-
lastReset: Date;
|
|
401
|
-
uploadBandwidth: bigint;
|
|
402
|
-
downloadBandwidth: bigint;
|
|
403
397
|
hasDatabase: boolean;
|
|
404
398
|
storageUsage: number;
|
|
399
|
+
downloadBandwidthUsage: number;
|
|
400
|
+
uploadBandwidthUsage: number;
|
|
405
401
|
};
|
|
406
402
|
}, unknown>>;
|
|
407
403
|
};
|
|
@@ -13328,8 +13324,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
13328
13324
|
totalDataCount: bigint | null;
|
|
13329
13325
|
totalStorageSize: bigint | null;
|
|
13330
13326
|
perDataSize: bigint | null;
|
|
13331
|
-
uploadBandwidth: bigint | null;
|
|
13332
13327
|
downloadBandwidth: bigint | null;
|
|
13328
|
+
uploadBandwidth: bigint | null;
|
|
13333
13329
|
} & {
|
|
13334
13330
|
sentMails: {
|
|
13335
13331
|
count: bigint | null;
|
|
@@ -13368,8 +13364,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
13368
13364
|
totalDataCount: bigint | null;
|
|
13369
13365
|
totalStorageSize: bigint | null;
|
|
13370
13366
|
perDataSize: bigint | null;
|
|
13371
|
-
uploadBandwidth: bigint | null;
|
|
13372
13367
|
downloadBandwidth: bigint | null;
|
|
13368
|
+
uploadBandwidth: bigint | null;
|
|
13373
13369
|
} & {
|
|
13374
13370
|
sentMails: {
|
|
13375
13371
|
count: bigint | null;
|
|
@@ -15780,8 +15776,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15780
15776
|
updatedAt: Date;
|
|
15781
15777
|
origin: string[];
|
|
15782
15778
|
planId: string | null;
|
|
15779
|
+
lastMetricsReset: Date;
|
|
15783
15780
|
quotasId: string;
|
|
15784
|
-
metricsId: string;
|
|
15785
15781
|
owner: {
|
|
15786
15782
|
user: {
|
|
15787
15783
|
id: string;
|
|
@@ -15831,8 +15827,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15831
15827
|
updatedAt: Date;
|
|
15832
15828
|
origin: string[];
|
|
15833
15829
|
planId: string | null;
|
|
15830
|
+
lastMetricsReset: Date;
|
|
15834
15831
|
quotasId: string;
|
|
15835
|
-
metricsId: string;
|
|
15836
15832
|
owner: {
|
|
15837
15833
|
user: {
|
|
15838
15834
|
id: string;
|
|
@@ -15936,8 +15932,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15936
15932
|
updatedAt: Date;
|
|
15937
15933
|
origin: string[];
|
|
15938
15934
|
planId: string | null;
|
|
15935
|
+
lastMetricsReset: Date;
|
|
15939
15936
|
quotasId: string;
|
|
15940
|
-
metricsId: string;
|
|
15941
15937
|
owner: {
|
|
15942
15938
|
user: {
|
|
15943
15939
|
id: string;
|
|
@@ -15987,8 +15983,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
15987
15983
|
updatedAt: Date;
|
|
15988
15984
|
origin: string[];
|
|
15989
15985
|
planId: string | null;
|
|
15986
|
+
lastMetricsReset: Date;
|
|
15990
15987
|
quotasId: string;
|
|
15991
|
-
metricsId: string;
|
|
15992
15988
|
owner: {
|
|
15993
15989
|
user: {
|
|
15994
15990
|
id: 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.41.0-feat-remove-app-metrics.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@secrecy/lib-utils": "^1.0.18",
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0-
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-remove-application-metrics.1",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|