@secrecy/trpc-api-types 1.17.1-dev.1 → 1.18.0-dev.2

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 +231 -0
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -7255,6 +7255,105 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7255
7255
  pendingState?: _neondatabase_api_client.EndpointState | undefined;
7256
7256
  }[];
7257
7257
  }, unknown>;
7258
+ getProjectEndpoint: _trpc_server.BuildProcedure<"query", {
7259
+ _config: _trpc_server.RootConfig<{
7260
+ ctx: {};
7261
+ meta: object;
7262
+ errorShape: {
7263
+ message: string;
7264
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
7265
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
7266
+ } | {
7267
+ data: {
7268
+ zodError: zod.typeToFlattenedError<any, string> | null;
7269
+ 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";
7270
+ httpStatus: number;
7271
+ path?: string | undefined;
7272
+ stack?: string | undefined;
7273
+ };
7274
+ message: string;
7275
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
7276
+ };
7277
+ transformer: typeof superjson.default;
7278
+ }>;
7279
+ _meta: object;
7280
+ _ctx_out: {
7281
+ session: {
7282
+ appId: string;
7283
+ appPlanId: string | null;
7284
+ appFakeUserId: string | undefined;
7285
+ sessionId: string;
7286
+ accountId: string;
7287
+ accountRole: _prisma_client.$Enums.AccountRole;
7288
+ userId: string;
7289
+ userRole: _prisma_client.$Enums.UserRole;
7290
+ userPlan: _prisma_client.$Enums.PlanKind;
7291
+ isCare?: boolean | undefined;
7292
+ };
7293
+ req: {
7294
+ headers: Headers;
7295
+ };
7296
+ res: {
7297
+ headers: Headers;
7298
+ };
7299
+ locale: Locales;
7300
+ ls: TranslationFunctions;
7301
+ };
7302
+ _input_in: {
7303
+ appId?: string | undefined;
7304
+ } & {
7305
+ endpointId: string;
7306
+ };
7307
+ _input_out: {
7308
+ appId?: string | undefined;
7309
+ } & {
7310
+ endpointId: string;
7311
+ };
7312
+ _output_in: {
7313
+ id: string;
7314
+ createdAt: string;
7315
+ updatedAt: string;
7316
+ type: _neondatabase_api_client.EndpointType;
7317
+ host: string;
7318
+ branchId: string;
7319
+ currentState: _neondatabase_api_client.EndpointState;
7320
+ regionId: string;
7321
+ creationSource: string;
7322
+ disabled: boolean;
7323
+ passwordlessAccess: boolean;
7324
+ poolerEnabled: boolean;
7325
+ poolerMode: _neondatabase_api_client.EndpointPoolerMode;
7326
+ provisioner: _neondatabase_api_client.Provisioner;
7327
+ proxyHost: string;
7328
+ suspendTimeoutSeconds: number;
7329
+ autoscalingLimitMinCU: number;
7330
+ autoscalingLimitMaxCU: number;
7331
+ lastActive?: string | undefined;
7332
+ pendingState?: _neondatabase_api_client.EndpointState | undefined;
7333
+ };
7334
+ _output_out: {
7335
+ id: string;
7336
+ createdAt: string;
7337
+ updatedAt: string;
7338
+ type: _neondatabase_api_client.EndpointType;
7339
+ host: string;
7340
+ branchId: string;
7341
+ currentState: _neondatabase_api_client.EndpointState;
7342
+ regionId: string;
7343
+ creationSource: string;
7344
+ disabled: boolean;
7345
+ passwordlessAccess: boolean;
7346
+ poolerEnabled: boolean;
7347
+ poolerMode: _neondatabase_api_client.EndpointPoolerMode;
7348
+ provisioner: _neondatabase_api_client.Provisioner;
7349
+ proxyHost: string;
7350
+ suspendTimeoutSeconds: number;
7351
+ autoscalingLimitMinCU: number;
7352
+ autoscalingLimitMaxCU: number;
7353
+ lastActive?: string | undefined;
7354
+ pendingState?: _neondatabase_api_client.EndpointState | undefined;
7355
+ };
7356
+ }, unknown>;
7258
7357
  getProjectEndpoints: _trpc_server.BuildProcedure<"query", {
7259
7358
  _config: _trpc_server.RootConfig<{
7260
7359
  ctx: {};
@@ -7548,6 +7647,79 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7548
7647
  pendingState?: _neondatabase_api_client.EndpointState | undefined;
7549
7648
  };
7550
7649
  }, unknown>;
