@secrecy/trpc-api-types 1.33.0-feat-groups-identity.2 → 1.33.0-feat-groups-identity.4

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 +78 -12
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { BuiltRouter, AnyRootTypes, Simplify, AnyProcedure, CreateRouterOptions, DecorateCreateRouterOptions } from '@trpc/server/unstable-core-do-not-import';
2
2
  import type * as _neondatabase_api_client from '@neondatabase/api-client';
3
3
  import type * as zod_v4 from 'zod/v4';
4
+ import type { z } from 'zod/v4';
4
5
  import type * as _trpc_server from '@trpc/server';
5
6
 
6
7
  declare var appRouter: _trpc_server.TRPCBuiltRouter<{
@@ -999,6 +1000,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
999
1000
  delAccess: "delete" | "read" | "write" | null;
1000
1001
  sharingDelAccess: "delete" | "read" | "write" | null;
1001
1002
  sharedByPubKey: string;
1003
+ identityPubKey: string;
1002
1004
  }[];
1003
1005
  permissions: {
1004
1006
  rights: "delete" | "read" | "write";
@@ -1047,6 +1049,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1047
1049
  delAccess: "delete" | "read" | "write" | null;
1048
1050
  sharingDelAccess: "delete" | "read" | "write" | null;
1049
1051
  sharedByPubKey: string;
1052
+ identityPubKey: string;
1050
1053
  }[];
1051
1054
  permissions: {
1052
1055
  rights: "delete" | "read" | "write";
@@ -1090,6 +1093,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1090
1093
  delAccess: "delete" | "read" | "write" | null;
1091
1094
  sharingDelAccess: "delete" | "read" | "write" | null;
1092
1095
  sharedByPubKey: string;
1096
+ identityPubKey: string;
1093
1097
  }[];
1094
1098
  permissions: {
1095
1099
  rights: "delete" | "read" | "write";
@@ -1158,7 +1162,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1158
1162
  breadcrumb: {
1159
1163
  id: string;
1160
1164
  name: string;
1161
- pubKey: string;
1165
+ identityPubKey: string;
1166
+ sharedByPubKey: string;
1162
1167
  nameKey: string | null;
1163
1168
  }[];
1164
1169
  };
@@ -1400,6 +1405,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1400
1405
  delAccess: "delete" | "read" | "write" | null;
1401
1406
  sharingDelAccess: "delete" | "read" | "write" | null;
1402
1407
  sharedByPubKey: string;
1408
+ identityPubKey: string;
1403
1409
  }[];
1404
1410
  permissions: {
1405
1411
  rights: "delete" | "read" | "write";
@@ -1448,6 +1454,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1448
1454
  delAccess: "delete" | "read" | "write" | null;
1449
1455
  sharingDelAccess: "delete" | "read" | "write" | null;
1450
1456
  sharedByPubKey: string;
1457
+ identityPubKey: string;
1451
1458
  }[];
1452
1459
  permissions: {
1453
1460
  rights: "delete" | "read" | "write";
@@ -1491,6 +1498,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1491
1498
  delAccess: "delete" | "read" | "write" | null;
1492
1499
  sharingDelAccess: "delete" | "read" | "write" | null;
1493
1500
  sharedByPubKey: string;
1501
+ identityPubKey: string;
1494
1502
  }[];
1495
1503
  permissions: {
1496
1504
  rights: "delete" | "read" | "write";
@@ -1559,7 +1567,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1559
1567
  breadcrumb: {
1560
1568
  id: string;
1561
1569
  name: string;
1562
- pubKey: string;
1570
+ identityPubKey: string;
1571
+ sharedByPubKey: string;
1563
1572
  nameKey: string | null;
1564
1573
  }[];
1565
1574
  };
@@ -1976,6 +1985,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1976
1985
  delAccess: "delete" | "read" | "write" | null;
1977
1986
  sharingDelAccess: "delete" | "read" | "write" | null;
1978
1987
  sharedByPubKey: string;
1988
+ identityPubKey: string;
1979
1989
  }[];
1980
1990
  permissions: {
1981
1991
  rights: "delete" | "read" | "write";
@@ -2024,6 +2034,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2024
2034
  delAccess: "delete" | "read" | "write" | null;
2025
2035
  sharingDelAccess: "delete" | "read" | "write" | null;
2026
2036
  sharedByPubKey: string;
2037
+ identityPubKey: string;
2027
2038
  }[];
