@secrecy/trpc-api-types 1.33.0-feat-groups-identity.7 → 1.33.0-feat-groups-identity.9
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/index.d.ts +101 -80
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1898,39 +1898,42 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1898
1898
|
}>;
|
|
1899
1899
|
checkAccesses: _trpc_server.TRPCQueryProcedure<{
|
|
1900
1900
|
input: {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1901
|
+
fromPubKey?: string | null | undefined;
|
|
1902
|
+
accesses: {
|
|
1903
|
+
pubKey: string;
|
|
1904
|
+
nodes: ({
|
|
1905
1905
|
id: string;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1906
|
+
data: {
|
|
1907
|
+
id: string;
|
|
1908
|
+
key?: string | null | undefined;
|
|
1909
|
+
}[];
|
|
1910
|
+
nameKey?: string | null | undefined;
|
|
1911
|
+
} & {
|
|
1912
|
+
rights: "delete" | "read" | "write";
|
|
1913
|
+
} & {
|
|
1914
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1915
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1916
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1917
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1918
|
+
})[];
|
|
1919
|
+
}[];
|
|
1920
|
+
};
|
|
1918
1921
|
output: {
|
|
1919
1922
|
isMatching: true;
|
|
1920
1923
|
} | {
|
|
1921
1924
|
isMatching: false;
|
|
1922
1925
|
details: {
|
|
1923
1926
|
missingNodeAccesses: {
|
|
1924
|
-
|
|
1927
|
+
pubKey: string;
|
|
1925
1928
|
nodeId: string;
|
|
1926
1929
|
}[];
|
|
1927
1930
|
missingDataAccesses: {
|
|
1928
|
-
|
|
1931
|
+
pubKey: string;
|
|
1929
1932
|
nodeId: string;
|
|
1930
1933
|
dataId: string;
|
|
1931
1934
|
}[];
|
|
1932
1935
|
invalidRightsAccesses: {
|
|
1933
|
-
|
|
1936
|
+
pubKey: string;
|
|
1934
1937
|
nodeId: string;
|
|
1935
1938
|
expect: {
|
|
1936
1939
|
rights: "delete" | "read" | "write";
|
|
@@ -2726,40 +2729,41 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2726
2729
|
shareNodeFinish: _trpc_server.TRPCMutationProcedure<{
|
|
2727
2730
|
input: {
|
|
2728
2731
|
fromPubKey?: string | null | undefined;
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
id: string;
|
|
2733
|
-
data: {
|
|
2732
|
+
accesses: {
|
|
2733
|
+
pubKey: string;
|
|
2734
|
+
nodes: ({
|
|
2734
2735
|
id: string;
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2736
|
+
data: {
|
|
2737
|
+
id: string;
|
|
2738
|
+
key?: string | null | undefined;
|
|
2739
|
+
}[];
|
|
2740
|
+
nameKey?: string | null | undefined;
|
|
2741
|
+
} & {
|
|
2742
|
+
rights: "delete" | "read" | "write";
|
|
2743
|
+
} & {
|
|
2744
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2745
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2746
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2747
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2748
|
+
})[];
|
|
2749
|
+
}[];
|
|
2750
|
+
};
|
|
2747
2751
|
output: {
|
|
2748
2752
|
isFinished: true;
|
|
2749
2753
|
} | {
|
|
2750
2754
|
isFinished: false;
|
|
2751
2755
|
details: {
|
|
2752
2756
|
missingNodeAccesses: {
|
|
2753
|
-
|
|
2757
|
+
pubKey: string;
|
|
2754
2758
|
nodeId: string;
|
|
2755
2759
|
}[];
|
|
2756
2760
|
missingDataAccesses: {
|
|
2757
|
-
|
|
2761
|
+
pubKey: string;
|
|
2758
2762
|
nodeId: string;
|
|
2759
2763
|
dataId: string;
|
|
2760
2764
|
}[];
|
|
2761
2765
|
invalidRightsAccesses: {
|
|
2762
|
-
|
|
2766
|
+
pubKey: string;
|
|
2763
2767
|
nodeId: string;
|
|
2764
2768
|
expect: {
|
|
2765
2769
|
rights: "delete" | "read" | "write";
|
|
@@ -2783,47 +2787,50 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2783
2787
|
meta: any;
|
|
2784
2788
|
}>;
|
|
2785
2789
|
shareNode: _trpc_server.TRPCMutationProcedure<{
|
|
2786
|
-
input:
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2790
|
+
input: {
|
|
2791
|
+
fromPubKey?: string | null | undefined;
|
|
2792
|
+
accesses: ({
|
|
2793
|
+
nodeId: string;
|
|
2794
|
+
pubKey: string;
|
|
2795
|
+
} & {
|
|
2796
|
+
rights: "delete" | "read" | "write";
|
|
2797
|
+
} & {
|
|
2798
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2799
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2800
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2801
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2802
|
+
})[] | ({
|
|
2803
|
+
nodeIds: string[];
|
|
2804
|
+
pubKeys: string[];
|
|
2805
|
+
} & {
|
|
2806
|
+
rights: "delete" | "read" | "write";
|
|
2807
|
+
} & {
|
|
2808
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2809
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2810
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2811
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2812
|
+
}) | ({
|
|
2813
|
+
nodeId: string;
|
|
2814
|
+
pubKeys: string[];
|
|
2815
|
+
} & {
|
|
2816
|
+
rights: "delete" | "read" | "write";
|
|
2817
|
+
} & {
|
|
2818
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2819
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2820
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2821
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2822
|
+
}) | ({
|
|
2823
|
+
nodeIds: string[];
|
|
2824
|
+
pubKey: string;
|
|
2825
|
+
} & {
|
|
2826
|
+
rights: "delete" | "read" | "write";
|
|
2827
|
+
} & {
|
|
2828
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2829
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2830
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2831
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2832
|
+
});
|
|
2833
|
+
};
|
|
2827
2834
|
output: Record<string, ({
|
|
2828
2835
|
nodeId: string;
|
|
2829
2836
|
includeKeys: boolean;
|
|
@@ -4210,6 +4217,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4210
4217
|
avatar: string | null;
|
|
4211
4218
|
isSearchable: boolean;
|
|
4212
4219
|
};
|
|
4220
|
+
senderPubKey: string;
|
|
4221
|
+
recipientPubKey: string;
|
|
4213
4222
|
attachments: {
|
|
4214
4223
|
dataId: string;
|
|
4215
4224
|
name: string;
|
|
@@ -4284,6 +4293,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4284
4293
|
avatar: string | null;
|
|
4285
4294
|
isSearchable: boolean;
|
|
4286
4295
|
};
|
|
4296
|
+
senderPubKey: string;
|
|
4297
|
+
recipientPubKey: string;
|
|
4287
4298
|
attachments: {
|
|
4288
4299
|
dataId: string;
|
|
4289
4300
|
name: string;
|
|
@@ -4378,6 +4389,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4378
4389
|
avatar: string | null;
|
|
4379
4390
|
isSearchable: boolean;
|
|
4380
4391
|
};
|
|
4392
|
+
senderPubKey: string;
|
|
4393
|
+
recipientPubKey: string;
|
|
4381
4394
|
attachments: {
|
|
4382
4395
|
dataId: string;
|
|
4383
4396
|
name: string;
|
|
@@ -4443,6 +4456,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4443
4456
|
avatar: string | null;
|
|
4444
4457
|
isSearchable: boolean;
|
|
4445
4458
|
};
|
|
4459
|
+
senderPubKey: string;
|
|
4460
|
+
recipientPubKey: string;
|
|
4446
4461
|
attachments: {
|
|
4447
4462
|
dataId: string;
|
|
4448
4463
|
name: string;
|
|
@@ -4529,6 +4544,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4529
4544
|
avatar: string | null;
|
|
4530
4545
|
isSearchable: boolean;
|
|
4531
4546
|
};
|
|
4547
|
+
senderPubKey: string;
|
|
4548
|
+
recipientPubKey: string;
|
|
4532
4549
|
attachments: {
|
|
4533
4550
|
dataId: string;
|
|
4534
4551
|
name: string;
|
|
@@ -4658,6 +4675,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4658
4675
|
avatar: string | null;
|
|
4659
4676
|
isSearchable: boolean;
|
|
4660
4677
|
};
|
|
4678
|
+
senderPubKey: string;
|
|
4679
|
+
recipientPubKey: string;
|
|
4661
4680
|
attachments: {
|
|
4662
4681
|
dataId: string;
|
|
4663
4682
|
name: string;
|
|
@@ -4751,6 +4770,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4751
4770
|
avatar: string | null;
|
|
4752
4771
|
isSearchable: boolean;
|
|
4753
4772
|
};
|
|
4773
|
+
senderPubKey: string;
|
|
4774
|
+
recipientPubKey: string;
|
|
4754
4775
|
attachments: {
|
|
4755
4776
|
dataId: string;
|
|
4756
4777
|
name: string;
|