@secrecy/lib 1.77.0 → 1.79.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<{
@@ -1539,6 +1539,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1539
1539
  type: "encrypted";
1540
1540
  mime?: string | undefined;
1541
1541
  ext?: string | undefined;
1542
+ fromIdentityPubKey?: string | null | undefined;
1542
1543
  key?: string | undefined;
1543
1544
  } | {
1544
1545
  size: bigint;
@@ -1546,6 +1547,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1546
1547
  type: "unencrypted";
1547
1548
  mime?: string | undefined;
1548
1549
  ext?: string | undefined;
1550
+ fromIdentityPubKey?: string | null | undefined;
1549
1551
  };
1550
1552
  output: {
1551
1553
  type: "authed";
@@ -1634,6 +1636,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1634
1636
  content: Uint8Array<ArrayBuffer>;
1635
1637
  mime?: string | undefined;
1636
1638
  ext?: string | undefined;
1639
+ fromIdentityPubKey?: string | null | undefined;
1637
1640
  key?: string | undefined;
1638
1641
  } | {
1639
1642
  size: bigint;
@@ -1642,6 +1645,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1642
1645
  content: Uint8Array<ArrayBuffer>;
1643
1646
  mime?: string | undefined;
1644
1647
  ext?: string | undefined;
1648
+ fromIdentityPubKey?: string | null | undefined;
1645
1649
  };
1646
1650
  output: {
1647
1651
  type: "authed";
@@ -2085,7 +2089,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2085
2089
  }>;
2086
2090
  emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
2087
2091
  input: {
2088
- [x: string]: never;
2089
2092
  fromIdentityPubKey?: string | null | undefined;
2090
2093
  appId?: string | null | undefined;
2091
2094
  };
@@ -2203,6 +2206,66 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2203
2206
  };
2204
2207
  meta: any;
2205
2208
  }>;
2209
+ nodeByIds: import("@trpc/server").TRPCQueryProcedure<{
2210
+ input: {
2211
+ fromIdentityPubKey?: string | null | undefined;
2212
+ appId?: string | null | undefined;
2213
+ ids: string[];
2214
+ deleted?: boolean | null | undefined;
2215
+ };
2216
+ output: {
2217
+ nodes: ({
2218
+ id: string;
2219
+ createdAt: Date;
2220
+ deletedAt: Date | null;
2221
+ name: string;
2222
+ type: "FILE" | "FOLDER";
2223
+ updatedAt: Date;
2224
+ isFavorite: boolean;
2225
+ parentId: string | null;
2226
+ currentDataId: string | null;
2227
+ } & {
2228
+ owner: {
2229
+ userId: string;
2230
+ orgId: string;
2231
+ appId: string;
2232
+ };
2233
+ accesses: {
2234
+ rights: "delete" | "read" | "write";
2235
+ nameKey: string | null;
2236
+ isRoot: boolean;
2237
+ addAccess: "delete" | "read" | "write" | null;
2238
+ sharingAddAccess: "delete" | "read" | "write" | null;
2239
+ delAccess: "delete" | "read" | "write" | null;
2240
+ sharingDelAccess: "delete" | "read" | "write" | null;
2241
+ sharedByPubKey: string;
2242
+ identityPubKey: string;
2243
+ }[];
2244
+ permissions: {
2245
+ rights: "delete" | "read" | "write";
2246
+ } & {
2247
+ addAccess: "delete" | "read" | "write" | null;
2248
+ sharingAddAccess: "delete" | "read" | "write" | null;
2249
+ delAccess: "delete" | "read" | "write" | null;
2250
+ sharingDelAccess: "delete" | "read" | "write" | null;
2251
+ };
2252
+ identities: Record<string, {
2253
+ rights: "delete" | "read" | "write";
2254
+ } & {
2255
+ addAccess: "delete" | "read" | "write" | null;
2256
+ sharingAddAccess: "delete" | "read" | "write" | null;
2257
+ delAccess: "delete" | "read" | "write" | null;
2258
+ sharingDelAccess: "delete" | "read" | "write" | null;
2259
+ }>;
2260
+ } & {
2261
+ sizes: {
2262
+ size: bigint;
2263
+ sizeEncrypted: bigint;
2264
+ };
2265
+ })[];
2266
+ };
2267
+ meta: any;
2268
+ }>;
2206
2269
  nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
