@secrecy/lib 1.77.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.
@@ -482,7 +482,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
482
482
  encPriv: string;
483
483
  }[];
484
484
  };
485
- output: Record<string, never>;
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: Record<string, never>;
584
+ output: {};
585
585
  meta: any;
586
586
  }>;
587
587
  sendCodes: import("@trpc/server").TRPCMutationProcedure<{
@@ -2085,7 +2085,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2085
2085
  }>;
2086
2086
  emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
2087
2087
  input: {
2088
- [x: string]: never;
2089
2088
  fromIdentityPubKey?: string | null | undefined;
2090
2089
  appId?: string | null | undefined;
2091
2090
  };
@@ -2203,6 +2202,66 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2203
2202
  };
2204
2203
  meta: any;
2205
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
+ }>;
2206
2265
  nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
2207
2266
  input: {
2208
2267
  fromIdentityPubKey?: string | null | undefined;
@@ -2406,6 +2465,211 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2406
2465
  };
2407
2466
  meta: any;
2408
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
+ }>;
2409
2673
  nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
2410
2674
  input: {
2411
2675
  fromIdentityPubKey?: string | null | undefined;
@@ -2446,7 +2710,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2446
2710
  }>;
2447
2711
  nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
2448
2712
  input: {
2449
- [x: string]: never;
2450
2713
  fromIdentityPubKey?: string | null | undefined;
2451
2714
  appId?: string | null | undefined;
2452
2715
  };
@@ -4183,7 +4446,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4183
4446
  }>;
4184
4447
  emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
4185
4448
  input: {
4186
- [x: string]: never;
4187
4449
  fromIdentityPubKey?: string | null | undefined;
4188
4450
  appId?: string | null | undefined;
4189
4451
  };
@@ -4406,7 +4668,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4406
4668
  }>;
4407
4669
  unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
4408
4670
  input: {
4409
- [x: string]: never;
4410
4671
  fromIdentityPubKey?: string | null | undefined;
4411
4672
  appId?: string | null | undefined;
4412
4673
  };
@@ -5043,6 +5304,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5043
5304
  groupOwnerPubKey: string;
5044
5305
  encPriv: string;
5045
5306
  sharedByPubKey: string;
5307
+ sharedToPubKey: string;
5046
5308
  groupRole: "ADMIN" | "MEMBER";
5047
5309
  })[];
5048
5310
  };
@@ -5074,6 +5336,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5074
5336
  groupOwnerPubKey: string;
5075
5337
  encPriv: string;
5076
5338
  sharedByPubKey: string;
5339
+ sharedToPubKey: string;
5077
5340
  groupRole: "ADMIN" | "MEMBER";
5078
5341
  })[] | null;
5079
5342
  };
@@ -5913,6 +6176,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5913
6176
  groupOwnerPubKey: string;
5914
6177
  encPriv: string;
5915
6178
  sharedByPubKey: string;
6179
+ sharedToPubKey: string;
5916
6180
  groupRole: "ADMIN" | "MEMBER";
5917
6181
  })[];
5918
6182
  };
@@ -5927,7 +6191,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5927
6191
  id: string;
5928
6192
  encPriv: string;
5929
6193
  pubKey: string;
5930
- fromPubKey: string;
5931
6194
  role?: "ADMIN" | "MEMBER" | undefined;
5932
6195
  };
5933
6196
  output: {
@@ -5951,7 +6214,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5951
6214
  name: string;
5952
6215
  encPriv: string;
5953
6216
  pubKey: string;
5954
- fromPubKey: string;
5955
6217
  };
5956
6218
  output: {
5957
6219
  group: {
@@ -6573,7 +6835,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6573
6835
  encPriv: string;
6574
6836
  }[];
6575
6837
  };
6576
- output: Record<string, never>;
6838
+ output: {};
6577
6839
  meta: any;
6578
6840
  }>;
6579
6841
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
@@ -6672,7 +6934,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6672
6934
  email: string;
6673
6935
  phone: string;
6674
6936
  };
6675
- output: Record<string, never>;
6937
+ output: {};
6676
6938
  meta: any;
6677
6939
  }>;
6678
6940
  sendCodes: import("@trpc/server").TRPCMutationProcedure<{
@@ -8176,7 +8438,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8176
8438
  }>;
8177
8439
  emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
8178
8440
  input: {
8179
- [x: string]: never;
8180
8441
  fromIdentityPubKey?: string | null | undefined;
8181
8442
  appId?: string | null | undefined;
8182
8443
  };
@@ -8294,6 +8555,66 @@ export declare const getTrpcGuestClient: ({ url }?: {
8294
8555
  };
8295
8556
  meta: any;
8296
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
+ }>;
8297
8618
  nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
8298
8619
  input: {
8299
8620
  fromIdentityPubKey?: string | null | undefined;
@@ -8497,6 +8818,211 @@ export declare const getTrpcGuestClient: ({ url }?: {
8497
8818
  };
8498
8819
  meta: any;
8499
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
+ }>;
8500
9026
  nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
8501
9027
  input: {
8502
9028
  fromIdentityPubKey?: string | null | undefined;
@@ -8537,7 +9063,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8537
9063
  }>;
8538
9064
  nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
8539
9065
  input: {
8540
- [x: string]: never;
8541
9066
  fromIdentityPubKey?: string | null | undefined;
8542
9067
  appId?: string | null | undefined;
8543
9068
  };
@@ -10274,7 +10799,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
10274
10799
  }>;
10275
10800
  emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
10276
10801
  input: {
10277
- [x: string]: never;
10278
10802
  fromIdentityPubKey?: string | null | undefined;
10279
10803
  appId?: string | null | undefined;
10280
10804
  };
@@ -10497,7 +11021,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
10497
11021
  }>;
10498
11022
  unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
10499
11023
  input: {
10500
- [x: string]: never;
10501
11024
  fromIdentityPubKey?: string | null | undefined;
10502
11025
  appId?: string | null | undefined;
10503
11026
  };
@@ -11134,6 +11657,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11134
11657
  groupOwnerPubKey: string;
11135
11658
  encPriv: string;
11136
11659
  sharedByPubKey: string;
11660
+ sharedToPubKey: string;
11137
11661
  groupRole: "ADMIN" | "MEMBER";
11138
11662
  })[];
11139
11663
  };
@@ -11165,6 +11689,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11165
11689
  groupOwnerPubKey: string;
11166
11690
  encPriv: string;
11167
11691
  sharedByPubKey: string;
11692
+ sharedToPubKey: string;
11168
11693
  groupRole: "ADMIN" | "MEMBER";
11169
11694
  })[] | null;
11170
11695
  };
@@ -12004,6 +12529,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12004
12529
  groupOwnerPubKey: string;
12005
12530
  encPriv: string;
12006
12531
  sharedByPubKey: string;
12532
+ sharedToPubKey: string;
12007
12533
  groupRole: "ADMIN" | "MEMBER";
12008
12534
  })[];
12009
12535
  };
@@ -12018,7 +12544,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12018
12544
  id: string;
12019
12545
  encPriv: string;
12020
12546
  pubKey: string;
12021
- fromPubKey: string;
12022
12547
  role?: "ADMIN" | "MEMBER" | undefined;
12023
12548
  };
12024
12549
  output: {
@@ -12042,7 +12567,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12042
12567
  name: string;
12043
12568
  encPriv: string;
12044
12569
  pubKey: string;
12045
- fromPubKey: string;
12046
12570
  };
12047
12571
  output: {
12048
12572
  group: {