2028
2039
  permissions: {
2029
2040
  rights: "delete" | "read" | "write";
@@ -2067,6 +2078,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2067
2078
  delAccess: "delete" | "read" | "write" | null;
2068
2079
  sharingDelAccess: "delete" | "read" | "write" | null;
2069
2080
  sharedByPubKey: string;
2081
+ identityPubKey: string;
2070
2082
  }[];
2071
2083
  permissions: {
2072
2084
  rights: "delete" | "read" | "write";
@@ -2135,7 +2147,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2135
2147
  breadcrumb: {
2136
2148
  id: string;
2137
2149
  name: string;
2138
- pubKey: string;
2150
+ identityPubKey: string;
2151
+ sharedByPubKey: string;
2139
2152
  nameKey: string | null;
2140
2153
  }[];
2141
2154
  };
@@ -2249,7 +2262,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2249
2262
  output: {
2250
2263
  id: string;
2251
2264
  name: string;
2252
- pubKey: string;
2265
+ identityPubKey: string;
2266
+ sharedByPubKey: string;
2253
2267
  nameKey: string | null;
2254
2268
  }[];
2255
2269
  meta: any;
@@ -2285,6 +2299,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2285
2299
  delAccess: "delete" | "read" | "write" | null;
2286
2300
  sharingDelAccess: "delete" | "read" | "write" | null;
2287
2301
  sharedByPubKey: string;
2302
+ identityPubKey: string;
2288
2303
  }[];
2289
2304
  permissions: {
2290
2305
  rights: "delete" | "read" | "write";
@@ -2341,6 +2356,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2341
2356
  delAccess: "delete" | "read" | "write" | null;
2342
2357
  sharingDelAccess: "delete" | "read" | "write" | null;
2343
2358
  sharedByPubKey: string;
2359
+ identityPubKey: string;
2344
2360
  }[];
2345
2361
  permissions: {
2346
2362
  rights: "delete" | "read" | "write";
@@ -2389,6 +2405,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2389
2405
  delAccess: "delete" | "read" | "write" | null;
2390
2406
  sharingDelAccess: "delete" | "read" | "write" | null;
2391
2407
  sharedByPubKey: string;
2408
+ identityPubKey: string;
2392
2409
  }[];
2393
2410
  permissions: {
2394
2411
  rights: "delete" | "read" | "write";
@@ -2432,6 +2449,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2432
2449
  delAccess: "delete" | "read" | "write" | null;
2433
2450
  sharingDelAccess: "delete" | "read" | "write" | null;
2434
2451
  sharedByPubKey: string;
2452
+ identityPubKey: string;
2435
2453
  }[];
2436
2454
  permissions: {
2437
2455
  rights: "delete" | "read" | "write";
@@ -2500,7 +2518,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2500
2518
  breadcrumb: {
2501
2519
  id: string;
2502
2520
  name: string;
2503
- pubKey: string;
2521
+ identityPubKey: string;
2522
+ sharedByPubKey: string;
2504
2523
  nameKey: string | null;
2505
2524
  }[];
2506
2525
  };
@@ -2570,6 +2589,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2570
2589
  delAccess: "delete" | "read" | "write" | null;
2571
2590
  sharingDelAccess: "delete" | "read" | "write" | null;
2572
2591
  sharedByPubKey: string;
2592
+ identityPubKey: string;
2573
2593
  }[];
2574
2594
  permissions: {
2575
2595
  rights: "delete" | "read" | "write";
@@ -2620,6 +2640,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2620
2640
  delAccess: "delete" | "read" | "write" | null;
2621
2641
  sharingDelAccess: "delete" | "read" | "write" | null;
2622
2642
  sharedByPubKey: string;
2643
+ identityPubKey: string;
2623
2644
  }[];
2624
2645
  permissions: {
2625
2646
  rights: "delete" | "read" | "write";
@@ -2669,6 +2690,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2669
2690
  delAccess: "delete" | "read" | "write" | null;
2670
2691
  sharingDelAccess: "delete" | "read" | "write" | null;
2671
2692
  sharedByPubKey: string;
2693
+ identityPubKey: string;
2672
2694
  }[];