2207
2270
  input: {
2208
2271
  fromIdentityPubKey?: string | null | undefined;
@@ -2406,6 +2469,211 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2406
2469
  };
2407
2470
  meta: any;
2408
2471
  }>;
2472
+ nodeFullByIds: import("@trpc/server").TRPCQueryProcedure<{
2473
+ input: {
2474
+ fromIdentityPubKey?: string | null | undefined;
2475
+ appId?: string | null | undefined;
2476
+ ids: string[];
2477
+ deleted?: boolean | null | undefined;
2478
+ };
2479
+ output: {
2480
+ nodes: ({
2481
+ id: string;
2482
+ createdAt: Date;
2483
+ deletedAt: Date | null;
2484
+ name: string;
2485
+ type: "FILE" | "FOLDER";
2486
+ updatedAt: Date;
2487
+ isFavorite: boolean;
2488
+ parentId: string | null;
2489
+ currentDataId: string | null;
2490
+ } & {
2491
+ owner: {
2492
+ userId: string;
2493
+ orgId: string;
2494
+ appId: string;
2495
+ };
2496
+ accesses: {
2497
+ rights: "delete" | "read" | "write";
2498
+ nameKey: string | null;
2499
+ isRoot: boolean;
2500
+ addAccess: "delete" | "read" | "write" | null;
2501
+ sharingAddAccess: "delete" | "read" | "write" | null;
2502
+ delAccess: "delete" | "read" | "write" | null;
2503
+ sharingDelAccess: "delete" | "read" | "write" | null;
2504
+ sharedByPubKey: string;
2505
+ identityPubKey: string;
2506
+ }[];
2507
+ permissions: {
2508
+ rights: "delete" | "read" | "write";
2509
+ } & {
2510
+ addAccess: "delete" | "read" | "write" | null;
2511
+ sharingAddAccess: "delete" | "read" | "write" | null;
2512
+ delAccess: "delete" | "read" | "write" | null;
2513
+ sharingDelAccess: "delete" | "read" | "write" | null;
2514
+ };
2515
+ identities: Record<string, {
2516
+ rights: "delete" | "read" | "write";
2517
+ } & {
2518
+ addAccess: "delete" | "read" | "write" | null;
2519
+ sharingAddAccess: "delete" | "read" | "write" | null;
2520
+ delAccess: "delete" | "read" | "write" | null;
2521
+ sharingDelAccess: "delete" | "read" | "write" | null;
2522
+ }>;
2523
+ } & {
2524
+ sizes: {
2525
+ size: bigint;
2526
+ sizeEncrypted: bigint;
2527
+ };
2528
+ } & {
2529
+ parent: ({
2530
+ id: string;
2531
+ createdAt: Date;
2532
+ deletedAt: Date | null;
2533
+ name: string;
2534
+ type: "FILE" | "FOLDER";
2535
+ updatedAt: Date;
2536
+ isFavorite: boolean;
2537
+ parentId: string | null;
2538
+ currentDataId: string | null;
2539
+ } & {
2540
+ owner: {
2541
+ userId: string;
2542
+ orgId: string;
2543
+ appId: string;
2544
+ };
2545
+ accesses: {
2546
+ rights: "delete" | "read" | "write";
2547
+ nameKey: string | null;
2548
+ isRoot: boolean;
2549
+ addAccess: "delete" | "read" | "write" | null;
2550
+ sharingAddAccess: "delete" | "read" | "write" | null;
2551
+ delAccess: "delete" | "read" | "write" | null;
2552
+ sharingDelAccess: "delete" | "read" | "write" | null;
2553
+ sharedByPubKey: string;
2554
+ identityPubKey: string;
2555
+ }[];
2556
+ permissions: {
2557
+ rights: "delete" | "read" | "write";
2558
+ } & {
2559
+ addAccess: "delete" | "read" | "write" | null;
2560
+ sharingAddAccess: "delete" | "read" | "write" | null;
2561
+ delAccess: "delete" | "read" | "write" | null;
2562
+ sharingDelAccess: "delete" | "read" | "write" | null;
2563
+ };
2564
+ identities: Record<string, {
2565
+ rights: "delete" | "read" | "write";
2566
+ } & {
2567
+ addAccess: "delete" | "read" | "write" | null;
2568
+ sharingAddAccess: "delete" | "read" | "write" | null;
2569
+ delAccess: "delete" | "read" | "write" | null;
2570
+ sharingDelAccess: "delete" | "read" | "write" | null;
2571
+ }>;
2572
+ }) | null;
2573
+ children: ({
2574
+ id: string;
2575
+ createdAt: Date;
2576
+ deletedAt: Date | null;
2577
+ name: string;
2578
+ type: "FILE" | "FOLDER";
2579
+ updatedAt: Date;
2580
+ isFavorite: boolean;
2581
+ parentId: string | null;
2582
+ currentDataId: string | null;
2583
+ } & {
2584
+ owner: {
2585
+ userId: string;
2586
+ orgId: string;
2587
+ appId: string;
2588
+ };
2589
+ accesses: {
2590
+ rights: "delete" | "read" | "write";
2591
+ nameKey: string | null;
2592
+ isRoot: boolean;
2593
+ addAccess: "delete" | "read" | "write" | null;
2594
+ sharingAddAccess: "delete" | "read" | "write" | null;
2595
+ delAccess: "delete" | "read" | "write" | null;
2596
+ sharingDelAccess: "delete" | "read" | "write" | null;
2597
+ sharedByPubKey: string;
2598
+ identityPubKey: string;
2599
+ }[];
2600
+ permissions: {
2601
+ rights: "delete" | "read" | "write";
2602
+ } & {
2603
+ addAccess: "delete" | "read" | "write" | null;
2604
+ sharingAddAccess: "delete" | "read" | "write" | null;
2605
+ delAccess: "delete" | "read" | "write" | null;
2606
+ sharingDelAccess: "delete" | "read" | "write" | null;
2607
+ };
2608
+ identities: Record<string, {
2609
+ rights: "delete" | "read" | "write";
2610
+ } & {
2611
+ addAccess: "delete" | "read" | "write" | null;
2612
+ sharingAddAccess: "delete" | "read" | "write" | null;
2613
+ delAccess: "delete" | "read" | "write" | null;
2614
+ sharingDelAccess: "delete" | "read" | "write" | null;
2615
+ }>;
2616
+ } & {
2617
+ sizes: {
2618
+ size: bigint;
2619
+ sizeEncrypted: bigint;
2620
+ };
2621
+ })[];
2622
+ current: {
2623
+ id: string;
2624
+ storageType: "s3" | "cold" | "lite";
2625
+ size: bigint;
2626
+ prefix: string;
2627
+ sizeEncrypted: bigint | null;
2628
+ md5: string;
2629
+ md5Encrypted: string | null;
2630
+ mime: string | null;
2631
+ ext: string | null;
2632
+ createdAt: Date;
2633
+ validatedAt: Date | null;
2634
+ restoreSince: Date | null;
2635
+ createdByUserId: string | null;
2636
+ createdByAppId: string | null;
2637
+ createdByOrgId: string | null;
2638
+ access: {
2639
+ key: string | null;
2640
+ identityPubKey: string;
2641
+ sharedByPubKey: string;
2642
+ };
2643
+ } | null;
2644
+ history: {
2645
+ id: string;
2646
+ storageType: "s3" | "cold" | "lite";
2647
+ size: bigint;
2648
+ prefix: string;
2649
+ sizeEncrypted: bigint | null;
2650
+ md5: string;
2651
+ md5Encrypted: string | null;
2652
+ mime: string | null;
2653
+ ext: string | null;
2654
+ createdAt: Date;
2655
+ validatedAt: Date | null;
2656
+ restoreSince: Date | null;
2657
+ createdByUserId: string | null;
2658
+ createdByAppId: string | null;
2659
+ createdByOrgId: string | null;
2660
+ access: {
2661
+ key: string | null;
2662
+ identityPubKey: string;
2663
+ sharedByPubKey: string;
2664
+ };
2665
+ }[];
2666
+ breadcrumb: {
2667
+ id: string;
2668
+ name: string;
2669
+ identityPubKey: string;
2670
+ sharedByPubKey: string;
2671
+ nameKey: string | null;
2672
+ }[];
2673
+ })[];
2674
+ };
2675
+ meta: any;
2676
+ }>;
2409
2677
  nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
