@secrecy/trpc-api-types 1.40.0-fix-create-folder-permissions.2 → 1.40.0-fix-add-group-member.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +97 -204
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -986,11 +986,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
986
986
  appId?: string | null | undefined;
987
987
  dataId: string;
988
988
  nodeId: string;
989
- encryptedAccesses: {
990
- pubKey: string;
991
- key: string | null;
992
- nameKey: string;
993
- }[];
994
989
  };
995
990
  output: {
996
991
  id: string;
@@ -1009,19 +1004,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1009
1004
  appId: string;
1010
1005
  };
1011
1006
  accesses: {
1012
- type: "ROOT" | "INHERITED";
1013
- identityPubKey: string;
1014
- sharedByPubKey: string;
1015
- nameKey: string | null;
1016
1007
  rights: "delete" | "read" | "write";
1008
+ nameKey: string | null;
1009
+ isRoot: boolean;
1017
1010
  addAccess: "delete" | "read" | "write" | null;
1018
1011
  sharingAddAccess: "delete" | "read" | "write" | null;
1019
1012
  delAccess: "delete" | "read" | "write" | null;
1020
1013
  sharingDelAccess: "delete" | "read" | "write" | null;
1021
- rootAccess: {
1022
- type: "ROOT" | "INHERITED";
1023
- sharedByPubKey: string;
1024
- } | null;
1014
+ sharedByPubKey: string;
1015
+ identityPubKey: string;
1025
1016
  }[];
1026
1017
  permissions: {
1027
1018
  rights: "delete" | "read" | "write";
@@ -1062,19 +1053,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1062
1053
  appId: string;
1063
1054
  };
1064
1055
  accesses: {
1065
- type: "ROOT" | "INHERITED";
1066
- identityPubKey: string;
1067
- sharedByPubKey: string;
1068
- nameKey: string | null;
1069
1056
  rights: "delete" | "read" | "write";
1057
+ nameKey: string | null;
1058
+ isRoot: boolean;
1070
1059
  addAccess: "delete" | "read" | "write" | null;
1071
1060
  sharingAddAccess: "delete" | "read" | "write" | null;
1072
1061
  delAccess: "delete" | "read" | "write" | null;
1073
1062
  sharingDelAccess: "delete" | "read" | "write" | null;
1074
- rootAccess: {
1075
- type: "ROOT" | "INHERITED";
1076
- sharedByPubKey: string;
1077
- } | null;
1063
+ sharedByPubKey: string;
1064
+ identityPubKey: string;
1078
1065
  }[];
1079
1066
  permissions: {
1080
1067
  rights: "delete" | "read" | "write";
@@ -1110,19 +1097,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1110
1097
  appId: string;
1111
1098
  };
1112
1099
  accesses: {
1113
- type: "ROOT" | "INHERITED";
1114
- identityPubKey: string;
1115
- sharedByPubKey: string;
1116
- nameKey: string | null;
1117
1100
  rights: "delete" | "read" | "write";
1101
+ nameKey: string | null;
1102
+ isRoot: boolean;
1118
1103
  addAccess: "delete" | "read" | "write" | null;
1119
1104
  sharingAddAccess: "delete" | "read" | "write" | null;
1120
1105
  delAccess: "delete" | "read" | "write" | null;
1121
1106
  sharingDelAccess: "delete" | "read" | "write" | null;
1122
- rootAccess: {
1123
- type: "ROOT" | "INHERITED";
1124
- sharedByPubKey: string;
1125
- } | null;
1107
+ sharedByPubKey: string;
1108
+ identityPubKey: string;
1126
1109
  }[];
1127
1110
  permissions: {
1128
1111
  rights: "delete" | "read" | "write";
@@ -1423,12 +1406,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1423
1406
  appId?: string | null | undefined;
1424
1407
  dataId: string;
1425
1408
  nodeId: string | null;
1409
+ key: string | null;
1426
1410
  fileName: string;
1427
- encryptedAccesses: {
1428
- pubKey: string;
1429
- key: string | null;
1430
- nameKey: string;
1431
- }[];
1411
+ nameKey: string;
1432
1412
  };
