/** * A connection is a special type of input for an action that contains * information on how to connect to an external app or service. A * connection can consist of one or many inputs that can represent things * like API endpoints, keys, passwords, OAuth 2.0 fields, etc. * * For information on custom connector connections, see * https://prismatic.io/docs/custom-connectors/connections/ * * If you would like to add OAuth 2.0 support for a connection, see * https://prismatic.io/docs/custom-connectors/connections/#writing-oauth-20-connections */ import { connection } from "@prismatic-io/spectral"; export const cakemailApiKey = connection({ key: "apiKey", display: { label: "Cakemail Connection", description: "Cakemail Connection", }, inputs: { apiKey: { label: "Cakemail Token", placeholder: "Cakemail Token", type: "password", required: true, comments: "Generate at https://api.cakemail.dev/token", }, account_id: { label: "Account ID", placeholder: "Account ID", type: "string", required: false, comments: "Your Cakemail Account ID (optional)", }, }, }); export default [cakemailApiKey];