2410
2678
  input: {
2411
2679
  fromIdentityPubKey?: string | null | undefined;
@@ -2446,7 +2714,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2446
2714
  }>;
2447
2715
  nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
2448
2716
  input: {
2449
- [x: string]: never;
2450
2717
  fromIdentityPubKey?: string | null | undefined;
2451
2718
  appId?: string | null | undefined;
2452
2719
  };
@@ -4183,7 +4450,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4183
4450
  }>;
4184
4451
  emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
4185
4452
  input: {
4186
- [x: string]: never;
4187
4453
  fromIdentityPubKey?: string | null | undefined;
4188
4454
  appId?: string | null | undefined;
4189
4455
  };
@@ -4406,7 +4672,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4406
4672
  }>;
4407
4673
  unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
4408
4674
  input: {
4409
- [x: string]: never;
4410
4675
  fromIdentityPubKey?: string | null | undefined;
4411
4676
  appId?: string | null | undefined;
4412
4677
  };
@@ -5043,6 +5308,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5043
5308
  groupOwnerPubKey: string;
5044
5309
  encPriv: string;
5045
5310
  sharedByPubKey: string;
5311
+ sharedToPubKey: string;
5046
5312
  groupRole: "ADMIN" | "MEMBER";
5047
5313
  })[];
