@secrecy/trpc-api-types 1.33.0-feat-share-node-enhanced.3 → 1.33.0-feat-share-node-enhanced.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.cts +114 -2
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -12456,6 +12456,118 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12456
12456
  slug: string;
12457
12457
  };
12458
12458
  }, unknown>;
12459
+ checkAccesses: _trpc_server.BuildProcedure<"query", {
12460
+ _config: _trpc_server.RootConfig<{
12461
+ ctx: {
12462
+ req: {
12463
+ headers: Headers;
12464
+ };
12465
+ res: {
12466
+ headers: Headers;
12467
+ };
12468
+ session: SecrecySession | null;
12469
+ locale: Locales;
12470
+ ls: TranslationFunctions;
12471
+ };
12472
+ meta: object;
12473
+ errorShape: {
12474
+ message: string;
12475
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12476
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12477
+ } | {
12478
+ data: {
12479
+ zodError: zod.typeToFlattenedError<any, string> | null;
12480
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12481
+ httpStatus: number;
12482
+ path?: string;
12483
+ stack?: string;
12484
+ };
12485
+ message: string;
12486
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12487
+ };
12488
+ transformer: typeof superjson.default;
12489
+ }>;
12490
+ _meta: object;
12491
+ _ctx_out: {
12492
+ session: Required<SecrecySession>;
12493
+ req: {
12494
+ headers: Headers;
12495
+ };
12496
+ res: {
12497
+ headers: Headers;
12498
+ };
12499
+ locale: Locales;
12500
+ ls: TranslationFunctions;
12501
+ };
12502
+ _input_in: {
12503
+ userId: string;
12504
+ rights: "admin" | "write" | "read";
12505
+ nodes: {
12506
+ data: {
12507
+ id: string;
12508
+ key: string | null;
12509
+ }[];
12510
+ id: string;
12511
+ nameKey: string | null;
12512
+ }[];
12513
+ }[];
12514
+ _input_out: {
12515
+ userId: string;
12516
+ rights: "admin" | "write" | "read";
12517
+ nodes: {
12518
+ data: {
12519
+ id: string;
12520
+ key: string | null;
12521
+ }[];
12522
+ id: string;
12523
+ nameKey: string | null;
12524
+ }[];
12525
+ }[];
12526
+ _output_in: {
12527
+ isMatching: true;
12528
+ } | {
12529
+ details: {
12530
+ missingNodeAccesses: {
12531
+ userId: string;
12532
+ nodeId: string;
12533
+ }[];
12534
+ missingDataAccesses: {
12535
+ userId: string;
12536
+ dataId: string;
12537
+ nodeId: string;
12538
+ }[];
12539
+ invalidRightsAccesses: {
12540
+ userId: string;
12541
+ current: "admin" | "write" | "read";
12542
+ nodeId: string;
12543
+ expect: "admin" | "write" | "read";
12544
+ }[];
12545
+ };
12546
+ isMatching: false;
12547
+ };
12548
+ _output_out: {
12549
+ isMatching: true;
12550
+ } | {
12551
+ details: {
12552
+ missingNodeAccesses: {
12553
+ userId: string;
12554
+ nodeId: string;
12555
+ }[];
12556
+ missingDataAccesses: {
12557
+ userId: string;
12558
+ dataId: string;
12559
+ nodeId: string;
12560
+ }[];
12561
+ invalidRightsAccesses: {
12562
+ userId: string;
12563
+ current: "admin" | "write" | "read";
12564
+ nodeId: string;
12565
+ expect: "admin" | "write" | "read";
12566
+ }[];
12567
+ };
12568
+ isMatching: false;
12569
+ };
12570
+ }, unknown>;
12459
12571
  createFolder: _trpc_server.BuildProcedure<"mutation", {
12460
12572
  _config: _trpc_server.RootConfig<{
12461
12573
  ctx: {
@@ -14381,7 +14493,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14381
14493
  dataId: string;
14382
14494
  nodeId: string;
14383
14495
  }[];
14384
- invalidRightAccesses: {
14496
+ invalidRightsAccesses: {
14385
14497
  userId: string;
14386
14498
  current: "admin" | "write" | "read";
14387
14499
  nodeId: string;
@@ -14403,7 +14515,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14403
14515
  dataId: string;
14404
14516
  nodeId: string;
14405
14517
  }[];
14406
- invalidRightAccesses: {
14518
+ invalidRightsAccesses: {
14407
14519
  userId: string;
14408
14520
  current: "admin" | "write" | "read";
14409
14521
  nodeId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-share-node-enhanced.3",
3
+ "version": "1.33.0-feat-share-node-enhanced.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"