@secrecy/trpc-api-types 1.12.0-integration-remove-appcode.2 → 1.12.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +170 -70
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6118,7 +6118,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6118
6118
  transformer: typeof superjson.default;
6119
6119
  }>;
6120
6120
  _meta: object;
6121
- _ctx_out: {};
6121
+ _ctx_out: {
6122
+ session: {
6123
+ appId: string;
6124
+ appPlanId: string | null;
6125
+ appFakeUserId: string | undefined;
6126
+ sessionId: string;
6127
+ accountId: string;
6128
+ accountRole: _prisma_client.$Enums.AccountRole;
6129
+ userId: string;
6130
+ userRole: _prisma_client.$Enums.UserRole;
6131
+ userPlan: _prisma_client.$Enums.PlanKind;
6132
+ };
6133
+ req: {
6134
+ headers: Headers;
6135
+ };
6136
+ res: {
6137
+ headers: Headers;
6138
+ };
6139
+ locale: Locales;
6140
+ ls: TranslationFunctions;
6141
+ };
6122
6142
  _input_in: {
6123
6143
  data: Record<string, unknown>;
6124
6144
  appEnv: string;
@@ -6156,7 +6176,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6156
6176
  transformer: typeof superjson.default;
6157
6177
  }>;
6158
6178
  _meta: object;
6159
- _ctx_out: {};
6179
+ _ctx_out: {
6180
+ session: {
6181
+ appId: string;
6182
+ appPlanId: string | null;
6183
+ appFakeUserId: string | undefined;
6184
+ sessionId: string;
6185
+ accountId: string;
6186
+ accountRole: _prisma_client.$Enums.AccountRole;
6187
+ userId: string;
6188
+ userRole: _prisma_client.$Enums.UserRole;
6189
+ userPlan: _prisma_client.$Enums.PlanKind;
6190
+ };
6191
+ req: {
6192
+ headers: Headers;
6193
+ };
6194
+ res: {
6195
+ headers: Headers;
6196
+ };
6197
+ locale: Locales;
6198
+ ls: TranslationFunctions;
6199
+ };
6160
6200
  _input_in: {
6161
6201
  data: Record<string, unknown>[];
6162
6202
  appEnv: string;
@@ -6198,7 +6238,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6198
6238
  transformer: typeof superjson.default;
6199
6239
  }>;
6200
6240
  _meta: object;
6201
- _ctx_out: {};
6241
+ _ctx_out: {
6242
+ session: {
6243
+ appId: string;
6244
+ appPlanId: string | null;
6245
+ appFakeUserId: string | undefined;
6246
+ sessionId: string;
6247
+ accountId: string;
6248
+ accountRole: _prisma_client.$Enums.AccountRole;
6249
+ userId: string;
6250
+ userRole: _prisma_client.$Enums.UserRole;
6251
+ userPlan: _prisma_client.$Enums.PlanKind;
6252
+ };
6253
+ req: {
6254
+ headers: Headers;
6255
+ };
6256
+ res: {
6257
+ headers: Headers;
6258
+ };
6259
+ locale: Locales;
6260
+ ls: TranslationFunctions;
6261
+ };
6202
6262
  _input_in: {
6203
6263
  where: Record<string, unknown>;
6204
6264
  appEnv: string;
@@ -6240,7 +6300,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6240
6300
  transformer: typeof superjson.default;
6241
6301
  }>;
6242
6302
  _meta: object;
6243
- _ctx_out: {};
6303
+ _ctx_out: {
6304
+ session: {
6305
+ appId: string;
6306
+ appPlanId: string | null;
6307
+ appFakeUserId: string | undefined;
6308
+ sessionId: string;
6309
+ accountId: string;
6310
+ accountRole: _prisma_client.$Enums.AccountRole;
6311
+ userId: string;
6312
+ userRole: _prisma_client.$Enums.UserRole;
6313
+ userPlan: _prisma_client.$Enums.PlanKind;
6314
+ };
6315
+ req: {
6316
+ headers: Headers;
6317
+ };
6318
+ res: {
6319
+ headers: Headers;
6320
+ };
6321
+ locale: Locales;
6322
+ ls: TranslationFunctions;
6323
+ };
6244
6324
  _input_in: {
6245
6325
  appEnv: string;
6246
6326
  appTable: string;
@@ -6282,7 +6362,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6282
6362
  transformer: typeof superjson.default;
6283
6363
  }>;