1433
1413
  output: {
1434
1414
  id: string;
@@ -1447,19 +1427,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1447
1427
  appId: string;
1448
1428
  };
1449
1429
  accesses: {
1450
- type: "ROOT" | "INHERITED";
1451
- identityPubKey: string;
1452
- sharedByPubKey: string;
1453
- nameKey: string | null;
1454
1430
  rights: "delete" | "read" | "write";
1431
+ nameKey: string | null;
1432
+ isRoot: boolean;
1455
1433
  addAccess: "delete" | "read" | "write" | null;
1456
1434
  sharingAddAccess: "delete" | "read" | "write" | null;
1457
1435
  delAccess: "delete" | "read" | "write" | null;
1458
1436
  sharingDelAccess: "delete" | "read" | "write" | null;
1459
- rootAccess: {
1460
- type: "ROOT" | "INHERITED";
1461
- sharedByPubKey: string;
1462
- } | null;
1437
+ sharedByPubKey: string;
1438
+ identityPubKey: string;
1463
1439
  }[];
1464
1440
  permissions: {
1465
1441
  rights: "delete" | "read" | "write";
@@ -1500,19 +1476,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1500
1476
  appId: string;
1501
1477
  };
1502
1478
  accesses: {
1503
- type: "ROOT" | "INHERITED";
1504
- identityPubKey: string;
1505
- sharedByPubKey: string;
1506
- nameKey: string | null;
1507
1479
  rights: "delete" | "read" | "write";
1480
+ nameKey: string | null;
1481
+ isRoot: boolean;
1508
1482
  addAccess: "delete" | "read" | "write" | null;
1509
1483
  sharingAddAccess: "delete" | "read" | "write" | null;
1510
1484
  delAccess: "delete" | "read" | "write" | null;
1511
1485
  sharingDelAccess: "delete" | "read" | "write" | null;
1512
- rootAccess: {
1513
- type: "ROOT" | "INHERITED";
1514
- sharedByPubKey: string;
1515
- } | null;
1486
+ sharedByPubKey: string;
1487
+ identityPubKey: string;
1516
1488
  }[];
1517
1489
  permissions: {
1518
1490
  rights: "delete" | "read" | "write";
@@ -1548,19 +1520,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1548
1520
  appId: string;
1549
1521
  };
1550
1522
  accesses: {
1551
- type: "ROOT" | "INHERITED";
1552
- identityPubKey: string;
1553
- sharedByPubKey: string;
1554
- nameKey: string | null;
1555
1523
  rights: "delete" | "read" | "write";
1524
+ nameKey: string | null;
1525
+ isRoot: boolean;
1556
1526
  addAccess: "delete" | "read" | "write" | null;
1557
1527
  sharingAddAccess: "delete" | "read" | "write" | null;
1558
1528
  delAccess: "delete" | "read" | "write" | null;
1559
1529
  sharingDelAccess: "delete" | "read" | "write" | null;
1560
- rootAccess: {
1561
- type: "ROOT" | "INHERITED";
1562
- sharedByPubKey: string;
1563
- } | null;
1530
+ sharedByPubKey: string;
1531
+ identityPubKey: string;
1564
1532
  }[];
1565
1533
  permissions: {
1566
1534
  rights: "delete" | "read" | "write";
@@ -1694,7 +1662,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1694
1662
  access: {
1695
1663
  identityPubKey: string;
1696
1664
  sharedByPubKey: string;
1697
- rootAccessSharedByPubKey: string;
1698
1665
  nameKey: string;
1699
1666
  };
1700
1667
  history: {
@@ -1728,7 +1695,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1728
1695
  };
1729
1696
  output: {
1730
1697
  isShared: boolean;
1731
- missingPubKeys: string[];
1732
1698
  };
1733
1699
  meta: any;
1734
1700
  }>;
