@secrecy/trpc-api-types 1.10.0-integration-dev-role.1 → 1.10.0-integration-fixes-api.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 +1082 -15
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4941,13 +4941,1084 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4941
4941
  };
4942
4942
  }, unknown>;
4943
4943
  }>;
4944
- config: any;
4945
- createEnv: any;
4946
- deleteEnv: any;
4947
- environments: any;
4948
- migrate: any;
4949
- diff: any;
4950
- updateConfig: any;
4944
+ config: _trpc_server.BuildProcedure<"query", {
4945
+ _config: _trpc_server.RootConfig<{
4946
+ ctx: {};
4947
+ meta: object;
4948
+ errorShape: {
4949
+ message: string;
4950
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4951
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
4952
+ } | {
4953
+ data: {
4954
+ zodError: zod.typeToFlattenedError<any, string> | null;
4955
+ 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";
4956
+ httpStatus: number;
4957
+ path?: string | undefined;
4958
+ stack?: string | undefined;
4959
+ };
4960
+ message: string;
4961
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
4962
+ };
4963
+ transformer: typeof superjson.default;
4964
+ }>;
4965
+ _meta: object;
4966
+ _ctx_out: {
4967
+ session: {
4968
+ appId: string;
4969
+ appPlanId: string | null;
4970
+ appFakeUserId: string | undefined;
4971
+ sessionId: string;
4972
+ accountId: string;
4973
+ accountRole: _prisma_client.$Enums.AccountRole;
4974
+ userId: string;
4975
+ userRole: _prisma_client.$Enums.UserRole;
4976
+ userPlan: _prisma_client.$Enums.PlanKind;
4977
+ };
4978
+ req: {
4979
+ headers: Headers;
4980
+ };
4981
+ res: {
4982
+ headers: Headers;
4983
+ };
4984
+ locale: Locales;
4985
+ ls: TranslationFunctions;
4986
+ };
4987
+ _input_in: {
4988
+ appId: string;
4989
+ appEnv: string;
4990
+ };
4991
+ _input_out: {
4992
+ appId: string;
4993
+ appEnv: string;
4994
+ };
4995
+ _output_in: {
4996
+ tables: {
4997
+ fields: {
4998
+ type: "string" | "number" | "boolean" | "object";
4999
+ name: string;
5000
+ uuid: string;
5001
+ isArray?: boolean | undefined;
5002
+ isNullable?: boolean | undefined;
5003
+ isEditable?: boolean | undefined;
5004
+ isKey?: boolean | undefined;
5005
+ default?: unknown;
5006
+ }[];
5007
+ name: string;
5008
+ uuid: string;
5009
+ }[];
5010
+ };
5011
+ _output_out: {
5012
+ tables: {
5013
+ fields: {
5014
+ type: "string" | "number" | "boolean" | "object";
5015
+ name: string;
5016
+ uuid: string;
5017
+ isArray?: boolean | undefined;
5018
+ isNullable?: boolean | undefined;
5019
+ isEditable?: boolean | undefined;
5020
+ isKey?: boolean | undefined;
5021
+ default?: unknown;
5022
+ }[];
5023
+ name: string;
5024
+ uuid: string;
5025
+ }[];
5026
+ };
5027
+ }, unknown>;
5028
+ createEnv: _trpc_server.BuildProcedure<"mutation", {
5029
+ _config: _trpc_server.RootConfig<{
5030
+ ctx: {};
5031
+ meta: object;
5032
+ errorShape: {
5033
+ message: string;
5034
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5035
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5036
+ } | {
5037
+ data: {
5038
+ zodError: zod.typeToFlattenedError<any, string> | null;
5039
+ 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";
5040
+ httpStatus: number;
5041
+ path?: string | undefined;
5042
+ stack?: string | undefined;
5043
+ };
5044
+ message: string;
5045
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5046
+ };
5047
+ transformer: typeof superjson.default;
5048
+ }>;
5049
+ _meta: object;
5050
+ _ctx_out: {
5051
+ session: {
5052
+ appId: string;
5053
+ appPlanId: string | null;
5054
+ appFakeUserId: string | undefined;
5055
+ sessionId: string;
5056
+ accountId: string;
5057
+ accountRole: _prisma_client.$Enums.AccountRole;
5058
+ userId: string;
5059
+ userRole: _prisma_client.$Enums.UserRole;
5060
+ userPlan: _prisma_client.$Enums.PlanKind;
5061
+ };
5062
+ req: {
5063
+ headers: Headers;
5064
+ };
5065
+ res: {
5066
+ headers: Headers;
5067
+ };
5068
+ locale: Locales;
5069
+ ls: TranslationFunctions;
5070
+ };
5071
+ _input_in: {
5072
+ appId: string;
5073
+ newEnv: string;
5074
+ fromEnv?: string | undefined;
5075
+ };
5076
+ _input_out: {
5077
+ appId: string;
5078
+ newEnv: string;
5079
+ fromEnv: string;
5080
+ };
5081
+ _output_in: {
5082
+ appId: string;
5083
+ config: {
5084
+ tables: {
5085
+ fields: {
5086
+ type: "string" | "number" | "boolean" | "object";
5087
+ name: string;
5088
+ uuid: string;
5089
+ isArray?: boolean | undefined;
5090
+ isNullable?: boolean | undefined;
5091
+ isEditable?: boolean | undefined;
5092
+ isKey?: boolean | undefined;
5093
+ default?: unknown;
5094
+ }[];
5095
+ name: string;
5096
+ uuid: string;
5097
+ }[];
5098
+ };
5099
+ appEnv: string;
5100
+ };
5101
+ _output_out: {
5102
+ appId: string;
5103
+ config: {
5104
+ tables: {
5105
+ fields: {
5106
+ type: "string" | "number" | "boolean" | "object";
5107
+ name: string;
5108
+ uuid: string;
5109
+ isArray?: boolean | undefined;
5110
+ isNullable?: boolean | undefined;
5111
+ isEditable?: boolean | undefined;
5112
+ isKey?: boolean | undefined;
5113
+ default?: unknown;
5114
+ }[];
5115
+ name: string;
5116
+ uuid: string;
5117
+ }[];
5118
+ };
5119
+ appEnv: string;
5120
+ };
5121
+ }, unknown>;
5122
+ deleteEnv: _trpc_server.BuildProcedure<"mutation", {
5123
+ _config: _trpc_server.RootConfig<{
5124
+ ctx: {};
5125
+ meta: object;
5126
+ errorShape: {
5127
+ message: string;
5128
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5129
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5130
+ } | {
5131
+ data: {
5132
+ zodError: zod.typeToFlattenedError<any, string> | null;
5133
+ 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";
5134
+ httpStatus: number;
5135
+ path?: string | undefined;
5136
+ stack?: string | undefined;
5137
+ };
5138
+ message: string;
5139
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5140
+ };
5141
+ transformer: typeof superjson.default;
5142
+ }>;
5143
+ _meta: object;
5144
+ _ctx_out: {
5145
+ session: {
5146
+ appId: string;
5147
+ appPlanId: string | null;
5148
+ appFakeUserId: string | undefined;
5149
+ sessionId: string;
5150
+ accountId: string;
5151
+ accountRole: _prisma_client.$Enums.AccountRole;
5152
+ userId: string;
5153
+ userRole: _prisma_client.$Enums.UserRole;
5154
+ userPlan: _prisma_client.$Enums.PlanKind;
5155
+ };
5156
+ req: {
5157
+ headers: Headers;
5158
+ };
5159
+ res: {
5160
+ headers: Headers;
5161
+ };
5162
+ locale: Locales;
5163
+ ls: TranslationFunctions;
5164
+ };
5165
+ _input_in: {
5166
+ appId: string;
5167
+ appEnv: string;
5168
+ };
5169
+ _input_out: {
5170
+ appId: string;
5171
+ appEnv: string;
5172
+ };
5173
+ _output_in: {
5174
+ isDeleted: boolean;
5175
+ };
5176
+ _output_out: {
5177
+ isDeleted: boolean;
5178
+ };
5179
+ }, unknown>;
5180
+ environments: _trpc_server.BuildProcedure<"query", {
5181
+ _config: _trpc_server.RootConfig<{
5182
+ ctx: {};
5183
+ meta: object;
5184
+ errorShape: {
5185
+ message: string;
5186
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5187
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5188
+ } | {
5189
+ data: {
5190
+ zodError: zod.typeToFlattenedError<any, string> | null;
5191
+ 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";
5192
+ httpStatus: number;
5193
+ path?: string | undefined;
5194
+ stack?: string | undefined;
5195
+ };
5196
+ message: string;
5197
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5198
+ };
5199
+ transformer: typeof superjson.default;
5200
+ }>;
5201
+ _meta: object;
5202
+ _ctx_out: {
5203
+ session: {
5204
+ appId: string;
5205
+ appPlanId: string | null;
5206
+ appFakeUserId: string | undefined;
5207
+ sessionId: string;
5208
+ accountId: string;
5209
+ accountRole: _prisma_client.$Enums.AccountRole;
5210
+ userId: string;
5211
+ userRole: _prisma_client.$Enums.UserRole;
5212
+ userPlan: _prisma_client.$Enums.PlanKind;
5213
+ };
5214
+ req: {
5215
+ headers: Headers;
5216
+ };
5217
+ res: {
5218
+ headers: Headers;
5219
+ };
5220
+ locale: Locales;
5221
+ ls: TranslationFunctions;
5222
+ };
5223
+ _input_in: {
5224
+ appId: string;
5225
+ };
5226
+ _input_out: {
5227
+ appId: string;
5228
+ };
5229
+ _output_in: {
5230
+ environments: string[];
5231
+ };
5232
+ _output_out: {
5233
+ environments: string[];
5234
+ };
5235
+ }, unknown>;
5236
+ migrate: _trpc_server.BuildProcedure<"mutation", {
5237
+ _config: _trpc_server.RootConfig<{
5238
+ ctx: {};
5239
+ meta: object;
5240
+ errorShape: {
5241
+ message: string;
5242
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5243
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5244
+ } | {
5245
+ data: {
5246
+ zodError: zod.typeToFlattenedError<any, string> | null;
5247
+ 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";
5248
+ httpStatus: number;
5249
+ path?: string | undefined;
5250
+ stack?: string | undefined;
5251
+ };
5252
+ message: string;
5253
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5254
+ };
5255
+ transformer: typeof superjson.default;
5256
+ }>;
5257
+ _meta: object;
5258
+ _ctx_out: {
5259
+ session: {
5260
+ appId: string;
5261
+ appPlanId: string | null;
5262
+ appFakeUserId: string | undefined;
5263
+ sessionId: string;
5264
+ accountId: string;
5265
+ accountRole: _prisma_client.$Enums.AccountRole;
5266
+ userId: string;
5267
+ userRole: _prisma_client.$Enums.UserRole;
5268
+ userPlan: _prisma_client.$Enums.PlanKind;
5269
+ };
5270
+ req: {
5271
+ headers: Headers;
5272
+ };
5273
+ res: {
5274
+ headers: Headers;
5275
+ };
5276
+ locale: Locales;
5277
+ ls: TranslationFunctions;
5278
+ };
5279
+ _input_in: {
5280
+ appId: string;
5281
+ config: (string | {
5282
+ tables: {
5283
+ fields: {
5284
+ type: "string" | "number" | "boolean" | "object";
5285
+ name: string;
5286
+ uuid: string;
5287
+ isArray?: boolean | undefined;
5288
+ isNullable?: boolean | undefined;
5289
+ isEditable?: boolean | undefined;
5290
+ isKey?: boolean | undefined;
5291
+ default?: unknown;
5292
+ }[];
5293
+ name: string;
5294
+ uuid: string;
5295
+ }[];
5296
+ }) & (string | {
5297
+ tables: {
5298
+ fields: {
5299
+ type: "string" | "number" | "boolean" | "object";
5300
+ name: string;
5301
+ uuid: string;
5302
+ isArray?: boolean | undefined;
5303
+ isNullable?: boolean | undefined;
5304
+ isEditable?: boolean | undefined;
5305
+ isKey?: boolean | undefined;
5306
+ default?: unknown;
5307
+ }[];
5308
+ name: string;
5309
+ uuid: string;
5310
+ }[];
5311
+ } | undefined);
5312
+ appEnv: string;
5313
+ hash: string;
5314
+ } | {
5315
+ appId: string;
5316
+ hash: string;
5317
+ currEnv: string;
5318
+ nextEnv: string;
5319
+ };
5320
+ _input_out: {
5321
+ appId: string;
5322
+ config: (string | {
5323
+ tables: {
5324
+ fields: {
5325
+ type: "string" | "number" | "boolean" | "object";
5326
+ name: string;
5327
+ uuid: string;
5328
+ isArray?: boolean | undefined;
5329
+ isNullable?: boolean | undefined;
5330
+ isEditable?: boolean | undefined;
5331
+ isKey?: boolean | undefined;
5332
+ default?: unknown;
5333
+ }[];
5334
+ name: string;
5335
+ uuid: string;
5336
+ }[];
5337
+ }) & (string | {
5338
+ tables: {
5339
+ fields: {
5340
+ type: "string" | "number" | "boolean" | "object";
5341
+ name: string;
5342
+ uuid: string;
5343
+ isArray?: boolean | undefined;
5344
+ isNullable?: boolean | undefined;
5345
+ isEditable?: boolean | undefined;
5346
+ isKey?: boolean | undefined;
5347
+ default?: unknown;
5348
+ }[];
5349
+ name: string;
5350
+ uuid: string;
5351
+ }[];
5352
+ } | undefined);
5353
+ appEnv: string;
5354
+ hash: string;
5355
+ } | {
5356
+ appId: string;
5357
+ hash: string;
5358
+ currEnv: string;
5359
+ nextEnv: string;
5360
+ };
5361
+ _output_in: {
5362
+ tables: {
5363
+ fields: {
5364
+ type: "string" | "number" | "boolean" | "object";
5365
+ name: string;
5366
+ uuid: string;
5367
+ isArray?: boolean | undefined;
5368
+ isNullable?: boolean | undefined;
5369
+ isEditable?: boolean | undefined;
5370
+ isKey?: boolean | undefined;
5371
+ default?: unknown;
5372
+ }[];
5373
+ name: string;
5374
+ uuid: string;
5375
+ }[];
5376
+ };
5377
+ _output_out: {
5378
+ tables: {
5379
+ fields: {
5380
+ type: "string" | "number" | "boolean" | "object";
5381
+ name: string;
5382
+ uuid: string;
5383
+ isArray?: boolean | undefined;
5384
+ isNullable?: boolean | undefined;
5385
+ isEditable?: boolean | undefined;
5386
+ isKey?: boolean | undefined;
5387
+ default?: unknown;
5388
+ }[];
5389
+ name: string;
5390
+ uuid: string;
5391
+ }[];
5392
+ };
5393
+ }, unknown>;
5394
+ diff: _trpc_server.BuildProcedure<"query", {
5395
+ _config: _trpc_server.RootConfig<{
5396
+ ctx: {};
5397
+ meta: object;
5398
+ errorShape: {
5399
+ message: string;
5400
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5401
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5402
+ } | {
5403
+ data: {
5404
+ zodError: zod.typeToFlattenedError<any, string> | null;
5405
+ 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";
5406
+ httpStatus: number;
5407
+ path?: string | undefined;
5408
+ stack?: string | undefined;
5409
+ };
5410
+ message: string;
5411
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5412
+ };
5413
+ transformer: typeof superjson.default;
5414
+ }>;
5415
+ _meta: object;
5416
+ _ctx_out: {
5417
+ session: {
5418
+ appId: string;
5419
+ appPlanId: string | null;
5420
+ appFakeUserId: string | undefined;
5421
+ sessionId: string;
5422
+ accountId: string;
5423
+ accountRole: _prisma_client.$Enums.AccountRole;
5424
+ userId: string;
5425
+ userRole: _prisma_client.$Enums.UserRole;
5426
+ userPlan: _prisma_client.$Enums.PlanKind;
5427
+ };
5428
+ req: {
5429
+ headers: Headers;
5430
+ };
5431
+ res: {
5432
+ headers: Headers;
5433
+ };
5434
+ locale: Locales;
5435
+ ls: TranslationFunctions;
5436
+ };
5437
+ _input_in: {
5438
+ appId: string;
5439
+ config: (string | {
5440
+ tables: {
5441
+ fields: {
5442
+ type: "string" | "number" | "boolean" | "object";
5443
+ name: string;
5444
+ uuid: string;
5445
+ isArray?: boolean | undefined;
5446
+ isNullable?: boolean | undefined;
5447
+ isEditable?: boolean | undefined;
5448
+ isKey?: boolean | undefined;
5449
+ default?: unknown;
5450
+ }[];
5451
+ name: string;
5452
+ uuid: string;
5453
+ }[];
5454
+ }) & (string | {
5455
+ tables: {
5456
+ fields: {
5457
+ type: "string" | "number" | "boolean" | "object";
5458
+ name: string;
5459
+ uuid: string;
5460
+ isArray?: boolean | undefined;
5461
+ isNullable?: boolean | undefined;
5462
+ isEditable?: boolean | undefined;
5463
+ isKey?: boolean | undefined;
5464
+ default?: unknown;
5465
+ }[];
5466
+ name: string;
5467
+ uuid: string;
5468
+ }[];
5469
+ } | undefined);
5470
+ appEnv: string;
5471
+ } | {
5472
+ appId: string;
5473
+ currEnv: string;
5474
+ nextEnv: string;
5475
+ };
5476
+ _input_out: {
5477
+ appId: string;
5478
+ config: (string | {
5479
+ tables: {
5480
+ fields: {
5481
+ type: "string" | "number" | "boolean" | "object";
5482
+ name: string;
5483
+ uuid: string;
5484
+ isArray?: boolean | undefined;
5485
+ isNullable?: boolean | undefined;
5486
+ isEditable?: boolean | undefined;
5487
+ isKey?: boolean | undefined;
5488
+ default?: unknown;
5489
+ }[];
5490
+ name: string;
5491
+ uuid: string;
5492
+ }[];
5493
+ }) & (string | {
5494
+ tables: {
5495
+ fields: {
5496
+ type: "string" | "number" | "boolean" | "object";
5497
+ name: string;
5498
+ uuid: string;
5499
+ isArray?: boolean | undefined;
5500
+ isNullable?: boolean | undefined;
5501
+ isEditable?: boolean | undefined;
5502
+ isKey?: boolean | undefined;
5503
+ default?: unknown;
5504
+ }[];
5505
+ name: string;
5506
+ uuid: string;
5507
+ }[];
5508
+ } | undefined);
5509
+ appEnv: string;
5510
+ } | {
5511
+ appId: string;
5512
+ currEnv: string;
5513
+ nextEnv: string;
5514
+ };
5515
+ _output_in: {
5516
+ next: {
5517
+ tables: {
5518
+ fields: {
5519
+ type: "string" | "number" | "boolean" | "object";
5520
+ name: string;
5521
+ uuid: string;
5522
+ isArray?: boolean | undefined;
5523
+ isNullable?: boolean | undefined;
5524
+ isEditable?: boolean | undefined;
5525
+ isKey?: boolean | undefined;
5526
+ default?: unknown;
5527
+ }[];
5528
+ name: string;
5529
+ uuid: string;
5530
+ }[];
5531
+ };
5532
+ current: {
5533
+ tables: {
5534
+ fields: {
5535
+ type: "string" | "number" | "boolean" | "object";
5536
+ name: string;
5537
+ uuid: string;
5538
+ isArray?: boolean | undefined;
5539
+ isNullable?: boolean | undefined;
5540
+ isEditable?: boolean | undefined;
5541
+ isKey?: boolean | undefined;
5542
+ default?: unknown;
5543
+ }[];
5544
+ name: string;
5545
+ uuid: string;
5546
+ }[];
5547
+ };
5548
+ hash: string;
5549
+ diff: {
5550
+ key: "tables";
5551
+ next: {
5552
+ tables?: {
5553
+ name: string;
5554
+ uuid: string;
5555
+ fields?: {
5556
+ type: "string" | "number" | "boolean" | "object";
5557
+ name: string;
5558
+ uuid: string;
5559
+ isArray?: boolean | undefined;
5560
+ isNullable?: boolean | undefined;
5561
+ isEditable?: boolean | undefined;
5562
+ isKey?: boolean | undefined;
5563
+ default?: any;
5564
+ }[] | undefined;
5565
+ }[] | undefined;
5566
+ };
5567
+ current: {
5568
+ tables?: {
5569
+ name: string;
5570
+ uuid: string;
5571
+ fields?: {
5572
+ type: "string" | "number" | "boolean" | "object";
5573
+ name: string;
5574
+ uuid: string;
5575
+ isArray?: boolean | undefined;
5576
+ isNullable?: boolean | undefined;
5577
+ isEditable?: boolean | undefined;
5578
+ isKey?: boolean | undefined;
5579
+ default?: any;
5580
+ }[] | undefined;
5581
+ }[] | undefined;
5582
+ };
5583
+ event: "update";
5584
+ details: ({
5585
+ key: string;
5586
+ next: {
5587
+ name: string;
5588
+ uuid: string;
5589
+ fields?: {
5590
+ type: "string" | "number" | "boolean" | "object";
5591
+ name: string;
5592
+ uuid: string;
5593
+ isArray?: boolean | undefined;
5594
+ isNullable?: boolean | undefined;
5595
+ isEditable?: boolean | undefined;
5596
+ isKey?: boolean | undefined;
5597
+ default?: any;
5598
+ }[] | undefined;
5599
+ };
5600
+ event: "add";
5601
+ current?: undefined;
5602
+ } | {
5603
+ key: string;
5604
+ current: {
5605
+ name: string;
5606
+ uuid: string;
5607
+ fields?: {
5608
+ type: "string" | "number" | "boolean" | "object";
5609
+ name: string;
5610
+ uuid: string;
5611
+ isArray?: boolean | undefined;
5612
+ isNullable?: boolean | undefined;
5613
+ isEditable?: boolean | undefined;
5614
+ isKey?: boolean | undefined;
5615
+ default?: any;
5616
+ }[] | undefined;
5617
+ };
5618
+ event: "delete";
5619
+ next?: undefined;
5620
+ } | {
5621
+ key: string;
5622
+ next: {
5623
+ name: string;
5624
+ uuid: string;
5625
+ fields?: {
5626
+ type: "string" | "number" | "boolean" | "object";
5627
+ name: string;
5628
+ uuid: string;
5629
+ isArray?: boolean | undefined;
5630
+ isNullable?: boolean | undefined;
5631
+ isEditable?: boolean | undefined;
5632
+ isKey?: boolean | undefined;
5633
+ default?: any;
5634
+ }[] | undefined;
5635
+ };
5636
+ current: {
5637
+ name: string;
5638
+ uuid: string;
5639
+ fields?: {
5640
+ type: "string" | "number" | "boolean" | "object";
5641
+ name: string;
5642
+ uuid: string;
5643
+ isArray?: boolean | undefined;
5644
+ isNullable?: boolean | undefined;
5645
+ isEditable?: boolean | undefined;
5646
+ isKey?: boolean | undefined;
5647
+ default?: any;
5648
+ }[] | undefined;
5649
+ };
5650
+ event: "update";
5651
+ details: ({
5652
+ key: "name" | "uuid";
5653
+ event: "update";
5654
+ current?: unknown;
5655
+ next?: unknown;
5656
+ } | {
5657
+ key: "fields";
5658
+ event: "update";
5659
+ details: ({
5660
+ key: string;
5661
+ next: {
5662
+ type: "string" | "number" | "boolean" | "object";
5663
+ name: string;
5664
+ uuid: string;
5665
+ isArray?: boolean | undefined;
5666
+ isNullable?: boolean | undefined;
5667
+ isEditable?: boolean | undefined;
5668
+ isKey?: boolean | undefined;
5669
+ default?: any;
5670
+ };
5671
+ event: "add";
5672
+ current?: undefined;
5673
+ } | {
5674
+ key: string;
5675
+ current: {
5676
+ type: "string" | "number" | "boolean" | "object";
5677
+ name: string;
5678
+ uuid: string;
5679
+ isArray?: boolean | undefined;
5680
+ isNullable?: boolean | undefined;
5681
+ isEditable?: boolean | undefined;
5682
+ isKey?: boolean | undefined;
5683
+ default?: any;
5684
+ };
5685
+ event: "delete";
5686
+ next?: undefined;
5687
+ } | {
5688
+ key: string;
5689
+ next: {
5690
+ type: "string" | "number" | "boolean" | "object";
5691
+ name: string;
5692
+ uuid: string;
5693
+ isArray?: boolean | undefined;
5694
+ isNullable?: boolean | undefined;
5695
+ isEditable?: boolean | undefined;
5696
+ isKey?: boolean | undefined;
5697
+ default?: any;
5698
+ };
5699
+ current: {
5700
+ type: "string" | "number" | "boolean" | "object";
5701
+ name: string;
5702
+ uuid: string;
5703
+ isArray?: boolean | undefined;
5704
+ isNullable?: boolean | undefined;
5705
+ isEditable?: boolean | undefined;
5706
+ isKey?: boolean | undefined;
5707
+ default?: any;
5708
+ };
5709
+ event: "update";
5710
+ details: {
5711
+ event: "update";
5712
+ key?: any;
5713
+ current?: unknown;
5714
+ next?: unknown;
5715
+ }[];
5716
+ })[];
5717
+ current?: unknown;
5718
+ next?: unknown;
5719
+ })[];
5720
+ })[];
5721
+ } | null;
5722
+ currEnv: string;
5723
+ nextEnv: string | null;
5724
+ };
5725
+ _output_out: {
5726
+ next: {
5727
+ tables: {
5728
+ fields: {
5729
+ type: "string" | "number" | "boolean" | "object";
5730
+ name: string;
5731
+ uuid: string;
5732
+ isArray?: boolean | undefined;
5733
+ isNullable?: boolean | undefined;
5734
+ isEditable?: boolean | undefined;
5735
+ isKey?: boolean | undefined;
5736
+ default?: unknown;
5737
+ }[];
5738
+ name: string;
5739
+ uuid: string;
5740
+ }[];
5741
+ };
5742
+ current: {
5743
+ tables: {
5744
+ fields: {
5745
+ type: "string" | "number" | "boolean" | "object";
5746
+ name: string;
5747
+ uuid: string;
5748
+ isArray?: boolean | undefined;
5749
+ isNullable?: boolean | undefined;
5750
+ isEditable?: boolean | undefined;
5751
+ isKey?: boolean | undefined;
5752
+ default?: unknown;
5753
+ }[];
5754
+ name: string;
5755
+ uuid: string;
5756
+ }[];
5757
+ };
5758
+ hash: string;
5759
+ diff: {
5760
+ key: "tables";
5761
+ next: {
5762
+ tables: {
5763
+ fields: {
5764
+ type: "string" | "number" | "boolean" | "object";
5765
+ name: string;
5766
+ uuid: string;
5767
+ isArray: boolean;
5768
+ isNullable: boolean;
5769
+ isEditable: boolean;
5770
+ isKey: boolean;
5771
+ default?: any;
5772
+ }[];
5773
+ name: string;
5774
+ uuid: string;
5775
+ }[];
5776
+ };
5777
+ current: {
5778
+ tables: {
5779
+ fields: {
5780
+ type: "string" | "number" | "boolean" | "object";
5781
+ name: string;
5782
+ uuid: string;
5783
+ isArray: boolean;
5784
+ isNullable: boolean;
5785
+ isEditable: boolean;
5786
+ isKey: boolean;
5787
+ default?: any;
5788
+ }[];
5789
+ name: string;
5790
+ uuid: string;
5791
+ }[];
5792
+ };
5793
+ event: "update";
5794
+ details: ({
5795
+ key: string;
5796
+ next: {
5797
+ fields: {
5798
+ type: "string" | "number" | "boolean" | "object";
5799
+ name: string;
5800
+ uuid: string;
5801
+ isArray: boolean;
5802
+ isNullable: boolean;
5803
+ isEditable: boolean;
5804
+ isKey: boolean;
5805
+ default?: any;
5806
+ }[];
5807
+ name: string;
5808
+ uuid: string;
5809
+ };
5810
+ event: "add";
5811
+ current?: undefined;
5812
+ } | {
5813
+ key: string;
5814
+ current: {
5815
+ fields: {
5816
+ type: "string" | "number" | "boolean" | "object";
5817
+ name: string;
5818
+ uuid: string;
5819
+ isArray: boolean;
5820
+ isNullable: boolean;
5821
+ isEditable: boolean;
5822
+ isKey: boolean;
5823
+ default?: any;
5824
+ }[];
5825
+ name: string;
5826
+ uuid: string;
5827
+ };
5828
+ event: "delete";
5829
+ next?: undefined;
5830
+ } | {
5831
+ key: string;
5832
+ next: {
5833
+ fields: {
5834
+ type: "string" | "number" | "boolean" | "object";
5835
+ name: string;
5836
+ uuid: string;
5837
+ isArray: boolean;
5838
+ isNullable: boolean;
5839
+ isEditable: boolean;
5840
+ isKey: boolean;
5841
+ default?: any;
5842
+ }[];
5843
+ name: string;
5844
+ uuid: string;
5845
+ };
5846
+ current: {
5847
+ fields: {
5848
+ type: "string" | "number" | "boolean" | "object";
5849
+ name: string;
5850
+ uuid: string;
5851
+ isArray: boolean;
5852
+ isNullable: boolean;
5853
+ isEditable: boolean;
5854
+ isKey: boolean;
5855
+ default?: any;
5856
+ }[];
5857
+ name: string;
5858
+ uuid: string;
5859
+ };
5860
+ event: "update";
5861
+ details: ({
5862
+ key: "name" | "uuid";
5863
+ event: "update";
5864
+ current?: unknown;
5865
+ next?: unknown;
5866
+ } | {
5867
+ key: "fields";
5868
+ event: "update";
5869
+ details: ({
5870
+ key: string;
5871
+ next: {
5872
+ type: "string" | "number" | "boolean" | "object";
5873
+ name: string;
5874
+ uuid: string;
5875
+ isArray: boolean;
5876
+ isNullable: boolean;
5877
+ isEditable: boolean;
5878
+ isKey: boolean;
5879
+ default?: any;
5880
+ };
5881
+ event: "add";
5882
+ current?: undefined;
5883
+ } | {
5884
+ key: string;
5885
+ current: {
5886
+ type: "string" | "number" | "boolean" | "object";
5887
+ name: string;
5888
+ uuid: string;
5889
+ isArray: boolean;
5890
+ isNullable: boolean;
5891
+ isEditable: boolean;
5892
+ isKey: boolean;
5893
+ default?: any;
5894
+ };
5895
+ event: "delete";
5896
+ next?: undefined;
5897
+ } | {
5898
+ key: string;
5899
+ next: {
5900
+ type: "string" | "number" | "boolean" | "object";
5901
+ name: string;
5902
+ uuid: string;
5903
+ isArray: boolean;
5904
+ isNullable: boolean;
5905
+ isEditable: boolean;
5906
+ isKey: boolean;
5907
+ default?: any;
5908
+ };
5909
+ current: {
5910
+ type: "string" | "number" | "boolean" | "object";
5911
+ name: string;
5912
+ uuid: string;
5913
+ isArray: boolean;
5914
+ isNullable: boolean;
5915
+ isEditable: boolean;
5916
+ isKey: boolean;
5917
+ default?: any;
5918
+ };
5919
+ event: "update";
5920
+ details: {
5921
+ event: "update";
5922
+ key?: any;
5923
+ current?: unknown;
5924
+ next?: unknown;
5925
+ }[];
5926
+ })[];
5927
+ current?: unknown;
5928
+ next?: unknown;
5929
+ })[];
5930
+ })[];
5931
+ } | null;
5932
+ currEnv: string;
5933
+ nextEnv: string | null;
5934
+ };
5935
+ }, unknown>;
5936
+ updateConfig: _trpc_server.BuildProcedure<"mutation", {
5937
+ _config: _trpc_server.RootConfig<{
5938
+ ctx: {};
5939
+ meta: object;
5940
+ errorShape: {
5941
+ message: string;
5942
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5943
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
5944
+ } | {
5945
+ data: {
5946
+ zodError: zod.typeToFlattenedError<any, string> | null;
5947
+ 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";
5948
+ httpStatus: number;
5949
+ path?: string | undefined;
5950
+ stack?: string | undefined;
5951
+ };
5952
+ message: string;
5953
+ code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
5954
+ };
5955
+ transformer: typeof superjson.default;
5956
+ }>;
5957
+ _meta: object;
5958
+ _ctx_out: {
5959
+ session: {
5960
+ appId: string;
5961
+ appPlanId: string | null;
5962
+ appFakeUserId: string | undefined;
5963
+ sessionId: string;
5964
+ accountId: string;
5965
+ accountRole: _prisma_client.$Enums.AccountRole;
5966
+ userId: string;
5967
+ userRole: _prisma_client.$Enums.UserRole;
5968
+ userPlan: _prisma_client.$Enums.PlanKind;
5969
+ };
5970
+ req: {
5971
+ headers: Headers;
5972
+ };
5973
+ res: {
5974
+ headers: Headers;
5975
+ };
5976
+ locale: Locales;
5977
+ ls: TranslationFunctions;
5978
+ };
5979
+ _input_in: {
5980
+ appId: string;
5981
+ config: string;
5982
+ appEnv: string;
5983
+ };
5984
+ _input_out: {
5985
+ appId: string;
5986
+ config: string;
5987
+ appEnv: string;
5988
+ };
5989
+ _output_in: {
5990
+ tables: {
5991
+ fields: {
5992
+ type: "string" | "number" | "boolean" | "object";
5993
+ name: string;
5994
+ uuid: string;
5995
+ isArray?: boolean | undefined;
5996
+ isNullable?: boolean | undefined;
5997
+ isEditable?: boolean | undefined;
5998
+ isKey?: boolean | undefined;
5999
+ default?: unknown;
6000
+ }[];
6001
+ name: string;
6002
+ uuid: string;
6003
+ }[];
6004
+ };
6005
+ _output_out: {
6006
+ tables: {
6007
+ fields: {
6008
+ type: "string" | "number" | "boolean" | "object";
6009
+ name: string;
6010
+ uuid: string;
6011
+ isArray?: boolean | undefined;
6012
+ isNullable?: boolean | undefined;
6013
+ isEditable?: boolean | undefined;
6014
+ isKey?: boolean | undefined;
6015
+ default?: unknown;
6016
+ }[];
6017
+ name: string;
6018
+ uuid: string;
6019
+ }[];
6020
+ };
6021
+ }, unknown>;
4951
6022
  }>;