2673
2695
  permissions: {
2674
2696
  rights: "delete" | "read" | "write";
@@ -2846,6 +2868,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2846
2868
  delAccess: "delete" | "read" | "write" | null;
2847
2869
  sharingDelAccess: "delete" | "read" | "write" | null;
2848
2870
  sharedByPubKey: string;
2871
+ identityPubKey: string;
2849
2872
  }[];
2850
2873
  permissions: {
2851
2874
  rights: "delete" | "read" | "write";
@@ -2894,6 +2917,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2894
2917
  delAccess: "delete" | "read" | "write" | null;
2895
2918
  sharingDelAccess: "delete" | "read" | "write" | null;
2896
2919
  sharedByPubKey: string;
2920
+ identityPubKey: string;
2897
2921
  }[];
2898
2922
  permissions: {
2899
2923
  rights: "delete" | "read" | "write";
@@ -2937,6 +2961,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
2937
2961
  delAccess: "delete" | "read" | "write" | null;
2938
2962
  sharingDelAccess: "delete" | "read" | "write" | null;
2939
2963
  sharedByPubKey: string;
2964
+ identityPubKey: string;
2940
2965
  }[];
2941
2966
  permissions: {
2942
2967
  rights: "delete" | "read" | "write";
@@ -3005,7 +3030,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
3005
3030
  breadcrumb: {
3006
3031
  id: string;
3007
3032
  name: string;
3008
- pubKey: string;
3033
+ identityPubKey: string;
3034
+ sharedByPubKey: string;
3009
3035
  nameKey: string | null;
3010
3036
  }[];
3011
3037
  };
@@ -5354,10 +5380,20 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5354
5380
  output: {
5355
5381
  uaSession: string;
5356
5382
  jwt: string;
5357
- keyPair: {
5358
- pub: string;
5383
+ identities: ({
5384
+ kind: "USER_APP";
5385
+ identityPubKey: string;
5386
+ userId: string;
5387
+ appId: string;
5359
5388
  encPriv: string;
5360
- };
5389
+ } | {
5390
+ kind: "GROUP";
5391
+ identityPubKey: string;
5392
+ groupId: string;
5393
+ encPriv: string;
5394
+ sharedByPubKey: string;
5395
+ groupOwnerPubKey: string;
5396
+ })[];
5361
5397
  };
5362
5398
  meta: any;
5363
5399
  }>;
@@ -5374,10 +5410,20 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5374
5410
  output: {
5375
5411
  uaSession: string;
5376
5412
  jwt: string;
5377
- keyPair?: {
5378
- pub: string;
5413
+ identities: ({
5414
+ kind: "USER_APP";
5415
+ identityPubKey: string;
5416
+ userId: string;
5417
+ appId: string;
5379
5418
  encPriv: string;
5380
- } | undefined;
5419
+ } | {
5420
+ kind: "GROUP";
5421
+ identityPubKey: string;
5422
+ groupId: string;
5423
+ encPriv: string;
5424
+ sharedByPubKey: string;
5425
+ groupOwnerPubKey: string;
5426
+ })[] | null;
5381
5427
  };
5382
5428
  meta: any;
5383
5429
  }>;
@@ -6282,6 +6328,26 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6282
6328
  };
6283
6329
  meta: any;
6284
6330
  }>;
6331
+ list: _trpc_server.TRPCQueryProcedure<{
6332
+ input: void;
6333
+ output: {
6334
+ identities: ({
6335
+ kind: "USER_APP";
6336
+ identityPubKey: string;
6337
+ userId: string;
6338
+ appId: string;
6339
+ encPriv: string;
6340
+ } | {
6341
+ kind: "GROUP";
6342
+ identityPubKey: string;
6343
+ groupId: string;
6344
+ encPriv: string;
6345
+ sharedByPubKey: string;
6346
+ groupOwnerPubKey: string;
6347
+ })[];
6348
+ };
6349
+ meta: any;
6350
+ }>;
6285
6351
  }>>;
6286
6352
  }>>;
6287
6353
  type AppRouter = typeof appRouter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-groups-identity.2",
3
+ "version": "1.33.0-feat-groups-identity.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"