6284
6364
  _meta: object;
6285
- _ctx_out: {};
6365
+ _ctx_out: {
6366
+ session: {
6367
+ appId: string;
6368
+ appPlanId: string | null;
6369
+ appFakeUserId: string | undefined;
6370
+ sessionId: string;
6371
+ accountId: string;
6372
+ accountRole: _prisma_client.$Enums.AccountRole;
6373
+ userId: string;
6374
+ userRole: _prisma_client.$Enums.UserRole;
6375
+ userPlan: _prisma_client.$Enums.PlanKind;
6376
+ };
6377
+ req: {
6378
+ headers: Headers;
6379
+ };
6380
+ res: {
6381
+ headers: Headers;
6382
+ };
6383
+ locale: Locales;
6384
+ ls: TranslationFunctions;
6385
+ };
6286
6386
  _input_in: {
6287
6387
  where: Record<string, unknown>;
6288
6388
  appEnv: string;
@@ -6322,7 +6422,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6322
6422
  transformer: typeof superjson.default;
6323
6423
  }>;
6324
6424
  _meta: object;
6325
- _ctx_out: {};
6425
+ _ctx_out: {
6426
+ session: {
6427
+ appId: string;
6428
+ appPlanId: string | null;
6429
+ appFakeUserId: string | undefined;
6430
+ sessionId: string;
6431
+ accountId: string;
6432
+ accountRole: _prisma_client.$Enums.AccountRole;
6433
+ userId: string;
6434
+ userRole: _prisma_client.$Enums.UserRole;
6435
+ userPlan: _prisma_client.$Enums.PlanKind;
6436
+ };
6437
+ req: {
6438
+ headers: Headers;
6439
+ };
6440
+ res: {
6441
+ headers: Headers;
6442
+ };
6443
+ locale: Locales;
6444
+ ls: TranslationFunctions;
6445
+ };
6326
6446
  _input_in: {
6327
6447
  appEnv: string;
6328
6448
  appTable: string;
@@ -6368,7 +6488,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6368
6488
  transformer: typeof superjson.default;
6369
6489
  }>;
6370
6490
  _meta: object;
6371
- _ctx_out: {};
6491
+ _ctx_out: {
6492
+ session: {
6493
+ appId: string;
6494
+ appPlanId: string | null;
6495
+ appFakeUserId: string | undefined;
6496
+ sessionId: string;
6497
+ accountId: string;
6498
+ accountRole: _prisma_client.$Enums.AccountRole;
6499
+ userId: string;
6500
+ userRole: _prisma_client.$Enums.UserRole;
6501
+ userPlan: _prisma_client.$Enums.PlanKind;
6502
+ };
6503
+ req: {
6504
+ headers: Headers;
6505
+ };
6506
+ res: {
6507
+ headers: Headers;
6508
+ };
6509
+ locale: Locales;
6510
+ ls: TranslationFunctions;
6511
+ };
6372
6512
  _input_in: {
6373
6513
  where: Record<string, unknown>;
6374
6514
  data: Record<string, unknown>;
@@ -6410,7 +6550,27 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6410
6550
  transformer: typeof superjson.default;
6411
6551
  }>;
6412
6552
  _meta: object;
