@secrecy/lib 1.74.0-feat-groups-identity.4 → 1.74.0-feat-groups-identity.5
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.
|
@@ -818,7 +818,7 @@ export class SecrecyCloudClient {
|
|
|
818
818
|
? decryptCryptoBox(sodium.from_hex(dataContent.key), dataContent.type === 'received_mail'
|
|
819
819
|
? dataContent.senderPublicKey
|
|
820
820
|
: dataContent.type === 'cloud' || dataContent.type === 'lite'
|
|
821
|
-
? dataContent.
|
|
821
|
+
? dataContent.sharedByPublicKey
|
|
822
822
|
: this.#client.uaIdentity.identityPubKey, this.#client.uaPrivateKey)
|
|
823
823
|
: null;
|
|
824
824
|
const src = key
|
package/dist/types/client.d.ts
CHANGED
|
@@ -941,6 +941,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
941
941
|
id: string;
|
|
942
942
|
storageType: "s3" | "cold" | "lite";
|
|
943
943
|
size: bigint;
|
|
944
|
+
prefix: string;
|
|
944
945
|
sizeEncrypted: bigint | null;
|
|
945
946
|
md5: string;
|
|
946
947
|
md5Encrypted: string | null;
|
|
@@ -962,6 +963,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
962
963
|
id: string;
|
|
963
964
|
storageType: "s3" | "cold" | "lite";
|
|
964
965
|
size: bigint;
|
|
966
|
+
prefix: string;
|
|
965
967
|
sizeEncrypted: bigint | null;
|
|
966
968
|
md5: string;
|
|
967
969
|
md5Encrypted: string | null;
|
|
@@ -1009,6 +1011,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1009
1011
|
id: string;
|
|
1010
1012
|
storageType: "s3" | "cold" | "lite";
|
|
1011
1013
|
size: bigint;
|
|
1014
|
+
prefix: string;
|
|
1012
1015
|
sizeEncrypted: bigint | null;
|
|
1013
1016
|
md5: string;
|
|
1014
1017
|
md5Encrypted: string | null;
|
|
@@ -1030,6 +1033,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1030
1033
|
}>;
|
|
1031
1034
|
dataContentById: import("@trpc/server").TRPCQueryProcedure<{
|
|
1032
1035
|
input: {
|
|
1036
|
+
fromPubKey?: string | null | undefined;
|
|
1033
1037
|
id: string;
|
|
1034
1038
|
};
|
|
1035
1039
|
output: {
|
|
@@ -1044,6 +1048,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1044
1048
|
type: "received_mail";
|
|
1045
1049
|
storageType: "s3" | "cold" | "lite";
|
|
1046
1050
|
senderPublicKey: string;
|
|
1051
|
+
recipientPublicKey: string;
|
|
1047
1052
|
maybeParts: {
|
|
1048
1053
|
order: number;
|
|
1049
1054
|
md5: string;
|
|
@@ -1066,6 +1071,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1066
1071
|
md5: string;
|
|
1067
1072
|
contentUrl: string;
|
|
1068
1073
|
}[] | null;
|
|
1074
|
+
senderPublicKey: string;
|
|
1069
1075
|
maybeContent: Uint8Array<ArrayBufferLike> | null;
|
|
1070
1076
|
} | {
|
|
1071
1077
|
id: string;
|
|
@@ -1078,7 +1084,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1078
1084
|
key: string | null;
|
|
1079
1085
|
type: "cloud";
|
|
1080
1086
|
storageType: "s3" | "cold";
|
|
1081
|
-
|
|
1087
|
+
sharedByPublicKey: string;
|
|
1088
|
+
identityPublicKey: string;
|
|
1082
1089
|
parts: {
|
|
1083
1090
|
order: number;
|
|
1084
1091
|
md5: string;
|
|
@@ -1095,13 +1102,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1095
1102
|
key: string | null;
|
|
1096
1103
|
type: "lite";
|
|
1097
1104
|
storageType: "lite";
|
|
1098
|
-
|
|
1105
|
+
sharedByPublicKey: string;
|
|
1106
|
+
identityPublicKey: string;
|
|
1099
1107
|
content: Uint8Array<ArrayBufferLike>;
|
|
1100
1108
|
};
|
|
1101
1109
|
meta: any;
|
|
1102
1110
|
}>;
|
|
1103
1111
|
dataContentByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
1104
1112
|
input: {
|
|
1113
|
+
fromPubKey?: string | null | undefined;
|
|
1105
1114
|
ids: string[];
|
|
1106
1115
|
};
|
|
1107
1116
|
output: ({
|
|
@@ -1116,6 +1125,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1116
1125
|
type: "received_mail";
|
|
1117
1126
|
storageType: "s3" | "cold" | "lite";
|
|
1118
1127
|
senderPublicKey: string;
|
|
1128
|
+
recipientPublicKey: string;
|
|
1119
1129
|
maybeParts: {
|
|
1120
1130
|
order: number;
|
|
1121
1131
|
md5: string;
|
|
@@ -1138,6 +1148,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1138
1148
|
md5: string;
|
|
1139
1149
|
contentUrl: string;
|
|
1140
1150
|
}[] | null;
|
|
1151
|
+
senderPublicKey: string;
|
|
1141
1152
|
maybeContent: Uint8Array<ArrayBufferLike> | null;
|
|
1142
1153
|
} | {
|
|
1143
1154
|
id: string;
|
|
@@ -1150,7 +1161,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1150
1161
|
key: string | null;
|
|
1151
1162
|
type: "cloud";
|
|
1152
1163
|
storageType: "s3" | "cold";
|
|
1153
|
-
|
|
1164
|
+
sharedByPublicKey: string;
|
|
1165
|
+
identityPublicKey: string;
|
|
1154
1166
|
parts: {
|
|
1155
1167
|
order: number;
|
|
1156
1168
|
md5: string;
|
|
@@ -1167,7 +1179,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1167
1179
|
key: string | null;
|
|
1168
1180
|
type: "lite";
|
|
1169
1181
|
storageType: "lite";
|
|
1170
|
-
|
|
1182
|
+
sharedByPublicKey: string;
|
|
1183
|
+
identityPublicKey: string;
|
|
1171
1184
|
content: Uint8Array<ArrayBufferLike>;
|
|
1172
1185
|
})[];
|
|
1173
1186
|
meta: any;
|
|
@@ -1346,6 +1359,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1346
1359
|
id: string;
|
|
1347
1360
|
storageType: "s3" | "cold" | "lite";
|
|
1348
1361
|
size: bigint;
|
|
1362
|
+
prefix: string;
|
|
1349
1363
|
sizeEncrypted: bigint | null;
|
|
1350
1364
|
md5: string;
|
|
1351
1365
|
md5Encrypted: string | null;
|
|
@@ -1367,6 +1381,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1367
1381
|
id: string;
|
|
1368
1382
|
storageType: "s3" | "cold" | "lite";
|
|
1369
1383
|
size: bigint;
|
|
1384
|
+
prefix: string;
|
|
1370
1385
|
sizeEncrypted: bigint | null;
|
|
1371
1386
|
md5: string;
|
|
1372
1387
|
md5Encrypted: string | null;
|
|
@@ -1431,13 +1446,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1431
1446
|
totalItems: number;
|
|
1432
1447
|
};
|
|
1433
1448
|
data: {
|
|
1434
|
-
|
|
1449
|
+
filteredIdentities: {
|
|
1450
|
+
kind: "USER_APP";
|
|
1451
|
+
identityPubKey: string;
|
|
1452
|
+
userId: string;
|
|
1435
1453
|
appId: string;
|
|
1436
1454
|
encPriv: string;
|
|
1437
|
-
pub: string;
|
|
1438
1455
|
}[];
|
|
1439
1456
|
nodes: {
|
|
1440
1457
|
id: string;
|
|
1458
|
+
ownerAppId: string;
|
|
1441
1459
|
name: string;
|
|
1442
1460
|
sharedCount: number;
|
|
1443
1461
|
totalSize: bigint;
|
|
@@ -1445,9 +1463,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1445
1463
|
updatedAt: Date;
|
|
1446
1464
|
deletedAt: Date | null;
|
|
1447
1465
|
access: {
|
|
1448
|
-
|
|
1466
|
+
identityPubKey: string;
|
|
1467
|
+
sharedByPubKey: string;
|
|
1449
1468
|
nameKey: string;
|
|
1450
|
-
}
|
|
1469
|
+
};
|
|
1451
1470
|
history: {
|
|
1452
1471
|
dataId: string;
|
|
1453
1472
|
storageType: "s3" | "cold" | "lite";
|
|
@@ -1458,8 +1477,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1458
1477
|
id: string;
|
|
1459
1478
|
name: string;
|
|
1460
1479
|
nameKey: string | null;
|
|
1461
|
-
|
|
1462
|
-
|
|
1480
|
+
identityPubKey: string;
|
|
1481
|
+
sharedByPubKey: string;
|
|
1482
|
+
}[];
|
|
1463
1483
|
}[];
|
|
1464
1484
|
};
|
|
1465
1485
|
};
|
|
@@ -1539,6 +1559,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1539
1559
|
}>;
|
|
1540
1560
|
uploadColdData: import("@trpc/server").TRPCMutationProcedure<{
|
|
1541
1561
|
input: {
|
|
1562
|
+
fromPubKey?: string | null | undefined;
|
|
1542
1563
|
size: bigint;
|
|
1543
1564
|
md5: string;
|
|
1544
1565
|
sizeEncrypted: bigint;
|
|
@@ -1548,6 +1569,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1548
1569
|
mime?: string | undefined;
|
|
1549
1570
|
ext?: string | undefined;
|
|
1550
1571
|
} | {
|
|
1572
|
+
fromPubKey?: string | null | undefined;
|
|
1551
1573
|
size: bigint;
|
|
1552
1574
|
md5: string;
|
|
1553
1575
|
type: "unencrypted";
|
|
@@ -1929,6 +1951,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1929
1951
|
id: string;
|
|
1930
1952
|
storageType: "s3" | "cold" | "lite";
|
|
1931
1953
|
size: bigint;
|
|
1954
|
+
prefix: string;
|
|
1932
1955
|
sizeEncrypted: bigint | null;
|
|
1933
1956
|
md5: string;
|
|
1934
1957
|
md5Encrypted: string | null;
|
|
@@ -1950,6 +1973,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1950
1973
|
id: string;
|
|
1951
1974
|
storageType: "s3" | "cold" | "lite";
|
|
1952
1975
|
size: bigint;
|
|
1976
|
+
prefix: string;
|
|
1953
1977
|
sizeEncrypted: bigint | null;
|
|
1954
1978
|
md5: string;
|
|
1955
1979
|
md5Encrypted: string | null;
|
|
@@ -2300,6 +2324,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2300
2324
|
id: string;
|
|
2301
2325
|
storageType: "s3" | "cold" | "lite";
|
|
2302
2326
|
size: bigint;
|
|
2327
|
+
prefix: string;
|
|
2303
2328
|
sizeEncrypted: bigint | null;
|
|
2304
2329
|
md5: string;
|
|
2305
2330
|
md5Encrypted: string | null;
|
|
@@ -2321,6 +2346,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2321
2346
|
id: string;
|
|
2322
2347
|
storageType: "s3" | "cold" | "lite";
|
|
2323
2348
|
size: bigint;
|
|
2349
|
+
prefix: string;
|
|
2324
2350
|
sizeEncrypted: bigint | null;
|
|
2325
2351
|
md5: string;
|
|
2326
2352
|
md5Encrypted: string | null;
|
|
@@ -2818,6 +2844,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2818
2844
|
id: string;
|
|
2819
2845
|
storageType: "s3" | "cold" | "lite";
|
|
2820
2846
|
size: bigint;
|
|
2847
|
+
prefix: string;
|
|
2821
2848
|
sizeEncrypted: bigint | null;
|
|
2822
2849
|
md5: string;
|
|
2823
2850
|
md5Encrypted: string | null;
|
|
@@ -2839,6 +2866,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2839
2866
|
id: string;
|
|
2840
2867
|
storageType: "s3" | "cold" | "lite";
|
|
2841
2868
|
size: bigint;
|
|
2869
|
+
prefix: string;
|
|
2842
2870
|
sizeEncrypted: bigint | null;
|
|
2843
2871
|
md5: string;
|
|
2844
2872
|
md5Encrypted: string | null;
|
|
@@ -3083,7 +3111,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3083
3111
|
input: {
|
|
3084
3112
|
appId?: string | undefined;
|
|
3085
3113
|
regionId?: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2" | undefined;
|
|
3086
|
-
pgVersion?: 14 | 15 | 16 | undefined;
|
|
3114
|
+
pgVersion?: 14 | 15 | 16 | 17 | 18 | undefined;
|
|
3087
3115
|
};
|
|
3088
3116
|
output: {
|
|
3089
3117
|
isCreated: boolean;
|
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.74.0-feat-groups-identity.
|
|
5
|
+
"version": "1.74.0-feat-groups-identity.5",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@js-temporal/polyfill": "^0.5.1",
|
|
78
|
-
"@secrecy/trpc-api-types": "1.33.0-feat-groups-identity.
|
|
78
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-groups-identity.17",
|
|
79
79
|
"@trpc/client": "11.5.1",
|
|
80
80
|
"@trpc/server": "^11.5.1",
|
|
81
81
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|