@secrecy/trpc-api-types 1.33.0-feat-share-node-enhanced.6 → 1.33.0-feat-share-node-enhanced.8

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 +85 -37
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -13942,6 +13942,86 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13942
13942
  }[];
13943
13943
  };
13944
13944
  }, unknown>;
13945
+ nodesForEncryption: _trpc_server.BuildProcedure<"query", {
13946
+ _config: _trpc_server.RootConfig<{
13947
+ ctx: {
13948
+ req: {
13949
+ headers: Headers;
13950
+ };
13951
+ res: {
13952
+ headers: Headers;
13953
+ };
13954
+ session: SecrecySession | null;
13955
+ locale: Locales;
13956
+ ls: TranslationFunctions;
13957
+ };
13958
+ meta: object;
13959
+ errorShape: {
13960
+ message: string;
13961
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13962
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13963
+ } | {
13964
+ data: {
13965
+ zodError: zod.typeToFlattenedError<any, string> | null;
13966
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13967
+ httpStatus: number;
13968
+ path?: string;
13969
+ stack?: string;
13970
+ };
13971
+ message: string;
13972
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13973
+ };
13974
+ transformer: typeof superjson.default;
13975
+ }>;
13976
+ _meta: object;
13977
+ _ctx_out: {
13978
+ session: Required<SecrecySession>;
13979
+ req: {
13980
+ headers: Headers;
13981
+ };
13982
+ res: {
13983
+ headers: Headers;
13984
+ };
13985
+ locale: Locales;
13986
+ ls: TranslationFunctions;
13987
+ };
13988
+ _input_in: {
13989
+ ids: string[];
13990
+ };
13991
+ _input_out: {
13992
+ ids: string[];
13993
+ };
13994
+ _output_in: {
13995
+ id: string;
13996
+ type: "FILE" | "FOLDER";
13997
+ history: {
13998
+ id: string;
13999
+ access: {
14000
+ key: string;
14001
+ sharedByPublicKey: string;
14002
+ };
14003
+ }[];
14004
+ access: {
14005
+ nameKey: string;
14006
+ sharedByPublicKey: string;
14007
+ };
14008
+ }[];
14009
+ _output_out: {
14010
+ id: string;
14011
+ type: "FILE" | "FOLDER";
14012
+ history: {
14013
+ id: string;
14014
+ access: {
14015
+ key: string;
14016
+ sharedByPublicKey: string;
14017
+ };
14018
+ }[];
14019
+ access: {
14020
+ nameKey: string;
14021
+ sharedByPublicKey: string;
14022
+ };
14023
+ }[];
14024
+ }, unknown>;
13945
14025
  nodeSizeById: _trpc_server.BuildProcedure<"query", {
13946
14026
  _config: _trpc_server.RootConfig<{
13947
14027
  ctx: {
@@ -14444,17 +14524,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14444
14524
  id: string;
14445
14525
  nameKey: string | null;
14446
14526
  }[];
14447
- } | {
14448
- userId: string;
14449
- rights: "admin" | "write" | "read";
14450
- nodes: {
14451
- data: {
14452
- id: string;
14453
- key: string | null;
14454
- }[];
14455
- id: string;
14456
- nameKey: string | null;
14457
- }[];
14458
14527
  }[];
14459
14528
  _input_out: {
14460
14529
  userId: string;
@@ -14467,17 +14536,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14467
14536
  id: string;
14468
14537
  nameKey: string | null;
14469
14538
  }[];
14470
- } | {
14471
- userId: string;
14472
- rights: "admin" | "write" | "read";
14473
- nodes: {
14474
- data: {
14475
- id: string;
14476
- key: string | null;
14477
- }[];
14478
- id: string;
14479
- nameKey: string | null;
14480
- }[];
14481
14539
  }[];
14482
14540
  _output_in: {
14483
14541
  isFinished: true;
@@ -14570,7 +14628,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14570
14628
  _input_in: {
14571
14629
  userId: string;
14572
14630
  nodeId: string;
14573
- } | {
14631
+ }[] | {
14574
14632
  nodeIds: string[];
14575
14633
  userIds: string[];
14576
14634
  } | {
@@ -14579,14 +14637,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14579
14637
  } | {
14580
14638
  userId: string;
14581
14639
  nodeIds: string[];
14582
- } | {
14583
- userId: string;
14584
- nodeId: string;
14585
- }[];
14640
+ };
14586
14641
  _input_out: {
14587
14642
  userId: string;
14588
14643
  nodeId: string;
14589
- } | {
14644
+ }[] | {
14590
14645
  nodeIds: string[];
14591
14646
  userIds: string[];
14592
14647
  } | {
@@ -14595,16 +14650,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14595
14650
  } | {
14596
14651
  userId: string;
14597
14652
  nodeIds: string[];
14598
- } | {
14599
- userId: string;
14600
- nodeId: string;
14601
- }[];
14602
- _output_in: {
14603
- ids: string[] | Record<string, string[]>;
14604
- };
14605
- _output_out: {
14606
- ids: string[] | Record<string, string[]>;
14607
14653
  };
14654
+ _output_in: Record<string, string[]>;
14655
+ _output_out: Record<string, string[]>;
14608
14656
  }, unknown>;
14609
14657
  updateNode: _trpc_server.BuildProcedure<"mutation", {
14610
14658
  _config: _trpc_server.RootConfig<{
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.6",
3
+ "version": "1.33.0-feat-share-node-enhanced.8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"