7650
+ update: _trpc_server.BuildProcedure<"mutation", {
7651
+ _config: _trpc_server.RootConfig<{
7652
+ ctx: {};
7653
+ meta: object;
7654
+ errorShape: {
7655
+ message: string;
7656
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
7657
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
7658
+ } | {
7659
+ data: {
7660
+ zodError: zod.typeToFlattenedError<any, string> | null;
7661
+ 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";
7662
+ httpStatus: number;
7663
+ path?: string | undefined;
7664
+ stack?: string | undefined;
7665
+ };
7666
+ message: string;
7667
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
7668
+ };
7669
+ transformer: typeof superjson.default;
7670
+ }>;
7671
+ _meta: object;
7672
+ _ctx_out: {
7673
+ session: {
7674
+ appId: string;
7675
+ appPlanId: string | null;
7676
+ appFakeUserId: string | undefined;
7677
+ sessionId: string;
7678
+ accountId: string;
7679
+ accountRole: _prisma_client.$Enums.AccountRole;
7680
+ userId: string;
7681
+ userRole: _prisma_client.$Enums.UserRole;
7682
+ userPlan: _prisma_client.$Enums.PlanKind;
7683
+ isCare?: boolean | undefined;
7684
+ };
7685
+ req: {
7686
+ headers: Headers;
7687
+ };
7688
+ res: {
7689
+ headers: Headers;
7690
+ };
7691
+ locale: Locales;
7692
+ ls: TranslationFunctions;
7693
+ };
7694
+ _input_in: {
7695
+ appId?: string | undefined;
7696
+ } & {
7697
+ endpointId: string;
7698
+ } & {
7699
+ disabled?: boolean | undefined;
7700
+ passwordlessAccess?: boolean | undefined;
7701
+ suspendTimeoutSeconds?: number | undefined;
7702
+ autoscalingLimitMinCU?: number | undefined;
7703
+ autoscalingLimitMaxCU?: number | undefined;
7704
+ };
7705
+ _input_out: {
7706
+ appId?: string | undefined;
7707
+ } & {
7708
+ endpointId: string;
7709
+ } & {
7710
+ disabled?: boolean | undefined;
7711
+ passwordlessAccess?: boolean | undefined;
7712
+ suspendTimeoutSeconds?: number | undefined;
7713
+ autoscalingLimitMinCU?: number | undefined;
7714
+ autoscalingLimitMaxCU?: number | undefined;
7715
+ };
7716
+ _output_in: {
7717
+ isUpdated: boolean;
7718
+ };
7719
+ _output_out: {
7720
+ isUpdated: boolean;
7721
+ };
7722
+ }, unknown>;
7551
7723
  }>;
7552
7724
  }>;
7553
7725
  faq: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
@@ -11858,6 +12030,65 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11858
12030
  isUpdated: boolean;
11859
12031
  };
11860
12032
  }, unknown>;
12033
+ isApplicationUser: _trpc_server.BuildProcedure<"query", {
12034
+ _config: _trpc_server.RootConfig<{
12035
+ ctx: {};
12036
+ meta: object;
12037
+ errorShape: {
12038
+ message: string;
12039
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12040
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12041
+ } | {
12042
+ data: {
12043
+ zodError: zod.typeToFlattenedError<any, string> | null;
12044
+ 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";
12045
+ httpStatus: number;
12046
+ path?: string | undefined;
12047
+ stack?: string | undefined;
12048
+ };
12049
+ message: string;
12050
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12051
+ };
12052
+ transformer: typeof superjson.default;
12053
+ }>;
12054
+ _meta: object;
12055
+ _ctx_out: {
12056
+ session: {
12057
+ appId: string;
12058
+ appPlanId: string | null;
12059
+ appFakeUserId: string | undefined;
12060
+ sessionId: string;
12061
+ accountId: string;
12062
+ accountRole: _prisma_client.$Enums.AccountRole;
12063
+ userId: string;
12064
+ userRole: _prisma_client.$Enums.UserRole;
12065
+ userPlan: _prisma_client.$Enums.PlanKind;
12066
+ isCare?: boolean | undefined;
12067
+ };
12068
+ req: {
12069
+ headers: Headers;
12070
+ };
12071
+ res: {
12072
+ headers: Headers;
12073
+ };
12074
+ locale: Locales;
12075
+ ls: TranslationFunctions;
12076
+ };
12077
+ _input_in: {
12078
+ appId: string;
12079
+ userId: string;
12080
+ };
12081
+ _input_out: {
12082
+ appId: string;
12083
+ userId: string;
12084
+ };
12085
+ _output_in: {
12086
+ isApplicationUser: boolean;
12087
+ };
12088
+ _output_out: {
12089
+ isApplicationUser: boolean;
12090
+ };
12091
+ }, unknown>;
11861
12092
  }>;
11862
12093
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
11863
12094
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.17.1-dev.1",
3
+ "version": "1.18.0-dev.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"