Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(validator): update TSafeRequestConfig and TSafeRequestFullConfig types

Victor Hugo dos Santos6d40c20fde07
diff --git a/backend/src/lib/validator/safe-request.ts b/backend/src/lib/validator/safe-request.ts
index af7ce2ed5f..e2738ccf11 100644
--- a/backend/src/lib/validator/safe-request.ts
+++ b/backend/src/lib/validator/safe-request.ts
@@ -305,9 +305,12 @@ type TSafeRequestExtras = {
servername?: string;
};
-type TSafeRequestConfig = Omit<AxiosRequestConfig, "httpAgent" | "httpsAgent" | "maxRedirects" | "url" | "method">;
+type TSafeRequestConfig = Omit<
+ AxiosRequestConfig,
+ "httpAgent" | "httpsAgent" | "maxRedirects" | "proxy" | "url" | "method"
+>;
-type TSafeRequestFullConfig = Omit<AxiosRequestConfig, "httpAgent" | "httpsAgent" | "maxRedirects"> & {
+type TSafeRequestFullConfig = Omit<AxiosRequestConfig, "httpAgent" | "httpsAgent" | "maxRedirects" | "proxy"> & {
url: string;
} & TSafeRequestExtras;