@secrecy/lib 1.66.0-feat-next15.2 → 1.66.0-feat-next15.3

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.
@@ -14,7 +14,6 @@ import { kiloToBytes } from '../utils.js';
14
14
  import { fileTypeFromBuffer } from 'file-type';
15
15
  import { encryptName, generateAndEncryptNameAndKey } from '../crypto/domain.js';
16
16
  import { chunkByTotalItems } from '../utils/object.js';
17
- import axios from 'axios';
18
17
  export class SecrecyCloudClient {
19
18
  #client;
20
19
  #keys;
@@ -192,14 +191,11 @@ export class SecrecyCloudClient {
192
191
  formData.append(key, value);
193
192
  }
194
193
  formData.append('file', new Blob([chunk.data], { type: filetype?.mime }), `${uploadData.id}-${chunk.order}`);
195
- await axios.post(part.url, formData, {
194
+ await ky.post(part.url, {
196
195
  signal,
196
+ body: formData,
197
197
  onUploadProgress: (progressEvent) => {
198
- onProgress(part.order, {
199
- percent: progressEvent.progress ?? 0,
200
- totalBytes: progressEvent.total ?? 0,
201
- transferredBytes: progressEvent.loaded ?? 0,
202
- });
198
+ onProgress(part.order, progressEvent);
203
199
  },
204
200
  });
205
201
  return uploadDataPartEnd(chunk.md5, chunk.order);
@@ -553,8 +553,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
553
553
  }>;
554
554
  resendCode: import("@trpc/server").TRPCMutationProcedure<{
555
555
  input: {
556
- type: string;
557
- codeType: string;
556
+ type: "reset-password" | "sign-up";
557
+ codeType: "email" | "sms";
558
558
  email: string;
559
559
  phone: string;
560
560
  };
@@ -573,7 +573,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
573
573
  }>;
574
574
  sendCodes: import("@trpc/server").TRPCMutationProcedure<{
575
575
  input: {
576
- type: string;
576
+ type: "reset-password" | "sign-up";
577
577
  smsCode: string;
578
578
  emailCode: string;
579
579
  godFather?: string | undefined;
@@ -793,11 +793,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
793
793
  nodeId: string;
794
794
  };
795
795
  output: {
796
- type: "FILE" | "FOLDER";
797
796
  id: string;
798
797
  createdAt: Date;
799
798
  deletedAt: Date | null;
800
799
  name: string;
800
+ type: "FILE" | "FOLDER";
801
801
  updatedAt: Date;
802
802
  isFavorite: boolean;
803
803
  parentId: string | null;
@@ -841,11 +841,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
841
841
  };
842
842
  } & {
843
843
  parent: ({
844
- type: "FILE" | "FOLDER";
845
844
  id: string;
846
845
  createdAt: Date;
847
846
  deletedAt: Date | null;
848
847
  name: string;
848
+ type: "FILE" | "FOLDER";
849
849
  updatedAt: Date;
850
850
  isFavorite: boolean;
851
851
  parentId: string | null;
@@ -884,11 +884,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
884
884
  }][];
885
885
  }) | null;
886
886
  children: ({
887
- type: "FILE" | "FOLDER";
888
887
  id: string;
889
888
  createdAt: Date;
890
889
  deletedAt: Date | null;
891
890
  name: string;
891
+ type: "FILE" | "FOLDER";
892
892
  updatedAt: Date;
893
893
  isFavorite: boolean;
894
894
  parentId: string | null;
@@ -1190,11 +1190,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1190
1190
  nameKey: string;
1191
1191
  };
1192
1192
  output: {
1193
- type: "FILE" | "FOLDER";
1194
1193
  id: string;
1195
1194
  createdAt: Date;
1196
1195
  deletedAt: Date | null;
1197
1196
  name: string;
1197
+ type: "FILE" | "FOLDER";
1198
1198
  updatedAt: Date;
1199
1199
  isFavorite: boolean;
1200
1200
  parentId: string | null;
@@ -1238,11 +1238,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1238
1238
  };
1239
1239
  } & {
1240
1240
  parent: ({
1241
- type: "FILE" | "FOLDER";
1242
1241
  id: string;
1243
1242
  createdAt: Date;
1244
1243
  deletedAt: Date | null;
1245
1244
  name: string;
1245
+ type: "FILE" | "FOLDER";
1246
1246
  updatedAt: Date;
1247
1247
  isFavorite: boolean;
1248
1248
  parentId: string | null;
@@ -1281,11 +1281,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1281
1281
  }][];
1282
1282
  }) | null;
