@secrecy/trpc-api-types 1.27.0-dev.3 → 1.27.0-dev.5

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 +151 -13
  2. package/package.json +3 -3
package/dist/index.d.cts CHANGED
@@ -186,6 +186,72 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
186
186
  isDeleted: boolean;
187
187
  };
188
188
  }, unknown>;
189
+ getUsers: _trpc_server.BuildProcedure<"query", {
190
+ _config: _trpc_server.RootConfig<{
191
+ ctx: {
192
+ req: {
193
+ headers: Headers;
194
+ body: ReadableStream<Uint8Array> | null;
195
+ };
196
+ res: {
197
+ headers: Headers;
198
+ };
199
+ session: SecrecySession | null;
200
+ locale: Locales;
201
+ ls: TranslationFunctions;
202
+ };
203
+ meta: object;
204
+ errorShape: {
205
+ message: string;
206
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
207
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
208
+ } | {
209
+ data: {
210
+ zodError: zod.typeToFlattenedError<any, string> | null;
211
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
212
+ httpStatus: number;
213
+ path?: string;
214
+ stack?: string;
215
+ };
216
+ message: string;
217
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
218
+ };
219
+ transformer: typeof superjson.default;
220
+ }>;
221
+ _meta: object;
222
+ _ctx_out: {
223
+ session: SecrecySession;
224
+ req: {
225
+ headers: Headers;
226
+ body: ReadableStream<Uint8Array> | null;
227
+ };
228
+ res: {
229
+ headers: Headers;
230
+ };
231
+ locale: Locales;
232
+ ls: TranslationFunctions;
233
+ };
234
+ _input_in: {};
235
+ _input_out: {};
236
+ _output_in: {
237
+ users: {
238
+ id: string;
239
+ lastname: string;
240
+ firstname: string;
241
+ avatar: string | null;
242
+ isSearchable: boolean;
243
+ }[];
244
+ };
245
+ _output_out: {
246
+ users: {
247
+ id: string;
248
+ lastname: string;
249
+ firstname: string;
250
+ avatar: string | null;
251
+ isSearchable: boolean;
252
+ }[];
253
+ };
254
+ }, unknown>;
189
255
  }>;
190
256
  application: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
191
257
  ctx: {
@@ -1600,13 +1666,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1600
1666
  email: string;
1601
1667
  };
1602
1668
  _output_in: {
1603
- pub: string;
1604
1669
  srpSalt: string;
1670
+ pub: string;
1605
1671
  loginId: string;
1606
1672
  };
1607
1673
  _output_out: {
1608
- pub: string;
1609
1674
  srpSalt: string;
1675
+ pub: string;
1610
1676
  loginId: string;
1611
1677
  };
1612
1678
  }, unknown>;
@@ -1668,6 +1734,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1668
1734
  id: string;
1669
1735
  lastname: string;
1670
1736
  firstname: string;
1737
+ avatar: string | null;
1738
+ isSearchable: boolean;
1671
1739
  }[];
1672
1740
  loginToken: string;
1673
1741
  };
@@ -1676,6 +1744,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1676
1744
  id: string;
1677
1745
  lastname: string;
1678
1746
  firstname: string;
1747
+ avatar: string | null;
1748
+ isSearchable: boolean;
1679
1749
  }[];
1680
1750
  loginToken: string;
1681
1751
  };
@@ -2246,6 +2316,64 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2246
2316
  _output_in: {};
2247
2317
  _output_out: {};
2248
2318
  }, {}>;
