@secrecy/lib 1.34.0 → 1.35.0

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.
@@ -185,6 +185,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
185
185
  avatar: string | null;
186
186
  isSearchable: boolean;
187
187
  }[];
188
+ currentUserId: string;
188
189
  };
189
190
  _output_out: {
190
191
  users: {
@@ -194,6 +195,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
194
195
  avatar: string | null;
195
196
  isSearchable: boolean;
196
197
  }[];
198
+ currentUserId: string;
197
199
  };
198
200
  }, unknown>>;
199
201
  };
@@ -1945,11 +1947,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
1945
1947
  };
1946
1948
  _output_in: {
1947
1949
  sessionId: string;
1950
+ userId: string;
1948
1951
  } & {
1949
1952
  masterKeySalt: string;
1950
1953
  };
1951
1954
  _output_out: {
1952
1955
  sessionId: string;
1956
+ userId: string;
1953
1957
  } & {
1954
1958
  masterKeySalt: string;
1955
1959
  };
@@ -3150,7 +3154,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3150
3154
  }>;
3151
3155
  _meta: object;
3152
3156
  _ctx_out: {
3153
- session: SecrecySessionWithApp;
3157
+ session: SecrecySession;
3154
3158
  req: {
3155
3159
  headers: Headers;
3156
3160
  body: ReadableStream<Uint8Array> | null;
@@ -3164,10 +3168,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3164
3168
  _input_in: {
3165
3169
  dataId: string;
3166
3170
  nodeId: string;
3171
+ } & {
3172
+ appId?: string | null | undefined;
3167
3173
  };
3168
3174
  _input_out: {
3169
3175
  dataId: string;
3170
3176
  nodeId: string;
3177
+ } & {
3178
+ appId?: string | null | undefined;
3171
3179
  };
3172
3180
  _output_in: {
3173
3181
  isDeleted: boolean;
@@ -4042,8 +4050,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4042
4050
  min?: Date | undefined;
4043
4051
  } | undefined;
4044
4052
  size?: {
4045
- max?: bigint | undefined;
4046
- min?: bigint | undefined;
4053
+ max?: string | bigint | undefined;
4054
+ min?: string | bigint | undefined;
4047
4055
  } | undefined;
4048
4056
  appIds?: string[] | undefined;
4049
4057
  sharedCount?: {
@@ -4080,68 +4088,86 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4080
4088
  } | undefined;
4081
4089
  };
4082
4090
  _output_in: {
4083
- keyPairs: {
4084
- appId: string;
4085
- pub: string;
4086
- encPriv: string;
4087
- }[];
4088
- nodes: {
4089
- id: string;
4090
- createdAt: Date;
4091
- deletedAt: Date | null;
4092
- name: string;
4093
- updatedAt: Date;
4094
- history: {
4095
- createdAt: Date;
4096
- dataId: string;
4097
- size: bigint;
4098
- storageType: "s3" | "lite";
4099
- }[];
4100
- access: {
4091
+ data: {
4092
+ keyPairs: {
4101
4093
  appId: string;
4102
- nameKey: string;
4103
- };
4104
- totalSize: bigint;
4105
- breadcrumb: {
4094
+ pub: string;
4095
+ encPriv: string;
4096
+ }[];
4097
+ nodes: {
4106
4098
  id: string;
4099
+ createdAt: Date;
4100
+ deletedAt: Date | null;
4107
4101
  name: string;
4108
- nameKey: string | null;
4109
- pubKey: string;
4102
+ updatedAt: Date;
4103
+ history: {
4104
+ createdAt: Date;
4105
+ dataId: string;
4106
+ size: bigint;
4107
+ storageType: "s3" | "lite";
4108
+ }[];
4109
+ access: {
4110
+ appId: string;
4111
+ nameKey: string;
4112
+ };
4113
+ totalSize: bigint;
4114
+ breadcrumb: {
4115
+ id: string;
4116
+ name: string;
4117
+ nameKey: string | null;
4118
+ pubKey: string;
4119
+ }[];
4120
+ sharedCount: number;
4110
4121
  }[];
4111
- sharedCount: number;
4112
- }[];
4122
+ };
4123
+ pagination: {
4124
+ next: number | null;
4125
+ prev: number | null;
4126
+ last: number;
4127
+ perPage: number;
4128
+ totalItems: number;
4129
+ };
4113
4130
  };
4114
4131
  _output_out: {
4115
- keyPairs: {
4116
- appId: string;
4117
- pub: string;
4118
- encPriv: string;
4119
- }[];
4120
- nodes: {
4121
- id: string;
4122
- createdAt: Date;
4123
- deletedAt: Date | null;
4124
- name: string;
4125
- updatedAt: Date;
4126
- history: {
4127
- createdAt: Date;
4128
- dataId: string;
4129
- size: bigint;
4130
- storageType: "s3" | "lite";
4131
- }[];
4132
- access: {
4132
+ data: {
4133
+ keyPairs: {
4133
4134
  appId: string;
4134
- nameKey: string;
4135
- };
4136
- totalSize: bigint;
4137
- breadcrumb: {
4135
+ pub: string;
4136
+ encPriv: string;
4137
+ }[];
4138
+ nodes: {
4138
4139
  id: string;
4140
+ createdAt: Date;
4141
+ deletedAt: Date | null;
4139
4142
  name: string;
4140
- nameKey: string | null;
4141
- pubKey: string;
4143
+ updatedAt: Date;
4144
+ history: {
4145
+ createdAt: Date;
4146
+ dataId: string;
4147
+ size: bigint;
4148
+ storageType: "s3" | "lite";
4149
+ }[];
4150
+ access: {
4151
+ appId: string;
4152
+ nameKey: string;
4153
+ };
4154
+ totalSize: bigint;
4155
+ breadcrumb: {
4156
+ id: string;
4157
+ name: string;
4158
+ nameKey: string | null;
4159
+ pubKey: string;
4160
+ }[];
4161
+ sharedCount: number;
4142
4162
  }[];
4143
- sharedCount: number;
4144
- }[];
4163
+ };
4164
+ pagination: {
4165
+ next: number | null;
4166
+ prev: number | null;
4167
+ last: number;
4168
+ perPage: number;
4169
+ totalItems: number;
4170
+ };
4145
4171
  };
4146
4172
  }, unknown>>;
4147
4173
  };
@@ -5014,7 +5040,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5014
5040
  }>;
