@secrecy/lib 1.78.0 → 1.79.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.
- package/dist/lib/client/upload.js +4 -0
- package/dist/types/client.d.ts +16 -0
- package/package.json +2 -2
|
@@ -104,6 +104,7 @@ export async function uploadData({ storageType, data, password, forcePassword =
|
|
|
104
104
|
key: encryptedDataKey ? sodium.to_hex(encryptedDataKey) : undefined,
|
|
105
105
|
md5Encrypted,
|
|
106
106
|
md5: md5Data,
|
|
107
|
+
fromIdentityPubKey: currentIdentity?.identityPubKey,
|
|
107
108
|
...filetype,
|
|
108
109
|
}
|
|
109
110
|
: {
|
|
@@ -111,6 +112,7 @@ export async function uploadData({ storageType, data, password, forcePassword =
|
|
|
111
112
|
content: Buffer.from(encryptedData),
|
|
112
113
|
md5: md5Data,
|
|
113
114
|
size: BigInt(dataBuffer.byteLength),
|
|
115
|
+
fromIdentityPubKey: currentIdentity?.identityPubKey,
|
|
114
116
|
...filetype,
|
|
115
117
|
};
|
|
116
118
|
const uploadData = await apiClient.cloud.uploadLiteData.mutate(uploadDataArgs, { signal });
|
|
@@ -146,12 +148,14 @@ export async function uploadData({ storageType, data, password, forcePassword =
|
|
|
146
148
|
key: encryptedDataKey ? sodium.to_hex(encryptedDataKey) : undefined,
|
|
147
149
|
md5Encrypted,
|
|
148
150
|
md5: md5Data,
|
|
151
|
+
fromIdentityPubKey: currentIdentity?.identityPubKey,
|
|
149
152
|
...filetype,
|
|
150
153
|
}
|
|
151
154
|
: {
|
|
152
155
|
type: 'unencrypted',
|
|
153
156
|
md5: md5Data,
|
|
154
157
|
size: BigInt(dataBuffer.byteLength),
|
|
158
|
+
fromIdentityPubKey: currentIdentity?.identityPubKey,
|
|
155
159
|
...filetype,
|
|
156
160
|
};
|
|
157
161
|
const uploadDataCaller = storageType === 's3'
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1539,6 +1539,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1539
1539
|
type: "encrypted";
|
|
1540
1540
|
mime?: string | undefined;
|
|
1541
1541
|
ext?: string | undefined;
|
|
1542
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
1542
1543
|
key?: string | undefined;
|
|
1543
1544
|
} | {
|
|
1544
1545
|
size: bigint;
|
|
@@ -1546,6 +1547,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1546
1547
|
type: "unencrypted";
|
|
1547
1548
|
mime?: string | undefined;
|
|
1548
1549
|
ext?: string | undefined;
|
|
1550
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
1549
1551
|
};
|
|
1550
1552
|
output: {
|
|
1551
1553
|
type: "authed";
|
|
@@ -1634,6 +1636,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1634
1636
|
content: Uint8Array<ArrayBuffer>;
|
|
1635
1637
|
mime?: string | undefined;
|
|
1636
1638
|
ext?: string | undefined;
|
|
1639
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
1637
1640
|
key?: string | undefined;
|
|
1638
1641
|
} | {
|
|
1639
1642
|
size: bigint;
|
|
@@ -1642,6 +1645,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1642
1645
|
content: Uint8Array<ArrayBuffer>;
|
|
1643
1646
|
mime?: string | undefined;
|
|
1644
1647
|
ext?: string | undefined;
|
|
1648
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
1645
1649
|
};
|
|
1646
1650
|
output: {
|
|
1647
1651
|
type: "authed";
|
|
@@ -6227,6 +6231,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6227
6231
|
applicationId: string | null;
|
|
6228
6232
|
initiatorAppId: string;
|
|
6229
6233
|
initiatorUserId: string;
|
|
6234
|
+
rootNodeId: string;
|
|
6230
6235
|
};
|
|
6231
6236
|
};
|
|
6232
6237
|
meta: any;
|
|
@@ -6266,6 +6271,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6266
6271
|
applicationId: string | null;
|
|
6267
6272
|
initiatorAppId: string;
|
|
6268
6273
|
initiatorUserId: string;
|
|
6274
|
+
rootNodeId: string;
|
|
6269
6275
|
};
|
|
6270
6276
|
};
|
|
6271
6277
|
meta: any;
|
|
@@ -6313,6 +6319,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6313
6319
|
applicationId: string | null;
|
|
6314
6320
|
initiatorAppId: string;
|
|
6315
6321
|
initiatorUserId: string;
|
|
6322
|
+
rootNodeId: string;
|
|
6316
6323
|
};
|
|
6317
6324
|
};
|
|
6318
6325
|
meta: any;
|
|
@@ -6354,6 +6361,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6354
6361
|
applicationId: string | null;
|
|
6355
6362
|
initiatorAppId: string;
|
|
6356
6363
|
initiatorUserId: string;
|
|
6364
|
+
rootNodeId: string;
|
|
6357
6365
|
};
|
|
6358
6366
|
};
|
|
6359
6367
|
meta: any;
|
|
@@ -7892,6 +7900,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7892
7900
|
type: "encrypted";
|
|
7893
7901
|
mime?: string | undefined;
|
|
7894
7902
|
ext?: string | undefined;
|
|
7903
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
7895
7904
|
key?: string | undefined;
|
|
7896
7905
|
} | {
|
|
7897
7906
|
size: bigint;
|
|
@@ -7899,6 +7908,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7899
7908
|
type: "unencrypted";
|
|
7900
7909
|
mime?: string | undefined;
|
|
7901
7910
|
ext?: string | undefined;
|
|
7911
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
7902
7912
|
};
|
|
7903
7913
|
output: {
|
|
7904
7914
|
type: "authed";
|
|
@@ -7987,6 +7997,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7987
7997
|
content: Uint8Array<ArrayBuffer>;
|
|
7988
7998
|
mime?: string | undefined;
|
|
7989
7999
|
ext?: string | undefined;
|
|
8000
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
7990
8001
|
key?: string | undefined;
|
|
7991
8002
|
} | {
|
|
7992
8003
|
size: bigint;
|
|
@@ -7995,6 +8006,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7995
8006
|
content: Uint8Array<ArrayBuffer>;
|
|
7996
8007
|
mime?: string | undefined;
|
|
7997
8008
|
ext?: string | undefined;
|
|
8009
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
7998
8010
|
};
|
|
7999
8011
|
output: {
|
|
8000
8012
|
type: "authed";
|
|
@@ -12580,6 +12592,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12580
12592
|
applicationId: string | null;
|
|
12581
12593
|
initiatorAppId: string;
|
|
12582
12594
|
initiatorUserId: string;
|
|
12595
|
+
rootNodeId: string;
|
|
12583
12596
|
};
|
|
12584
12597
|
};
|
|
12585
12598
|
meta: any;
|
|
@@ -12619,6 +12632,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12619
12632
|
applicationId: string | null;
|
|
12620
12633
|
initiatorAppId: string;
|
|
12621
12634
|
initiatorUserId: string;
|
|
12635
|
+
rootNodeId: string;
|
|
12622
12636
|
};
|
|
12623
12637
|
};
|
|
12624
12638
|
meta: any;
|
|
@@ -12666,6 +12680,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12666
12680
|
applicationId: string | null;
|
|
12667
12681
|
initiatorAppId: string;
|
|
12668
12682
|
initiatorUserId: string;
|
|
12683
|
+
rootNodeId: string;
|
|
12669
12684
|
};
|
|
12670
12685
|
};
|
|
12671
12686
|
meta: any;
|
|
@@ -12707,6 +12722,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12707
12722
|
applicationId: string | null;
|
|
12708
12723
|
initiatorAppId: string;
|
|
12709
12724
|
initiatorUserId: string;
|
|
12725
|
+
rootNodeId: string;
|
|
12710
12726
|
};
|
|
12711
12727
|
};
|
|
12712
12728
|
meta: any;
|
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.79.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@js-temporal/polyfill": "^0.5.1",
|
|
79
|
-
"@secrecy/trpc-api-types": "1.
|
|
79
|
+
"@secrecy/trpc-api-types": "1.35.0",
|
|
80
80
|
"@trpc/client": "11.6.0",
|
|
81
81
|
"@trpc/server": "^11.6.0",
|
|
82
82
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|