@secrecy/lib 1.21.0 → 1.22.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.
|
@@ -23,6 +23,9 @@ export class SecrecyCloudClient {
|
|
|
23
23
|
this.#keys = keys;
|
|
24
24
|
this.#apiClient = apiClient;
|
|
25
25
|
}
|
|
26
|
+
async searchData(input) {
|
|
27
|
+
return await this.#apiClient.cloud.searchData.query(input);
|
|
28
|
+
}
|
|
26
29
|
async addFileToHistory({ fileId, nodeId, }) {
|
|
27
30
|
const addFileToHistory = await this.#apiClient.cloud.addFileToHistory.mutate({
|
|
28
31
|
fileId,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ProgressCallback, SecrecyClient } from '../index.js';
|
|
2
2
|
import type { FileMetadata, KeyPair, Node, NodeFull, NodeType, Rights } from './types/index.js';
|
|
3
|
-
import { type ApiClient } from '../client.js';
|
|
3
|
+
import { type RouterInputs, type ApiClient, type RouterOutputs } from '../client.js';
|
|
4
4
|
import { type DownloadProgress } from '../types.js';
|
|
5
5
|
export declare class SecrecyCloudClient {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(client: SecrecyClient, keys: KeyPair, apiClient: ApiClient);
|
|
8
|
+
searchData(input: RouterInputs['cloud']['searchData']): Promise<RouterOutputs['cloud']['searchData']>;
|
|
8
9
|
addFileToHistory({ fileId, nodeId, }: {
|
|
9
10
|
fileId: string;
|
|
10
11
|
nodeId: string;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2250,19 +2250,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2250
2250
|
}>;
|
|
2251
2251
|
_meta: object;
|
|
2252
2252
|
_ctx_out: {
|
|
2253
|
-
session:
|
|
2254
|
-
appId: string;
|
|
2255
|
-
appPlanId: string;
|
|
2256
|
-
appFakeUserId: string | undefined;
|
|
2257
|
-
sessionId: string;
|
|
2258
|
-
accountId: string;
|
|
2259
|
-
accountInfosId: string;
|
|
2260
|
-
accountRole: _prisma_client.$Enums.AccountRole;
|
|
2261
|
-
userId: string;
|
|
2262
|
-
userRole: _prisma_client.$Enums.UserRole;
|
|
2263
|
-
userPlan: _prisma_client.$Enums.PlanKind;
|
|
2264
|
-
isCare?: boolean | undefined;
|
|
2265
|
-
};
|
|
2253
|
+
session: SecrecySession;
|
|
2266
2254
|
req: {
|
|
2267
2255
|
headers: Headers;
|
|
2268
2256
|
body: ReadableStream<Uint8Array> | null;
|
|
@@ -2296,9 +2284,80 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2296
2284
|
ssNumber: string;
|
|
2297
2285
|
};
|
|
2298
2286
|
_output_in: {
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2287
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
2288
|
+
job: string;
|
|
2289
|
+
specialties: string[];
|
|
2290
|
+
} & {
|
|
2291
|
+
user: {
|
|
2292
|
+
id: string;
|
|
2293
|
+
lastname: string;
|
|
2294
|
+
firstname: string;
|
|
2295
|
+
avatar: string | null;
|
|
2296
|
+
isSearchable: boolean;
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
_output_out: {
|
|
2300
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
2301
|
+
job: string;
|
|
2302
|
+
specialties: string[];
|
|
2303
|
+
} & {
|
|
2304
|
+
user: {
|
|
2305
|
+
id: string;
|
|
2306
|
+
lastname: string;
|
|
2307
|
+
firstname: string;
|
|
2308
|
+
avatar: string | null;
|
|
2309
|
+
isSearchable: boolean;
|
|
2310
|
+
};
|
|
2311
|
+
};
|
|
2312
|
+
}, unknown>>;
|
|
2313
|
+
};
|
|
2314
|
+
update: {
|
|
2315
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
2316
|
+
_config: import("@trpc/server").RootConfig<{
|
|
2317
|
+
ctx: {
|
|
2318
|
+
req: {
|
|
2319
|
+
headers: Headers;
|
|
2320
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2321
|
+
};
|
|
2322
|
+
res: {
|
|
2323
|
+
headers: Headers;
|
|
2324
|
+
};
|
|
2325
|
+
session: any;
|
|
2326
|
+
locale: Locales;
|
|
2327
|
+
ls: TranslationFunctions;
|
|
2328
|
+
};
|
|
2329
|
+
meta: object;
|
|
2330
|
+
errorShape: {
|
|
2331
|
+
message: string;
|
|
2332
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2333
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2334
|
+
} | {
|
|
2335
|
+
data: {
|
|
2336
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2337
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
2338
|
+
httpStatus: number;
|
|
2339
|
+
path?: string | undefined;
|
|
2340
|
+
stack?: string | undefined;
|
|
2341
|
+
};
|
|
2342
|
+
message: string;
|
|
2343
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2344
|
+
};
|
|
2345
|
+
transformer: typeof superjson;
|
|
2346
|
+
}>;
|
|
2347
|
+
_meta: object;
|
|
2348
|
+
_ctx_out: {
|
|
2349
|
+
session: SecrecySession;
|
|
2350
|
+
req: {
|
|
2351
|
+
headers: Headers;
|
|
2352
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2353
|
+
};
|
|
2354
|
+
res: {
|
|
2355
|
+
headers: Headers;
|
|
2356
|
+
};
|
|
2357
|
+
locale: Locales;
|
|
2358
|
+
ls: TranslationFunctions;
|
|
2359
|
+
};
|
|
2360
|
+
_input_in: {
|
|
2302
2361
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2303
2362
|
job: string;
|
|
2304
2363
|
specialties: string[];
|
|
@@ -2309,10 +2368,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2309
2368
|
adeliNumber: string;
|
|
2310
2369
|
ssNumber: string;
|
|
2311
2370
|
};
|
|
2312
|
-
|
|
2313
|
-
userId: string;
|
|
2314
|
-
id: string;
|
|
2315
|
-
validated: boolean;
|
|
2371
|
+
_input_out: {
|
|
2316
2372
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2317
2373
|
job: string;
|
|
2318
2374
|
specialties: string[];
|
|
@@ -2323,6 +2379,88 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2323
2379
|
adeliNumber: string;
|
|
2324
2380
|
ssNumber: string;
|
|
2325
2381
|
};
|
|
2382
|
+
_output_in: {
|
|
2383
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
2384
|
+
job: string;
|
|
2385
|
+
specialties: string[];
|
|
2386
|
+
} & {
|
|
2387
|
+
user: {
|
|
2388
|
+
id: string;
|
|
2389
|
+
lastname: string;
|
|
2390
|
+
firstname: string;
|
|
2391
|
+
avatar: string | null;
|
|
2392
|
+
isSearchable: boolean;
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
_output_out: {
|
|
2396
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
2397
|
+
job: string;
|
|
2398
|
+
specialties: string[];
|
|
2399
|
+
} & {
|
|
2400
|
+
user: {
|
|
2401
|
+
id: string;
|
|
2402
|
+
lastname: string;
|
|
2403
|
+
firstname: string;
|
|
2404
|
+
avatar: string | null;
|
|
2405
|
+
isSearchable: boolean;
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
}, unknown>>;
|
|
2409
|
+
};
|
|
2410
|
+
delete: {
|
|
2411
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
2412
|
+
_config: import("@trpc/server").RootConfig<{
|
|
2413
|
+
ctx: {
|
|
2414
|
+
req: {
|
|
2415
|
+
headers: Headers;
|
|
2416
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2417
|
+
};
|
|
2418
|
+
res: {
|
|
2419
|
+
headers: Headers;
|
|
2420
|
+
};
|
|
2421
|
+
session: any;
|
|
2422
|
+
locale: Locales;
|
|
2423
|
+
ls: TranslationFunctions;
|
|
2424
|
+
};
|
|
2425
|
+
meta: object;
|
|
2426
|
+
errorShape: {
|
|
2427
|
+
message: string;
|
|
2428
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2429
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2430
|
+
} | {
|
|
2431
|
+
data: {
|
|
2432
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
2433
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
2434
|
+
httpStatus: number;
|
|
2435
|
+
path?: string | undefined;
|
|
2436
|
+
stack?: string | undefined;
|
|
2437
|
+
};
|
|
2438
|
+
message: string;
|
|
2439
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2440
|
+
};
|
|
2441
|
+
transformer: typeof superjson;
|
|
2442
|
+
}>;
|
|
2443
|
+
_meta: object;
|
|
2444
|
+
_ctx_out: {
|
|
2445
|
+
session: SecrecySession;
|
|
2446
|
+
req: {
|
|
2447
|
+
headers: Headers;
|
|
2448
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2449
|
+
};
|
|
2450
|
+
res: {
|
|
2451
|
+
headers: Headers;
|
|
2452
|
+
};
|
|
2453
|
+
locale: Locales;
|
|
2454
|
+
ls: TranslationFunctions;
|
|
2455
|
+
};
|
|
2456
|
+
_input_in: {};
|
|
2457
|
+
_input_out: {};
|
|
2458
|
+
_output_in: {
|
|
2459
|
+
success: boolean;
|
|
2460
|
+
};
|
|
2461
|
+
_output_out: {
|
|
2462
|
+
success: boolean;
|
|
2463
|
+
};
|
|
2326
2464
|
}, unknown>>;
|
|
2327
2465
|
};
|
|
2328
2466
|
get: {
|
|
@@ -2360,19 +2498,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2360
2498
|
}>;
|
|
2361
2499
|
_meta: object;
|
|
2362
2500
|
_ctx_out: {
|
|
2363
|
-
session:
|
|
2364
|
-
appId: string;
|
|
2365
|
-
appPlanId: string;
|
|
2366
|
-
appFakeUserId: string | undefined;
|
|
2367
|
-
sessionId: string;
|
|
2368
|
-
accountId: string;
|
|
2369
|
-
accountInfosId: string;
|
|
2370
|
-
accountRole: _prisma_client.$Enums.AccountRole;
|
|
2371
|
-
userId: string;
|
|
2372
|
-
userRole: _prisma_client.$Enums.UserRole;
|
|
2373
|
-
userPlan: _prisma_client.$Enums.PlanKind;
|
|
2374
|
-
isCare?: boolean | undefined;
|
|
2375
|
-
};
|
|
2501
|
+
session: SecrecySession;
|
|
2376
2502
|
req: {
|
|
2377
2503
|
headers: Headers;
|
|
2378
2504
|
body: ReadableStream<Uint8Array> | null;
|
|
@@ -2390,32 +2516,30 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2390
2516
|
id: string;
|
|
2391
2517
|
};
|
|
2392
2518
|
_output_in: {
|
|
2393
|
-
userId: string;
|
|
2394
|
-
id: string;
|
|
2395
|
-
validated: boolean;
|
|
2396
2519
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2397
2520
|
job: string;
|
|
2398
2521
|
specialties: string[];
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2522
|
+
} & {
|
|
2523
|
+
user: {
|
|
2524
|
+
id: string;
|
|
2525
|
+
lastname: string;
|
|
2526
|
+
firstname: string;
|
|
2527
|
+
avatar: string | null;
|
|
2528
|
+
isSearchable: boolean;
|
|
2529
|
+
};
|
|
2405
2530
|
};
|
|
2406
2531
|
_output_out: {
|
|
2407
|
-
userId: string;
|
|
2408
|
-
id: string;
|
|
2409
|
-
validated: boolean;
|
|
2410
2532
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2411
2533
|
job: string;
|
|
2412
2534
|
specialties: string[];
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2535
|
+
} & {
|
|
2536
|
+
user: {
|
|
2537
|
+
id: string;
|
|
2538
|
+
lastname: string;
|
|
2539
|
+
firstname: string;
|
|
2540
|
+
avatar: string | null;
|
|
2541
|
+
isSearchable: boolean;
|
|
2542
|
+
};
|
|
2419
2543
|
};
|
|
2420
2544
|
}, unknown>>;
|
|
2421
2545
|
};
|
|
@@ -2454,19 +2578,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2454
2578
|
}>;
|
|
2455
2579
|
_meta: object;
|
|
2456
2580
|
_ctx_out: {
|
|
2457
|
-
session:
|
|
2458
|
-
appId: string;
|
|
2459
|
-
appPlanId: string;
|
|
2460
|
-
appFakeUserId: string | undefined;
|
|
2461
|
-
sessionId: string;
|
|
2462
|
-
accountId: string;
|
|
2463
|
-
accountInfosId: string;
|
|
2464
|
-
accountRole: _prisma_client.$Enums.AccountRole;
|
|
2465
|
-
userId: string;
|
|
2466
|
-
userRole: _prisma_client.$Enums.UserRole;
|
|
2467
|
-
userPlan: _prisma_client.$Enums.PlanKind;
|
|
2468
|
-
isCare?: boolean | undefined;
|
|
2469
|
-
};
|
|
2581
|
+
session: SecrecySession;
|
|
2470
2582
|
req: {
|
|
2471
2583
|
headers: Headers;
|
|
2472
2584
|
body: ReadableStream<Uint8Array> | null;
|
|
@@ -2479,34 +2591,32 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
2479
2591
|
};
|
|
2480
2592
|
_input_in: {};
|
|
2481
2593
|
_input_out: {};
|
|
2482
|
-
_output_in: {
|
|
2483
|
-
userId: string;
|
|
2484
|
-
id: string;
|
|
2485
|
-
validated: boolean;
|
|
2594
|
+
_output_in: ({
|
|
2486
2595
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2487
2596
|
job: string;
|
|
2488
2597
|
specialties: string[];
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
validated: boolean;
|
|
2598
|
+
} & {
|
|
2599
|
+
user: {
|
|
2600
|
+
id: string;
|
|
2601
|
+
lastname: string;
|
|
2602
|
+
firstname: string;
|
|
2603
|
+
avatar: string | null;
|
|
2604
|
+
isSearchable: boolean;
|
|
2605
|
+
};
|
|
2606
|
+
})[];
|
|
2607
|
+
_output_out: ({
|
|
2500
2608
|
status: "active" | "inactive" | "retired" | "suspended";
|
|
2501
2609
|
job: string;
|
|
2502
2610
|
specialties: string[];
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2611
|
+
} & {
|
|
2612
|
+
user: {
|
|
2613
|
+
id: string;
|
|
2614
|
+
lastname: string;
|
|
2615
|
+
firstname: string;
|
|
2616
|
+
avatar: string | null;
|
|
2617
|
+
isSearchable: boolean;
|
|
2618
|
+
};
|
|
2619
|
+
})[];
|
|
2510
2620
|
}, unknown>>;
|
|
2511
2621
|
};
|
|
2512
2622
|
};
|
|
@@ -3078,20 +3188,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3078
3188
|
key: string;
|
|
3079
3189
|
type: "cloud";
|
|
3080
3190
|
md5: string;
|
|
3081
|
-
md5Encrypted: string;
|
|
3082
3191
|
parts: {
|
|
3083
3192
|
md5: string;
|
|
3084
3193
|
order: number;
|
|
3085
3194
|
contentUrl: string;
|
|
3086
3195
|
}[];
|
|
3196
|
+
md5Encrypted: string;
|
|
3087
3197
|
publicKey: string;
|
|
3088
3198
|
totalSize: bigint;
|
|
3089
3199
|
} | {
|
|
3090
3200
|
id: string;
|
|
3091
3201
|
key: string;
|
|
3092
3202
|
type: "lite";
|
|
3093
|
-
content: Buffer;
|
|
3094
3203
|
md5: string;
|
|
3204
|
+
content: Buffer;
|
|
3095
3205
|
md5Encrypted: string;
|
|
3096
3206
|
publicKey: string;
|
|
3097
3207
|
totalSize: bigint;
|
|
@@ -3128,20 +3238,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3128
3238
|
key: string;
|
|
3129
3239
|
type: "cloud";
|
|
3130
3240
|
md5: string;
|
|
3131
|
-
md5Encrypted: string;
|
|
3132
3241
|
parts: {
|
|
3133
3242
|
md5: string;
|
|
3134
3243
|
order: number;
|
|
3135
3244
|
contentUrl: string;
|
|
3136
3245
|
}[];
|
|
3246
|
+
md5Encrypted: string;
|
|
3137
3247
|
publicKey: string;
|
|
3138
3248
|
totalSize: bigint;
|
|
3139
3249
|
} | {
|
|
3140
3250
|
id: string;
|
|
3141
3251
|
key: string;
|
|
3142
3252
|
type: "lite";
|
|
3143
|
-
content: Buffer;
|
|
3144
3253
|
md5: string;
|
|
3254
|
+
content: Buffer;
|
|
3145
3255
|
md5Encrypted: string;
|
|
3146
3256
|
publicKey: string;
|
|
3147
3257
|
totalSize: bigint;
|
|
@@ -3232,20 +3342,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3232
3342
|
key: string;
|
|
3233
3343
|
type: "cloud";
|
|
3234
3344
|
md5: string;
|
|
3235
|
-
md5Encrypted: string;
|
|
3236
3345
|
parts: {
|
|
3237
3346
|
md5: string;
|
|
3238
3347
|
order: number;
|
|
3239
3348
|
contentUrl: string;
|
|
3240
3349
|
}[];
|
|
3350
|
+
md5Encrypted: string;
|
|
3241
3351
|
publicKey: string;
|
|
3242
3352
|
totalSize: bigint;
|
|
3243
3353
|
} | {
|
|
3244
3354
|
id: string;
|
|
3245
3355
|
key: string;
|
|
3246
3356
|
type: "lite";
|
|
3247
|
-
content: Buffer;
|
|
3248
3357
|
md5: string;
|
|
3358
|
+
content: Buffer;
|
|
3249
3359
|
md5Encrypted: string;
|
|
3250
3360
|
publicKey: string;
|
|
3251
3361
|
totalSize: bigint;
|
|
@@ -3282,20 +3392,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3282
3392
|
key: string;
|
|
3283
3393
|
type: "cloud";
|
|
3284
3394
|
md5: string;
|
|
3285
|
-
md5Encrypted: string;
|
|
3286
3395
|
parts: {
|
|
3287
3396
|
md5: string;
|
|
3288
3397
|
order: number;
|
|
3289
3398
|
contentUrl: string;
|
|
3290
3399
|
}[];
|
|
3400
|
+
md5Encrypted: string;
|
|
3291
3401
|
publicKey: string;
|
|
3292
3402
|
totalSize: bigint;
|
|
3293
3403
|
} | {
|
|
3294
3404
|
id: string;
|
|
3295
3405
|
key: string;
|
|
3296
3406
|
type: "lite";
|
|
3297
|
-
content: Buffer;
|
|
3298
3407
|
md5: string;
|
|
3408
|
+
content: Buffer;
|
|
3299
3409
|
md5Encrypted: string;
|
|
3300
3410
|
publicKey: string;
|
|
3301
3411
|
totalSize: bigint;
|
|
@@ -3702,6 +3812,150 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
3702
3812
|
};
|
|
3703
3813
|
}, unknown>>;
|
|
3704
3814
|
};
|
|
3815
|
+
searchData: {
|
|
3816
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
3817
|
+
_config: import("@trpc/server").RootConfig<{
|
|
3818
|
+
ctx: {
|
|
3819
|
+
req: {
|
|
3820
|
+
headers: Headers;
|
|
3821
|
+
body: ReadableStream<Uint8Array> | null;
|
|
3822
|
+
};
|
|
3823
|
+
res: {
|
|
3824
|
+
headers: Headers;
|
|
3825
|
+
};
|
|
3826
|
+
session: any;
|
|
3827
|
+
locale: Locales;
|
|
3828
|
+
ls: TranslationFunctions;
|
|
3829
|
+
};
|
|
3830
|
+
meta: object;
|
|
3831
|
+
errorShape: {
|
|
3832
|
+
message: string;
|
|
3833
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3834
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
3835
|
+
} | {
|
|
3836
|
+
data: {
|
|
3837
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
3838
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
3839
|
+
httpStatus: number;
|
|
3840
|
+
path?: string | undefined;
|
|
3841
|
+
stack?: string | undefined;
|
|
3842
|
+
};
|
|
3843
|
+
message: string;
|
|
3844
|
+
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3845
|
+
};
|
|
3846
|
+
transformer: typeof superjson;
|
|
3847
|
+
}>;
|
|
3848
|
+
_meta: object;
|
|
3849
|
+
_ctx_out: {
|
|
3850
|
+
session: SecrecySession;
|
|
3851
|
+
req: {
|
|
3852
|
+
headers: Headers;
|
|
3853
|
+
body: ReadableStream<Uint8Array> | null;
|
|
3854
|
+
};
|
|
3855
|
+
res: {
|
|
3856
|
+
headers: Headers;
|
|
3857
|
+
};
|
|
3858
|
+
locale: Locales;
|
|
3859
|
+
ls: TranslationFunctions;
|
|
3860
|
+
};
|
|
3861
|
+
_input_in: {
|
|
3862
|
+
page?: number | undefined;
|
|
3863
|
+
pageItems?: number | undefined;
|
|
3864
|
+
filters?: {
|
|
3865
|
+
orderBy?: {
|
|
3866
|
+
type: "size" | "createdAt" | "updatedAt" | "sharedCount";
|
|
3867
|
+
order: "desc" | "asc";
|
|
3868
|
+
} | undefined;
|
|
3869
|
+
createdAt?: {
|
|
3870
|
+
max?: Date | undefined;
|
|
3871
|
+
min?: Date | undefined;
|
|
3872
|
+
} | undefined;
|
|
3873
|
+
updatedAt?: {
|
|
3874
|
+
max?: Date | undefined;
|
|
3875
|
+
min?: Date | undefined;
|
|
3876
|
+
} | undefined;
|
|
3877
|
+
size?: {
|
|
3878
|
+
max?: number | undefined;
|
|
3879
|
+
min?: number | undefined;
|
|
3880
|
+
} | undefined;
|
|
3881
|
+
appIds?: string[] | undefined;
|
|
3882
|
+
sharedCount?: {
|
|
3883
|
+
max?: number | undefined;
|
|
3884
|
+
min?: number | undefined;
|
|
3885
|
+
} | undefined;
|
|
3886
|
+
} | undefined;
|
|
3887
|
+
};
|
|
3888
|
+
_input_out: {
|
|
3889
|
+
page?: number | undefined;
|
|
3890
|
+
pageItems?: number | undefined;
|
|
3891
|
+
filters?: {
|
|
3892
|
+
orderBy?: {
|
|
3893
|
+
type: "size" | "createdAt" | "updatedAt" | "sharedCount";
|
|
3894
|
+
order: "desc" | "asc";
|
|
3895
|
+
} | undefined;
|
|
3896
|
+
createdAt?: {
|
|
3897
|
+
max?: Date | undefined;
|
|
3898
|
+
min?: Date | undefined;
|
|
3899
|
+
} | undefined;
|
|
3900
|
+
updatedAt?: {
|
|
3901
|
+
max?: Date | undefined;
|
|
3902
|
+
min?: Date | undefined;
|
|
3903
|
+
} | undefined;
|
|
3904
|
+
size?: {
|
|
3905
|
+
max?: number | undefined;
|
|
3906
|
+
min?: number | undefined;
|
|
3907
|
+
} | undefined;
|
|
3908
|
+
appIds?: string[] | undefined;
|
|
3909
|
+
sharedCount?: {
|
|
3910
|
+
max?: number | undefined;
|
|
3911
|
+
min?: number | undefined;
|
|
3912
|
+
} | undefined;
|
|
3913
|
+
} | undefined;
|
|
3914
|
+
};
|
|
3915
|
+
_output_in: {
|
|
3916
|
+
nodes: {
|
|
3917
|
+
id: string;
|
|
3918
|
+
createdAt: Date;
|
|
3919
|
+
deletedAt: Date | null;
|
|
3920
|
+
name: string;
|
|
3921
|
+
updatedAt: Date;
|
|
3922
|
+
type: "scaleway" | "mongo";
|
|
3923
|
+
size: bigint;
|
|
3924
|
+
access: {
|
|
3925
|
+
appId: string;
|
|
3926
|
+
nameKey: string;
|
|
3927
|
+
};
|
|
3928
|
+
sharedCount: number;
|
|
3929
|
+
}[];
|
|
3930
|
+
keyPairs: {
|
|
3931
|
+
appId: string;
|
|
3932
|
+
pub: string;
|
|
3933
|
+
encPriv: string;
|
|
3934
|
+
}[];
|
|
3935
|
+
};
|
|
3936
|
+
_output_out: {
|
|
3937
|
+
nodes: {
|
|
3938
|
+
id: string;
|
|
3939
|
+
createdAt: Date;
|
|
3940
|
+
deletedAt: Date | null;
|
|
3941
|
+
name: string;
|
|
3942
|
+
updatedAt: Date;
|
|
3943
|
+
type: "scaleway" | "mongo";
|
|
3944
|
+
size: bigint;
|
|
3945
|
+
access: {
|
|
3946
|
+
appId: string;
|
|
3947
|
+
nameKey: string;
|
|
3948
|
+
};
|
|
3949
|
+
sharedCount: number;
|
|
3950
|
+
}[];
|
|
3951
|
+
keyPairs: {
|
|
3952
|
+
appId: string;
|
|
3953
|
+
pub: string;
|
|
3954
|
+
encPriv: string;
|
|
3955
|
+
}[];
|
|
3956
|
+
};
|
|
3957
|
+
}, unknown>>;
|
|
3958
|
+
};
|
|
3705
3959
|
shareFileInHistory: {
|
|
3706
3960
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
3707
3961
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -4024,16 +4278,16 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
4024
4278
|
};
|
|
4025
4279
|
_input_in: {
|
|
4026
4280
|
fileSize: bigint;
|
|
4027
|
-
content: Buffer;
|
|
4028
4281
|
md5: string;
|
|
4282
|
+
content: Buffer;
|
|
4029
4283
|
md5Encrypted: string;
|
|
4030
4284
|
fileKey: string;
|
|
4031
4285
|
fileSizeBefore: bigint;
|
|
4032
4286
|
};
|
|
4033
4287
|
_input_out: {
|
|
4034
4288
|
fileSize: bigint;
|
|
4035
|
-
content: Buffer;
|
|
4036
4289
|
md5: string;
|
|
4290
|
+
content: Buffer;
|
|
4037
4291
|
md5Encrypted: string;
|
|
4038
4292
|
fileKey: string;
|
|
4039
4293
|
fileSizeBefore: bigint;
|
|
@@ -5876,11 +6130,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5876
6130
|
userId: string;
|
|
5877
6131
|
nodes: {
|
|
5878
6132
|
id: string;
|
|
6133
|
+
nameKey: string | null;
|
|
5879
6134
|
files: {
|
|
5880
6135
|
id: string;
|
|
5881
6136
|
key: string;
|
|
5882
6137
|
}[];
|
|
5883
|
-
nameKey: string | null;
|
|
5884
6138
|
}[];
|
|
5885
6139
|
rights: "admin" | "write" | "read";
|
|
5886
6140
|
};
|
|
@@ -5888,11 +6142,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5888
6142
|
userId: string;
|
|
5889
6143
|
nodes: {
|
|
5890
6144
|
id: string;
|
|
6145
|
+
nameKey: string | null;
|
|
5891
6146
|
files: {
|
|
5892
6147
|
id: string;
|
|
5893
6148
|
key: string;
|
|
5894
6149
|
}[];
|
|
5895
|
-
nameKey: string | null;
|
|
5896
6150
|
}[];
|
|
5897
6151
|
rights: "admin" | "write" | "read";
|
|
5898
6152
|
};
|
|
@@ -7981,14 +8235,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
7981
8235
|
_input_in: {
|
|
7982
8236
|
appId?: string | undefined;
|
|
7983
8237
|
} & {
|
|
7984
|
-
limit?: number | undefined;
|
|
7985
8238
|
cursor?: string | undefined;
|
|
8239
|
+
limit?: number | undefined;
|
|
7986
8240
|
};
|
|
7987
8241
|
_input_out: {
|
|
7988
8242
|
appId?: string | undefined;
|
|
7989
8243
|
} & {
|
|
7990
|
-
limit?: number | undefined;
|
|
7991
8244
|
cursor?: string | undefined;
|
|
8245
|
+
limit?: number | undefined;
|
|
7992
8246
|
};
|
|
7993
8247
|
_output_in: {
|
|
7994
8248
|
operations: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.22.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@secrecy/lib-utils": "^1.0.18",
|
|
77
|
-
"@secrecy/trpc-api-types": "1.24.0-feat-
|
|
77
|
+
"@secrecy/trpc-api-types": "1.24.0-feat-search-cloud-data.1",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|