5015
5041
  _meta: object;
5016
5042
  _ctx_out: {
5017
- session: SecrecySessionWithApp;
5043
+ session: SecrecySession;
5018
5044
  req: {
5019
5045
  headers: Headers;
5020
5046
  body: ReadableStream<Uint8Array> | null;
@@ -5027,9 +5053,17 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5027
5053
  };
5028
5054
  _input_in: {
5029
5055
  id: string;
5056
+ } & {
5057
+ force?: boolean | undefined;
5058
+ } & {
5059
+ appId?: string | null | undefined;
5030
5060
  };
5031
5061
  _input_out: {
5032
5062
  id: string;
5063
+ } & {
5064
+ force?: boolean | undefined;
5065
+ } & {
5066
+ appId?: string | null | undefined;
5033
5067
  };
5034
5068
  _output_in: {
5035
5069
  isDeleted: boolean;
@@ -18226,12 +18260,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18226
18260
  _input_in: {
18227
18261
  lastname?: string | null | undefined;
18228
18262
  firstname?: string | null | undefined;
18263
+ avatar?: string | null | undefined;
18229
18264
  isSearchable?: boolean | undefined;
18230
18265
  lang?: "fr" | "en" | null | undefined;
18231
18266
  };
18232
18267
  _input_out: {
18233
18268
  lastname?: string | null | undefined;
18234
18269
  firstname?: string | null | undefined;
18270
+ avatar?: string | null | undefined;
18235
18271
  isSearchable?: boolean | undefined;
18236
18272
  lang?: "fr" | "en" | null | undefined;
18237
18273
  };
@@ -18267,6 +18303,68 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18267
18303
  };
18268
18304
  }, unknown>>;