6413
- _ctx_out: {};
6553
+ _ctx_out: {
6554
+ session: {
6555
+ appId: string;
6556
+ appPlanId: string | null;
6557
+ appFakeUserId: string | undefined;
6558
+ sessionId: string;
6559
+ accountId: string;
6560
+ accountRole: _prisma_client.$Enums.AccountRole;
6561
+ userId: string;
6562
+ userRole: _prisma_client.$Enums.UserRole;
6563
+ userPlan: _prisma_client.$Enums.PlanKind;
6564
+ };
6565
+ req: {
6566
+ headers: Headers;
6567
+ };
6568
+ res: {
6569
+ headers: Headers;
6570
+ };
6571
+ locale: Locales;
6572
+ ls: TranslationFunctions;
6573
+ };
6414
6574
  _input_in: {
6415
6575
  data: Record<string, unknown>;
6416
6576
  appEnv: string;
@@ -8354,14 +8514,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8354
8514
  _ctx_out: {};
8355
8515
  _input_in: {
8356
8516
  appUrl: string;
8357
- appCode?: string | undefined;
8517
+ appId?: string | undefined;
8358
8518
  scopes?: {
8359
8519
  email: boolean;
8360
8520
  } | undefined;
8361
8521
  };
8362
8522
  _input_out: {
8363
8523
  appUrl: string;
8364
- appCode?: string | undefined;
8524
+ appId?: string | undefined;
8365
8525
  scopes?: {
8366
8526
  email: boolean;
8367
8527
  } | undefined;
@@ -9747,7 +9907,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9747
9907
  appId: string;
9748
9908
  };
9749
9909
  _output_in: {
9750
- code: string;
9751
9910
  plan: {
9752
9911
  id: string;
9753
9912
  kind: string;
@@ -9818,7 +9977,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9818
9977
  } | null)[];
9819
9978
  };
9820
9979
  _output_out: {
9821
- code: string;
9822
9980
  plan: {
9823
9981
  id: string;
9824
9982
  kind: string;
@@ -9919,7 +10077,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9919
10077
  sortBy: "updatedAt" | "users" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
9920
10078
  };
9921
10079
  _output_in: {
9922
- code: string;
9923
10080
  plan: {
9924
10081
  id: string;
9925
10082
  kind: string;
@@ -9990,7 +10147,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9990
10147
  } | null)[];
9991
10148
  }[];
9992
10149
  _output_out: {
9993
- code: string;
9994
10150
  plan: {
9995
10151
  id: string;
9996
10152
  kind: string;
@@ -10399,62 +10555,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10399
10555
  role: "developer" | "admin";
10400
10556
  }[];
10401
10557
  }, unknown>;
10402
- renewAppCode: _trpc_server.BuildProcedure<"mutation", {
10403
- _config: _trpc_server.RootConfig<{
10404
- ctx: {};
10405
- meta: object;
10406
- errorShape: {
10407
- message: string;
10408
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
10409
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
10410
- } | {
10411
- data: {
10412
- zodError: zod.typeToFlattenedError<any, string> | null;
10413
- code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
10414
- httpStatus: number;
10415
- path?: string | undefined;
10416
- stack?: string | undefined;
10417
- };
10418
- message: string;
10419
- code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
10420
- };
10421
- transformer: typeof superjson.default;
10422
- }>;
10423
- _meta: object;
10424
- _ctx_out: {
10425
- session: {
10426
- appId: string;
10427
- appPlanId: string | null;
10428
- appFakeUserId: string | undefined;
10429
- sessionId: string;
10430
- accountId: string;
10431
- accountRole: _prisma_client.$Enums.AccountRole;
10432
- userId: string;
10433
- userRole: _prisma_client.$Enums.UserRole;
10434
- userPlan: _prisma_client.$Enums.PlanKind;
10435
- };
10436
- req: {
10437
- headers: Headers;
10438
- };
10439
- res: {
10440
- headers: Headers;
10441
- };
10442
- locale: Locales;
10443
- ls: TranslationFunctions;
10444
- };
10445
- _input_in: {
10446
- appCode: string;
10447
- };
10448
- _input_out: {
10449
- appCode: string;
10450
- };
10451
- _output_in: {
10452
- isRenewed: boolean;
10453
- };
10454
- _output_out: {
10455
- isRenewed: boolean;
10456
- };
10457
- }, unknown>;
10458
10558
  setOrigins: _trpc_server.BuildProcedure<"mutation", {
10459
10559
  _config: _trpc_server.RootConfig<{
10460
10560
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.12.0-integration-remove-appcode.2",
3
+ "version": "1.12.0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"