@secrecy/lib 1.76.0 → 1.78.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/SecrecyCloudClient.js +69 -22
- package/dist/lib/client/SecrecyGroupClient.js +10 -6
- package/dist/lib/client/SecrecyMailClient.js +28 -13
- package/dist/lib/client/index.js +11 -0
- package/dist/lib/client/types/identity.js +1 -0
- package/dist/lib/client/upload.js +5 -5
- package/dist/lib/crypto/domain.js +4 -4
- package/dist/types/client/SecrecyCloudClient.d.ts +5 -1
- package/dist/types/client/SecrecyMailClient.d.ts +1 -1
- package/dist/types/client/index.d.ts +3 -0
- package/dist/types/client/types/identity.d.ts +2 -0
- package/dist/types/client/types/index.d.ts +1 -0
- package/dist/types/client/upload.d.ts +3 -3
- package/dist/types/client.d.ts +634 -20
- package/dist/types/crypto/domain.d.ts +3 -3
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -482,7 +482,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
482
482
|
encPriv: string;
|
|
483
483
|
}[];
|
|
484
484
|
};
|
|
485
|
-
output:
|
|
485
|
+
output: {};
|
|
486
486
|
meta: any;
|
|
487
487
|
}>;
|
|
488
488
|
changePassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -581,7 +581,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
581
581
|
email: string;
|
|
582
582
|
phone: string;
|
|
583
583
|
};
|
|
584
|
-
output:
|
|
584
|
+
output: {};
|
|
585
585
|
meta: any;
|
|
586
586
|
}>;
|
|
587
587
|
sendCodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -803,6 +803,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
803
803
|
addDataToHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
804
804
|
input: {
|
|
805
805
|
fromIdentityPubKey?: string | null | undefined;
|
|
806
|
+
appId?: string | null | undefined;
|
|
806
807
|
dataId: string;
|
|
807
808
|
nodeId: string;
|
|
808
809
|
};
|
|
@@ -1005,9 +1006,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1005
1006
|
deleteData: import("@trpc/server").TRPCMutationProcedure<{
|
|
1006
1007
|
input: {
|
|
1007
1008
|
fromIdentityPubKey?: string | null | undefined;
|
|
1009
|
+
appId?: string | null | undefined;
|
|
1008
1010
|
dataId: string;
|
|
1009
1011
|
nodeId: string;
|
|
1010
|
-
appId?: string | null | undefined;
|
|
1011
1012
|
};
|
|
1012
1013
|
output: {
|
|
1013
1014
|
isDeleted: boolean;
|
|
@@ -1017,6 +1018,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1017
1018
|
dataById: import("@trpc/server").TRPCQueryProcedure<{
|
|
1018
1019
|
input: {
|
|
1019
1020
|
fromIdentityPubKey?: string | null | undefined;
|
|
1021
|
+
appId?: string | null | undefined;
|
|
1020
1022
|
id: string;
|
|
1021
1023
|
};
|
|
1022
1024
|
output: {
|
|
@@ -1046,6 +1048,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1046
1048
|
dataContentById: import("@trpc/server").TRPCQueryProcedure<{
|
|
1047
1049
|
input: {
|
|
1048
1050
|
fromIdentityPubKey?: string | null | undefined;
|
|
1051
|
+
appId?: string | null | undefined;
|
|
1049
1052
|
id: string;
|
|
1050
1053
|
};
|
|
1051
1054
|
output: {
|
|
@@ -1123,6 +1126,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1123
1126
|
dataContentByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
1124
1127
|
input: {
|
|
1125
1128
|
fromIdentityPubKey?: string | null | undefined;
|
|
1129
|
+
appId?: string | null | undefined;
|
|
1126
1130
|
ids: string[];
|
|
1127
1131
|
};
|
|
1128
1132
|
output: ({
|
|
@@ -1219,6 +1223,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1219
1223
|
saveInCloud: import("@trpc/server").TRPCMutationProcedure<{
|
|
1220
1224
|
input: {
|
|
1221
1225
|
fromIdentityPubKey?: string | null | undefined;
|
|
1226
|
+
appId?: string | null | undefined;
|
|
1222
1227
|
dataId: string;
|
|
1223
1228
|
nodeId: string | null;
|
|
1224
1229
|
key: string | null;
|
|
@@ -1500,6 +1505,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1500
1505
|
shareDataInHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
1501
1506
|
input: {
|
|
1502
1507
|
fromIdentityPubKey?: string | null | undefined;
|
|
1508
|
+
appId?: string | null | undefined;
|
|
1503
1509
|
dataId: string;
|
|
1504
1510
|
nodeId: string;
|
|
1505
1511
|
users: {
|
|
@@ -1572,6 +1578,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1572
1578
|
uploadColdData: import("@trpc/server").TRPCMutationProcedure<{
|
|
1573
1579
|
input: {
|
|
1574
1580
|
fromIdentityPubKey?: string | null | undefined;
|
|
1581
|
+
appId?: string | null | undefined;
|
|
1575
1582
|
size: bigint;
|
|
1576
1583
|
md5: string;
|
|
1577
1584
|
sizeEncrypted: bigint;
|
|
@@ -1582,6 +1589,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1582
1589
|
key?: string | undefined;
|
|
1583
1590
|
} | {
|
|
1584
1591
|
fromIdentityPubKey?: string | null | undefined;
|
|
1592
|
+
appId?: string | null | undefined;
|
|
1585
1593
|
size: bigint;
|
|
1586
1594
|
md5: string;
|
|
1587
1595
|
type: "unencrypted";
|
|
@@ -1753,6 +1761,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1753
1761
|
checkAccesses: import("@trpc/server").TRPCQueryProcedure<{
|
|
1754
1762
|
input: {
|
|
1755
1763
|
fromIdentityPubKey?: string | null | undefined;
|
|
1764
|
+
appId?: string | null | undefined;
|
|
1756
1765
|
accesses: {
|
|
1757
1766
|
pubKey: string;
|
|
1758
1767
|
nodes: ({
|
|
@@ -1813,6 +1822,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1813
1822
|
createFolder: import("@trpc/server").TRPCMutationProcedure<{
|
|
1814
1823
|
input: {
|
|
1815
1824
|
fromIdentityPubKey?: string | null | undefined;
|
|
1825
|
+
appId?: string | null | undefined;
|
|
1816
1826
|
nameKey: string | null;
|
|
1817
1827
|
name: string;
|
|
1818
1828
|
parentId: string | null;
|
|
@@ -2016,6 +2026,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2016
2026
|
deleteNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
2017
2027
|
input: {
|
|
2018
2028
|
fromIdentityPubKey?: string | null | undefined;
|
|
2029
|
+
appId?: string | null | undefined;
|
|
2019
2030
|
ids: string[];
|
|
2020
2031
|
};
|
|
2021
2032
|
output: {
|
|
@@ -2026,6 +2037,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2026
2037
|
deleteNodeSharing: import("@trpc/server").TRPCMutationProcedure<{
|
|
2027
2038
|
input: {
|
|
2028
2039
|
fromIdentityPubKey?: string | null | undefined;
|
|
2040
|
+
appId?: string | null | undefined;
|
|
2029
2041
|
nodeId: string;
|
|
2030
2042
|
destPubKey: string;
|
|
2031
2043
|
};
|
|
@@ -2037,9 +2049,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2037
2049
|
deleteNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2038
2050
|
input: {
|
|
2039
2051
|
fromIdentityPubKey?: string | null | undefined;
|
|
2052
|
+
appId?: string | null | undefined;
|
|
2040
2053
|
id: string;
|
|
2041
2054
|
force?: boolean | undefined;
|
|
2042
|
-
appId?: string | null | undefined;
|
|
2043
2055
|
};
|
|
2044
2056
|
output: {
|
|
2045
2057
|
isDeleted: boolean;
|
|
@@ -2049,6 +2061,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2049
2061
|
deleteNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
2050
2062
|
input: {
|
|
2051
2063
|
fromIdentityPubKey?: string | null | undefined;
|
|
2064
|
+
appId?: string | null | undefined;
|
|
2052
2065
|
ids: string[];
|
|
2053
2066
|
force?: boolean | undefined;
|
|
2054
2067
|
};
|
|
@@ -2060,6 +2073,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2060
2073
|
duplicateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2061
2074
|
input: {
|
|
2062
2075
|
fromIdentityPubKey?: string | null | undefined;
|
|
2076
|
+
appId?: string | null | undefined;
|
|
2063
2077
|
nodeId: string;
|
|
2064
2078
|
folderId: string | null;
|
|
2065
2079
|
name: string | null;
|
|
@@ -2071,8 +2085,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2071
2085
|
}>;
|
|
2072
2086
|
emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
2073
2087
|
input: {
|
|
2074
|
-
[x: string]: never;
|
|
2075
2088
|
fromIdentityPubKey?: string | null | undefined;
|
|
2089
|
+
appId?: string | null | undefined;
|
|
2076
2090
|
};
|
|
2077
2091
|
output: {
|
|
2078
2092
|
isCleaned: boolean;
|
|
@@ -2082,6 +2096,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2082
2096
|
moveNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
2083
2097
|
input: {
|
|
2084
2098
|
fromIdentityPubKey?: string | null | undefined;
|
|
2099
|
+
appId?: string | null | undefined;
|
|
2085
2100
|
ids: string[];
|
|
2086
2101
|
parentId: string | null;
|
|
2087
2102
|
};
|
|
@@ -2093,6 +2108,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2093
2108
|
nodeAccessById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2094
2109
|
input: {
|
|
2095
2110
|
fromIdentityPubKey?: string | null | undefined;
|
|
2111
|
+
appId?: string | null | undefined;
|
|
2096
2112
|
id: string;
|
|
2097
2113
|
};
|
|
2098
2114
|
output: {
|
|
@@ -2116,6 +2132,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2116
2132
|
nodeBreadcrumbById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2117
2133
|
input: {
|
|
2118
2134
|
fromIdentityPubKey?: string | null | undefined;
|
|
2135
|
+
appId?: string | null | undefined;
|
|
2119
2136
|
id: string;
|
|
2120
2137
|
};
|
|
2121
2138
|
output: {
|
|
@@ -2130,6 +2147,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2130
2147
|
nodeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2131
2148
|
input: {
|
|
2132
2149
|
fromIdentityPubKey?: string | null | undefined;
|
|
2150
|
+
appId?: string | null | undefined;
|
|
2133
2151
|
id?: string | null | undefined;
|
|
2134
2152
|
deleted?: boolean | null | undefined;
|
|
2135
2153
|
};
|
|
@@ -2184,9 +2202,70 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2184
2202
|
};
|
|
2185
2203
|
meta: any;
|
|
2186
2204
|
}>;
|
|
2205
|
+
nodeByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
2206
|
+
input: {
|
|
2207
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
2208
|
+
appId?: string | null | undefined;
|
|
2209
|
+
ids: string[];
|
|
2210
|
+
deleted?: boolean | null | undefined;
|
|
2211
|
+
};
|
|
2212
|
+
output: {
|
|
2213
|
+
nodes: ({
|
|
2214
|
+
id: string;
|
|
2215
|
+
createdAt: Date;
|
|
2216
|
+
deletedAt: Date | null;
|
|
2217
|
+
name: string;
|
|
2218
|
+
type: "FILE" | "FOLDER";
|
|
2219
|
+
updatedAt: Date;
|
|
2220
|
+
isFavorite: boolean;
|
|
2221
|
+
parentId: string | null;
|
|
2222
|
+
currentDataId: string | null;
|
|
2223
|
+
} & {
|
|
2224
|
+
owner: {
|
|
2225
|
+
userId: string;
|
|
2226
|
+
orgId: string;
|
|
2227
|
+
appId: string;
|
|
2228
|
+
};
|
|
2229
|
+
accesses: {
|
|
2230
|
+
rights: "delete" | "read" | "write";
|
|
2231
|
+
nameKey: string | null;
|
|
2232
|
+
isRoot: boolean;
|
|
2233
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2234
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2235
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2236
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2237
|
+
sharedByPubKey: string;
|
|
2238
|
+
identityPubKey: string;
|
|
2239
|
+
}[];
|
|
2240
|
+
permissions: {
|
|
2241
|
+
rights: "delete" | "read" | "write";
|
|
2242
|
+
} & {
|
|
2243
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2244
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2245
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2246
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2247
|
+
};
|
|
2248
|
+
identities: Record<string, {
|
|
2249
|
+
rights: "delete" | "read" | "write";
|
|
2250
|
+
} & {
|
|
2251
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2252
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2253
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2254
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2255
|
+
}>;
|
|
2256
|
+
} & {
|
|
2257
|
+
sizes: {
|
|
2258
|
+
size: bigint;
|
|
2259
|
+
sizeEncrypted: bigint;
|
|
2260
|
+
};
|
|
2261
|
+
})[];
|
|
2262
|
+
};
|
|
2263
|
+
meta: any;
|
|
2264
|
+
}>;
|
|
2187
2265
|
nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2188
2266
|
input: {
|
|
2189
2267
|
fromIdentityPubKey?: string | null | undefined;
|
|
2268
|
+
appId?: string | null | undefined;
|
|
2190
2269
|
id?: string | null | undefined;
|
|
2191
2270
|
deleted?: boolean | null | undefined;
|
|
2192
2271
|
};
|
|
@@ -2386,9 +2465,215 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2386
2465
|
};
|
|
2387
2466
|
meta: any;
|
|
2388
2467
|
}>;
|
|
2468
|
+
nodeFullByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
2469
|
+
input: {
|
|
2470
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
2471
|
+
appId?: string | null | undefined;
|
|
2472
|
+
ids: string[];
|
|
2473
|
+
deleted?: boolean | null | undefined;
|
|
2474
|
+
};
|
|
2475
|
+
output: {
|
|
2476
|
+
nodes: ({
|
|
2477
|
+
id: string;
|
|
2478
|
+
createdAt: Date;
|
|
2479
|
+
deletedAt: Date | null;
|
|
2480
|
+
name: string;
|
|
2481
|
+
type: "FILE" | "FOLDER";
|
|
2482
|
+
updatedAt: Date;
|
|
2483
|
+
isFavorite: boolean;
|
|
2484
|
+
parentId: string | null;
|
|
2485
|
+
currentDataId: string | null;
|
|
2486
|
+
} & {
|
|
2487
|
+
owner: {
|
|
2488
|
+
userId: string;
|
|
2489
|
+
orgId: string;
|
|
2490
|
+
appId: string;
|
|
2491
|
+
};
|
|
2492
|
+
accesses: {
|
|
2493
|
+
rights: "delete" | "read" | "write";
|
|
2494
|
+
nameKey: string | null;
|
|
2495
|
+
isRoot: boolean;
|
|
2496
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2497
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2498
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2499
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2500
|
+
sharedByPubKey: string;
|
|
2501
|
+
identityPubKey: string;
|
|
2502
|
+
}[];
|
|
2503
|
+
permissions: {
|
|
2504
|
+
rights: "delete" | "read" | "write";
|
|
2505
|
+
} & {
|
|
2506
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2507
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2508
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2509
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2510
|
+
};
|
|
2511
|
+
identities: Record<string, {
|
|
2512
|
+
rights: "delete" | "read" | "write";
|
|
2513
|
+
} & {
|
|
2514
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2515
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2516
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2517
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2518
|
+
}>;
|
|
2519
|
+
} & {
|
|
2520
|
+
sizes: {
|
|
2521
|
+
size: bigint;
|
|
2522
|
+
sizeEncrypted: bigint;
|
|
2523
|
+
};
|
|
2524
|
+
} & {
|
|
2525
|
+
parent: ({
|
|
2526
|
+
id: string;
|
|
2527
|
+
createdAt: Date;
|
|
2528
|
+
deletedAt: Date | null;
|
|
2529
|
+
name: string;
|
|
2530
|
+
type: "FILE" | "FOLDER";
|
|
2531
|
+
updatedAt: Date;
|
|
2532
|
+
isFavorite: boolean;
|
|
2533
|
+
parentId: string | null;
|
|
2534
|
+
currentDataId: string | null;
|
|
2535
|
+
} & {
|
|
2536
|
+
owner: {
|
|
2537
|
+
userId: string;
|
|
2538
|
+
orgId: string;
|
|
2539
|
+
appId: string;
|
|
2540
|
+
};
|
|
2541
|
+
accesses: {
|
|
2542
|
+
rights: "delete" | "read" | "write";
|
|
2543
|
+
nameKey: string | null;
|
|
2544
|
+
isRoot: boolean;
|
|
2545
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2546
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2547
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2548
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2549
|
+
sharedByPubKey: string;
|
|
2550
|
+
identityPubKey: string;
|
|
2551
|
+
}[];
|
|
2552
|
+
permissions: {
|
|
2553
|
+
rights: "delete" | "read" | "write";
|
|
2554
|
+
} & {
|
|
2555
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2556
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2557
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2558
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2559
|
+
};
|
|
2560
|
+
identities: Record<string, {
|
|
2561
|
+
rights: "delete" | "read" | "write";
|
|
2562
|
+
} & {
|
|
2563
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2564
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2565
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2566
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2567
|
+
}>;
|
|
2568
|
+
}) | null;
|
|
2569
|
+
children: ({
|
|
2570
|
+
id: string;
|
|
2571
|
+
createdAt: Date;
|
|
2572
|
+
deletedAt: Date | null;
|
|
2573
|
+
name: string;
|
|
2574
|
+
type: "FILE" | "FOLDER";
|
|
2575
|
+
updatedAt: Date;
|
|
2576
|
+
isFavorite: boolean;
|
|
2577
|
+
parentId: string | null;
|
|
2578
|
+
currentDataId: string | null;
|
|
2579
|
+
} & {
|
|
2580
|
+
owner: {
|
|
2581
|
+
userId: string;
|
|
2582
|
+
orgId: string;
|
|
2583
|
+
appId: string;
|
|
2584
|
+
};
|
|
2585
|
+
accesses: {
|
|
2586
|
+
rights: "delete" | "read" | "write";
|
|
2587
|
+
nameKey: string | null;
|
|
2588
|
+
isRoot: boolean;
|
|
2589
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2590
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2591
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2592
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2593
|
+
sharedByPubKey: string;
|
|
2594
|
+
identityPubKey: string;
|
|
2595
|
+
}[];
|
|
2596
|
+
permissions: {
|
|
2597
|
+
rights: "delete" | "read" | "write";
|
|
2598
|
+
} & {
|
|
2599
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2600
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2601
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2602
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2603
|
+
};
|
|
2604
|
+
identities: Record<string, {
|
|
2605
|
+
rights: "delete" | "read" | "write";
|
|
2606
|
+
} & {
|
|
2607
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2608
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2609
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2610
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2611
|
+
}>;
|
|
2612
|
+
} & {
|
|
2613
|
+
sizes: {
|
|
2614
|
+
size: bigint;
|
|
2615
|
+
sizeEncrypted: bigint;
|
|
2616
|
+
};
|
|
2617
|
+
})[];
|
|
2618
|
+
current: {
|
|
2619
|
+
id: string;
|
|
2620
|
+
storageType: "s3" | "cold" | "lite";
|
|
2621
|
+
size: bigint;
|
|
2622
|
+
prefix: string;
|
|
2623
|
+
sizeEncrypted: bigint | null;
|
|
2624
|
+
md5: string;
|
|
2625
|
+
md5Encrypted: string | null;
|
|
2626
|
+
mime: string | null;
|
|
2627
|
+
ext: string | null;
|
|
2628
|
+
createdAt: Date;
|
|
2629
|
+
validatedAt: Date | null;
|
|
2630
|
+
restoreSince: Date | null;
|
|
2631
|
+
createdByUserId: string | null;
|
|
2632
|
+
createdByAppId: string | null;
|
|
2633
|
+
createdByOrgId: string | null;
|
|
2634
|
+
access: {
|
|
2635
|
+
key: string | null;
|
|
2636
|
+
identityPubKey: string;
|
|
2637
|
+
sharedByPubKey: string;
|
|
2638
|
+
};
|
|
2639
|
+
} | null;
|
|
2640
|
+
history: {
|
|
2641
|
+
id: string;
|
|
2642
|
+
storageType: "s3" | "cold" | "lite";
|
|
2643
|
+
size: bigint;
|
|
2644
|
+
prefix: string;
|
|
2645
|
+
sizeEncrypted: bigint | null;
|
|
2646
|
+
md5: string;
|
|
2647
|
+
md5Encrypted: string | null;
|
|
2648
|
+
mime: string | null;
|
|
2649
|
+
ext: string | null;
|
|
2650
|
+
createdAt: Date;
|
|
2651
|
+
validatedAt: Date | null;
|
|
2652
|
+
restoreSince: Date | null;
|
|
2653
|
+
createdByUserId: string | null;
|
|
2654
|
+
createdByAppId: string | null;
|
|
2655
|
+
createdByOrgId: string | null;
|
|
2656
|
+
access: {
|
|
2657
|
+
key: string | null;
|
|
2658
|
+
identityPubKey: string;
|
|
2659
|
+
sharedByPubKey: string;
|
|
2660
|
+
};
|
|
2661
|
+
}[];
|
|
2662
|
+
breadcrumb: {
|
|
2663
|
+
id: string;
|
|
2664
|
+
name: string;
|
|
2665
|
+
identityPubKey: string;
|
|
2666
|
+
sharedByPubKey: string;
|
|
2667
|
+
nameKey: string | null;
|
|
2668
|
+
}[];
|
|
2669
|
+
})[];
|
|
2670
|
+
};
|
|
2671
|
+
meta: any;
|
|
2672
|
+
}>;
|
|
2389
2673
|
nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
|
|
2390
2674
|
input: {
|
|
2391
2675
|
fromIdentityPubKey?: string | null | undefined;
|
|
2676
|
+
appId?: string | null | undefined;
|
|
2392
2677
|
ids: string[];
|
|
2393
2678
|
};
|
|
2394
2679
|
output: {
|
|
@@ -2414,6 +2699,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2414
2699
|
nodeSizeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2415
2700
|
input: {
|
|
2416
2701
|
fromIdentityPubKey?: string | null | undefined;
|
|
2702
|
+
appId?: string | null | undefined;
|
|
2417
2703
|
id: string;
|
|
2418
2704
|
};
|
|
2419
2705
|
output: {
|
|
@@ -2424,8 +2710,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2424
2710
|
}>;
|
|
2425
2711
|
nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
2426
2712
|
input: {
|
|
2427
|
-
[x: string]: never;
|
|
2428
2713
|
fromIdentityPubKey?: string | null | undefined;
|
|
2714
|
+
appId?: string | null | undefined;
|
|
2429
2715
|
};
|
|
2430
2716
|
output: ({
|
|
2431
2717
|
id: string;
|
|
@@ -2476,6 +2762,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2476
2762
|
nodesSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
|
|
2477
2763
|
input: {
|
|
2478
2764
|
fromIdentityPubKey?: string | null | undefined;
|
|
2765
|
+
appId?: string | null | undefined;
|
|
2479
2766
|
type: "FILE" | "FOLDER";
|
|
2480
2767
|
};
|
|
2481
2768
|
output: ({
|
|
@@ -2527,6 +2814,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2527
2814
|
nodesShared: import("@trpc/server").TRPCQueryProcedure<{
|
|
2528
2815
|
input: {
|
|
2529
2816
|
fromIdentityPubKey?: string | null | undefined;
|
|
2817
|
+
appId?: string | null | undefined;
|
|
2530
2818
|
};
|
|
2531
2819
|
output: ({
|
|
2532
2820
|
id: string;
|
|
@@ -2577,6 +2865,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2577
2865
|
recoverNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2578
2866
|
input: {
|
|
2579
2867
|
fromIdentityPubKey?: string | null | undefined;
|
|
2868
|
+
appId?: string | null | undefined;
|
|
2580
2869
|
id: string;
|
|
2581
2870
|
};
|
|
2582
2871
|
output: {
|
|
@@ -2587,6 +2876,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2587
2876
|
shareNodeFinish: import("@trpc/server").TRPCMutationProcedure<{
|
|
2588
2877
|
input: {
|
|
2589
2878
|
fromIdentityPubKey?: string | null | undefined;
|
|
2879
|
+
appId?: string | null | undefined;
|
|
2590
2880
|
accesses: {
|
|
2591
2881
|
pubKey: string;
|
|
2592
2882
|
nodes: ({
|
|
@@ -2647,6 +2937,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2647
2937
|
shareNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2648
2938
|
input: {
|
|
2649
2939
|
fromIdentityPubKey?: string | null | undefined;
|
|
2940
|
+
appId?: string | null | undefined;
|
|
2650
2941
|
accesses: ({
|
|
2651
2942
|
nodeId: string;
|
|
2652
2943
|
pubKey: string;
|
|
@@ -2705,6 +2996,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2705
2996
|
updateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2706
2997
|
input: {
|
|
2707
2998
|
fromIdentityPubKey?: string | null | undefined;
|
|
2999
|
+
appId?: string | null | undefined;
|
|
2708
3000
|
id: string;
|
|
2709
3001
|
name: string | null;
|
|
2710
3002
|
isFavorite: boolean | null;
|
|
@@ -2909,6 +3201,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2909
3201
|
leaveSharing: import("@trpc/server").TRPCMutationProcedure<{
|
|
2910
3202
|
input: {
|
|
2911
3203
|
fromIdentityPubKey?: string | null | undefined;
|
|
3204
|
+
appId?: string | null | undefined;
|
|
2912
3205
|
nodeId: string;
|
|
2913
3206
|
fromPubKey: string;
|
|
2914
3207
|
};
|
|
@@ -3911,6 +4204,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3911
4204
|
createDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
3912
4205
|
input: {
|
|
3913
4206
|
fromIdentityPubKey?: string | null | undefined;
|
|
4207
|
+
appId?: string | null | undefined;
|
|
3914
4208
|
body: string;
|
|
3915
4209
|
subject: string;
|
|
3916
4210
|
hash: string;
|
|
@@ -3996,6 +4290,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3996
4290
|
deleteTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
3997
4291
|
input: {
|
|
3998
4292
|
fromIdentityPubKey?: string | null | undefined;
|
|
4293
|
+
appId?: string | null | undefined;
|
|
3999
4294
|
ids: string[];
|
|
4000
4295
|
};
|
|
4001
4296
|
output: {
|
|
@@ -4006,6 +4301,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4006
4301
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
4007
4302
|
input: {
|
|
4008
4303
|
fromIdentityPubKey?: string | null | undefined;
|
|
4304
|
+
appId?: string | null | undefined;
|
|
4009
4305
|
id: string;
|
|
4010
4306
|
};
|
|
4011
4307
|
output: {
|
|
@@ -4016,6 +4312,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4016
4312
|
deleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
4017
4313
|
input: {
|
|
4018
4314
|
fromIdentityPubKey?: string | null | undefined;
|
|
4315
|
+
appId?: string | null | undefined;
|
|
4019
4316
|
type: "sent" | "received";
|
|
4020
4317
|
};
|
|
4021
4318
|
output: ({
|
|
@@ -4149,8 +4446,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4149
4446
|
}>;
|
|
4150
4447
|
emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
4151
4448
|
input: {
|
|
4152
|
-
[x: string]: never;
|
|
4153
4449
|
fromIdentityPubKey?: string | null | undefined;
|
|
4450
|
+
appId?: string | null | undefined;
|
|
4154
4451
|
};
|
|
4155
4452
|
output: {
|
|
4156
4453
|
isDeleted: boolean;
|
|
@@ -4160,6 +4457,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4160
4457
|
read: import("@trpc/server").TRPCMutationProcedure<{
|
|
4161
4458
|
input: {
|
|
4162
4459
|
fromIdentityPubKey?: string | null | undefined;
|
|
4460
|
+
appId?: string | null | undefined;
|
|
4163
4461
|
id: string;
|
|
4164
4462
|
};
|
|
4165
4463
|
output: {
|
|
@@ -4170,6 +4468,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4170
4468
|
received: import("@trpc/server").TRPCQueryProcedure<{
|
|
4171
4469
|
input: {
|
|
4172
4470
|
fromIdentityPubKey?: string | null | undefined;
|
|
4471
|
+
appId?: string | null | undefined;
|
|
4173
4472
|
page?: number | undefined;
|
|
4174
4473
|
perPage?: number | undefined;
|
|
4175
4474
|
};
|
|
@@ -4238,6 +4537,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4238
4537
|
recover: import("@trpc/server").TRPCMutationProcedure<{
|
|
4239
4538
|
input: {
|
|
4240
4539
|
fromIdentityPubKey?: string | null | undefined;
|
|
4540
|
+
appId?: string | null | undefined;
|
|
4241
4541
|
id: string;
|
|
4242
4542
|
};
|
|
4243
4543
|
output: {
|
|
@@ -4368,8 +4668,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4368
4668
|
}>;
|
|
4369
4669
|
unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
|
|
4370
4670
|
input: {
|
|
4371
|
-
[x: string]: never;
|
|
4372
4671
|
fromIdentityPubKey?: string | null | undefined;
|
|
4672
|
+
appId?: string | null | undefined;
|
|
4373
4673
|
};
|
|
4374
4674
|
output: number;
|
|
4375
4675
|
meta: any;
|
|
@@ -4377,6 +4677,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4377
4677
|
unread: import("@trpc/server").TRPCMutationProcedure<{
|
|
4378
4678
|
input: {
|
|
4379
4679
|
fromIdentityPubKey?: string | null | undefined;
|
|
4680
|
+
appId?: string | null | undefined;
|
|
4380
4681
|
id: string;
|
|
4381
4682
|
};
|
|
4382
4683
|
output: {
|
|
@@ -4387,6 +4688,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4387
4688
|
updateDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
4388
4689
|
input: {
|
|
4389
4690
|
fromIdentityPubKey?: string | null | undefined;
|
|
4691
|
+
appId?: string | null | undefined;
|
|
4390
4692
|
id: string;
|
|
4391
4693
|
subject: string | null;
|
|
4392
4694
|
body: string | null;
|
|
@@ -5002,6 +5304,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5002
5304
|
groupOwnerPubKey: string;
|
|
5003
5305
|
encPriv: string;
|
|
5004
5306
|
sharedByPubKey: string;
|
|
5307
|
+
sharedToPubKey: string;
|
|
5005
5308
|
groupRole: "ADMIN" | "MEMBER";
|
|
5006
5309
|
})[];
|
|
5007
5310
|
};
|
|
@@ -5033,6 +5336,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5033
5336
|
groupOwnerPubKey: string;
|
|
5034
5337
|
encPriv: string;
|
|
5035
5338
|
sharedByPubKey: string;
|
|
5339
|
+
sharedToPubKey: string;
|
|
5036
5340
|
groupRole: "ADMIN" | "MEMBER";
|
|
5037
5341
|
})[] | null;
|
|
5038
5342
|
};
|
|
@@ -5872,6 +6176,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5872
6176
|
groupOwnerPubKey: string;
|
|
5873
6177
|
encPriv: string;
|
|
5874
6178
|
sharedByPubKey: string;
|
|
6179
|
+
sharedToPubKey: string;
|
|
5875
6180
|
groupRole: "ADMIN" | "MEMBER";
|
|
5876
6181
|
})[];
|
|
5877
6182
|
};
|
|
@@ -5882,10 +6187,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5882
6187
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
5883
6188
|
input: {
|
|
5884
6189
|
fromIdentityPubKey?: string | null | undefined;
|
|
6190
|
+
appId?: string | null | undefined;
|
|
5885
6191
|
id: string;
|
|
5886
6192
|
encPriv: string;
|
|
5887
6193
|
pubKey: string;
|
|
5888
|
-
fromPubKey: string;
|
|
5889
6194
|
role?: "ADMIN" | "MEMBER" | undefined;
|
|
5890
6195
|
};
|
|
5891
6196
|
output: {
|
|
@@ -5905,10 +6210,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5905
6210
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
5906
6211
|
input: {
|
|
5907
6212
|
fromIdentityPubKey?: string | null | undefined;
|
|
6213
|
+
appId?: string | null | undefined;
|
|
5908
6214
|
name: string;
|
|
5909
6215
|
encPriv: string;
|
|
5910
6216
|
pubKey: string;
|
|
5911
|
-
fromPubKey: string;
|
|
5912
6217
|
};
|
|
5913
6218
|
output: {
|
|
5914
6219
|
group: {
|
|
@@ -5972,6 +6277,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5972
6277
|
output: {
|
|
5973
6278
|
group: {
|
|
5974
6279
|
id: string;
|
|
6280
|
+
identityPubKey: string;
|
|
5975
6281
|
name: string;
|
|
5976
6282
|
};
|
|
5977
6283
|
};
|
|
@@ -5984,6 +6290,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5984
6290
|
output: {
|
|
5985
6291
|
groups: {
|
|
5986
6292
|
id: string;
|
|
6293
|
+
identityPubKey: string;
|
|
5987
6294
|
name: string;
|
|
5988
6295
|
}[];
|
|
5989
6296
|
};
|
|
@@ -6528,7 +6835,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6528
6835
|
encPriv: string;
|
|
6529
6836
|
}[];
|
|
6530
6837
|
};
|
|
6531
|
-
output:
|
|
6838
|
+
output: {};
|
|
6532
6839
|
meta: any;
|
|
6533
6840
|
}>;
|
|
6534
6841
|
changePassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -6627,7 +6934,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6627
6934
|
email: string;
|
|
6628
6935
|
phone: string;
|
|
6629
6936
|
};
|
|
6630
|
-
output:
|
|
6937
|
+
output: {};
|
|
6631
6938
|
meta: any;
|
|
6632
6939
|
}>;
|
|
6633
6940
|
sendCodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -6849,6 +7156,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6849
7156
|
addDataToHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
6850
7157
|
input: {
|
|
6851
7158
|
fromIdentityPubKey?: string | null | undefined;
|
|
7159
|
+
appId?: string | null | undefined;
|
|
6852
7160
|
dataId: string;
|
|
6853
7161
|
nodeId: string;
|
|
6854
7162
|
};
|
|
@@ -7051,9 +7359,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7051
7359
|
deleteData: import("@trpc/server").TRPCMutationProcedure<{
|
|
7052
7360
|
input: {
|
|
7053
7361
|
fromIdentityPubKey?: string | null | undefined;
|
|
7362
|
+
appId?: string | null | undefined;
|
|
7054
7363
|
dataId: string;
|
|
7055
7364
|
nodeId: string;
|
|
7056
|
-
appId?: string | null | undefined;
|
|
7057
7365
|
};
|
|
7058
7366
|
output: {
|
|
7059
7367
|
isDeleted: boolean;
|
|
@@ -7063,6 +7371,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7063
7371
|
dataById: import("@trpc/server").TRPCQueryProcedure<{
|
|
7064
7372
|
input: {
|
|
7065
7373
|
fromIdentityPubKey?: string | null | undefined;
|
|
7374
|
+
appId?: string | null | undefined;
|
|
7066
7375
|
id: string;
|
|
7067
7376
|
};
|
|
7068
7377
|
output: {
|
|
@@ -7092,6 +7401,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7092
7401
|
dataContentById: import("@trpc/server").TRPCQueryProcedure<{
|
|
7093
7402
|
input: {
|
|
7094
7403
|
fromIdentityPubKey?: string | null | undefined;
|
|
7404
|
+
appId?: string | null | undefined;
|
|
7095
7405
|
id: string;
|
|
7096
7406
|
};
|
|
7097
7407
|
output: {
|
|
@@ -7169,6 +7479,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7169
7479
|
dataContentByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
7170
7480
|
input: {
|
|
7171
7481
|
fromIdentityPubKey?: string | null | undefined;
|
|
7482
|
+
appId?: string | null | undefined;
|
|
7172
7483
|
ids: string[];
|
|
7173
7484
|
};
|
|
7174
7485
|
output: ({
|
|
@@ -7265,6 +7576,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7265
7576
|
saveInCloud: import("@trpc/server").TRPCMutationProcedure<{
|
|
7266
7577
|
input: {
|
|
7267
7578
|
fromIdentityPubKey?: string | null | undefined;
|
|
7579
|
+
appId?: string | null | undefined;
|
|
7268
7580
|
dataId: string;
|
|
7269
7581
|
nodeId: string | null;
|
|
7270
7582
|
key: string | null;
|
|
@@ -7546,6 +7858,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7546
7858
|
shareDataInHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
7547
7859
|
input: {
|
|
7548
7860
|
fromIdentityPubKey?: string | null | undefined;
|
|
7861
|
+
appId?: string | null | undefined;
|
|
7549
7862
|
dataId: string;
|
|
7550
7863
|
nodeId: string;
|
|
7551
7864
|
users: {
|
|
@@ -7618,6 +7931,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7618
7931
|
uploadColdData: import("@trpc/server").TRPCMutationProcedure<{
|
|
7619
7932
|
input: {
|
|
7620
7933
|
fromIdentityPubKey?: string | null | undefined;
|
|
7934
|
+
appId?: string | null | undefined;
|
|
7621
7935
|
size: bigint;
|
|
7622
7936
|
md5: string;
|
|
7623
7937
|
sizeEncrypted: bigint;
|
|
@@ -7628,6 +7942,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7628
7942
|
key?: string | undefined;
|
|
7629
7943
|
} | {
|
|
7630
7944
|
fromIdentityPubKey?: string | null | undefined;
|
|
7945
|
+
appId?: string | null | undefined;
|
|
7631
7946
|
size: bigint;
|
|
7632
7947
|
md5: string;
|
|
7633
7948
|
type: "unencrypted";
|
|
@@ -7799,6 +8114,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7799
8114
|
checkAccesses: import("@trpc/server").TRPCQueryProcedure<{
|
|
7800
8115
|
input: {
|
|
7801
8116
|
fromIdentityPubKey?: string | null | undefined;
|
|
8117
|
+
appId?: string | null | undefined;
|
|
7802
8118
|
accesses: {
|
|
7803
8119
|
pubKey: string;
|
|
7804
8120
|
nodes: ({
|
|
@@ -7859,6 +8175,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7859
8175
|
createFolder: import("@trpc/server").TRPCMutationProcedure<{
|
|
7860
8176
|
input: {
|
|
7861
8177
|
fromIdentityPubKey?: string | null | undefined;
|
|
8178
|
+
appId?: string | null | undefined;
|
|
7862
8179
|
nameKey: string | null;
|
|
7863
8180
|
name: string;
|
|
7864
8181
|
parentId: string | null;
|
|
@@ -8062,6 +8379,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8062
8379
|
deleteNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
8063
8380
|
input: {
|
|
8064
8381
|
fromIdentityPubKey?: string | null | undefined;
|
|
8382
|
+
appId?: string | null | undefined;
|
|
8065
8383
|
ids: string[];
|
|
8066
8384
|
};
|
|
8067
8385
|
output: {
|
|
@@ -8072,6 +8390,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8072
8390
|
deleteNodeSharing: import("@trpc/server").TRPCMutationProcedure<{
|
|
8073
8391
|
input: {
|
|
8074
8392
|
fromIdentityPubKey?: string | null | undefined;
|
|
8393
|
+
appId?: string | null | undefined;
|
|
8075
8394
|
nodeId: string;
|
|
8076
8395
|
destPubKey: string;
|
|
8077
8396
|
};
|
|
@@ -8083,9 +8402,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8083
8402
|
deleteNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8084
8403
|
input: {
|
|
8085
8404
|
fromIdentityPubKey?: string | null | undefined;
|
|
8405
|
+
appId?: string | null | undefined;
|
|
8086
8406
|
id: string;
|
|
8087
8407
|
force?: boolean | undefined;
|
|
8088
|
-
appId?: string | null | undefined;
|
|
8089
8408
|
};
|
|
8090
8409
|
output: {
|
|
8091
8410
|
isDeleted: boolean;
|
|
@@ -8095,6 +8414,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8095
8414
|
deleteNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
8096
8415
|
input: {
|
|
8097
8416
|
fromIdentityPubKey?: string | null | undefined;
|
|
8417
|
+
appId?: string | null | undefined;
|
|
8098
8418
|
ids: string[];
|
|
8099
8419
|
force?: boolean | undefined;
|
|
8100
8420
|
};
|
|
@@ -8106,6 +8426,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8106
8426
|
duplicateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8107
8427
|
input: {
|
|
8108
8428
|
fromIdentityPubKey?: string | null | undefined;
|
|
8429
|
+
appId?: string | null | undefined;
|
|
8109
8430
|
nodeId: string;
|
|
8110
8431
|
folderId: string | null;
|
|
8111
8432
|
name: string | null;
|
|
@@ -8117,8 +8438,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8117
8438
|
}>;
|
|
8118
8439
|
emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
8119
8440
|
input: {
|
|
8120
|
-
[x: string]: never;
|
|
8121
8441
|
fromIdentityPubKey?: string | null | undefined;
|
|
8442
|
+
appId?: string | null | undefined;
|
|
8122
8443
|
};
|
|
8123
8444
|
output: {
|
|
8124
8445
|
isCleaned: boolean;
|
|
@@ -8128,6 +8449,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8128
8449
|
moveNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
8129
8450
|
input: {
|
|
8130
8451
|
fromIdentityPubKey?: string | null | undefined;
|
|
8452
|
+
appId?: string | null | undefined;
|
|
8131
8453
|
ids: string[];
|
|
8132
8454
|
parentId: string | null;
|
|
8133
8455
|
};
|
|
@@ -8139,6 +8461,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8139
8461
|
nodeAccessById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8140
8462
|
input: {
|
|
8141
8463
|
fromIdentityPubKey?: string | null | undefined;
|
|
8464
|
+
appId?: string | null | undefined;
|
|
8142
8465
|
id: string;
|
|
8143
8466
|
};
|
|
8144
8467
|
output: {
|
|
@@ -8162,6 +8485,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8162
8485
|
nodeBreadcrumbById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8163
8486
|
input: {
|
|
8164
8487
|
fromIdentityPubKey?: string | null | undefined;
|
|
8488
|
+
appId?: string | null | undefined;
|
|
8165
8489
|
id: string;
|
|
8166
8490
|
};
|
|
8167
8491
|
output: {
|
|
@@ -8176,6 +8500,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8176
8500
|
nodeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8177
8501
|
input: {
|
|
8178
8502
|
fromIdentityPubKey?: string | null | undefined;
|
|
8503
|
+
appId?: string | null | undefined;
|
|
8179
8504
|
id?: string | null | undefined;
|
|
8180
8505
|
deleted?: boolean | null | undefined;
|
|
8181
8506
|
};
|
|
@@ -8230,9 +8555,70 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8230
8555
|
};
|
|
8231
8556
|
meta: any;
|
|
8232
8557
|
}>;
|
|
8558
|
+
nodeByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
8559
|
+
input: {
|
|
8560
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
8561
|
+
appId?: string | null | undefined;
|
|
8562
|
+
ids: string[];
|
|
8563
|
+
deleted?: boolean | null | undefined;
|
|
8564
|
+
};
|
|
8565
|
+
output: {
|
|
8566
|
+
nodes: ({
|
|
8567
|
+
id: string;
|
|
8568
|
+
createdAt: Date;
|
|
8569
|
+
deletedAt: Date | null;
|
|
8570
|
+
name: string;
|
|
8571
|
+
type: "FILE" | "FOLDER";
|
|
8572
|
+
updatedAt: Date;
|
|
8573
|
+
isFavorite: boolean;
|
|
8574
|
+
parentId: string | null;
|
|
8575
|
+
currentDataId: string | null;
|
|
8576
|
+
} & {
|
|
8577
|
+
owner: {
|
|
8578
|
+
userId: string;
|
|
8579
|
+
orgId: string;
|
|
8580
|
+
appId: string;
|
|
8581
|
+
};
|
|
8582
|
+
accesses: {
|
|
8583
|
+
rights: "delete" | "read" | "write";
|
|
8584
|
+
nameKey: string | null;
|
|
8585
|
+
isRoot: boolean;
|
|
8586
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8587
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8588
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8589
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8590
|
+
sharedByPubKey: string;
|
|
8591
|
+
identityPubKey: string;
|
|
8592
|
+
}[];
|
|
8593
|
+
permissions: {
|
|
8594
|
+
rights: "delete" | "read" | "write";
|
|
8595
|
+
} & {
|
|
8596
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8597
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8598
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8599
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8600
|
+
};
|
|
8601
|
+
identities: Record<string, {
|
|
8602
|
+
rights: "delete" | "read" | "write";
|
|
8603
|
+
} & {
|
|
8604
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8605
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8606
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8607
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8608
|
+
}>;
|
|
8609
|
+
} & {
|
|
8610
|
+
sizes: {
|
|
8611
|
+
size: bigint;
|
|
8612
|
+
sizeEncrypted: bigint;
|
|
8613
|
+
};
|
|
8614
|
+
})[];
|
|
8615
|
+
};
|
|
8616
|
+
meta: any;
|
|
8617
|
+
}>;
|
|
8233
8618
|
nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8234
8619
|
input: {
|
|
8235
8620
|
fromIdentityPubKey?: string | null | undefined;
|
|
8621
|
+
appId?: string | null | undefined;
|
|
8236
8622
|
id?: string | null | undefined;
|
|
8237
8623
|
deleted?: boolean | null | undefined;
|
|
8238
8624
|
};
|
|
@@ -8432,9 +8818,215 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8432
8818
|
};
|
|
8433
8819
|
meta: any;
|
|
8434
8820
|
}>;
|
|
8821
|
+
nodeFullByIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
8822
|
+
input: {
|
|
8823
|
+
fromIdentityPubKey?: string | null | undefined;
|
|
8824
|
+
appId?: string | null | undefined;
|
|
8825
|
+
ids: string[];
|
|
8826
|
+
deleted?: boolean | null | undefined;
|
|
8827
|
+
};
|
|
8828
|
+
output: {
|
|
8829
|
+
nodes: ({
|
|
8830
|
+
id: string;
|
|
8831
|
+
createdAt: Date;
|
|
8832
|
+
deletedAt: Date | null;
|
|
8833
|
+
name: string;
|
|
8834
|
+
type: "FILE" | "FOLDER";
|
|
8835
|
+
updatedAt: Date;
|
|
8836
|
+
isFavorite: boolean;
|
|
8837
|
+
parentId: string | null;
|
|
8838
|
+
currentDataId: string | null;
|
|
8839
|
+
} & {
|
|
8840
|
+
owner: {
|
|
8841
|
+
userId: string;
|
|
8842
|
+
orgId: string;
|
|
8843
|
+
appId: string;
|
|
8844
|
+
};
|
|
8845
|
+
accesses: {
|
|
8846
|
+
rights: "delete" | "read" | "write";
|
|
8847
|
+
nameKey: string | null;
|
|
8848
|
+
isRoot: boolean;
|
|
8849
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8850
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8851
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8852
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8853
|
+
sharedByPubKey: string;
|
|
8854
|
+
identityPubKey: string;
|
|
8855
|
+
}[];
|
|
8856
|
+
permissions: {
|
|
8857
|
+
rights: "delete" | "read" | "write";
|
|
8858
|
+
} & {
|
|
8859
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8860
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8861
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8862
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8863
|
+
};
|
|
8864
|
+
identities: Record<string, {
|
|
8865
|
+
rights: "delete" | "read" | "write";
|
|
8866
|
+
} & {
|
|
8867
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8868
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8869
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8870
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8871
|
+
}>;
|
|
8872
|
+
} & {
|
|
8873
|
+
sizes: {
|
|
8874
|
+
size: bigint;
|
|
8875
|
+
sizeEncrypted: bigint;
|
|
8876
|
+
};
|
|
8877
|
+
} & {
|
|
8878
|
+
parent: ({
|
|
8879
|
+
id: string;
|
|
8880
|
+
createdAt: Date;
|
|
8881
|
+
deletedAt: Date | null;
|
|
8882
|
+
name: string;
|
|
8883
|
+
type: "FILE" | "FOLDER";
|
|
8884
|
+
updatedAt: Date;
|
|
8885
|
+
isFavorite: boolean;
|
|
8886
|
+
parentId: string | null;
|
|
8887
|
+
currentDataId: string | null;
|
|
8888
|
+
} & {
|
|
8889
|
+
owner: {
|
|
8890
|
+
userId: string;
|
|
8891
|
+
orgId: string;
|
|
8892
|
+
appId: string;
|
|
8893
|
+
};
|
|
8894
|
+
accesses: {
|
|
8895
|
+
rights: "delete" | "read" | "write";
|
|
8896
|
+
nameKey: string | null;
|
|
8897
|
+
isRoot: boolean;
|
|
8898
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8899
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8900
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8901
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8902
|
+
sharedByPubKey: string;
|
|
8903
|
+
identityPubKey: string;
|
|
8904
|
+
}[];
|
|
8905
|
+
permissions: {
|
|
8906
|
+
rights: "delete" | "read" | "write";
|
|
8907
|
+
} & {
|
|
8908
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8909
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8910
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8911
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8912
|
+
};
|
|
8913
|
+
identities: Record<string, {
|
|
8914
|
+
rights: "delete" | "read" | "write";
|
|
8915
|
+
} & {
|
|
8916
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8917
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8918
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8919
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8920
|
+
}>;
|
|
8921
|
+
}) | null;
|
|
8922
|
+
children: ({
|
|
8923
|
+
id: string;
|
|
8924
|
+
createdAt: Date;
|
|
8925
|
+
deletedAt: Date | null;
|
|
8926
|
+
name: string;
|
|
8927
|
+
type: "FILE" | "FOLDER";
|
|
8928
|
+
updatedAt: Date;
|
|
8929
|
+
isFavorite: boolean;
|
|
8930
|
+
parentId: string | null;
|
|
8931
|
+
currentDataId: string | null;
|
|
8932
|
+
} & {
|
|
8933
|
+
owner: {
|
|
8934
|
+
userId: string;
|
|
8935
|
+
orgId: string;
|
|
8936
|
+
appId: string;
|
|
8937
|
+
};
|
|
8938
|
+
accesses: {
|
|
8939
|
+
rights: "delete" | "read" | "write";
|
|
8940
|
+
nameKey: string | null;
|
|
8941
|
+
isRoot: boolean;
|
|
8942
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8943
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8944
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8945
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8946
|
+
sharedByPubKey: string;
|
|
8947
|
+
identityPubKey: string;
|
|
8948
|
+
}[];
|
|
8949
|
+
permissions: {
|
|
8950
|
+
rights: "delete" | "read" | "write";
|
|
8951
|
+
} & {
|
|
8952
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8953
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8954
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8955
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8956
|
+
};
|
|
8957
|
+
identities: Record<string, {
|
|
8958
|
+
rights: "delete" | "read" | "write";
|
|
8959
|
+
} & {
|
|
8960
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
8961
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
8962
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
8963
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
8964
|
+
}>;
|
|
8965
|
+
} & {
|
|
8966
|
+
sizes: {
|
|
8967
|
+
size: bigint;
|
|
8968
|
+
sizeEncrypted: bigint;
|
|
8969
|
+
};
|
|
8970
|
+
})[];
|
|
8971
|
+
current: {
|
|
8972
|
+
id: string;
|
|
8973
|
+
storageType: "s3" | "cold" | "lite";
|
|
8974
|
+
size: bigint;
|
|
8975
|
+
prefix: string;
|
|
8976
|
+
sizeEncrypted: bigint | null;
|
|
8977
|
+
md5: string;
|
|
8978
|
+
md5Encrypted: string | null;
|
|
8979
|
+
mime: string | null;
|
|
8980
|
+
ext: string | null;
|
|
8981
|
+
createdAt: Date;
|
|
8982
|
+
validatedAt: Date | null;
|
|
8983
|
+
restoreSince: Date | null;
|
|
8984
|
+
createdByUserId: string | null;
|
|
8985
|
+
createdByAppId: string | null;
|
|
8986
|
+
createdByOrgId: string | null;
|
|
8987
|
+
access: {
|
|
8988
|
+
key: string | null;
|
|
8989
|
+
identityPubKey: string;
|
|
8990
|
+
sharedByPubKey: string;
|
|
8991
|
+
};
|
|
8992
|
+
} | null;
|
|
8993
|
+
history: {
|
|
8994
|
+
id: string;
|
|
8995
|
+
storageType: "s3" | "cold" | "lite";
|
|
8996
|
+
size: bigint;
|
|
8997
|
+
prefix: string;
|
|
8998
|
+
sizeEncrypted: bigint | null;
|
|
8999
|
+
md5: string;
|
|
9000
|
+
md5Encrypted: string | null;
|
|
9001
|
+
mime: string | null;
|
|
9002
|
+
ext: string | null;
|
|
9003
|
+
createdAt: Date;
|
|
9004
|
+
validatedAt: Date | null;
|
|
9005
|
+
restoreSince: Date | null;
|
|
9006
|
+
createdByUserId: string | null;
|
|
9007
|
+
createdByAppId: string | null;
|
|
9008
|
+
createdByOrgId: string | null;
|
|
9009
|
+
access: {
|
|
9010
|
+
key: string | null;
|
|
9011
|
+
identityPubKey: string;
|
|
9012
|
+
sharedByPubKey: string;
|
|
9013
|
+
};
|
|
9014
|
+
}[];
|
|
9015
|
+
breadcrumb: {
|
|
9016
|
+
id: string;
|
|
9017
|
+
name: string;
|
|
9018
|
+
identityPubKey: string;
|
|
9019
|
+
sharedByPubKey: string;
|
|
9020
|
+
nameKey: string | null;
|
|
9021
|
+
}[];
|
|
9022
|
+
})[];
|
|
9023
|
+
};
|
|
9024
|
+
meta: any;
|
|
9025
|
+
}>;
|
|
8435
9026
|
nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
|
|
8436
9027
|
input: {
|
|
8437
9028
|
fromIdentityPubKey?: string | null | undefined;
|
|
9029
|
+
appId?: string | null | undefined;
|
|
8438
9030
|
ids: string[];
|
|
8439
9031
|
};
|
|
8440
9032
|
output: {
|
|
@@ -8460,6 +9052,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8460
9052
|
nodeSizeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8461
9053
|
input: {
|
|
8462
9054
|
fromIdentityPubKey?: string | null | undefined;
|
|
9055
|
+
appId?: string | null | undefined;
|
|
8463
9056
|
id: string;
|
|
8464
9057
|
};
|
|
8465
9058
|
output: {
|
|
@@ -8470,8 +9063,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8470
9063
|
}>;
|
|
8471
9064
|
nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
8472
9065
|
input: {
|
|
8473
|
-
[x: string]: never;
|
|
8474
9066
|
fromIdentityPubKey?: string | null | undefined;
|
|
9067
|
+
appId?: string | null | undefined;
|
|
8475
9068
|
};
|
|
8476
9069
|
output: ({
|
|
8477
9070
|
id: string;
|
|
@@ -8522,6 +9115,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8522
9115
|
nodesSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
|
|
8523
9116
|
input: {
|
|
8524
9117
|
fromIdentityPubKey?: string | null | undefined;
|
|
9118
|
+
appId?: string | null | undefined;
|
|
8525
9119
|
type: "FILE" | "FOLDER";
|
|
8526
9120
|
};
|
|
8527
9121
|
output: ({
|
|
@@ -8573,6 +9167,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8573
9167
|
nodesShared: import("@trpc/server").TRPCQueryProcedure<{
|
|
8574
9168
|
input: {
|
|
8575
9169
|
fromIdentityPubKey?: string | null | undefined;
|
|
9170
|
+
appId?: string | null | undefined;
|
|
8576
9171
|
};
|
|
8577
9172
|
output: ({
|
|
8578
9173
|
id: string;
|
|
@@ -8623,6 +9218,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8623
9218
|
recoverNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8624
9219
|
input: {
|
|
8625
9220
|
fromIdentityPubKey?: string | null | undefined;
|
|
9221
|
+
appId?: string | null | undefined;
|
|
8626
9222
|
id: string;
|
|
8627
9223
|
};
|
|
8628
9224
|
output: {
|
|
@@ -8633,6 +9229,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8633
9229
|
shareNodeFinish: import("@trpc/server").TRPCMutationProcedure<{
|
|
8634
9230
|
input: {
|
|
8635
9231
|
fromIdentityPubKey?: string | null | undefined;
|
|
9232
|
+
appId?: string | null | undefined;
|
|
8636
9233
|
accesses: {
|
|
8637
9234
|
pubKey: string;
|
|
8638
9235
|
nodes: ({
|
|
@@ -8693,6 +9290,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8693
9290
|
shareNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8694
9291
|
input: {
|
|
8695
9292
|
fromIdentityPubKey?: string | null | undefined;
|
|
9293
|
+
appId?: string | null | undefined;
|
|
8696
9294
|
accesses: ({
|
|
8697
9295
|
nodeId: string;
|
|
8698
9296
|
pubKey: string;
|
|
@@ -8751,6 +9349,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8751
9349
|
updateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8752
9350
|
input: {
|
|
8753
9351
|
fromIdentityPubKey?: string | null | undefined;
|
|
9352
|
+
appId?: string | null | undefined;
|
|
8754
9353
|
id: string;
|
|
8755
9354
|
name: string | null;
|
|
8756
9355
|
isFavorite: boolean | null;
|
|
@@ -8955,6 +9554,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
8955
9554
|
leaveSharing: import("@trpc/server").TRPCMutationProcedure<{
|
|
8956
9555
|
input: {
|
|
8957
9556
|
fromIdentityPubKey?: string | null | undefined;
|
|
9557
|
+
appId?: string | null | undefined;
|
|
8958
9558
|
nodeId: string;
|
|
8959
9559
|
fromPubKey: string;
|
|
8960
9560
|
};
|
|
@@ -9957,6 +10557,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
9957
10557
|
createDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
9958
10558
|
input: {
|
|
9959
10559
|
fromIdentityPubKey?: string | null | undefined;
|
|
10560
|
+
appId?: string | null | undefined;
|
|
9960
10561
|
body: string;
|
|
9961
10562
|
subject: string;
|
|
9962
10563
|
hash: string;
|
|
@@ -10042,6 +10643,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10042
10643
|
deleteTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
10043
10644
|
input: {
|
|
10044
10645
|
fromIdentityPubKey?: string | null | undefined;
|
|
10646
|
+
appId?: string | null | undefined;
|
|
10045
10647
|
ids: string[];
|
|
10046
10648
|
};
|
|
10047
10649
|
output: {
|
|
@@ -10052,6 +10654,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10052
10654
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
10053
10655
|
input: {
|
|
10054
10656
|
fromIdentityPubKey?: string | null | undefined;
|
|
10657
|
+
appId?: string | null | undefined;
|
|
10055
10658
|
id: string;
|
|
10056
10659
|
};
|
|
10057
10660
|
output: {
|
|
@@ -10062,6 +10665,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10062
10665
|
deleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
10063
10666
|
input: {
|
|
10064
10667
|
fromIdentityPubKey?: string | null | undefined;
|
|
10668
|
+
appId?: string | null | undefined;
|
|
10065
10669
|
type: "sent" | "received";
|
|
10066
10670
|
};
|
|
10067
10671
|
output: ({
|
|
@@ -10195,8 +10799,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10195
10799
|
}>;
|
|
10196
10800
|
emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
10197
10801
|
input: {
|
|
10198
|
-
[x: string]: never;
|
|
10199
10802
|
fromIdentityPubKey?: string | null | undefined;
|
|
10803
|
+
appId?: string | null | undefined;
|
|
10200
10804
|
};
|
|
10201
10805
|
output: {
|
|
10202
10806
|
isDeleted: boolean;
|
|
@@ -10206,6 +10810,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10206
10810
|
read: import("@trpc/server").TRPCMutationProcedure<{
|
|
10207
10811
|
input: {
|
|
10208
10812
|
fromIdentityPubKey?: string | null | undefined;
|
|
10813
|
+
appId?: string | null | undefined;
|
|
10209
10814
|
id: string;
|
|
10210
10815
|
};
|
|
10211
10816
|
output: {
|
|
@@ -10216,6 +10821,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10216
10821
|
received: import("@trpc/server").TRPCQueryProcedure<{
|
|
10217
10822
|
input: {
|
|
10218
10823
|
fromIdentityPubKey?: string | null | undefined;
|
|
10824
|
+
appId?: string | null | undefined;
|
|
10219
10825
|
page?: number | undefined;
|
|
10220
10826
|
perPage?: number | undefined;
|
|
10221
10827
|
};
|
|
@@ -10284,6 +10890,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10284
10890
|
recover: import("@trpc/server").TRPCMutationProcedure<{
|
|
10285
10891
|
input: {
|
|
10286
10892
|
fromIdentityPubKey?: string | null | undefined;
|
|
10893
|
+
appId?: string | null | undefined;
|
|
10287
10894
|
id: string;
|
|
10288
10895
|
};
|
|
10289
10896
|
output: {
|
|
@@ -10414,8 +11021,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10414
11021
|
}>;
|
|
10415
11022
|
unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
|
|
10416
11023
|
input: {
|
|
10417
|
-
[x: string]: never;
|
|
10418
11024
|
fromIdentityPubKey?: string | null | undefined;
|
|
11025
|
+
appId?: string | null | undefined;
|
|
10419
11026
|
};
|
|
10420
11027
|
output: number;
|
|
10421
11028
|
meta: any;
|
|
@@ -10423,6 +11030,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10423
11030
|
unread: import("@trpc/server").TRPCMutationProcedure<{
|
|
10424
11031
|
input: {
|
|
10425
11032
|
fromIdentityPubKey?: string | null | undefined;
|
|
11033
|
+
appId?: string | null | undefined;
|
|
10426
11034
|
id: string;
|
|
10427
11035
|
};
|
|
10428
11036
|
output: {
|
|
@@ -10433,6 +11041,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
10433
11041
|
updateDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
10434
11042
|
input: {
|
|
10435
11043
|
fromIdentityPubKey?: string | null | undefined;
|
|
11044
|
+
appId?: string | null | undefined;
|
|
10436
11045
|
id: string;
|
|
10437
11046
|
subject: string | null;
|
|
10438
11047
|
body: string | null;
|
|
@@ -11048,6 +11657,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11048
11657
|
groupOwnerPubKey: string;
|
|
11049
11658
|
encPriv: string;
|
|
11050
11659
|
sharedByPubKey: string;
|
|
11660
|
+
sharedToPubKey: string;
|
|
11051
11661
|
groupRole: "ADMIN" | "MEMBER";
|
|
11052
11662
|
})[];
|
|
11053
11663
|
};
|
|
@@ -11079,6 +11689,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11079
11689
|
groupOwnerPubKey: string;
|
|
11080
11690
|
encPriv: string;
|
|
11081
11691
|
sharedByPubKey: string;
|
|
11692
|
+
sharedToPubKey: string;
|
|
11082
11693
|
groupRole: "ADMIN" | "MEMBER";
|
|
11083
11694
|
})[] | null;
|
|
11084
11695
|
};
|
|
@@ -11918,6 +12529,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11918
12529
|
groupOwnerPubKey: string;
|
|
11919
12530
|
encPriv: string;
|
|
11920
12531
|
sharedByPubKey: string;
|
|
12532
|
+
sharedToPubKey: string;
|
|
11921
12533
|
groupRole: "ADMIN" | "MEMBER";
|
|
11922
12534
|
})[];
|
|
11923
12535
|
};
|
|
@@ -11928,10 +12540,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11928
12540
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
11929
12541
|
input: {
|
|
11930
12542
|
fromIdentityPubKey?: string | null | undefined;
|
|
12543
|
+
appId?: string | null | undefined;
|
|
11931
12544
|
id: string;
|
|
11932
12545
|
encPriv: string;
|
|
11933
12546
|
pubKey: string;
|
|
11934
|
-
fromPubKey: string;
|
|
11935
12547
|
role?: "ADMIN" | "MEMBER" | undefined;
|
|
11936
12548
|
};
|
|
11937
12549
|
output: {
|
|
@@ -11951,10 +12563,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11951
12563
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
11952
12564
|
input: {
|
|
11953
12565
|
fromIdentityPubKey?: string | null | undefined;
|
|
12566
|
+
appId?: string | null | undefined;
|
|
11954
12567
|
name: string;
|
|
11955
12568
|
encPriv: string;
|
|
11956
12569
|
pubKey: string;
|
|
11957
|
-
fromPubKey: string;
|
|
11958
12570
|
};
|
|
11959
12571
|
output: {
|
|
11960
12572
|
group: {
|
|
@@ -12018,6 +12630,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12018
12630
|
output: {
|
|
12019
12631
|
group: {
|
|
12020
12632
|
id: string;
|
|
12633
|
+
identityPubKey: string;
|
|
12021
12634
|
name: string;
|
|
12022
12635
|
};
|
|
12023
12636
|
};
|
|
@@ -12030,6 +12643,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12030
12643
|
output: {
|
|
12031
12644
|
groups: {
|
|
12032
12645
|
id: string;
|
|
12646
|
+
identityPubKey: string;
|
|
12033
12647
|
name: string;
|
|
12034
12648
|
}[];
|
|
12035
12649
|
};
|