@secrecy/lib 1.62.0-feat-node-sharing.5 → 1.62.0-feat-node-sharing.7
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.
|
@@ -15,7 +15,20 @@ export class SecrecyAppClient {
|
|
|
15
15
|
this.#apiClient = apiClient;
|
|
16
16
|
}
|
|
17
17
|
get userId() {
|
|
18
|
-
|
|
18
|
+
const sub = this.jwtDecoded.sub;
|
|
19
|
+
if (!sub) {
|
|
20
|
+
throw new Error('No sub in JWT');
|
|
21
|
+
}
|
|
22
|
+
return sub;
|
|
23
|
+
}
|
|
24
|
+
get appId() {
|
|
25
|
+
const aud = Array.isArray(this.jwtDecoded.aud)
|
|
26
|
+
? this.jwtDecoded.aud[0]
|
|
27
|
+
: this.jwtDecoded.aud;
|
|
28
|
+
if (!aud) {
|
|
29
|
+
throw new Error('No aud in JWT');
|
|
30
|
+
}
|
|
31
|
+
return aud;
|
|
19
32
|
}
|
|
20
33
|
async getJwt() {
|
|
21
34
|
// TODO useful?
|
|
@@ -63,8 +76,8 @@ export class SecrecyAppClient {
|
|
|
63
76
|
async notifications() {
|
|
64
77
|
return await this.#apiClient.application.notification.query();
|
|
65
78
|
}
|
|
66
|
-
async userPublicKey(input) {
|
|
67
|
-
|
|
79
|
+
async userPublicKey(input, appId) {
|
|
80
|
+
appId ??= this.appId;
|
|
68
81
|
const userIds = Array.isArray(input) ? input : [input];
|
|
69
82
|
const publicKeys = Object.fromEntries(userIds
|
|
70
83
|
.map((userId) => [
|
|
@@ -76,16 +89,22 @@ export class SecrecyAppClient {
|
|
|
76
89
|
...new Set(userIds.filter((userId) => publicKeys[userId] === undefined)),
|
|
77
90
|
];
|
|
78
91
|
if (missingKeys.length > 0) {
|
|
79
|
-
const userKeysMap = await this.#apiClient.application.userPublicKey.query(
|
|
92
|
+
const userKeysMap = await this.#apiClient.application.userPublicKey.query({
|
|
93
|
+
userIds: missingKeys,
|
|
94
|
+
appId,
|
|
95
|
+
});
|
|
80
96
|
if ('publicKey' in userKeysMap) {
|
|
81
97
|
throw Error('Should not happen!');
|
|
82
98
|
}
|
|
83
|
-
if (
|
|
99
|
+
if (userKeysMap.appId !== appId) {
|
|
100
|
+
throw new Error(`AppId mismatch: ${userKeysMap.appId} !== ${appId}`);
|
|
101
|
+
}
|
|
102
|
+
if (Object.keys(userKeysMap.publicKeys).length !== missingKeys.length) {
|
|
84
103
|
throw new Error("Unable to load some user's public keys!");
|
|
85
104
|
}
|
|
86
|
-
for (const userId
|
|
87
|
-
publicKeys[userId] =
|
|
88
|
-
publicKeysCache.set(`userPublicKey:${userId}-${appId}`,
|
|
105
|
+
for (const [userId, userPublicKey] of Object.entries(userKeysMap.publicKeys)) {
|
|
106
|
+
publicKeys[userId] = userPublicKey;
|
|
107
|
+
publicKeysCache.set(`userPublicKey:${userId}-${appId}`, userPublicKey);
|
|
89
108
|
}
|
|
90
109
|
}
|
|
91
110
|
return Array.isArray(input) ? publicKeys : publicKeys[input];
|
|
@@ -8,6 +8,7 @@ export declare class SecrecyAppClient {
|
|
|
8
8
|
jwtDecoded: JwtPayload;
|
|
9
9
|
constructor(uaJwt: string, _client: SecrecyClient, _keys: KeyPair, apiClient: ApiClient);
|
|
10
10
|
get userId(): string;
|
|
11
|
+
get appId(): string;
|
|
11
12
|
getJwt(): Promise<string>;
|
|
12
13
|
limits(): Promise<RouterOutputs['application']['limits']>;
|
|
13
14
|
metrics(): Promise<RouterOutputs['application']['metrics']>;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -834,17 +834,33 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
834
834
|
}>;
|
|
835
835
|
_meta: object;
|
|
836
836
|
_ctx_out: {};
|
|
837
|
-
_input_in:
|
|
837
|
+
_input_in: {
|
|
838
838
|
userId: string;
|
|
839
|
+
appId?: string | undefined;
|
|
840
|
+
} | {
|
|
841
|
+
userIds: string[];
|
|
842
|
+
appId?: string | undefined;
|
|
839
843
|
};
|
|
840
|
-
_input_out:
|
|
844
|
+
_input_out: {
|
|
841
845
|
userId: string;
|
|
846
|
+
appId?: string | undefined;
|
|
847
|
+
} | {
|
|
848
|
+
userIds: string[];
|
|
849
|
+
appId?: string | undefined;
|
|
842
850
|
};
|
|
843
|
-
_output_in:
|
|
851
|
+
_output_in: {
|
|
852
|
+
appId: string;
|
|
844
853
|
publicKey: string;
|
|
854
|
+
} | {
|
|
855
|
+
appId: string;
|
|
856
|
+
publicKeys: Record<string, string>;
|
|
845
857
|
};
|
|
846
|
-
_output_out:
|
|
858
|
+
_output_out: {
|
|
859
|
+
appId: string;
|
|
847
860
|
publicKey: string;
|
|
861
|
+
} | {
|
|
862
|
+
appId: string;
|
|
863
|
+
publicKeys: Record<string, string>;
|
|
848
864
|
};
|
|
849
865
|
}, unknown>>;
|
|
850
866
|
};
|
|
@@ -3410,13 +3426,13 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
3410
3426
|
access: {
|
|
3411
3427
|
appId: string;
|
|
3412
3428
|
nameKey: string;
|
|
3413
|
-
};
|
|
3429
|
+
} | null;
|
|
3414
3430
|
breadcrumb: {
|
|
3415
3431
|
name: string;
|
|
3416
3432
|
id: string;
|
|
3417
3433
|
nameKey: string | null;
|
|
3418
3434
|
pubKey: string;
|
|
3419
|
-
}[];
|
|
3435
|
+
}[] | null;
|
|
3420
3436
|
sharedCount: number;
|
|
3421
3437
|
totalSize: bigint;
|
|
3422
3438
|
}[];
|
|
@@ -3451,13 +3467,13 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
3451
3467
|
access: {
|
|
3452
3468
|
appId: string;
|
|
3453
3469
|
nameKey: string;
|
|
3454
|
-
};
|
|
3470
|
+
} | null;
|
|
3455
3471
|
breadcrumb: {
|
|
3456
3472
|
name: string;
|
|
3457
3473
|
id: string;
|
|
3458
3474
|
nameKey: string | null;
|
|
3459
3475
|
pubKey: string;
|
|
3460
|
-
}[];
|
|
3476
|
+
}[] | null;
|
|
3461
3477
|
sharedCount: number;
|
|
3462
3478
|
totalSize: bigint;
|
|
3463
3479
|
}[];
|
|
@@ -5898,8 +5914,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
5898
5914
|
userId: string;
|
|
5899
5915
|
nodeId: string;
|
|
5900
5916
|
}[] | {
|
|
5901
|
-
nodeIds: string[];
|
|
5902
5917
|
userIds: string[];
|
|
5918
|
+
nodeIds: string[];
|
|
5903
5919
|
} | {
|
|
5904
5920
|
nodeId: string;
|
|
5905
5921
|
userIds: string[];
|
|
@@ -5911,8 +5927,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
5911
5927
|
userId: string;
|
|
5912
5928
|
nodeId: string;
|
|
5913
5929
|
}[] | {
|
|
5914
|
-
nodeIds: string[];
|
|
5915
5930
|
userIds: string[];
|
|
5931
|
+
nodeIds: string[];
|
|
5916
5932
|
} | {
|
|
5917
5933
|
nodeId: string;
|
|
5918
5934
|
userIds: string[];
|
|
@@ -10458,9 +10474,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10458
10474
|
replyTo: {
|
|
10459
10475
|
id: string;
|
|
10460
10476
|
} | null;
|
|
10461
|
-
temporaryRecipients: {
|
|
10462
|
-
email: string | null;
|
|
10463
|
-
}[];
|
|
10464
10477
|
recipients: {
|
|
10465
10478
|
id: string;
|
|
10466
10479
|
lastname: string;
|
|
@@ -10468,6 +10481,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10468
10481
|
avatar: string | null;
|
|
10469
10482
|
isSearchable: boolean;
|
|
10470
10483
|
}[];
|
|
10484
|
+
temporaryRecipients: {
|
|
10485
|
+
email: string | null;
|
|
10486
|
+
}[];
|
|
10471
10487
|
} | null;
|
|
10472
10488
|
mailIntegrityDraft: {
|
|
10473
10489
|
id: string;
|
|
@@ -10476,9 +10492,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10476
10492
|
replyTo: {
|
|
10477
10493
|
id: string;
|
|
10478
10494
|
} | null;
|
|
10479
|
-
temporaryRecipients: {
|
|
10480
|
-
email: string | null;
|
|
10481
|
-
}[];
|
|
10482
10495
|
recipients: {
|
|
10483
10496
|
id: string;
|
|
10484
10497
|
lastname: string;
|
|
@@ -10486,6 +10499,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10486
10499
|
avatar: string | null;
|
|
10487
10500
|
isSearchable: boolean;
|
|
10488
10501
|
}[];
|
|
10502
|
+
temporaryRecipients: {
|
|
10503
|
+
email: string | null;
|
|
10504
|
+
}[];
|
|
10489
10505
|
} | null;
|
|
10490
10506
|
sender: {
|
|
10491
10507
|
id: string;
|
|
@@ -10516,9 +10532,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10516
10532
|
replyTo: {
|
|
10517
10533
|
id: string;
|
|
10518
10534
|
} | null;
|
|
10519
|
-
temporaryRecipients: {
|
|
10520
|
-
email: string | null;
|
|
10521
|
-
}[];
|
|
10522
10535
|
recipients: {
|
|
10523
10536
|
id: string;
|
|
10524
10537
|
lastname: string;
|
|
@@ -10526,6 +10539,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10526
10539
|
avatar: string | null;
|
|
10527
10540
|
isSearchable: boolean;
|
|
10528
10541
|
}[];
|
|
10542
|
+
temporaryRecipients: {
|
|
10543
|
+
email: string | null;
|
|
10544
|
+
}[];
|
|
10529
10545
|
} | null;
|
|
10530
10546
|
mailIntegrityDraft: {
|
|
10531
10547
|
id: string;
|
|
@@ -10534,9 +10550,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10534
10550
|
replyTo: {
|
|
10535
10551
|
id: string;
|
|
10536
10552
|
} | null;
|
|
10537
|
-
temporaryRecipients: {
|
|
10538
|
-
email: string | null;
|
|
10539
|
-
}[];
|
|
10540
10553
|
recipients: {
|
|
10541
10554
|
id: string;
|
|
10542
10555
|
lastname: string;
|
|
@@ -10544,6 +10557,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10544
10557
|
avatar: string | null;
|
|
10545
10558
|
isSearchable: boolean;
|
|
10546
10559
|
}[];
|
|
10560
|
+
temporaryRecipients: {
|
|
10561
|
+
email: string | null;
|
|
10562
|
+
}[];
|
|
10547
10563
|
} | null;
|
|
10548
10564
|
sender: {
|
|
10549
10565
|
id: string;
|
|
@@ -10628,9 +10644,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10628
10644
|
replyTo: {
|
|
10629
10645
|
id: string;
|
|
10630
10646
|
} | null;
|
|
10631
|
-
temporaryRecipients: {
|
|
10632
|
-
email: string | null;
|
|
10633
|
-
}[];
|
|
10634
10647
|
recipients: {
|
|
10635
10648
|
id: string;
|
|
10636
10649
|
lastname: string;
|
|
@@ -10638,6 +10651,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10638
10651
|
avatar: string | null;
|
|
10639
10652
|
isSearchable: boolean;
|
|
10640
10653
|
}[];
|
|
10654
|
+
temporaryRecipients: {
|
|
10655
|
+
email: string | null;
|
|
10656
|
+
}[];
|
|
10641
10657
|
} | null;
|
|
10642
10658
|
mailIntegrityDraft: {
|
|
10643
10659
|
id: string;
|
|
@@ -10646,9 +10662,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10646
10662
|
replyTo: {
|
|
10647
10663
|
id: string;
|
|
10648
10664
|
} | null;
|
|
10649
|
-
temporaryRecipients: {
|
|
10650
|
-
email: string | null;
|
|
10651
|
-
}[];
|
|
10652
10665
|
recipients: {
|
|
10653
10666
|
id: string;
|
|
10654
10667
|
lastname: string;
|
|
@@ -10656,6 +10669,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10656
10669
|
avatar: string | null;
|
|
10657
10670
|
isSearchable: boolean;
|
|
10658
10671
|
}[];
|
|
10672
|
+
temporaryRecipients: {
|
|
10673
|
+
email: string | null;
|
|
10674
|
+
}[];
|
|
10659
10675
|
} | null;
|
|
10660
10676
|
sender: {
|
|
10661
10677
|
id: string;
|
|
@@ -10686,9 +10702,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10686
10702
|
replyTo: {
|
|
10687
10703
|
id: string;
|
|
10688
10704
|
} | null;
|
|
10689
|
-
temporaryRecipients: {
|
|
10690
|
-
email: string | null;
|
|
10691
|
-
}[];
|
|
10692
10705
|
recipients: {
|
|
10693
10706
|
id: string;
|
|
10694
10707
|
lastname: string;
|
|
@@ -10696,6 +10709,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10696
10709
|
avatar: string | null;
|
|
10697
10710
|
isSearchable: boolean;
|
|
10698
10711
|
}[];
|
|
10712
|
+
temporaryRecipients: {
|
|
10713
|
+
email: string | null;
|
|
10714
|
+
}[];
|
|
10699
10715
|
} | null;
|
|
10700
10716
|
mailIntegrityDraft: {
|
|
10701
10717
|
id: string;
|
|
@@ -10704,9 +10720,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10704
10720
|
replyTo: {
|
|
10705
10721
|
id: string;
|
|
10706
10722
|
} | null;
|
|
10707
|
-
temporaryRecipients: {
|
|
10708
|
-
email: string | null;
|
|
10709
|
-
}[];
|
|
10710
10723
|
recipients: {
|
|
10711
10724
|
id: string;
|
|
10712
10725
|
lastname: string;
|
|
@@ -10714,6 +10727,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10714
10727
|
avatar: string | null;
|
|
10715
10728
|
isSearchable: boolean;
|
|
10716
10729
|
}[];
|
|
10730
|
+
temporaryRecipients: {
|
|
10731
|
+
email: string | null;
|
|
10732
|
+
}[];
|
|
10717
10733
|
} | null;
|
|
10718
10734
|
sender: {
|
|
10719
10735
|
id: string;
|
|
@@ -10890,9 +10906,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10890
10906
|
replyTo: {
|
|
10891
10907
|
id: string;
|
|
10892
10908
|
} | null;
|
|
10893
|
-
temporaryRecipients: {
|
|
10894
|
-
email: string | null;
|
|
10895
|
-
}[];
|
|
10896
10909
|
recipients: {
|
|
10897
10910
|
id: string;
|
|
10898
10911
|
lastname: string;
|
|
@@ -10900,6 +10913,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10900
10913
|
avatar: string | null;
|
|
10901
10914
|
isSearchable: boolean;
|
|
10902
10915
|
}[];
|
|
10916
|
+
temporaryRecipients: {
|
|
10917
|
+
email: string | null;
|
|
10918
|
+
}[];
|
|
10903
10919
|
} | null;
|
|
10904
10920
|
mailIntegrityDraft: {
|
|
10905
10921
|
id: string;
|
|
@@ -10908,9 +10924,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10908
10924
|
replyTo: {
|
|
10909
10925
|
id: string;
|
|
10910
10926
|
} | null;
|
|
10911
|
-
temporaryRecipients: {
|
|
10912
|
-
email: string | null;
|
|
10913
|
-
}[];
|
|
10914
10927
|
recipients: {
|
|
10915
10928
|
id: string;
|
|
10916
10929
|
lastname: string;
|
|
@@ -10918,6 +10931,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10918
10931
|
avatar: string | null;
|
|
10919
10932
|
isSearchable: boolean;
|
|
10920
10933
|
}[];
|
|
10934
|
+
temporaryRecipients: {
|
|
10935
|
+
email: string | null;
|
|
10936
|
+
}[];
|
|
10921
10937
|
} | null;
|
|
10922
10938
|
sender: {
|
|
10923
10939
|
id: string;
|
|
@@ -10948,9 +10964,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10948
10964
|
replyTo: {
|
|
10949
10965
|
id: string;
|
|
10950
10966
|
} | null;
|
|
10951
|
-
temporaryRecipients: {
|
|
10952
|
-
email: string | null;
|
|
10953
|
-
}[];
|
|
10954
10967
|
recipients: {
|
|
10955
10968
|
id: string;
|
|
10956
10969
|
lastname: string;
|
|
@@ -10958,6 +10971,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10958
10971
|
avatar: string | null;
|
|
10959
10972
|
isSearchable: boolean;
|
|
10960
10973
|
}[];
|
|
10974
|
+
temporaryRecipients: {
|
|
10975
|
+
email: string | null;
|
|
10976
|
+
}[];
|
|
10961
10977
|
} | null;
|
|
10962
10978
|
mailIntegrityDraft: {
|
|
10963
10979
|
id: string;
|
|
@@ -10966,9 +10982,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10966
10982
|
replyTo: {
|
|
10967
10983
|
id: string;
|
|
10968
10984
|
} | null;
|
|
10969
|
-
temporaryRecipients: {
|
|
10970
|
-
email: string | null;
|
|
10971
|
-
}[];
|
|
10972
10985
|
recipients: {
|
|
10973
10986
|
id: string;
|
|
10974
10987
|
lastname: string;
|
|
@@ -10976,6 +10989,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
10976
10989
|
avatar: string | null;
|
|
10977
10990
|
isSearchable: boolean;
|
|
10978
10991
|
}[];
|
|
10992
|
+
temporaryRecipients: {
|
|
10993
|
+
email: string | null;
|
|
10994
|
+
}[];
|
|
10979
10995
|
} | null;
|
|
10980
10996
|
sender: {
|
|
10981
10997
|
id: string;
|
|
@@ -11040,9 +11056,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11040
11056
|
replyTo: {
|
|
11041
11057
|
id: string;
|
|
11042
11058
|
} | null;
|
|
11043
|
-
temporaryRecipients: {
|
|
11044
|
-
email: string | null;
|
|
11045
|
-
}[];
|
|
11046
11059
|
recipients: {
|
|
11047
11060
|
id: string;
|
|
11048
11061
|
lastname: string;
|
|
@@ -11050,6 +11063,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11050
11063
|
avatar: string | null;
|
|
11051
11064
|
isSearchable: boolean;
|
|
11052
11065
|
}[];
|
|
11066
|
+
temporaryRecipients: {
|
|
11067
|
+
email: string | null;
|
|
11068
|
+
}[];
|
|
11053
11069
|
} | null;
|
|
11054
11070
|
mailIntegrityDraft: {
|
|
11055
11071
|
id: string;
|
|
@@ -11058,9 +11074,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11058
11074
|
replyTo: {
|
|
11059
11075
|
id: string;
|
|
11060
11076
|
} | null;
|
|
11061
|
-
temporaryRecipients: {
|
|
11062
|
-
email: string | null;
|
|
11063
|
-
}[];
|
|
11064
11077
|
recipients: {
|
|
11065
11078
|
id: string;
|
|
11066
11079
|
lastname: string;
|
|
@@ -11068,6 +11081,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11068
11081
|
avatar: string | null;
|
|
11069
11082
|
isSearchable: boolean;
|
|
11070
11083
|
}[];
|
|
11084
|
+
temporaryRecipients: {
|
|
11085
|
+
email: string | null;
|
|
11086
|
+
}[];
|
|
11071
11087
|
} | null;
|
|
11072
11088
|
sender: {
|
|
11073
11089
|
id: string;
|
|
@@ -11098,9 +11114,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11098
11114
|
replyTo: {
|
|
11099
11115
|
id: string;
|
|
11100
11116
|
} | null;
|
|
11101
|
-
temporaryRecipients: {
|
|
11102
|
-
email: string | null;
|
|
11103
|
-
}[];
|
|
11104
11117
|
recipients: {
|
|
11105
11118
|
id: string;
|
|
11106
11119
|
lastname: string;
|
|
@@ -11108,6 +11121,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11108
11121
|
avatar: string | null;
|
|
11109
11122
|
isSearchable: boolean;
|
|
11110
11123
|
}[];
|
|
11124
|
+
temporaryRecipients: {
|
|
11125
|
+
email: string | null;
|
|
11126
|
+
}[];
|
|
11111
11127
|
} | null;
|
|
11112
11128
|
mailIntegrityDraft: {
|
|
11113
11129
|
id: string;
|
|
@@ -11116,9 +11132,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11116
11132
|
replyTo: {
|
|
11117
11133
|
id: string;
|
|
11118
11134
|
} | null;
|
|
11119
|
-
temporaryRecipients: {
|
|
11120
|
-
email: string | null;
|
|
11121
|
-
}[];
|
|
11122
11135
|
recipients: {
|
|
11123
11136
|
id: string;
|
|
11124
11137
|
lastname: string;
|
|
@@ -11126,6 +11139,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11126
11139
|
avatar: string | null;
|
|
11127
11140
|
isSearchable: boolean;
|
|
11128
11141
|
}[];
|
|
11142
|
+
temporaryRecipients: {
|
|
11143
|
+
email: string | null;
|
|
11144
|
+
}[];
|
|
11129
11145
|
} | null;
|
|
11130
11146
|
sender: {
|
|
11131
11147
|
id: string;
|
|
@@ -11262,9 +11278,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11262
11278
|
replyTo: {
|
|
11263
11279
|
id: string;
|
|
11264
11280
|
} | null;
|
|
11265
|
-
temporaryRecipients: {
|
|
11266
|
-
email: string | null;
|
|
11267
|
-
}[];
|
|
11268
11281
|
recipients: {
|
|
11269
11282
|
id: string;
|
|
11270
11283
|
lastname: string;
|
|
@@ -11272,6 +11285,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11272
11285
|
avatar: string | null;
|
|
11273
11286
|
isSearchable: boolean;
|
|
11274
11287
|
}[];
|
|
11288
|
+
temporaryRecipients: {
|
|
11289
|
+
email: string | null;
|
|
11290
|
+
}[];
|
|
11275
11291
|
} | null;
|
|
11276
11292
|
mailIntegrityDraft: {
|
|
11277
11293
|
id: string;
|
|
@@ -11280,9 +11296,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11280
11296
|
replyTo: {
|
|
11281
11297
|
id: string;
|
|
11282
11298
|
} | null;
|
|
11283
|
-
temporaryRecipients: {
|
|
11284
|
-
email: string | null;
|
|
11285
|
-
}[];
|
|
11286
11299
|
recipients: {
|
|
11287
11300
|
id: string;
|
|
11288
11301
|
lastname: string;
|
|
@@ -11290,6 +11303,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11290
11303
|
avatar: string | null;
|
|
11291
11304
|
isSearchable: boolean;
|
|
11292
11305
|
}[];
|
|
11306
|
+
temporaryRecipients: {
|
|
11307
|
+
email: string | null;
|
|
11308
|
+
}[];
|
|
11293
11309
|
} | null;
|
|
11294
11310
|
sender: {
|
|
11295
11311
|
id: string;
|
|
@@ -11320,9 +11336,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11320
11336
|
replyTo: {
|
|
11321
11337
|
id: string;
|
|
11322
11338
|
} | null;
|
|
11323
|
-
temporaryRecipients: {
|
|
11324
|
-
email: string | null;
|
|
11325
|
-
}[];
|
|
11326
11339
|
recipients: {
|
|
11327
11340
|
id: string;
|
|
11328
11341
|
lastname: string;
|
|
@@ -11330,6 +11343,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11330
11343
|
avatar: string | null;
|
|
11331
11344
|
isSearchable: boolean;
|
|
11332
11345
|
}[];
|
|
11346
|
+
temporaryRecipients: {
|
|
11347
|
+
email: string | null;
|
|
11348
|
+
}[];
|
|
11333
11349
|
} | null;
|
|
11334
11350
|
mailIntegrityDraft: {
|
|
11335
11351
|
id: string;
|
|
@@ -11338,9 +11354,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11338
11354
|
replyTo: {
|
|
11339
11355
|
id: string;
|
|
11340
11356
|
} | null;
|
|
11341
|
-
temporaryRecipients: {
|
|
11342
|
-
email: string | null;
|
|
11343
|
-
}[];
|
|
11344
11357
|
recipients: {
|
|
11345
11358
|
id: string;
|
|
11346
11359
|
lastname: string;
|
|
@@ -11348,6 +11361,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11348
11361
|
avatar: string | null;
|
|
11349
11362
|
isSearchable: boolean;
|
|
11350
11363
|
}[];
|
|
11364
|
+
temporaryRecipients: {
|
|
11365
|
+
email: string | null;
|
|
11366
|
+
}[];
|
|
11351
11367
|
} | null;
|
|
11352
11368
|
sender: {
|
|
11353
11369
|
id: string;
|
|
@@ -11503,7 +11519,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11503
11519
|
_input_in: {
|
|
11504
11520
|
id: string;
|
|
11505
11521
|
customMessage: string | null;
|
|
11506
|
-
temporaryRecipients: string[];
|
|
11507
11522
|
recipients: ({
|
|
11508
11523
|
subject: string;
|
|
11509
11524
|
body: string;
|
|
@@ -11515,11 +11530,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11515
11530
|
dataId: string;
|
|
11516
11531
|
}[];
|
|
11517
11532
|
})[];
|
|
11533
|
+
temporaryRecipients: string[];
|
|
11518
11534
|
};
|
|
11519
11535
|
_input_out: {
|
|
11520
11536
|
id: string;
|
|
11521
11537
|
customMessage: string | null;
|
|
11522
|
-
temporaryRecipients: string[];
|
|
11523
11538
|
recipients: ({
|
|
11524
11539
|
subject: string;
|
|
11525
11540
|
body: string;
|
|
@@ -11531,6 +11546,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11531
11546
|
dataId: string;
|
|
11532
11547
|
}[];
|
|
11533
11548
|
})[];
|
|
11549
|
+
temporaryRecipients: string[];
|
|
11534
11550
|
};
|
|
11535
11551
|
_output_in: {
|
|
11536
11552
|
isSent: boolean;
|
|
@@ -11648,9 +11664,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11648
11664
|
replyTo: {
|
|
11649
11665
|
id: string;
|
|
11650
11666
|
} | null;
|
|
11651
|
-
temporaryRecipients: {
|
|
11652
|
-
email: string | null;
|
|
11653
|
-
}[];
|
|
11654
11667
|
recipients: {
|
|
11655
11668
|
id: string;
|
|
11656
11669
|
lastname: string;
|
|
@@ -11658,6 +11671,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11658
11671
|
avatar: string | null;
|
|
11659
11672
|
isSearchable: boolean;
|
|
11660
11673
|
}[];
|
|
11674
|
+
temporaryRecipients: {
|
|
11675
|
+
email: string | null;
|
|
11676
|
+
}[];
|
|
11661
11677
|
} | null;
|
|
11662
11678
|
mailIntegrityDraft: {
|
|
11663
11679
|
id: string;
|
|
@@ -11666,9 +11682,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11666
11682
|
replyTo: {
|
|
11667
11683
|
id: string;
|
|
11668
11684
|
} | null;
|
|
11669
|
-
temporaryRecipients: {
|
|
11670
|
-
email: string | null;
|
|
11671
|
-
}[];
|
|
11672
11685
|
recipients: {
|
|
11673
11686
|
id: string;
|
|
11674
11687
|
lastname: string;
|
|
@@ -11676,6 +11689,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11676
11689
|
avatar: string | null;
|
|
11677
11690
|
isSearchable: boolean;
|
|
11678
11691
|
}[];
|
|
11692
|
+
temporaryRecipients: {
|
|
11693
|
+
email: string | null;
|
|
11694
|
+
}[];
|
|
11679
11695
|
} | null;
|
|
11680
11696
|
sender: {
|
|
11681
11697
|
id: string;
|
|
@@ -11706,9 +11722,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11706
11722
|
replyTo: {
|
|
11707
11723
|
id: string;
|
|
11708
11724
|
} | null;
|
|
11709
|
-
temporaryRecipients: {
|
|
11710
|
-
email: string | null;
|
|
11711
|
-
}[];
|
|
11712
11725
|
recipients: {
|
|
11713
11726
|
id: string;
|
|
11714
11727
|
lastname: string;
|
|
@@ -11716,6 +11729,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11716
11729
|
avatar: string | null;
|
|
11717
11730
|
isSearchable: boolean;
|
|
11718
11731
|
}[];
|
|
11732
|
+
temporaryRecipients: {
|
|
11733
|
+
email: string | null;
|
|
11734
|
+
}[];
|
|
11719
11735
|
} | null;
|
|
11720
11736
|
mailIntegrityDraft: {
|
|
11721
11737
|
id: string;
|
|
@@ -11724,9 +11740,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11724
11740
|
replyTo: {
|
|
11725
11741
|
id: string;
|
|
11726
11742
|
} | null;
|
|
11727
|
-
temporaryRecipients: {
|
|
11728
|
-
email: string | null;
|
|
11729
|
-
}[];
|
|
11730
11743
|
recipients: {
|
|
11731
11744
|
id: string;
|
|
11732
11745
|
lastname: string;
|
|
@@ -11734,6 +11747,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11734
11747
|
avatar: string | null;
|
|
11735
11748
|
isSearchable: boolean;
|
|
11736
11749
|
}[];
|
|
11750
|
+
temporaryRecipients: {
|
|
11751
|
+
email: string | null;
|
|
11752
|
+
}[];
|
|
11737
11753
|
} | null;
|
|
11738
11754
|
sender: {
|
|
11739
11755
|
id: string;
|
|
@@ -11886,9 +11902,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11886
11902
|
replyTo: {
|
|
11887
11903
|
id: string;
|
|
11888
11904
|
} | null;
|
|
11889
|
-
temporaryRecipients: {
|
|
11890
|
-
email: string | null;
|
|
11891
|
-
}[];
|
|
11892
11905
|
recipients: {
|
|
11893
11906
|
id: string;
|
|
11894
11907
|
lastname: string;
|
|
@@ -11896,6 +11909,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11896
11909
|
avatar: string | null;
|
|
11897
11910
|
isSearchable: boolean;
|
|
11898
11911
|
}[];
|
|
11912
|
+
temporaryRecipients: {
|
|
11913
|
+
email: string | null;
|
|
11914
|
+
}[];
|
|
11899
11915
|
} | null;
|
|
11900
11916
|
mailIntegrityDraft: {
|
|
11901
11917
|
id: string;
|
|
@@ -11904,9 +11920,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11904
11920
|
replyTo: {
|
|
11905
11921
|
id: string;
|
|
11906
11922
|
} | null;
|
|
11907
|
-
temporaryRecipients: {
|
|
11908
|
-
email: string | null;
|
|
11909
|
-
}[];
|
|
11910
11923
|
recipients: {
|
|
11911
11924
|
id: string;
|
|
11912
11925
|
lastname: string;
|
|
@@ -11914,6 +11927,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11914
11927
|
avatar: string | null;
|
|
11915
11928
|
isSearchable: boolean;
|
|
11916
11929
|
}[];
|
|
11930
|
+
temporaryRecipients: {
|
|
11931
|
+
email: string | null;
|
|
11932
|
+
}[];
|
|
11917
11933
|
} | null;
|
|
11918
11934
|
sender: {
|
|
11919
11935
|
id: string;
|
|
@@ -11944,9 +11960,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11944
11960
|
replyTo: {
|
|
11945
11961
|
id: string;
|
|
11946
11962
|
} | null;
|
|
11947
|
-
temporaryRecipients: {
|
|
11948
|
-
email: string | null;
|
|
11949
|
-
}[];
|
|
11950
11963
|
recipients: {
|
|
11951
11964
|
id: string;
|
|
11952
11965
|
lastname: string;
|
|
@@ -11954,6 +11967,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11954
11967
|
avatar: string | null;
|
|
11955
11968
|
isSearchable: boolean;
|
|
11956
11969
|
}[];
|
|
11970
|
+
temporaryRecipients: {
|
|
11971
|
+
email: string | null;
|
|
11972
|
+
}[];
|
|
11957
11973
|
} | null;
|
|
11958
11974
|
mailIntegrityDraft: {
|
|
11959
11975
|
id: string;
|
|
@@ -11962,9 +11978,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11962
11978
|
replyTo: {
|
|
11963
11979
|
id: string;
|
|
11964
11980
|
} | null;
|
|
11965
|
-
temporaryRecipients: {
|
|
11966
|
-
email: string | null;
|
|
11967
|
-
}[];
|
|
11968
11981
|
recipients: {
|
|
11969
11982
|
id: string;
|
|
11970
11983
|
lastname: string;
|
|
@@ -11972,6 +11985,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
11972
11985
|
avatar: string | null;
|
|
11973
11986
|
isSearchable: boolean;
|
|
11974
11987
|
}[];
|
|
11988
|
+
temporaryRecipients: {
|
|
11989
|
+
email: string | null;
|
|
11990
|
+
}[];
|
|
11975
11991
|
} | null;
|
|
11976
11992
|
sender: {
|
|
11977
11993
|
id: string;
|
|
@@ -12023,11 +12039,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12023
12039
|
isSearchable: boolean;
|
|
12024
12040
|
};
|
|
12025
12041
|
date: Date;
|
|
12026
|
-
temporaryRecipients: {
|
|
12027
|
-
email: string | null;
|
|
12028
|
-
id: string;
|
|
12029
|
-
phone: string | null;
|
|
12030
|
-
}[];
|
|
12031
12042
|
recipients: {
|
|
12032
12043
|
id: string;
|
|
12033
12044
|
lastname: string;
|
|
@@ -12035,6 +12046,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12035
12046
|
avatar: string | null;
|
|
12036
12047
|
isSearchable: boolean;
|
|
12037
12048
|
}[];
|
|
12049
|
+
temporaryRecipients: {
|
|
12050
|
+
email: string | null;
|
|
12051
|
+
id: string;
|
|
12052
|
+
phone: string | null;
|
|
12053
|
+
}[];
|
|
12038
12054
|
attachmentsCount: number;
|
|
12039
12055
|
}[];
|
|
12040
12056
|
_output_out: {
|
|
@@ -12046,11 +12062,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12046
12062
|
isSearchable: boolean;
|
|
12047
12063
|
};
|
|
12048
12064
|
date: Date;
|
|
12049
|
-
temporaryRecipients: {
|
|
12050
|
-
email: string | null;
|
|
12051
|
-
id: string;
|
|
12052
|
-
phone: string | null;
|
|
12053
|
-
}[];
|
|
12054
12065
|
recipients: {
|
|
12055
12066
|
id: string;
|
|
12056
12067
|
lastname: string;
|
|
@@ -12058,6 +12069,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12058
12069
|
avatar: string | null;
|
|
12059
12070
|
isSearchable: boolean;
|
|
12060
12071
|
}[];
|
|
12072
|
+
temporaryRecipients: {
|
|
12073
|
+
email: string | null;
|
|
12074
|
+
id: string;
|
|
12075
|
+
phone: string | null;
|
|
12076
|
+
}[];
|
|
12061
12077
|
attachmentsCount: number;
|
|
12062
12078
|
}[];
|
|
12063
12079
|
}, unknown>>;
|
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.62.0-feat-node-sharing.
|
|
5
|
+
"version": "1.62.0-feat-node-sharing.7",
|
|
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.7.2"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0-feat-share-node-enhanced.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-share-node-enhanced.16",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|