Creates a code-native integration object that can be imported into Prismatic.
The integration() function defines a complete code-native integration, including its flows, config pages, component registry, and metadata. It returns a converted integration object in the shape the Prismatic API expects.
When the environment variable DEBUG is set to "true", the function prints the generated YAML representation of the integration to the console via console.info.
Endpoint type used by instances of this integration. When using anything other than flow_specific, a preprocess flow config must be specified.Accepted values:
"flow_specific" — Each flow has its own unique endpoint URL.
"instance_specific" — All flows in an instance share one endpoint URL.
"shared_instance" — All instances share a single endpoint URL.
Preprocess flow configuration for when the trigger payload contains the flow routing attributes. Cannot be specified together with a preprocess flow on a flow.
A registry of components this integration depends on. Used to make component actions available in context.components during flow execution. See componentManifest().