Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix type error
adilson8c09c5dd5df1
diff --git a/backend/src/services/secret-sync/ovh/ovh-sync-schemas.ts b/backend/src/services/secret-sync/ovh/ovh-sync-schemas.tsindex 825ab1765a..4ae831000c 100644--- a/backend/src/services/secret-sync/ovh/ovh-sync-schemas.ts+++ b/backend/src/services/secret-sync/ovh/ovh-sync-schemas.ts@@ -13,8 +13,6 @@ import { TSyncOptionsConfig } from "@app/services/secret-sync/secret-sync-types"import { SECRET_SYNC_NAME_MAP } from "../secret-sync-maps";-const SecretSyncsDocs = SecretSyncs as unknown as { DESTINATION_CONFIG: { OVH: { path: string } } };-export const OvhSyncDestinationConfigSchema = z.object({path: z.string()@@ -26,27 +24,27 @@ export const OvhSyncDestinationConfigSchema = z.object({message:"Invalid OVH OKMS path format. Use alphanumerics, dots, dashes, underscores, and single slashes between segments."})- .describe(SecretSyncsDocs.DESTINATION_CONFIG.OVH.path)+ .describe(SecretSyncs.DESTINATION_CONFIG.OVH.path)});const OvhSyncOptionsConfig: TSyncOptionsConfig = { canImportSecrets: true };-export const OvhSyncSchema = BaseSecretSyncSchema(SecretSync.OVH as unknown as SecretSync, OvhSyncOptionsConfig)+export const OvhSyncSchema = BaseSecretSyncSchema(SecretSync.OVH, OvhSyncOptionsConfig).extend({- destination: z.literal(SecretSync.OVH as unknown as SecretSync),+ destination: z.literal(SecretSync.OVH),destinationConfig: OvhSyncDestinationConfigSchema})- .describe(JSON.stringify({ title: String(SECRET_SYNC_NAME_MAP[SecretSync.OVH as unknown as SecretSync]) }));+ .describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.OVH] }));export const CreateOvhSyncSchema = GenericCreateSecretSyncFieldsSchema(- SecretSync.OVH as unknown as SecretSync,+ SecretSync.OVH,OvhSyncOptionsConfig).extend({destinationConfig: OvhSyncDestinationConfigSchema});export const UpdateOvhSyncSchema = GenericUpdateSecretSyncFieldsSchema(- SecretSync.OVH as unknown as SecretSync,+ SecretSync.OVH,OvhSyncOptionsConfig).extend({destinationConfig: OvhSyncDestinationConfigSchema.optional()@@ -56,8 +54,8 @@ export const OvhSyncListItemSchema = z.object({name: z.literal("OVH"),connection: z.literal(AppConnection.OVH),- destination: z.literal(SecretSync.OVH as unknown as SecretSync),+ destination: z.literal(SecretSync.OVH),canImportSecrets: z.literal(true),canRemoveSecretsOnDeletion: z.literal(true)})- .describe(JSON.stringify({ title: String(SECRET_SYNC_NAME_MAP[SecretSync.OVH as unknown as SecretSync]) }));+ .describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.OVH] }));