1283
1283
  children: ({
1284
- type: "FILE" | "FOLDER";
1285
1284
  id: string;
1286
1285
  createdAt: Date;
1287
1286
  deletedAt: Date | null;
1288
1287
  name: string;
1288
+ type: "FILE" | "FOLDER";
1289
1289
  updatedAt: Date;
1290
1290
  isFavorite: boolean;
1291
1291
  parentId: string | null;
@@ -1717,11 +1717,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1717
1717
  parentId: string | null;
1718
1718
  };
1719
1719
  output: {
1720
- type: "FILE" | "FOLDER";
1721
1720
  id: string;
1722
1721
  createdAt: Date;
1723
1722
  deletedAt: Date | null;
1724
1723
  name: string;
1724
+ type: "FILE" | "FOLDER";
1725
1725
  updatedAt: Date;
1726
1726
  isFavorite: boolean;
1727
1727
  parentId: string | null;
@@ -1765,11 +1765,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1765
1765
  };
1766
1766
  } & {
1767
1767
  parent: ({
1768
- type: "FILE" | "FOLDER";
1769
1768
  id: string;
1770
1769
  createdAt: Date;
1771
1770
  deletedAt: Date | null;
1772
1771
  name: string;
1772
+ type: "FILE" | "FOLDER";
1773
1773
  updatedAt: Date;
1774
1774
  isFavorite: boolean;
1775
1775
  parentId: string | null;
@@ -1808,11 +1808,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1808
1808
  }][];
1809
1809
  }) | null;
1810
1810
  children: ({
1811
- type: "FILE" | "FOLDER";
1812
1811
  id: string;
1813
1812
  createdAt: Date;
1814
1813
  deletedAt: Date | null;
1815
1814
  name: string;
1815
+ type: "FILE" | "FOLDER";
1816
1816
  updatedAt: Date;
1817
1817
  isFavorite: boolean;
1818
1818
  parentId: string | null;
@@ -2013,11 +2013,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2013
2013
  deleted?: boolean | null | undefined;
2014
2014
  };
2015
2015
  output: {
2016
- type: "FILE" | "FOLDER";
2017
2016
  id: string;
2018
2017
  createdAt: Date;
2019
2018
  deletedAt: Date | null;
2020
2019
  name: string;
2020
+ type: "FILE" | "FOLDER";
2021
2021
  updatedAt: Date;
2022
2022
  isFavorite: boolean;
2023
2023
  parentId: string | null;
@@ -2068,11 +2068,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2068
2068
  deleted?: boolean | null | undefined;
2069
2069
  };
2070
2070
  output: {
2071
- type: "FILE" | "FOLDER";
2072
2071
  id: string;
2073
2072
  createdAt: Date;
2074
2073
  deletedAt: Date | null;
2075
2074
  name: string;
2075
+ type: "FILE" | "FOLDER";
2076
2076
  updatedAt: Date;
2077
2077
  isFavorite: boolean;
2078
2078
  parentId: string | null;
@@ -2116,11 +2116,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2116
2116
  };
2117
2117
  } & {
2118
2118
  parent: ({
2119
- type: "FILE" | "FOLDER";
2120
2119
  id: string;
2121
2120
  createdAt: Date;
2122
2121
  deletedAt: Date | null;
2123
2122
  name: string;
2123
+ type: "FILE" | "FOLDER";
2124
2124
  updatedAt: Date;
2125
2125
  isFavorite: boolean;
2126
2126
  parentId: string | null;
@@ -2159,11 +2159,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2159
2159
  }][];
2160
2160
  }) | null;