5048
5314
  };
@@ -5074,6 +5340,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5074
5340
  groupOwnerPubKey: string;
5075
5341
  encPriv: string;
5076
5342
  sharedByPubKey: string;
5343
+ sharedToPubKey: string;
5077
5344
  groupRole: "ADMIN" | "MEMBER";
5078
5345
  })[] | null;
5079
5346
  };
@@ -5913,6 +6180,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5913
6180
  groupOwnerPubKey: string;
5914
6181
  encPriv: string;
5915
6182
  sharedByPubKey: string;
6183
+ sharedToPubKey: string;
5916
6184
  groupRole: "ADMIN" | "MEMBER";
5917
6185
  })[];
5918
6186
  };
@@ -5927,7 +6195,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5927
6195
  id: string;
5928
6196
  encPriv: string;
5929
6197
  pubKey: string;
5930
- fromPubKey: string;
5931
6198
  role?: "ADMIN" | "MEMBER" | undefined;
5932
6199
  };
5933
6200
  output: {
@@ -5951,7 +6218,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5951
6218
  name: string;
5952
6219
  encPriv: string;
5953
6220
  pubKey: string;
5954
- fromPubKey: string;
5955
6221
  };
5956
6222
  output: {
5957
6223
  group: {
@@ -5965,6 +6231,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5965
6231
  applicationId: string | null;
5966
6232
  initiatorAppId: string;
5967
6233
  initiatorUserId: string;
6234
+ rootNodeId: string;
5968
6235
  };
5969
6236
  };
5970
6237
  meta: any;
@@ -6004,6 +6271,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
6004
6271
  applicationId: string | null;
6005
6272
  initiatorAppId: string;
6006
6273
  initiatorUserId: string;
6274
+ rootNodeId: string;
6007
6275
  };
6008
6276
  };
6009
6277
  meta: any;
@@ -6051,6 +6319,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
6051
6319
  applicationId: string | null;
6052
6320
  initiatorAppId: string;
6053
6321
  initiatorUserId: string;
6322
+ rootNodeId: string;
6054
6323
  };
6055
6324
  };
6056
6325
  meta: any;
@@ -6092,6 +6361,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
6092
6361
  applicationId: string | null;
6093
6362
  initiatorAppId: string;
6094
6363
  initiatorUserId: string;
6364
+ rootNodeId: string;
6095
6365
  };
6096
6366
  };
6097
6367
  meta: any;
@@ -6573,7 +6843,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6573
6843
  encPriv: string;
6574
6844
  }[];
6575
6845
  };
6576
- output: Record<string, never>;
6846
+ output: {};
6577
6847
  meta: any;
6578
6848
  }>;
6579
6849
  changePassword: import("@trpc/server").TRPCMutationProcedure<{
@@ -6672,7 +6942,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6672
6942
  email: string;
6673
6943
  phone: string;
6674
6944
  };