2319
+ changeUser: _trpc_server.BuildProcedure<"mutation", {
2320
+ _config: _trpc_server.RootConfig<{
2321
+ ctx: {
2322
+ req: {
2323
+ headers: Headers;
2324
+ body: ReadableStream<Uint8Array> | null;
2325
+ };
2326
+ res: {
2327
+ headers: Headers;
2328
+ };
2329
+ session: SecrecySession | null;
2330
+ locale: Locales;
2331
+ ls: TranslationFunctions;
2332
+ };
2333
+ meta: object;
2334
+ errorShape: {
2335
+ message: string;
2336
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2337
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2338
+ } | {
2339
+ data: {
2340
+ zodError: zod.typeToFlattenedError<any, string> | null;
2341
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2342
+ httpStatus: number;
2343
+ path?: string;
2344
+ stack?: string;
2345
+ };
2346
+ message: string;
2347
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2348
+ };
2349
+ transformer: typeof superjson.default;
2350
+ }>;
2351
+ _meta: object;
2352
+ _ctx_out: {
2353
+ session: SecrecySession;
2354
+ req: {
2355
+ headers: Headers;
2356
+ body: ReadableStream<Uint8Array> | null;
2357
+ };
2358
+ res: {
2359
+ headers: Headers;
2360
+ };
2361
+ locale: Locales;
2362
+ ls: TranslationFunctions;
2363
+ };
2364
+ _input_in: {
2365
+ userId: string;
2366
+ };
2367
+ _input_out: {
2368
+ userId: string;
2369
+ };
2370
+ _output_in: {
2371
+ sessionId: string;
2372
+ };
2373
+ _output_out: {
2374
+ sessionId: string;
2375
+ };
2376
+ }, unknown>;
2249
2377
  }>;
2250
2378
  blog: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
2251
2379
  ctx: {
@@ -4116,46 +4244,56 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4116
4244
  } | undefined;
4117
4245
  };
4118
4246
  _output_in: {
4247
+ keyPairs: {
4248
+ appId: string;
4249
+ pub: string;
4250
+ encPriv: string;
4251
+ }[];
4119
4252
  nodes: {
4120
4253
  id: string;
4121
4254
  createdAt: Date;
4122
4255
  deletedAt: Date | null;
4123
4256
  name: string;
4124
4257
  updatedAt: Date;
4125
- size: bigint;
4126
- storageType: "s3" | "lite";
4258
+ history: {
4259
+ createdAt: Date;
4260
+ fileId: string;
4261
+ size: bigint;
4262
+ storageType: "s3" | "lite";
4263
+ }[];
4127
4264
  access: {
4128
4265
  appId: string;
4129
4266
  nameKey: string;
4130
4267
  };
4268
+ totalSize: bigint;
4131
4269
  sharedCount: number;
4132
4270
  }[];
4271
+ };
4272
+ _output_out: {
4133
4273
  keyPairs: {
4134
4274
  appId: string;
4135
4275
  pub: string;
4136
4276
  encPriv: string;
4137
4277
  }[];
4138
- };
4139
- _output_out: {
4140
4278
  nodes: {
4141
4279
  id: string;
4142
4280
  createdAt: Date;
4143
4281
  deletedAt: Date | null;
4144
4282
  name: string;
4145
4283
  updatedAt: Date;
4146
- size: bigint;
4147
- storageType: "s3" | "lite";
4284
+ history: {
4285
+ createdAt: Date;
4286
+ fileId: string;
4287
+ size: bigint;
4288
+ storageType: "s3" | "lite";
4289
+ }[];
4148
4290
  access: {
4149
4291
  appId: string;
4150
4292
  nameKey: string;
4151
4293
  };
4294
+ totalSize: bigint;
4152
4295
  sharedCount: number;
4153
4296
  }[];
4154
- keyPairs: {
4155
- appId: string;
4156
- pub: string;
4157
- encPriv: string;
4158
- }[];
4159
4297
  };
4160
4298
  }, unknown>;
4161
4299
  shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.27.0-dev.3",
3
+ "version": "1.27.0-dev.5",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,9 +22,9 @@
22
22
  "module": "./dist/index.cjs",
23
23
  "types": "./dist/index.d.cts",
24
24
  "dependencies": {
25
- "@prisma/client": "5.12.1",
25
+ "@prisma/client": "5.16.2",
26
26
  "@trpc/server": "10.45.2",
27
27
  "superjson": "2.2.1",
28
- "zod": "3.22.4"
28
+ "zod": "3.23.8"
29
29
  }
30
30
  }