4952
6023
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
4953
6024
  ctx: {};
@@ -9025,8 +10096,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9025
10096
  };
9026
10097
  id: string;
9027
10098
  };
9028
- role: "user" | "admin";
9029
- rights: "admin" | "write" | "read";
10099
+ role: "developer" | "admin";
9030
10100
  };
9031
10101
  _output_out: {
9032
10102
  developer: {
@@ -9044,8 +10114,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9044
10114
  };
9045
10115
  id: string;
9046
10116
  };
9047
- role: "user" | "admin";
9048
- rights: "admin" | "write" | "read";
10117
+ role: "developer" | "admin";
9049
10118
  };
9050
10119
  }, unknown>;
9051
10120
  developers: _trpc_server.BuildProcedure<"query", {
@@ -9093,8 +10162,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9093
10162
  };
9094
10163
  id: string;
9095
10164
  };
9096
- role: "user" | "admin";
9097
- rights: "admin" | "write" | "read";
10165
+ role: "developer" | "admin";
9098
10166
  }[];
9099
10167
  _output_out: {
9100
10168
  developer: {
@@ -9112,8 +10180,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9112
10180
  };
9113
10181
  id: string;
9114
10182
  };
9115
- role: "user" | "admin";
9116
- rights: "admin" | "write" | "read";
10183
+ role: "developer" | "admin";
9117
10184
  }[];
9118
10185
  }, unknown>;
9119
10186
  renewAppCode: _trpc_server.BuildProcedure<"mutation", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.10.0-integration-dev-role.1",
3
+ "version": "1.10.0-integration-fixes-api.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"