6675
- output: Record<string, never>;
6945
+ output: {};
6676
6946
  meta: any;
6677
6947
  }>;
6678
6948
  sendCodes: import("@trpc/server").TRPCMutationProcedure<{
@@ -7630,6 +7900,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7630
7900
  type: "encrypted";
7631
7901
  mime?: string | undefined;
7632
7902
  ext?: string | undefined;
7903
+ fromIdentityPubKey?: string | null | undefined;
7633
7904
  key?: string | undefined;
7634
7905
  } | {
7635
7906
  size: bigint;
@@ -7637,6 +7908,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7637
7908
  type: "unencrypted";
7638
7909
  mime?: string | undefined;
7639
7910
  ext?: string | undefined;
7911
+ fromIdentityPubKey?: string | null | undefined;
7640
7912
  };
7641
7913
  output: {
7642
7914
  type: "authed";
@@ -7725,6 +7997,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7725
7997
  content: Uint8Array<ArrayBuffer>;
7726
7998
  mime?: string | undefined;
7727
7999
  ext?: string | undefined;
8000
+ fromIdentityPubKey?: string | null | undefined;
7728
8001
  key?: string | undefined;
7729
8002
  } | {
7730
8003
  size: bigint;
@@ -7733,6 +8006,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7733
8006
  content: Uint8Array<ArrayBuffer>;
7734
8007
  mime?: string | undefined;
7735
8008
  ext?: string | undefined;
8009
+ fromIdentityPubKey?: string | null | undefined;
7736
8010
  };
7737
8011
  output: {
7738
8012
  type: "authed";
@@ -8176,7 +8450,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8176
8450
  }>;
8177
8451
  emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
8178
8452
  input: {
8179
- [x: string]: never;
8180
8453
  fromIdentityPubKey?: string | null | undefined;
8181
8454
  appId?: string | null | undefined;
8182
8455
  };
@@ -8294,6 +8567,66 @@ export declare const getTrpcGuestClient: ({ url }?: {
8294
8567
  };
8295
8568
  meta: any;
8296
8569
  }>;
8570
+ nodeByIds: import("@trpc/server").TRPCQueryProcedure<{
8571
+ input: {
8572
+ fromIdentityPubKey?: string | null | undefined;
8573
+ appId?: string | null | undefined;
8574
+ ids: string[];
8575
+ deleted?: boolean | null | undefined;
8576
+ };
8577
+ output: {
8578
+ nodes: ({
8579
+ id: string;
8580
+ createdAt: Date;
8581
+ deletedAt: Date | null;
8582
+ name: string;
8583
+ type: "FILE" | "FOLDER";
8584
+ updatedAt: Date;
8585
+ isFavorite: boolean;
8586
+ parentId: string | null;
8587
+ currentDataId: string | null;
8588
+ } & {
8589
+ owner: {
8590
+ userId: string;
8591
+ orgId: string;
8592
+ appId: string;
8593
+ };
8594
+ accesses: {
8595
+ rights: "delete" | "read" | "write";
8596
+ nameKey: string | null;
8597
+ isRoot: boolean;
8598
+ addAccess: "delete" | "read" | "write" | null;
8599
+ sharingAddAccess: "delete" | "read" | "write" | null;
8600
+ delAccess: "delete" | "read" | "write" | null;
8601
+ sharingDelAccess: "delete" | "read" | "write" | null;
8602
+ sharedByPubKey: string;
8603
+ identityPubKey: string;
8604
+ }[];
8605
+ permissions: {
8606
+ rights: "delete" | "read" | "write";
8607
+ } & {
8608
+ addAccess: "delete" | "read" | "write" | null;
8609
+ sharingAddAccess: "delete" | "read" | "write" | null;
8610
+ delAccess: "delete" | "read" | "write" | null;
8611
+ sharingDelAccess: "delete" | "read" | "write" | null;
8612
+ };
8613
+ identities: Record<string, {
8614
+ rights: "delete" | "read" | "write";
8615
+ } & {
8616
+ addAccess: "delete" | "read" | "write" | null;
8617
+ sharingAddAccess: "delete" | "read" | "write" | null;
8618
+ delAccess: "delete" | "read" | "write" | null;
8619
+ sharingDelAccess: "delete" | "read" | "write" | null;
8620
+ }>;
8621
+ } & {
8622
+ sizes: {
8623
+ size: bigint;
8624
+ sizeEncrypted: bigint;
8625
+ };
8626
+ })[];
8627
+ };
8628
+ meta: any;
8629
+ }>;
8297
8630
  nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