2161
2161
  children: ({
2162
- type: "FILE" | "FOLDER";
2163
2162
  id: string;
2164
2163
  createdAt: Date;
2165
2164
  deletedAt: Date | null;
2166
2165
  name: string;
2166
+ type: "FILE" | "FOLDER";
2167
2167
  updatedAt: Date;
2168
2168
  isFavorite: boolean;
2169
2169
  parentId: string | null;
@@ -2290,11 +2290,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2290
2290
  nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
2291
2291
  input: Record<string, never>;
2292
2292
  output: ({
2293
- type: "FILE" | "FOLDER";
2294
2293
  id: string;
2295
2294
  createdAt: Date;
2296
2295
  deletedAt: Date | null;
2297
2296
  name: string;
2297
+ type: "FILE" | "FOLDER";
2298
2298
  updatedAt: Date;
2299
2299
  isFavorite: boolean;
2300
2300
  parentId: string | null;
@@ -2339,11 +2339,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2339
2339
  type: "FILE" | "FOLDER";
2340
2340
  };
2341
2341
  output: ({
2342
- type: "FILE" | "FOLDER";
2343
2342
  id: string;
2344
2343
  createdAt: Date;
2345
2344
  deletedAt: Date | null;
2346
2345
  name: string;
2346
+ type: "FILE" | "FOLDER";
2347
2347
  updatedAt: Date;
2348
2348
  isFavorite: boolean;
2349
2349
  parentId: string | null;
@@ -2386,11 +2386,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2386
2386
  nodesShared: import("@trpc/server").TRPCQueryProcedure<{
2387
2387
  input: void;
2388
2388
  output: ({
2389
- type: "FILE" | "FOLDER";
2390
2389
  id: string;
2391
2390
  createdAt: Date;
2392
2391
  deletedAt: Date | null;
2393
2392
  name: string;
2393
+ type: "FILE" | "FOLDER";
2394
2394
  updatedAt: Date;
2395
2395
  isFavorite: boolean;
2396
2396
  parentId: string | null;
@@ -2552,11 +2552,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2552
2552
  deletedAt: Date | null;
2553
2553
  };
2554
2554
  output: {
2555
- type: "FILE" | "FOLDER";
2556
2555
  id: string;
2557
2556
  createdAt: Date;
2558
2557
  deletedAt: Date | null;
2559
2558
  name: string;
2559
+ type: "FILE" | "FOLDER";
2560
2560
  updatedAt: Date;
2561
2561
  isFavorite: boolean;
2562
2562
  parentId: string | null;
@@ -2600,11 +2600,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2600
2600
  };
2601
2601
  } & {
2602
2602
  parent: ({
2603
- type: "FILE" | "FOLDER";
2604
2603
  id: string;
2605
2604
  createdAt: Date;
2606
2605
  deletedAt: Date | null;
2607
2606
  name: string;
2607
+ type: "FILE" | "FOLDER";
2608
2608
  updatedAt: Date;
2609
2609
  isFavorite: boolean;
2610
2610
  parentId: string | null;
@@ -2643,11 +2643,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2643
2643
  }][];
2644
2644
  }) | null;
2645
2645
  children: ({
2646
- type: "FILE" | "FOLDER";
2647
2646
  id: string;
2648
2647
  createdAt: Date;
2649
2648
  deletedAt: Date | null;
2650
2649
  name: string;
2650
+ type: "FILE" | "FOLDER";
2651
2651
  updatedAt: Date;
2652
2652
  isFavorite: boolean;
2653
2653
  parentId: string | null;
@@ -3701,10 +3701,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3701
3701
  id: string;
3702
3702
  };
3703
3703
  output: {
3704
- type: "sent" | "received";
3705
3704
  id: string;
3706
3705
  createdAt: Date;
3707
3706
  deletedAt: Date | null;
3707
+ type: "sent" | "received";
3708
3708
  body: string;
3709
3709
  subject: string;
3710
3710
  openedAt: Date | null;
@@ -3776,10 +3776,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3776
3776
  }[];
3777
3777
  };
3778
3778
  output: {
3779
- type: "sent" | "received";
3780
3779
  id: string;
3781
3780
  createdAt: Date;
3782
3781
  deletedAt: Date | null;
3782
+ type: "sent" | "received";
3783
3783
  body: string;
3784
3784
  subject: string;
3785
3785
  openedAt: Date | null;
@@ -3867,10 +3867,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3867
3867
  type: "sent" | "received";
3868
3868
  };
3869
3869
  output: ({
3870
- type: "sent" | "received";
3871
3870
  id: string;
3872
3871
  createdAt: Date;
3873
3872
  deletedAt: Date | null;
3873
+ type: "sent" | "received";
3874
3874
  body: string;
3875
3875
  subject: string;
3876
3876
  openedAt: Date | null;
@@ -3932,10 +3932,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3932
3932
  perPage?: number | undefined;
3933
3933
  };
3934
3934
  output: ({
3935
- type: "sent" | "received";
3936
3935
  id: string;
3937
3936
  createdAt: Date;
3938
3937
  deletedAt: Date | null;
3938
+ type: "sent" | "received";
3939
3939
  body: string;
3940
3940
  subject: string;
3941
3941
  openedAt: Date | null;
@@ -4013,10 +4013,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4013
4013
  perPage?: number | undefined;
4014
4014
  };
4015
4015
  output: ({
4016
- type: "sent" | "received";
4017
4016
  id: string;
4018
4017
  createdAt: Date;
4019
4018
  deletedAt: Date | null;
4019
+ type: "sent" | "received";
4020
4020
  body: string;
4021
4021
  subject: string;
4022
4022
  openedAt: Date | null;
@@ -4140,10 +4140,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4140
4140
  perPage?: number | undefined;
4141
4141
  };
4142
4142
  output: ({
4143
- type: "sent" | "received";
4144
4143
  id: string;
4145
4144
  createdAt: Date;
4146
4145
  deletedAt: Date | null;
4146
+ type: "sent" | "received";
4147
4147
  body: string;
4148
4148
  subject: string;
4149
4149
  openedAt: Date | null;
@@ -4229,10 +4229,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4229
4229
  }[] | null;
4230
4230
  };
4231
4231
  output: {
4232
- type: "sent" | "received";
4233
4232
  id: string;
4234
4233
  createdAt: Date;
4235
4234
  deletedAt: Date | null;
4235
+ type: "sent" | "received";
4236
4236
  body: string;
4237
4237
  subject: string;
4238
4238
  openedAt: Date | null;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Anonymize <anonymize@gmail.com>",
4
4
  "description": "Anonymize Secrecy Library",
5
- "version": "1.66.0-feat-next15.2",
5
+ "version": "1.66.0-feat-next15.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -39,11 +39,11 @@
39
39
  "clean": "rimraf dist",
40
40
  "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
41
41
  "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
42
- "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --cache --cache-location='node_modules/.cache/.prettiercache'",
43
- "format:fix": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --write --cache --cache-location='node_modules/.cache/.prettiercache'",
42
+ "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --cache --cache-strategy content --cache-location='node_modules/.cache/.prettiercache'",
43
+ "format:fix": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --write --cache --cache-strategy content --cache-location='node_modules/.cache/.prettiercache'",
44
44
  "docs": "typedoc",
45
45
  "prepublish": "bun run build",
46
- "typecheck": "tsc --noEmit",
46
+ "check-types": "tsc --noEmit",
47
47
  "build": "tsc -p tsconfig.build.json",
48
48
  "prepare": "husky",
49
49
  "semantic-release": "semantic-release"
@@ -51,14 +51,14 @@
51
51
  "devDependencies": {
52
52
  "@commitlint/cli": "^19.8.1",
53
53
  "@commitlint/config-conventional": "^19.8.1",
54
- "@prisma/client": "6.14.0",
55
- "@types/bun": "^1.2.20",
54
+ "@prisma/client": "6.15.0",
55
+ "@types/bun": "^1.2.21",
56
56
  "@types/jsonwebtoken": "^9.0.10",
57
57
  "@types/spark-md5": "^3.0.5",
58
- "@typescript-eslint/eslint-plugin": "^8.40.0",
59
- "@typescript-eslint/parser": "^8.40.0",
60
- "eslint": "^9.34.0",
61
- "eslint-config-love": "^121.0.0",
58
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
59
+ "@typescript-eslint/parser": "^8.42.0",
60
+ "eslint": "^9.35.0",
61
+ "eslint-config-love": "^122.0.0",
62
62
  "eslint-config-prettier": "^10.1.8",
63
63
  "eslint-plugin-import": "^2.32.0",
64
64
  "eslint-plugin-n": "^17.21.3",
@@ -68,27 +68,26 @@
68
68
  "prettier": "^3.6.2",
69
69
  "rimraf": "^6.0.1",
70
70
  "semantic-release": "^24.2.7",
71
- "typedoc": "^0.28.11",
71
+ "typedoc": "^0.28.12",
72
72
  "typedoc-plugin-markdown": "^4.8.1",
73
73
  "typedoc-plugin-missing-exports": "^4.1.0",
74
74
  "typescript": "^5.9.2"
75
75
  },
76
76
  "dependencies": {
77
77
  "@js-temporal/polyfill": "^0.5.1",
78
- "@secrecy/trpc-api-types": "1.33.0-feat-next15.7",
79
- "@trpc/client": "11.5.0",
80
- "@trpc/server": "11.5.0",
78
+ "@secrecy/trpc-api-types": "1.33.0-feat-next15.14",
79
+ "@trpc/client": "11.5.1",
80
+ "@trpc/server": "11.5.1",
81
81
  "@types/libsodium-wrappers-sumo": "^0.7.8",
82
- "axios": "^1.11.0",
83
82
  "bson": "^6.10.4",
84
83
  "ethers": "^6.15.0",
85
84
  "file-type": "^21.0.0",
86
85
  "jsonwebtoken": "^9.0.2",
87
- "ky": "^1.9.0",
86
+ "ky": "^1.10.0",
88
87
  "libsodium-wrappers-sumo": "^0.7.15",
89
- "lru-cache": "^11.1.0",
88
+ "lru-cache": "^11.2.1",
90
89
  "spark-md5": "^3.0.2",
91
90
  "superjson": "2.2.2",
92
- "zod": "4.1.1"
91
+ "zod": "4.1.5"
93
92
  }
94
93
  }