@secrecy/trpc-api-types 1.8.25 → 1.9.1

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.ts +59 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
2
+ import type * as _prisma_client from '@prisma/client';
2
3
  import type * as _trpc_server from '@trpc/server';
3
4
  import type * as superjson from 'superjson';
4
5
  import type * as zod from 'zod';
@@ -240,17 +241,45 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
240
241
  transformer: typeof superjson.default;
241
242
  }>;
242
243
  _meta: object;
243
- _ctx_out: {};
244
- _input_in: {} | undefined;
245
- _input_out: {} | undefined;
244
+ _ctx_out: {
245
+ session: {
246
+ appId: string;
247
+ appPlanId: string | null;
248
+ appFakeUserId: string | undefined;
249
+ sessionId: string;
250
+ accountId: string;
251
+ accountRole: _prisma_client.$Enums.AccountRole;
252
+ userId: string;
253
+ userRole: _prisma_client.$Enums.UserRole;
254
+ userPlan: _prisma_client.$Enums.PlanKind;
255
+ };
256
+ req: {
257
+ headers: Headers;
258
+ };
259
+ res: {
260
+ headers: Headers;
261
+ };
262
+ locale: Locales;
263
+ ls: TranslationFunctions;
264
+ };
265
+ _input_in: {
266
+ appId?: string | undefined;
267
+ } | undefined;
268
+ _input_out: {
269
+ appId?: string | undefined;
270
+ } | undefined;
246
271
  _output_in: {
247
272
  id: string;
273
+ users: number;
274
+ developers: number;
248
275
  lastReset: Date;
249
276
  downloadBandwidth: bigint;
250
277
  uploadBandwidth: bigint;
251
278
  };
252
279
  _output_out: {
253
280
  id: string;
281
+ users: number;
282
+ developers: number;
254
283
  lastReset: Date;
255
284
  downloadBandwidth: bigint;
256
285
  uploadBandwidth: bigint;
@@ -278,9 +307,33 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
278
307
  transformer: typeof superjson.default;
279
308
  }>;
280
309
  _meta: object;
281
- _ctx_out: {};
282
- _input_in: {} | undefined;
283
- _input_out: {} | undefined;
310
+ _ctx_out: {
311
+ session: {
312
+ appId: string;
313
+ appPlanId: string | null;
314
+ appFakeUserId: string | undefined;
315
+ sessionId: string;
316
+ accountId: string;
317
+ accountRole: _prisma_client.$Enums.AccountRole;
318
+ userId: string;
319
+ userRole: _prisma_client.$Enums.UserRole;
320
+ userPlan: _prisma_client.$Enums.PlanKind;
321
+ };
322
+ req: {
323
+ headers: Headers;
324
+ };
325
+ res: {
326
+ headers: Headers;
327
+ };
328
+ locale: Locales;
329
+ ls: TranslationFunctions;
330
+ };
331
+ _input_in: {
332
+ appId?: string | undefined;
333
+ } | undefined;
334
+ _input_out: {
335
+ appId?: string | undefined;
336
+ } | undefined;
284
337
  _output_in: {
285
338
  id: string;
286
339
  users: bigint | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.8.25",
3
+ "version": "1.9.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"