8298
8631
  input: {
8299
8632
  fromIdentityPubKey?: string | null | undefined;
@@ -8497,6 +8830,211 @@ export declare const getTrpcGuestClient: ({ url }?: {
8497
8830
  };
8498
8831
  meta: any;
8499
8832
  }>;
8833
+ nodeFullByIds: import("@trpc/server").TRPCQueryProcedure<{
8834
+ input: {
8835
+ fromIdentityPubKey?: string | null | undefined;
8836
+ appId?: string | null | undefined;
8837
+ ids: string[];
8838
+ deleted?: boolean | null | undefined;
8839
+ };
8840
+ output: {
8841
+ nodes: ({
8842
+ id: string;
8843
+ createdAt: Date;
8844
+ deletedAt: Date | null;
8845
+ name: string;
8846
+ type: "FILE" | "FOLDER";
8847
+ updatedAt: Date;
8848
+ isFavorite: boolean;
8849
+ parentId: string | null;
8850
+ currentDataId: string | null;
8851
+ } & {
8852
+ owner: {
8853
+ userId: string;
8854
+ orgId: string;
8855
+ appId: string;
8856
+ };
8857
+ accesses: {
8858
+ rights: "delete" | "read" | "write";
8859
+ nameKey: string | null;
8860
+ isRoot: boolean;
8861
+ addAccess: "delete" | "read" | "write" | null;
8862
+ sharingAddAccess: "delete" | "read" | "write" | null;
8863
+ delAccess: "delete" | "read" | "write" | null;
8864
+ sharingDelAccess: "delete" | "read" | "write" | null;
8865
+ sharedByPubKey: string;
8866
+ identityPubKey: string;
8867
+ }[];
8868
+ permissions: {
8869
+ rights: "delete" | "read" | "write";
8870
+ } & {
8871
+ addAccess: "delete" | "read" | "write" | null;
8872
+ sharingAddAccess: "delete" | "read" | "write" | null;
8873
+ delAccess: "delete" | "read" | "write" | null;
8874
+ sharingDelAccess: "delete" | "read" | "write" | null;
8875
+ };
8876
+ identities: Record<string, {
8877
+ rights: "delete" | "read" | "write";
8878
+ } & {
8879
+ addAccess: "delete" | "read" | "write" | null;
8880
+ sharingAddAccess: "delete" | "read" | "write" | null;
8881
+ delAccess: "delete" | "read" | "write" | null;
8882
+ sharingDelAccess: "delete" | "read" | "write" | null;
8883
+ }>;
8884
+ } & {
8885
+ sizes: {
8886
+ size: bigint;
8887
+ sizeEncrypted: bigint;
8888
+ };
8889
+ } & {
8890
+ parent: ({
8891
+ id: string;
8892
+ createdAt: Date;
8893
+ deletedAt: Date | null;
8894
+ name: string;
8895
+ type: "FILE" | "FOLDER";
8896
+ updatedAt: Date;
8897
+ isFavorite: boolean;
8898
+ parentId: string | null;
8899
+ currentDataId: string | null;
8900
+ } & {
8901
+ owner: {
8902
+ userId: string;
8903
+ orgId: string;
8904
+ appId: string;
8905
+ };
8906
+ accesses: {
8907
+ rights: "delete" | "read" | "write";
8908
+ nameKey: string | null;
8909
+ isRoot: boolean;
8910
+ addAccess: "delete" | "read" | "write" | null;
8911
+ sharingAddAccess: "delete" | "read" | "write" | null;
8912
+ delAccess: "delete" | "read" | "write" | null;
8913
+ sharingDelAccess: "delete" | "read" | "write" | null;
8914
+ sharedByPubKey: string;
8915
+ identityPubKey: string;
8916
+ }[];
8917
+ permissions: {
8918
+ rights: "delete" | "read" | "write";
8919
+ } & {
8920
+ addAccess: "delete" | "read" | "write" | null;
8921
+ sharingAddAccess: "delete" | "read" | "write" | null;
8922
+ delAccess: "delete" | "read" | "write" | null;
8923
+ sharingDelAccess: "delete" | "read" | "write" | null;
8924
+ };
8925
+ identities: Record<string, {
8926
+ rights: "delete" | "read" | "write";
8927
+ } & {
8928
+ addAccess: "delete" | "read" | "write" | null;
8929
+ sharingAddAccess: "delete" | "read" | "write" | null;
8930
+ delAccess: "delete" | "read" | "write" | null;
8931
+ sharingDelAccess: "delete" | "read" | "write" | null;
8932
+ }>;
8933
+ }) | null;
8934
+ children: ({
8935
+ id: string;
8936
+ createdAt: Date;
8937
+ deletedAt: Date | null;
8938
+ name: string;
8939
+ type: "FILE" | "FOLDER";
8940
+ updatedAt: Date;
8941
+ isFavorite: boolean;
8942
+ parentId: string | null;
8943
+ currentDataId: string | null;
8944
+ } & {
8945
+ owner: {
8946
+ userId: string;
8947
+ orgId: string;
8948
+ appId: string;
8949
+ };
8950
+ accesses: {
8951
+ rights: "delete" | "read" | "write";
8952
+ nameKey: string | null;
8953
+ isRoot: boolean;
8954
+ addAccess: "delete" | "read" | "write" | null;
8955
+ sharingAddAccess: "delete" | "read" | "write" | null;
8956
+ delAccess: "delete" | "read" | "write" | null;
8957
+ sharingDelAccess: "delete" | "read" | "write" | null;
8958
+ sharedByPubKey: string;
8959
+ identityPubKey: string;
8960
+ }[];
8961
+ permissions: {
8962
+ rights: "delete" | "read" | "write";
8963
+ } & {
8964
+ addAccess: "delete" | "read" | "write" | null;
8965
+ sharingAddAccess: "delete" | "read" | "write" | null;
8966
+ delAccess: "delete" | "read" | "write" | null;
8967
+ sharingDelAccess: "delete" | "read" | "write" | null;
8968
+ };
8969
+ identities: Record<string, {
8970
+ rights: "delete" | "read" | "write";
8971
+ } & {
8972
+ addAccess: "delete" | "read" | "write" | null;
8973
+ sharingAddAccess: "delete" | "read" | "write" | null;
8974
+ delAccess: "delete" | "read" | "write" | null;
8975
+ sharingDelAccess: "delete" | "read" | "write" | null;
8976
+ }>;
8977
+ } & {
8978
+ sizes: {
8979
+ size: bigint;
8980
+ sizeEncrypted: bigint;
8981
+ };
8982
+ })[];
8983
+ current: {
8984
+ id: string;
8985
+ storageType: "s3" | "cold" | "lite";
8986
+ size: bigint;
8987
+ prefix: string;
8988
+ sizeEncrypted: bigint | null;
8989
+ md5: string;
8990
+ md5Encrypted: string | null;
8991
+ mime: string | null;
8992
+ ext: string | null;
8993
+ createdAt: Date;
8994
+ validatedAt: Date | null;
8995
+ restoreSince: Date | null;
8996
+ createdByUserId: string | null;
8997
+ createdByAppId: string | null;
8998
+ createdByOrgId: string | null;
8999
+ access: {
9000
+ key: string | null;
9001
+ identityPubKey: string;
9002
+ sharedByPubKey: string;
9003
+ };
9004
+ } | null;
9005
+ history: {
9006
+ id: string;
9007
+ storageType: "s3" | "cold" | "lite";
9008
+ size: bigint;
9009
+ prefix: string;
9010
+ sizeEncrypted: bigint | null;
9011
+ md5: string;
9012
+ md5Encrypted: string | null;
9013
+ mime: string | null;
9014
+ ext: string | null;
9015
+ createdAt: Date;
9016
+ validatedAt: Date | null;
9017
+ restoreSince: Date | null;
9018
+ createdByUserId: string | null;
9019
+ createdByAppId: string | null;
9020
+ createdByOrgId: string | null;
9021
+ access: {
9022
+ key: string | null;
9023
+ identityPubKey: string;
9024
+ sharedByPubKey: string;
9025
+ };
9026
+ }[];
9027
+ breadcrumb: {
9028
+ id: string;
9029
+ name: string;
9030
+ identityPubKey: string;
9031
+ sharedByPubKey: string;
9032
+ nameKey: string | null;
9033
+ }[];
9034
+ })[];
9035
+ };
9036
+ meta: any;
9037
+ }>;
8500
9038
  nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
8501
9039
  input: {
8502
9040
  fromIdentityPubKey?: string | null | undefined;
@@ -8537,7 +9075,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8537
9075
  }>;
8538
9076
  nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
8539
9077
  input: {
8540
- [x: string]: never;
8541
9078
  fromIdentityPubKey?: string | null | undefined;
8542
9079
  appId?: string | null | undefined;
8543
9080
  };
@@ -10274,7 +10811,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
10274
10811
  }>;