@@ -2035,12 +2001,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2035
2001
  input: {
2036
2002
  fromIdentityPubKey?: string | null | undefined;
2037
2003
  appId?: string | null | undefined;
2004
+ nameKey: string | null;
2038
2005
  name: string;
2039
2006
  parentId: string | null;
2040
- encryptedAccesses: {
2041
- pubKey: string;
2042
- nameKey: string;
2043
- }[];
2044
2007
  };
2045
2008
  output: {
2046
2009
  id: string;
@@ -2059,19 +2022,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2059
2022
  appId: string;
2060
2023
  };
2061
2024
  accesses: {
2062
- type: "ROOT" | "INHERITED";
2063
- identityPubKey: string;
2064
- sharedByPubKey: string;
2065
- nameKey: string | null;
2066
2025
  rights: "delete" | "read" | "write";
2026
+ nameKey: string | null;
2027
+ isRoot: boolean;
2067
2028
  addAccess: "delete" | "read" | "write" | null;
2068
2029
  sharingAddAccess: "delete" | "read" | "write" | null;
2069
2030
  delAccess: "delete" | "read" | "write" | null;
2070
2031
  sharingDelAccess: "delete" | "read" | "write" | null;
2071
- rootAccess: {
2072
- type: "ROOT" | "INHERITED";
2073
- sharedByPubKey: string;
2074
- } | null;
2032
+ sharedByPubKey: string;
2033
+ identityPubKey: string;
2075
2034
  }[];
2076
2035
  permissions: {
2077
2036
  rights: "delete" | "read" | "write";
@@ -2112,19 +2071,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2112
2071
  appId: string;
2113
2072
  };
2114
2073
  accesses: {
2115
- type: "ROOT" | "INHERITED";
2116
- identityPubKey: string;
2117
- sharedByPubKey: string;
2118
- nameKey: string | null;
2119
2074
  rights: "delete" | "read" | "write";
2075
+ nameKey: string | null;
2076
+ isRoot: boolean;
2120
2077
  addAccess: "delete" | "read" | "write" | null;
2121
2078
  sharingAddAccess: "delete" | "read" | "write" | null;
2122
2079
  delAccess: "delete" | "read" | "write" | null;
2123
2080
  sharingDelAccess: "delete" | "read" | "write" | null;
2124
- rootAccess: {
2125
- type: "ROOT" | "INHERITED";
2126
- sharedByPubKey: string;
2127
- } | null;
2081
+ sharedByPubKey: string;
2082
+ identityPubKey: string;
2128
2083
  }[];
2129
2084
  permissions: {
2130
2085
  rights: "delete" | "read" | "write";
@@ -2160,19 +2115,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2160
2115
  appId: string;
2161
2116
  };
2162
2117
  accesses: {
2163
- type: "ROOT" | "INHERITED";
2164
- identityPubKey: string;
2165
- sharedByPubKey: string;
2166
- nameKey: string | null;
2167
2118
  rights: "delete" | "read" | "write";
2119
+ nameKey: string | null;
2120
+ isRoot: boolean;
2168
2121
  addAccess: "delete" | "read" | "write" | null;
2169
2122
  sharingAddAccess: "delete" | "read" | "write" | null;
2170
2123
  delAccess: "delete" | "read" | "write" | null;
2171
2124
  sharingDelAccess: "delete" | "read" | "write" | null;
2172
- rootAccess: {
2173
- type: "ROOT" | "INHERITED";
2174
- sharedByPubKey: string;
2175
- } | null;
2125
+ sharedByPubKey: string;
2126
+ identityPubKey: string;
2176
2127
  }[];
2177
2128
  permissions: {
2178
2129
  rights: "delete" | "read" | "write";
@@ -2267,7 +2218,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2267
2218
  appId?: string | null | undefined;
2268
2219
  nodeId: string;
2269
2220
  destPubKey: string;
2270
- rootAccessSharedByPubKey: string;
2271
2221
  };
