There is documentation about the integration fields here: Elastic integrations | Elastic integrations | Elastic
The integration config should be put under package_policies for Fleet-managed agents, see an example here: Create an agent policy without using the UI | Fleet and Elastic Agent Guide [master] | Elastic