10275
10812
  emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
10276
10813
  input: {
10277
- [x: string]: never;
10278
10814
  fromIdentityPubKey?: string | null | undefined;
10279
10815
  appId?: string | null | undefined;
10280
10816
  };
@@ -10497,7 +11033,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
10497
11033
  }>;
10498
11034
  unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
10499
11035
  input: {
10500
- [x: string]: never;
10501
11036
  fromIdentityPubKey?: string | null | undefined;
10502
11037
  appId?: string | null | undefined;
10503
11038
  };
@@ -11134,6 +11669,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11134
11669
  groupOwnerPubKey: string;
11135
11670
  encPriv: string;
11136
11671
  sharedByPubKey: string;
11672
+ sharedToPubKey: string;
11137
11673
  groupRole: "ADMIN" | "MEMBER";
11138
11674
  })[];
11139
11675
  };
@@ -11165,6 +11701,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11165
11701
  groupOwnerPubKey: string;
11166
11702
  encPriv: string;
11167
11703
  sharedByPubKey: string;
11704
+ sharedToPubKey: string;
11168
11705
  groupRole: "ADMIN" | "MEMBER";
11169
11706
  })[] | null;
11170
11707
  };
@@ -12004,6 +12541,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12004
12541
  groupOwnerPubKey: string;