18269
18305
  };
18306
+ myApps: {
18307
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
18308
+ _config: import("@trpc/server").RootConfig<{
18309
+ ctx: {
18310
+ req: {
18311
+ headers: Headers;
18312
+ body: ReadableStream<Uint8Array> | null;
18313
+ };
18314
+ res: {
18315
+ headers: Headers;
18316
+ };
18317
+ session: SecrecySession | null;
18318
+ locale: Locales;
18319
+ ls: TranslationFunctions;
18320
+ };
18321
+ meta: object;
18322
+ errorShape: {
18323
+ message: string;
18324
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
18325
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
18326
+ } | {
18327
+ data: {
18328
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
18329
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
18330
+ httpStatus: number;
18331
+ path?: string;
18332
+ stack?: string;
18333
+ };
18334
+ message: string;
18335
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
18336
+ };
18337
+ transformer: typeof superjson;
18338
+ }>;
18339
+ _meta: object;
18340
+ _ctx_out: {
18341
+ session: SecrecySession;
18342
+ req: {
18343
+ headers: Headers;
18344
+ body: ReadableStream<Uint8Array> | null;
18345
+ };
18346
+ res: {
18347
+ headers: Headers;
18348
+ };
18349
+ locale: Locales;
18350
+ ls: TranslationFunctions;
18351
+ };
18352
+ _input_in: {};
18353
+ _input_out: {};
18354
+ _output_in: {
18355
+ apps: Record<string, {
18356
+ name: string;
18357
+ logo: string | null;
18358
+ }>;
18359
+ };
18360
+ _output_out: {
18361
+ apps: Record<string, {
18362
+ name: string;
18363
+ logo: string | null;
18364
+ }>;
18365
+ };
18366
+ }, unknown>>;
18367
+ };
18270
18368
  };
18271
18369
  };
18272
18370
  export type ApiClient = ReturnType<typeof createTRPCClient>;
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.34.0",
5
+ "version": "1.35.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -52,17 +52,17 @@
52
52
  "@commitlint/cli": "^19.3.0",
53
53
  "@commitlint/config-conventional": "^19.2.2",
54
54
  "@prisma/client": "5.16.2",
55
- "@types/bun": "^1.1.6",
55
+ "@types/bun": "^1.1.8",
56
56
  "@types/jsonwebtoken": "^9.0.6",
57
57
  "@types/spark-md5": "^3.0.4",
58
- "@typescript-eslint/eslint-plugin": "^7.13.1",
59
- "@typescript-eslint/parser": "^7.13.1",
60
- "eslint": "^8.57.0",
58
+ "@typescript-eslint/eslint-plugin": "^8.3.0",
59
+ "@typescript-eslint/parser": "^8.3.0",
60
+ "eslint": "^9.9.1",
61
+ "eslint-config-love": "^63.0.0",
61
62
  "eslint-config-prettier": "^9.1.0",
62
- "eslint-config-standard-with-typescript": "^43.0.1",
63
63
  "eslint-plugin-import": "^2.29.1",
64
64
  "eslint-plugin-n": "^17.9.0",
65
- "eslint-plugin-promise": "^6.4.0",
65
+ "eslint-plugin-promise": "^7.1.0",
66
66
  "husky": "^9.0.11",
67
67
  "npm-run-all": "^4.1.5",
68
68
  "prettier": "^3.3.3",
@@ -74,11 +74,11 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@secrecy/lib-utils": "^1.0.18",
77
- "@secrecy/trpc-api-types": "1.27.0-feat-error-msg-translations.3",
77
+ "@secrecy/trpc-api-types": "1.28.0-dev.2",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",
81
- "axios": "^1.7.2",
81
+ "axios": "^1.7.5",
82
82
  "bson": "^6.8.0",
83
83
  "ethers": "^6.13.1",
84
84
  "jsonwebtoken": "^9.0.2",