@secrecy/lib 1.8.0 → 1.9.0-integration-database-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.
- package/dist/types/client.d.ts +176 -0
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -7060,6 +7060,107 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
7060
7060
|
}[];
|
|
7061
7061
|
}, unknown>>;
|
|
7062
7062
|
};
|
|
7063
|
+
getProjectEndpoint: {
|
|
7064
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
7065
|
+
_config: import("@trpc/server").RootConfig<{
|
|
7066
|
+
ctx: {};
|
|
7067
|
+
meta: object;
|
|
7068
|
+
errorShape: {
|
|
7069
|
+
message: string;
|
|
7070
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7071
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7072
|
+
} | {
|
|
7073
|
+
data: {
|
|
7074
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
7075
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7076
|
+
httpStatus: number;
|
|
7077
|
+
path?: string | undefined;
|
|
7078
|
+
stack?: string | undefined;
|
|
7079
|
+
};
|
|
7080
|
+
message: string;
|
|
7081
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7082
|
+
};
|
|
7083
|
+
transformer: typeof superjson;
|
|
7084
|
+
}>;
|
|
7085
|
+
_meta: object;
|
|
7086
|
+
_ctx_out: {
|
|
7087
|
+
session: {
|
|
7088
|
+
appId: string;
|
|
7089
|
+
appPlanId: string | null;
|
|
7090
|
+
appFakeUserId: string | undefined;
|
|
7091
|
+
sessionId: string;
|
|
7092
|
+
accountId: string;
|
|
7093
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7094
|
+
userId: string;
|
|
7095
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7096
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7097
|
+
isCare?: boolean | undefined;
|
|
7098
|
+
};
|
|
7099
|
+
req: {
|
|
7100
|
+
headers: Headers;
|
|
7101
|
+
};
|
|
7102
|
+
res: {
|
|
7103
|
+
headers: Headers;
|
|
7104
|
+
};
|
|
7105
|
+
locale: Locales;
|
|
7106
|
+
ls: TranslationFunctions;
|
|
7107
|
+
};
|
|
7108
|
+
_input_in: {
|
|
7109
|
+
appId?: string | undefined;
|
|
7110
|
+
} & {
|
|
7111
|
+
endpointId: string;
|
|
7112
|
+
};
|
|
7113
|
+
_input_out: {
|
|
7114
|
+
appId?: string | undefined;
|
|
7115
|
+
} & {
|
|
7116
|
+
endpointId: string;
|
|
7117
|
+
};
|
|
7118
|
+
_output_in: {
|
|
7119
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7120
|
+
id: string;
|
|
7121
|
+
createdAt: string;
|
|
7122
|
+
updatedAt: string;
|
|
7123
|
+
host: string;
|
|
7124
|
+
branchId: string;
|
|
7125
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7126
|
+
regionId: string;
|
|
7127
|
+
creationSource: string;
|
|
7128
|
+
disabled: boolean;
|
|
7129
|
+
passwordlessAccess: boolean;
|
|
7130
|
+
poolerEnabled: boolean;
|
|
7131
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7132
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7133
|
+
proxyHost: string;
|
|
7134
|
+
suspendTimeoutSeconds: number;
|
|
7135
|
+
autoscalingLimitMinCU: number;
|
|
7136
|
+
autoscalingLimitMaxCU: number;
|
|
7137
|
+
lastActive?: string | undefined;
|
|
7138
|
+
pendingState?: any;
|
|
7139
|
+
};
|
|
7140
|
+
_output_out: {
|
|
7141
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7142
|
+
id: string;
|
|
7143
|
+
createdAt: string;
|
|
7144
|
+
updatedAt: string;
|
|
7145
|
+
host: string;
|
|
7146
|
+
branchId: string;
|
|
7147
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7148
|
+
regionId: string;
|
|
7149
|
+
creationSource: string;
|
|
7150
|
+
disabled: boolean;
|
|
7151
|
+
passwordlessAccess: boolean;
|
|
7152
|
+
poolerEnabled: boolean;
|
|
7153
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7154
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7155
|
+
proxyHost: string;
|
|
7156
|
+
suspendTimeoutSeconds: number;
|
|
7157
|
+
autoscalingLimitMinCU: number;
|
|
7158
|
+
autoscalingLimitMaxCU: number;
|
|
7159
|
+
lastActive?: string | undefined;
|
|
7160
|
+
pendingState?: any;
|
|
7161
|
+
};
|
|
7162
|
+
}, unknown>>;
|
|
7163
|
+
};
|
|
7063
7164
|
getProjectEndpoints: {
|
|
7064
7165
|
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
7065
7166
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -7359,6 +7460,81 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
7359
7460
|
};
|
|
7360
7461
|
}, unknown>>;
|
|
7361
7462
|
};
|
|
7463
|
+
update: {
|
|
7464
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
7465
|
+
_config: import("@trpc/server").RootConfig<{
|
|
7466
|
+
ctx: {};
|
|
7467
|
+
meta: object;
|
|
7468
|
+
errorShape: {
|
|
7469
|
+
message: string;
|
|
7470
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7471
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7472
|
+
} | {
|
|
7473
|
+
data: {
|
|
7474
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
7475
|
+
code: "UNAUTHORIZED" | "NOT_FOUND" | "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "FORBIDDEN" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7476
|
+
httpStatus: number;
|
|
7477
|
+
path?: string | undefined;
|
|
7478
|
+
stack?: string | undefined;
|
|
7479
|
+
};
|
|
7480
|
+
message: string;
|
|
7481
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7482
|
+
};
|
|
7483
|
+
transformer: typeof superjson;
|
|
7484
|
+
}>;
|
|
7485
|
+
_meta: object;
|
|
7486
|
+
_ctx_out: {
|
|
7487
|
+
session: {
|
|
7488
|
+
appId: string;
|
|
7489
|
+
appPlanId: string | null;
|
|
7490
|
+
appFakeUserId: string | undefined;
|
|
7491
|
+
sessionId: string;
|
|
7492
|
+
accountId: string;
|
|
7493
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7494
|
+
userId: string;
|
|
7495
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7496
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7497
|
+
isCare?: boolean | undefined;
|
|
7498
|
+
};
|
|
7499
|
+
req: {
|
|
7500
|
+
headers: Headers;
|
|
7501
|
+
};
|
|
7502
|
+
res: {
|
|
7503
|
+
headers: Headers;
|
|
7504
|
+
};
|
|
7505
|
+
locale: Locales;
|
|
7506
|
+
ls: TranslationFunctions;
|
|
7507
|
+
};
|
|
7508
|
+
_input_in: {
|
|
7509
|
+
appId?: string | undefined;
|
|
7510
|
+
} & {
|
|
7511
|
+
endpointId: string;
|
|
7512
|
+
} & {
|
|
7513
|
+
disabled?: boolean | undefined;
|
|
7514
|
+
passwordlessAccess?: boolean | undefined;
|
|
7515
|
+
suspendTimeoutSeconds?: number | undefined;
|
|
7516
|
+
autoscalingLimitMinCU?: number | undefined;
|
|
7517
|
+
autoscalingLimitMaxCU?: number | undefined;
|
|
7518
|
+
};
|
|
7519
|
+
_input_out: {
|
|
7520
|
+
appId?: string | undefined;
|
|
7521
|
+
} & {
|
|
7522
|
+
endpointId: string;
|
|
7523
|
+
} & {
|
|
7524
|
+
disabled?: boolean | undefined;
|
|
7525
|
+
passwordlessAccess?: boolean | undefined;
|
|
7526
|
+
suspendTimeoutSeconds?: number | undefined;
|
|
7527
|
+
autoscalingLimitMinCU?: number | undefined;
|
|
7528
|
+
autoscalingLimitMaxCU?: number | undefined;
|
|
7529
|
+
};
|
|
7530
|
+
_output_in: {
|
|
7531
|
+
isUpdated: boolean;
|
|
7532
|
+
};
|
|
7533
|
+
_output_out: {
|
|
7534
|
+
isUpdated: boolean;
|
|
7535
|
+
};
|
|
7536
|
+
}, unknown>>;
|
|
7537
|
+
};
|
|
7362
7538
|
};
|
|
7363
7539
|
};
|
|
7364
7540
|
faq: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.9.0-integration-database-api.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@secrecy/lib-utils": "^1.0.18",
|
|
77
|
-
"@secrecy/trpc-api-types": "1.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.16.0-integration-add-neon-endpoint.1",
|
|
78
78
|
"@trpc/client": "10.45.0",
|
|
79
79
|
"@trpc/server": "10.45.0",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.6",
|