12005
12542
  encPriv: string;
12006
12543
  sharedByPubKey: string;
12544
+ sharedToPubKey: string;
12007
12545
  groupRole: "ADMIN" | "MEMBER";
12008
12546
  })[];
12009
12547
  };
@@ -12018,7 +12556,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12018
12556
  id: string;
12019
12557
  encPriv: string;
12020
12558
  pubKey: string;
12021
- fromPubKey: string;
12022
12559
  role?: "ADMIN" | "MEMBER" | undefined;
12023
12560
  };
12024
12561
  output: {
@@ -12042,7 +12579,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12042
12579
  name: string;
12043
12580
  encPriv: string;
12044
12581
  pubKey: string;
12045
- fromPubKey: string;
12046
12582
  };
12047
12583
  output: {
12048
12584
  group: {
@@ -12056,6 +12592,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12056
12592
  applicationId: string | null;
12057
12593
  initiatorAppId: string;
12058
12594
  initiatorUserId: string;
12595
+ rootNodeId: string;
12059
12596
  };
12060
12597
  };
12061
12598
  meta: any;
@@ -12095,6 +12632,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12095
12632
  applicationId: string | null;
12096
12633
  initiatorAppId: string;
12097
12634
  initiatorUserId: string;
12635
+ rootNodeId: string;
12098
12636
  };
12099
12637
  };
12100
12638
  meta: any;
@@ -12142,6 +12680,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12142
12680
  applicationId: string | null;
12143
12681
  initiatorAppId: string;
12144
12682
  initiatorUserId: string;
12683
+ rootNodeId: string;
12145
12684
  };
12146
12685
  };
12147
12686
  meta: any;
@@ -12183,6 +12722,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12183
12722
  applicationId: string | null;
12184
12723
  initiatorAppId: string;
12185
12724
  initiatorUserId: string;
12725
+ rootNodeId: string;
12186
12726
  };
12187
12727
  };
12188
12728
  meta: any;