2272
2222
  output: {
2273
2223
  isDeleted: boolean;
@@ -2342,10 +2292,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2342
2292
  output: {
2343
2293
  id: string;
2344
2294
  nodeId: string;
2345
- type: "ROOT" | "INHERITED";
2346
- rootAccessId: string | null;
2347
2295
  rights: "delete" | "read" | "write";
2348
2296
  nameKey: string | null;
2297
+ isRoot: boolean;
2349
2298
  createdAt: Date;
2350
2299
  addAccess: "delete" | "read" | "write" | null;
2351
2300
  sharingAddAccess: "delete" | "read" | "write" | null;
@@ -2397,19 +2346,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2397
2346
  appId: string;
2398
2347
  };
2399
2348
  accesses: {
2400
- type: "ROOT" | "INHERITED";
2401
- identityPubKey: string;
2402
- sharedByPubKey: string;
2403
- nameKey: string | null;
2404
2349
  rights: "delete" | "read" | "write";
2350
+ nameKey: string | null;
2351
+ isRoot: boolean;
2405
2352
  addAccess: "delete" | "read" | "write" | null;
2406
2353
  sharingAddAccess: "delete" | "read" | "write" | null;
2407
2354
  delAccess: "delete" | "read" | "write" | null;
2408
2355
  sharingDelAccess: "delete" | "read" | "write" | null;
2409
- rootAccess: {
2410
- type: "ROOT" | "INHERITED";
2411
- sharedByPubKey: string;
2412
- } | null;
2356
+ sharedByPubKey: string;
2357
+ identityPubKey: string;
2413
2358
  }[];
2414
2359
  permissions: {
2415
2360
  rights: "delete" | "read" | "write";
@@ -2460,19 +2405,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2460
2405
  appId: string;
2461
2406
  };
2462
2407
  accesses: {
2463
- type: "ROOT" | "INHERITED";
2464
- identityPubKey: string;
2465
- sharedByPubKey: string;
2466
- nameKey: string | null;
2467
2408
  rights: "delete" | "read" | "write";
2409
+ nameKey: string | null;
2410
+ isRoot: boolean;
2468
2411
  addAccess: "delete" | "read" | "write" | null;
2469
2412
  sharingAddAccess: "delete" | "read" | "write" | null;
2470
2413
  delAccess: "delete" | "read" | "write" | null;
2471
2414
  sharingDelAccess: "delete" | "read" | "write" | null;
2472
- rootAccess: {
2473
- type: "ROOT" | "INHERITED";
2474
- sharedByPubKey: string;
2475
- } | null;
2415
+ sharedByPubKey: string;
2416
+ identityPubKey: string;
2476
2417
  }[];
2477
2418
  permissions: {
2478
2419
  rights: "delete" | "read" | "write";
@@ -2524,19 +2465,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2524
2465
  appId: string;
2525
2466
  };
2526
2467
  accesses: {
2527
- type: "ROOT" | "INHERITED";
2528
- identityPubKey: string;
2529
- sharedByPubKey: string;
2530
- nameKey: string | null;
2531
2468
  rights: "delete" | "read" | "write";
2469
+ nameKey: string | null;
2470
+ isRoot: boolean;
2532
2471
  addAccess: "delete" | "read" | "write" | null;
2533
2472
  sharingAddAccess: "delete" | "read" | "write" | null;
2534
2473
  delAccess: "delete" | "read" | "write" | null;
2535
2474
  sharingDelAccess: "delete" | "read" | "write" | null;
2536
- rootAccess: {
2537
- type: "ROOT" | "INHERITED";
2538
- sharedByPubKey: string;
2539
- } | null;
2475
+ sharedByPubKey: string;
2476
+ identityPubKey: string;
2540
2477
  }[];
2541
2478
  permissions: {
2542
2479
  rights: "delete" | "read" | "write";
@@ -2577,19 +2514,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2577
2514
  appId: string;
2578
2515
  };
2579
2516
  accesses: {
2580
- type: "ROOT" | "INHERITED";
2581
- identityPubKey: string;
2582
- sharedByPubKey: string;
2583
- nameKey: string | null;
2584
2517
  rights: "delete" | "read" | "write";
2518
+ nameKey: string | null;
2519
+ isRoot: boolean;
2585
2520
  addAccess: "delete" | "read" | "write" | null;
2586
2521
  sharingAddAccess: "delete" | "read" | "write" | null;
2587
2522
  delAccess: "delete" | "read" | "write" | null;
2588
2523
  sharingDelAccess: "delete" | "read" | "write" | null;
2589
- rootAccess: {
2590
- type: "ROOT" | "INHERITED";
2591
- sharedByPubKey: string;
2592
- } | null;
2524
+ sharedByPubKey: string;
2525
+ identityPubKey: string;
2593
2526
  }[];
2594
2527
  permissions: {
2595
2528
  rights: "delete" | "read" | "write";
@@ -2625,19 +2558,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2625
2558
  appId: string;
2626
2559
  };
2627
2560
  accesses: {
2628
- type: "ROOT" | "INHERITED";
2629
- identityPubKey: string;
2630
- sharedByPubKey: string;
2631
- nameKey: string | null;
2632
2561
  rights: "delete" | "read" | "write";
2562
+ nameKey: string | null;
2563
+ isRoot: boolean;
2633
2564
  addAccess: "delete" | "read" | "write" | null;
2634
2565
  sharingAddAccess: "delete" | "read" | "write" | null;
2635
2566
  delAccess: "delete" | "read" | "write" | null;
2636
2567
  sharingDelAccess: "delete" | "read" | "write" | null;
2637
- rootAccess: {
2638
- type: "ROOT" | "INHERITED";
2639
- sharedByPubKey: string;
2640
- } | null;
2568
+ sharedByPubKey: string;
2569
+ identityPubKey: string;
2641
2570
  }[];
2642
2571
  permissions: {
2643
2572
  rights: "delete" | "read" | "write";
@@ -2740,19 +2669,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2740
2669
  appId: string;
2741
2670
  };
2742
2671
  accesses: {
2743
- type: "ROOT" | "INHERITED";
2744
- identityPubKey: string;
2745
- sharedByPubKey: string;
2746
- nameKey: string | null;
2747
2672
  rights: "delete" | "read" | "write";
2673
+ nameKey: string | null;
2674
+ isRoot: boolean;
2748
2675
  addAccess: "delete" | "read" | "write" | null;
2749
2676
  sharingAddAccess: "delete" | "read" | "write" | null;
2750
2677
  delAccess: "delete" | "read" | "write" | null;
2751
2678
  sharingDelAccess: "delete" | "read" | "write" | null;
2752
- rootAccess: {
2753
- type: "ROOT" | "INHERITED";
2754
- sharedByPubKey: string;
2755
- } | null;
2679
+ sharedByPubKey: string;
2680
+ identityPubKey: string;
2756
2681
  }[];
2757
2682
  permissions: {
2758
2683
  rights: "delete" | "read" | "write";
@@ -2793,19 +2718,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2793
2718
  appId: string;
2794
2719
  };
2795
2720
  accesses: {
2796
- type: "ROOT" | "INHERITED";
2797
- identityPubKey: string;
2798
- sharedByPubKey: string;
2799
- nameKey: string | null;
2800
2721
  rights: "delete" | "read" | "write";
2722
+ nameKey: string | null;
2723
+ isRoot: boolean;
2801
2724
  addAccess: "delete" | "read" | "write" | null;
2802
2725
  sharingAddAccess: "delete" | "read" | "write" | null;
2803
2726
  delAccess: "delete" | "read" | "write" | null;
2804
2727
  sharingDelAccess: "delete" | "read" | "write" | null;
2805
- rootAccess: {
2806
- type: "ROOT" | "INHERITED";
2807
- sharedByPubKey: string;
2808
- } | null;
2728
+ sharedByPubKey: string;
2729
+ identityPubKey: string;
2809
2730
  }[];
2810
2731
  permissions: {
2811
2732
  rights: "delete" | "read" | "write";
@@ -2841,19 +2762,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2841
2762
  appId: string;
2842
2763
  };
2843
2764
  accesses: {
2844
- type: "ROOT" | "INHERITED";
2845
- identityPubKey: string;
2846
- sharedByPubKey: string;
2847
- nameKey: string | null;
2848
2765
  rights: "delete" | "read" | "write";
2766
+ nameKey: string | null;
2767
+ isRoot: boolean;
2849
2768
  addAccess: "delete" | "read" | "write" | null;
2850
2769
  sharingAddAccess: "delete" | "read" | "write" | null;
2851
2770
  delAccess: "delete" | "read" | "write" | null;
2852
2771
  sharingDelAccess: "delete" | "read" | "write" | null;
2853
- rootAccess: {
2854
- type: "ROOT" | "INHERITED";
2855
- sharedByPubKey: string;
2856
- } | null;
2772
+ sharedByPubKey: string;
2773
+ identityPubKey: string;
2857
2774
  }[];
2858
2775
  permissions: {
2859
2776
  rights: "delete" | "read" | "write";
@@ -2993,19 +2910,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2993
2910
  appId: string;
2994
2911
  };
2995
2912
  accesses: {
2996
- type: "ROOT" | "INHERITED";
2997
- identityPubKey: string;
2998
- sharedByPubKey: string;
2999
- nameKey: string | null;
3000
2913
  rights: "delete" | "read" | "write";
2914
+ nameKey: string | null;
2915
+ isRoot: boolean;
3001
2916
  addAccess: "delete" | "read" | "write" | null;
3002
2917
  sharingAddAccess: "delete" | "read" | "write" | null;
3003
2918
  delAccess: "delete" | "read" | "write" | null;
3004
2919
  sharingDelAccess: "delete" | "read" | "write" | null;
3005
- rootAccess: {
3006
- type: "ROOT" | "INHERITED";
3007
- sharedByPubKey: string;
3008
- } | null;
2920
+ sharedByPubKey: string;
2921
+ identityPubKey: string;
3009
2922
  }[];
3010
2923
  permissions: {
3011
2924
  rights: "delete" | "read" | "write";
@@ -3049,19 +2962,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3049
2962
  appId: string;
3050
2963
  };
3051
2964
  accesses: {
3052
- type: "ROOT" | "INHERITED";
3053
- identityPubKey: string;
3054
- sharedByPubKey: string;
3055
- nameKey: string | null;
3056
2965
  rights: "delete" | "read" | "write";
2966
+ nameKey: string | null;
2967
+ isRoot: boolean;
3057
2968
  addAccess: "delete" | "read" | "write" | null;
3058
2969
  sharingAddAccess: "delete" | "read" | "write" | null;
3059
2970
  delAccess: "delete" | "read" | "write" | null;
3060
2971
  sharingDelAccess: "delete" | "read" | "write" | null;
3061
- rootAccess: {
3062
- type: "ROOT" | "INHERITED";
3063
- sharedByPubKey: string;
3064
- } | null;
2972
+ sharedByPubKey: string;
2973
+ identityPubKey: string;
3065
2974
  }[];
3066
2975
  permissions: {
3067
2976
  rights: "delete" | "read" | "write";
@@ -3104,19 +3013,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3104
3013
  appId: string;
3105
3014
  };
3106
3015
  accesses: {
3107
- type: "ROOT" | "INHERITED";
3108
- identityPubKey: string;
3109
- sharedByPubKey: string;
3110
- nameKey: string | null;
3111
3016
  rights: "delete" | "read" | "write";
3017
+ nameKey: string | null;
3018
+ isRoot: boolean;
3112
3019
  addAccess: "delete" | "read" | "write" | null;
3113
3020
  sharingAddAccess: "delete" | "read" | "write" | null;
3114
3021
  delAccess: "delete" | "read" | "write" | null;
3115
3022
  sharingDelAccess: "delete" | "read" | "write" | null;
3116
- rootAccess: {
3117
- type: "ROOT" | "INHERITED";
3118
- sharedByPubKey: string;
3119
- } | null;
3023
+ sharedByPubKey: string;
3024
+ identityPubKey: string;
3120
3025
  }[];
3121
3026
  permissions: {
3122
3027
  rights: "delete" | "read" | "write";
@@ -3294,19 +3199,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3294
3199
  appId: string;
3295
3200
  };
3296
3201
  accesses: {
3297
- type: "ROOT" | "INHERITED";
3298
- identityPubKey: string;
3299
- sharedByPubKey: string;
3300
- nameKey: string | null;
3301
3202
  rights: "delete" | "read" | "write";
3203
+ nameKey: string | null;
3204
+ isRoot: boolean;
3302
3205
  addAccess: "delete" | "read" | "write" | null;
3303
3206
  sharingAddAccess: "delete" | "read" | "write" | null;
3304
3207
  delAccess: "delete" | "read" | "write" | null;
3305
3208
  sharingDelAccess: "delete" | "read" | "write" | null;
3306
- rootAccess: {
3307
- type: "ROOT" | "INHERITED";
3308
- sharedByPubKey: string;
3309
- } | null;
3209
+ sharedByPubKey: string;
3210
+ identityPubKey: string;
3310
3211
  }[];
3311
3212
  permissions: {
3312
3213
  rights: "delete" | "read" | "write";
@@ -3347,19 +3248,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3347
3248
  appId: string;
3348
3249
  };
3349
3250
  accesses: {
3350
- type: "ROOT" | "INHERITED";
3351
- identityPubKey: string;
3352
- sharedByPubKey: string;
3353
- nameKey: string | null;
3354
3251
  rights: "delete" | "read" | "write";
3252
+ nameKey: string | null;
3253
+ isRoot: boolean;
3355
3254
  addAccess: "delete" | "read" | "write" | null;
3356
3255
  sharingAddAccess: "delete" | "read" | "write" | null;
3357
3256
  delAccess: "delete" | "read" | "write" | null;
3358
3257
  sharingDelAccess: "delete" | "read" | "write" | null;
3359
- rootAccess: {
3360
- type: "ROOT" | "INHERITED";
3361
- sharedByPubKey: string;
3362
- } | null;
3258
+ sharedByPubKey: string;
3259
+ identityPubKey: string;
3363
3260
  }[];
3364
3261
  permissions: {
3365
3262
  rights: "delete" | "read" | "write";
@@ -3395,19 +3292,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3395
3292
  appId: string;
3396
3293
  };
3397
3294
  accesses: {
3398
- type: "ROOT" | "INHERITED";
3399
- identityPubKey: string;
3400
- sharedByPubKey: string;
3401
- nameKey: string | null;
3402
3295
  rights: "delete" | "read" | "write";
3296
+ nameKey: string | null;
3297
+ isRoot: boolean;
3403
3298
  addAccess: "delete" | "read" | "write" | null;
3404
3299
  sharingAddAccess: "delete" | "read" | "write" | null;
3405
3300
  delAccess: "delete" | "read" | "write" | null;
3406
3301
  sharingDelAccess: "delete" | "read" | "write" | null;
3407
- rootAccess: {
3408
- type: "ROOT" | "INHERITED";
3409
- sharedByPubKey: string;
3410
- } | null;
3302
+ sharedByPubKey: string;
3303
+ identityPubKey: string;
3411
3304
  }[];
3412
3305
  permissions: {
3413
3306
  rights: "delete" | "read" | "write";
@@ -3490,7 +3383,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3490
3383
  fromIdentityPubKey?: string | null | undefined;
3491
3384
  appId?: string | null | undefined;
3492
3385
  nodeId: string;
3493
- sharedByPubKey: string;
3386
+ fromPubKey: string;
3494
3387
  };
3495
3388
  output: {
3496
3389
  isDeleted: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.40.0-fix-create-folder-permissions.2",
3
+ "version": "1.40.0-fix-add-group-member.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"