( config: T, userId: string, workspaceId?: string )
| 13 | * @returns A new object with all env var references resolved |
| 14 | */ |
| 15 | export async function resolveEnvVarsInObject<T extends Record<string, unknown>>( |
| 16 | config: T, |
| 17 | userId: string, |
| 18 | workspaceId?: string |
| 19 | ): Promise<T> { |
| 20 | const envVars = await getEffectiveDecryptedEnv(userId, workspaceId) |
| 21 | return resolveEnvVarReferences(config, envVars, { deep: true }) as T |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Normalizes webhook provider config into a plain object for runtime resolution. |
no test coverage detected